--- Begin Message ---
- From: Howard Tsai <hcai at motorola dot com>
- To: user-groups at gnu dot org
- Date: Fri, 17 May 2002 15:15:27 -0700
- Subject: program crash in malloc for gcc2.95.3 on solaris 2.8
- Organization: Motorola Canada
- Reply-to: hcai at motorola dot com
Hello
The program I was running always crash inside the malloc as showed in
the
attachment file.
I am trying to port some of my programs to Solaris 2.8 Sparc Ultra 5
(sun4u)
and so I download the gcc.2.95.3 and the binutils as well and all of
them
are installed locally.
The binutils was configured and installed locally first.
I configured the GCC as the below;
--prefix
--with-local-prefix
--enable-shared=libgcc,libstdc++
--with-gnu-as
--with-as=$PREFIX/bin/as
--with-gnu-ld
--with-ld=$PREFIX/bin/ld
--enable-threads=solaris
--enable-languages=c,c++
--enable-threads
Then the local installed bin path are added to ahead of the old PATH
etc.
I used a previous GCC to build the GCC - the gcc-2.8.1 for solaris 2.5.1
(since I just upgrade my machines to solaris 2.8 from 2.5 and gcc-2.8.1
is the one compiler I only have)
I suspect there is a incompitable thing with the OS but no clues.
hope I could get some hints from any you guys.
Best Regards.
============
-- Solaris 2.8, Sparc Ultra 5 sun4u.
-- Gcc 2.95.3 and binutils.
--
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 `SunOS_sun4m/utf_thr_main -c
./utf_config.gsn.test'.
Program terminated with signal 9, Killed.
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/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from
/van/gprstb/users/y10902/usr/local/lib/libstdc++.so.2.10.0...done.
Loaded symbols for
/van/gprstb/users/y10902/usr/local/lib/libstdc++.so.2.10.0
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.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/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
#0 0xff0c2194 in realfree () from /usr/lib/libc.so.1
(gdb) where
#0 0xff0c2194 in realfree () from /usr/lib/libc.so.1
#1 0xff0c2aa0 in cleanfree () from /usr/lib/libc.so.1
#2 0xff0c1bd4 in _malloc_unlocked () from /usr/lib/libc.so.1
#3 0xff0c1ac8 in malloc () from /usr/lib/libc.so.1
#4 0xff1dac98 in __builtin_new (sz=12) at ./cp/new1.cc:84
#5 0x1a01ec in ctf_initialize (ctf=0x44c258, tname=0x2c74c8 "LI_CDR",
location=0x2c74d0 "TF", threshold=100, hwm=10000,
lwm=9000) at ctf_sender_c.C:74
#6 0x21fd04 in utf_init_li_sender () at ctf_cdrs.C:107
#7 0x99818 in llcmm_init_priv () at mm_init.c:855
#8 0x89d38 in mminit () at mm_base.c:1026
#9 0x18de08 in utf_stremul_main (argc=3149148, argv=0x0) at emul.c:114
#10 0x14fb4 in thr_stream_main ()
--- End Message ---