Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Strange system behavior



On Mon, 20 Sep 2010, Paul Goyette wrote:

Gdb analysis of the core dump contains a rather scary warning about libc not being found at the expected address:

{105} gdb /test-bed/tools/bin/nbmandoc nbmandoc.core        GNU gdb 6.5
Copyright (C) 2006 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 "x86_64--netbsd"...(no debugging symbols found)

Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `nbmandoc'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffdb5e040 in ?? ()
warning: .dynamic section for "/test-bed/dst/usr/lib/libc.so.12" is not at the expected address
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(gdb)

Can anyone explain why the "warning: .dynamic section ..." message refers to /test-bed/dst/usr/lib/libc.so.12 ? The "loading symbols" messages clearly show that libc should be found in /usr/lib and ldd on nbmand agrees:

{106} ldd /test-bed/tools/bin/nbmandoc
/test-bed/tools/bin/nbmandoc:
        -lz.1 => /usr/lib/libz.so.1
        -lc.12 => /usr/lib/libc.so.12
{107}


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index