[SunHELP] Core dumped in _malloc_unlocked and realloc onSolaris 8

Nicholas Dronen sunhelp at sunhelp.org
Thu Dec 6 12:24:53 CST 2001


On Thu, Dec 06, 2001 at 12:45:58PM +0100, Libor Chocholaty wrote:
> Nicholas Dronen wrote:
> 
> > What are the compile and link commands for the source file and
> > library or exectutable that dumps core?
> 
> gcc -g -I/usr/local/OB-3.3.4-woJTC/include -I/usr/include/X11 -Iinclude
> -Isource/gen -DBYTEORDER=ORDER_MOTOROLA -DSHADOW_PASSWORDS -DMONITORING
> -D_SOLARIS -c source/gen/date.c -o code/obj/date.o
> 
> g++ -g -I/usr/local/OB-3.3.4-woJTC/include -I/usr/include/X11 -Iinclude
> -Isource/gen -Isource/impl -DBYTEORDER=ORDER_MOTOROLA -DSHADOW_PASSWORDS
> -DMONITORING -DUSE_SGEN_DRIVER -D_SOLARIS -c source/am_send_cmd.cxx -o
> code/obj/am_send_cmd.o
> 
> c++ -g -L/usr/lib -L/usr/X/lib -L/usr/local/OB-3.3.4-woJTC/lib -lnsl
> -lsocket -o code/com/am_send_cmd code/obj/date.o code/obj/am_shutdown.o
> code/lib/am_client_lib.a code/lib/gn_lib.a code/lib/machine_lib.a
> code/lib/odin_base.a code/lib/convert_lib.a
>  -lOB -lCosNaming  -lstdc++

What's wrong with this picture?  This is a multi-threaded
program, right?  If so, you need to define _REENTRANT and
to link against either libthread.so or libpthread.so.

Regards,

Nicholas Dronen



More information about the SunHELP mailing list