From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,79386aeda37cb4e3,start X-Google-Attributes: gidfee84,public From: Aurel Balmosan Subject: dbmalloc with DEC-Unix 4.0* Date: 1999/09/14 Message-ID: <37DE5FD7.3092EF93@orga.com>#1/1 X-Deja-AN: 525005620 X-Nntp-Posting-Host: 192.168.14.45 Content-Transfer-Encoding: 7bit Sender: news@orga.com (News Administrator) X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: ORGA Kartensysteme GmbH Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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