Bug 168166

Summary: nm(1): nm -l failed
Product: Base System Reporter: Dmitry <mitya>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: 9.0-STABLE   
Hardware: Any   
OS: Any   

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