Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: assumal@gradient.cis.upenn.edu (Haresh Assumal)
Subject: Problem with Xlib when using -lmalloc
Date: 6 Feb 92 20:11:46 GMT	[thread overview]
Message-ID: <65183@netnews.upenn.edu> (raw)


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.



                 reply	other threads:[~1992-02-06 20:11 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