Trouble with gdb in rawhide

Orion Poplawski orion at cora.nwra.com
Wed Feb 25 17:39:21 UTC 2009


I'm trying to debug a problem with hdf4.2r4 on i586 in rawhide:

$ ./hdfnctest
Testing read/write datasets with unlimited dimensions via SD API 
PASSED
Testing read/write variables with unlimited dimensions via nc API 
*** stack smashing detected ***: ./hdfnctest terminated 

======= Backtrace: ========= 

/lib/libc.so.6(__fortify_fail+0x48)[0x227e38] 

/lib/libc.so.6(__fortify_fail+0x0)[0x227df0] 

./hdfnctest[0x80a2b74]
./hdfnctest[0x8050863]
./hdfnctest[0x80508ce]
./hdfnctest[0x804a268]
/lib/libc.so.6(__libc_start_main+0xe6)[0x148736]
./hdfnctest[0x804a1a1]
======= Memory map: ========
00110000-00131000 r-xp 00000000 ca:01 204605 
  /usr/lib/libjpeg.so.62.0.0
00131000-00132000 rw-p 00021000 ca:01 204605 
  /usr/lib/libjpeg.so.62.0.0
00132000-00299000 r-xp 00000000 ca:01 196296 
  /lib/libc-2.9.90.so
00299000-0029a000 ---p 00167000 ca:01 196296 
  /lib/libc-2.9.90.so
0029a000-0029c000 r--p 00167000 ca:01 196296 
  /lib/libc-2.9.90.so
0029c000-0029d000 rw-p 00169000 ca:01 196296 
  /lib/libc-2.9.90.so
0029d000-002a0000 rw-p 0029d000 00:00 0
002a0000-002cb000 r-xp 00000000 ca:01 196372 
  /lib/libgcc_s-4.4.0-20090219.so.1
002cb000-002cc000 rw-p 0002a000 ca:01 196372 
  /lib/libgcc_s-4.4.0-20090219.so.1
0044e000-00461000 r-xp 00000000 ca:01 196379 
  /lib/libz.so.1.2.3
00461000-00462000 rw-p 00012000 ca:01 196379 
  /lib/libz.so.1.2.3
006b2000-006b3000 r-xp 006b2000 00:00 0 
  [vdso]
00d8c000-00dac000 r-xp 00000000 ca:01 196281 
  /lib/ld-2.9.90.so
00dac000-00dad000 r--p 0001f000 ca:01 196281 
  /lib/ld-2.9.90.so
00dad000-00dae000 rw-p 00020000 ca:01 196281 
  /lib/ld-2.9.90.so
08048000-080af000 r-xp 00000000 ca:01 368857 
  /builddir/build/BUILD/HDF4.2r4/mfhdf/libsrc/hdfnctest
080af000-080b0000 rw-p 00067000 ca:01 368857 
  /builddir/build/BUILD/HDF4.2r4/mfhdf/libsrc/hdfnctest
080b0000-080da000 rw-p 080b0000 00:00 0
09354000-09375000 rw-p 09354000 00:00 0 
  [heap]
f7f97000-f7f99000 rw-p f7f97000 00:00 0
f7f9b000-f7f9c000 rw-p f7f9b000 00:00 0
fff87000-fff9c000 rw-p 7ffffffea000 00:00 0 
  [stack]
Aborted

but gdb isn't being very helpful:


$ gdb ./hdfnctest
GNU gdb (GDB) Fedora (6.8.50.20090210-1.fc11)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) break main
Breakpoint 1 at 0x804a25c: file hdfnctest.c, line 33.
(gdb) run
Starting program: /builddir/build/BUILD/HDF4.2r4/mfhdf/libsrc/hdfnctest

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0033fba8 in ?? ()
(gdb) bt
#0  0x0033fba8 in ?? ()
#1  0x0089f168 in ?? ()
#2  0x0000000f in ?? ()
#3  0x00000000 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0033fba8 in ?? ()
(gdb) bt
#0  0x0033fba8 in ?? ()
#1  0x0089f168 in ?? ()
#2  0x0000000f in ?? ()
#3  0x00000000 in ?? ()

I'm at a loss.  What is triggering the initial SIGTRAP?  Why don't I get 
to main?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the fedora-devel-list mailing list