Bug 168166 - nm(1): nm -l failed
Summary: nm(1): nm -l failed
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 9.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 16:30 UTC by Dmitry
Modified: 2016-12-10 14:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2012-05-20 16:30:06 UTC
nm -l fails on some programs, compiled by g++ or clang++

(gdb) core nm.core
Core was generated by `nm'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000000000046009e in find_line ()
(gdb) bt
#0  0x000000000046009e in find_line ()
#1  0x0000000000460d92 in _bfd_dwarf2_find_line ()
#2  0x000000000043857d in _bfd_elf_find_line ()
#3  0x0000000000403172 in print_symbol ()
#4  0x00000000004034a8 in display_rel_file ()
#5  0x0000000000403a54 in display_file ()
#6  0x0000000000403e77 in main ()
(gdb)
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-12-10 14:46:31 UTC
Cannot reproduce with BSD nm