This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glibc 2.1.2 pre2 Segfault Report



This one is a bit hard to get at, but this is what I see:

$ gdb eg1 core
GNU gdb 19990802
Copyright 1998 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 "i686-pc-linux-gnu"...
Core was generated by `./eg1'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /tmp/libomni-debug/libomniORB2.so.7...done.
Reading symbols from /tmp/libomni-debug/libomniDynamic2.so.7...done.
Reading symbols from /tmp/libomni-debug/libomnithread.so.2...done.
Reading symbols from /usr/lib/libc_debug/libpthread.so.0...done.
Reading symbols from /tmp/libomni-debug/libtcpwrapGK.so.1...done.
Reading symbols from
/usr/lib/libstdc++_debug/libstdc++-libc6.1-2.so.3...done.
Reading symbols from /usr/lib/libc_debug/libm.so.6...done.
Reading symbols from /usr/lib/libc_debug/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x40251d98 in chunk_alloc (ar_ptr=0x402d9160, nb=32) at malloc.c:2530
2530    malloc.c: No such file or directory.
(gdb) bt
#0  0x40251d98 in chunk_alloc (ar_ptr=0x402d9160, nb=32) at malloc.c:2530
#1  0x402540ab in malloc_starter (sz=24, caller=0x40189cc7) at
malloc.c:4533
#2  0x402515ea in __libc_malloc (bytes=24) at malloc.c:2624
#3  0x40189cc7 in __pthread_atfork (prepare=0x40250b80
<ptmalloc_lock_all>, 
    parent=0x40250c74 <ptmalloc_unlock_all>, 
    child=0x40250d24 <ptmalloc_init_all>) at ptfork.c:56
#4  0x40250eca in ptmalloc_init () at malloc.c:1672
#5  0x4025103c in malloc_hook_ini (sz=24, caller=0x401d2759) at
malloc.c:1718
#6  0x402515ea in __libc_malloc (bytes=24) at malloc.c:2624
#7  0x401d2759 in __builtin_new (sz=24)
    at /home/swt/doko/export/egcs/gcc-2.95/gcc/cp/new1.cc:77
#8  0x401800f3 in omni_thread::init_t::init_t (this=0x4019f8dc)
    at ../posix.cc:335
#9  0x4019c02f in __static_initialization_and_destruction_0 (
    __initialize_p=1, __priority=65535)
    at ../../../../../../../include/omnithread.h:506
#10 0x4019c05e in global constructors keyed to gateKeeper::version ()
    at ../../../../../../../include/omnithread.h:506
#11 0x4019c0b7 in __do_global_ctors_aux ()
    at ../../../../../../../include/omnithread.h:506
#12 0x40197ec2 in _init () from /tmp/libomni-debug/libtcpwrapGK.so.1

Let me give you a little background on the machine and program:

Debian Potato - 19990806 snapshot
GCC 2.95
GNU Libc 2.1.2pre2
Intel Pentium 2 266
Linux 2.2.10-ac7
All the new headers and STL stuff was updated from 2.95
OmniORB 2.7.2 (from Debian Distribution)

Program is an omniORB2 example 'eg1'. The entire omniORB2 distribution was
compiled with -g and no optimization.

This worked flawlessly with older libc/GCC. The only issue with GCC was the
strict aliasing but that only affects optimized code (-O2+) as far as I know and
I couldn't find any instances where it would be applicable.

This appears to affect all programs linked against omniORB2.


Jordan

--
Jordan Mendelson     : http://jordy.wserv.com
Web Services, Inc.   : http://www.wserv.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]