[SunHELP] Core dumped in _malloc_unlocked and realloc on Solaris 8

Libor Chocholaty sunhelp at sunhelp.org
Mon Dec 3 04:10:21 CST 2001


Hi all,

I am new in this list and I hope that here people which had similar
problems as me and give me an advice.

I working on application which uses CORBA. One particular server-side
multithreaded program core dumps in call malloc. I use GCC-2.95.2 from
www.sunfreeware.com. I think that this bug is solved for Sun C 5.0
compiler, but not for GCC. Do anybody know what I do wrong?

It runs on system Sun ULTRA 5 and on Fujitsu-Siemens M800. This systems
use same version of operating environment.
$ uname -a
SunOS berta 5.8 Generic sun4u sparc SUNW,Ultra-5_10

Thank you for advice, Libor Chocholaty

Here is a backtrace from my core dump:
$ gdb od_server core_od_server
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.8"...
Core was generated by
`/ess0/lifeodin/home/lfadmin/lifeodin/ods/com/od_server -name L1 -level
0x25b -t'.
Program terminated with signal 9, Killed.
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/platform/FJSV,GPUSK/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/FJSV,GPUSK/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
#0  0xff14116c in realloc () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff14116c in realloc () from /usr/lib/libc.so.1
#1  0xff140eb0 in _malloc_unlocked () from /usr/lib/libc.so.1
#2  0xff140f3c in _malloc_unlocked () from /usr/lib/libc.so.1
#3  0xff0d4334 in pthread_mutexattr_destroy () from
/usr/lib/libthread.so.1
#4  0xff0d4490 in pthread_mutexattr_setprotocol () from
/usr/lib/libthread.so.1
#5  0x182480 in gn_lock_tbl_init (no_of_locks=12) at source/lock.c:60
#6  0x182a0c in gn_unlock (lock=0) at source/lock.c:225
#7  0x1202bc in disk_class::find_name (this=0xffbed4d0,
name=@0xffbed4c8, force=0, status=0xffbee508)
    at source/disk.cxx:1782
#8  0x13f9fc in dir_class::get_root (this=0x7792f8, root_dev=0xffbed5e1
"001-DePfa-00000000A", status=0xffbee508)
    at source/dir.cxx:108
#9  0x135478 in pathname_class::resolve_path (this=0x775f60,
dobj=@0x7792f8, status=0xffbee508) at source/pathname.cxx:124
#10 0x13bb14 in pathname_class::fullpath (this=0x775f60,
pathname=0xffbedf38, direct=DOWN, st=0xffbedf18, status=0xffbee508)
    at source/pathname.cxx:913
#11 0x10a938 in odf_dir_read (session_id=2163414256, dir_h=7823200,
dir_direction=DIR_DOWN, dir_entry=0xffbee4e8,
    full_path=0xffbee0e8 "~~~\201\001\001", status=0xffbee508) at
source/odf.cxx:365
#12 0x1035a4 in odfl_impl::odf_dir_read (this=0x502788,
session_id=2163414256, dir_h=7823200, dir_direction=ODIN_DIR_DOWN,
    dir_entry=@0xffbee6b0, full_path=@0xffbee6a8, status=@0xffbee6a0) at
source/impl/odfl_impl.cxx:618
#13 0xfa18c in ODIN_odfl_skel::_OB_op_odf_dir_read (this=0x502788,
_ob_buf=@0xffbee9e8, _ob_sw=false, _ob_offIn=68,
    _ob_offOut=24) at source/gen/odfl_skel.cxx:780
#14 0xfee10 in ODIN_odfl_skel::_OB_dispatch (this=0x502788,
_ob_op=0x778ed0 "odf_dir_read", _ob_buf=@0xffbee9e8,
    _ob_sw=false, _ob_offIn=68, _ob_offOut=24) at
source/gen/odfl_skel.cxx:1980
#15 0x2b58ec in CORBA_BOA::_OB_dispatch () at
source/odin_base_conv.cxx:34
#16 0x2fb588 in OBGIOPServerWorker::dispatchRequest () at
source/odin_base_conv.cxx:34
#17 0x2fac08 in OBGIOPServerWorker::execute () at
source/odin_base_conv.cxx:34
#18 0x2fde2c in OBGIOPServerWorkerReactive::handleEvent () at
source/odin_base_conv.cxx:34
#19 0x2c6284 in OBSelectReactor::evalFdSets () at
source/odin_base_conv.cxx:34
#20 0x2c6718 in OBSelectReactor::dispatch () at
source/odin_base_conv.cxx:34
#21 0x2a9d50 in CORBA_BOA::impl_is_ready () at
source/odin_base_conv.cxx:34
#22 0x114c58 in register_obj (now=1007054188, server_name=0xffbefb39
"L1", name=0x4ea838 "", port=0x4ea89c,
    status=0xffbef858) at source/odf_srv_lib.cxx:205
#23 0x115a98 in odf_srv_init (number_of_threads=1,
server_name=0xffbefb39 "L1", status=0xffbef858)
    at source/odf_srv_lib.cxx:329
#24 0xde874 in main (argc=7, argv=0xffbef9dc) at
source/od_server.cxx:183
(gdb)



More information about the SunHELP mailing list