Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* dbmalloc with DEC-Unix 4.0*
@ 1999-09-14  4:00 Aurel Balmosan
  0 siblings, 0 replies; only message in thread
From: Aurel Balmosan @ 1999-09-14  4:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-14  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-14  4:00 dbmalloc with DEC-Unix 4.0* Aurel Balmosan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox