http://sourceware.org/bugzilla/show_bug.cgi?id=15447
Bug #: 15447
Summary: dwp crashes with fseek(NULL) when executable without
any .dwo files is specified
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Reported by Peeter Joot:
dwp built from current trunk:
gdb -q --args gold/dwp -o t --exec /bin/date
Reading symbols from /build/gold/dwp...done.
(gdb) r
Starting program: /build/gold/dwp -o t --exec /bin/date
Program received signal SIGSEGV, Segmentation fault.
__GI_fseek (fp=0x0, offset=0, whence=0) at fseek.c:40
40 fseek.c: No such file or directory.
(gdb) bt
#0 __GI_fseek (fp=0x0, offset=0, whence=0) at fseek.c:40
#1 0x0000000000407841 in gold::Dwp_output_file::write_new_section
(this=0x7fffffffcfe0, section_name=0x5f3508 ".debug_cu_index",
contents=0x8d0710 "\002", len=16, align=8) at ../../src/gold/dwp.cc:1812
#2 0x000000000041f74d in gold::Dwp_output_file::write_index<false>
(this=0x7fffffffcfe0, sect_name=0x5f3508 ".debug_cu_index", index=...) at
../../src/gold/dwp.cc:1921
#3 0x0000000000407be5 in gold::Dwp_output_file::finalize (this=0x7fffffffcfe0)
at ../../src/gold/dwp.cc:1725
#4 0x0000000000405c02 in main (argc=5, argv=0x7fffffffd418) at
../../src/gold/dwp.cc:2278
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils