From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,5362368bdd581484,start X-Google-Attributes: gid103734,public X-Google-Thread: 10b612,5362368bdd581484,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1076d4,5362368bdd581484,start X-Google-Attributes: gid1076d4,public X-Google-Thread: 1164f8,5362368bdd581484,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-02-06 19:15:57 PST Xref: sparky comp.windows.x:6820 comp.windows.misc:376 comp.unix.ultrix:2422 comp.sys.dec:1472 Path: sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!netnews.upenn.edu!gradient.cis.upenn.edu From: assumal@gradient.cis.upenn.edu (Haresh Assumal) Newsgroups: comp.windows.x,comp.windows.misc,comp.unix.ultrix,comp.sys.dec Subject: Problem with Xlib when using -lmalloc Message-ID: <65183@netnews.upenn.edu> Date: 6 Feb 92 20:11:46 GMT Sender: news@netnews.upenn.edu Followup-To: comp.windows.x Distribution: usa Organization: University of Pennsylvania Nntp-Posting-Host: gradient.cis.upenn.edu I have encountered a problem when I compile my application using -lX11 (X library) and -lmalloc (malloc libarary). I have found that the X application that I have written crashes in free() when a call to XrmFreeDatabase() is made. This problem goes away when I compile the X application without -lmalloc (i.e. uses the malloc functions from the standard C lib -lc). Has anyone encountered this problem? Is there a work around it, I need to use -lmalloc. The reason being that I use mallinfo() in my code and on the DEC Ultrix workstations mallinfo() in NOT defined in the standard C lib (-lc) but IS defined in -lmalloc. I do not think that his problem will arrises on the Sun. If I'm not mistaken there is no -lmalloc on the sun and mallinfo() is defined in the standard C lib -lc, which seems to work well with X lib. Again is there a problem with using -lmalloc on dec ultrix with the X lib? Is there a work around? Thanks in advance for your help. Haresh P.S. I would appreciate if you could send me e-mail directly. I will post the summary.