From: Aurel Balmosan <ab@orga.com>
Subject: dbmalloc with DEC-Unix 4.0*
Date: 1999/09/14 [thread overview]
Message-ID: <37DE5FD7.3092EF93@orga.com> (raw)
Hello,
Recently we tried to link the dbmalloc-14R4 malloc debug library to one
of our programs. Build the l.ibrary was not a real problem. But the use
of the malloc debug library was a real one. Even with the following
simple test program the malloc debug library showed an error regarding
freeing an none-allocated memory region.
void main()
{ char *a=(char*)malloc(10);
free(a);
exit(0);
}
The error occure in exit(). When we use _exit() every thing is fine. The
same happens within getopt(). My guess is that because of the dynamic
linkage some libc functions are bound to the regulare malloc/free
functions and other to the malloc debug libary. We tried to use static
linakge with -no_shared but it didnt helped.
Does one of you know how to get it work?
Regards,
Aurel Balmosan
reply other threads:[~1999-09-14 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox