jsiicckk / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Mac dump_syms crashes when built with gcc-4.2 at -O1, -O2, or -O3 #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build dump_syms with gcc-4.2 at -O1, -O2, or -O3.
2. Try to use it.

What is the expected output? What do you see instead?
Observe: Bus error.
Expect: it ought to work.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x0000713d in 
dwarf2reader::CUFunctionInfoHandler::ProcessAttributeUnsigned 
(this=0xbffff050, offset=11, attr=dwarf2reader::DW_AT_stmt_list, 
form=dwarf2reader::DW_FORM_data4, data=0) at /b/slave/chrome-
official-
mac/build/src/breakpad/src/common/mac/dwarf/functioninfo.cc:205
205                                                reader_, linehandler_));
(gdb) bt
#0  0x0000713d in 
dwarf2reader::CUFunctionInfoHandler::ProcessAttributeUnsigned 
(this=0xbffff050, offset=11, attr=dwarf2reader::DW_AT_stmt_list, 
form=dwarf2reader::DW_FORM_data4, data=0) at /b/slave/chrome-
official-
mac/build/src/breakpad/src/common/mac/dwarf/functioninfo.cc:205
#1  0x0000299b in dwarf2reader::CompilationUnit::ProcessAttribute 
(this=0xbffff000, dieoffset=11, start=0x80f4cb "", 
attr=dwarf2reader::DW_AT_stmt_list, 
form=dwarf2reader::DW_FORM_data4) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dwarf/dwarf2reader.cc:354
#2  0x0000329d in dwarf2reader::CompilationUnit::ProcessDIE 
(this=0xbffff000, dieoffset=11, start=0x80f4b9 "\001", 
abbrev=@0x10afa4) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dwarf/dwarf2reader.cc:456
#3  0x000037c2 in dwarf2reader::CompilationUnit::ProcessDIEs 
(this=0xbffff000) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dwarf/dwarf2reader.cc:503
#4  0x000053fb in dwarf2reader::CompilationUnit::Start (this=0xbffff000) 
at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dwarf/dwarf2reader.cc:315
#5  0x0000bfa1 in -[DumpSymbols loadDWARFSymbolInfo:offset:] 
(self=0x105870, _cmd=0x118a9, base=0x80e400, offset=0) at 
/b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dump_syms.mm:385
#6  0x000086b3 in -[DumpSymbols loadSymbolInfo:offset:] 
(self=0x105870, _cmd=0x118c5, base=0x80e400, offset=0) at 
/b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dump_syms.mm:330
#7  0x000085d9 in -[DumpSymbols loadSymbolInfoForArchitecture] 
(self=0x105870, _cmd=0x110c1) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dump_syms.mm:600
#8  0x000091c7 in -[DumpSymbols outputSymbolFile:] (self=0x105870, 
_cmd=0x106d3, fd=1) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dump_syms.mm:870
#9  0x00009df9 in -[DumpSymbols writeSymbolFile:] (self=0x105870, 
_cmd=0x11f32, destinationPath=0x12250) at /b/slave/chrome-official-
mac/build/src/breakpad/src/common/mac/dump_syms.mm:1204
#10 0x0000d6e0 in Start [inlined] () at /b/slave/chrome-official-
mac/build/src/breakpad/src/tools/mac/dump_syms/dump_syms_tool.mm
:66
#11 0x0000d6e0 in main (argc=4, argv=0xbffff7d0) at /b/slave/chrome-
official-
mac/build/src/breakpad/src/tools/mac/dump_syms/dump_syms_tool.mm
:137

This happens at r391.

-Os is unaffected.  The checked-in .xcodeproj uses -O0 for both debug 
and release.  I'm going to use -O0 to build this tool for Chrome too for the 
time being.

Original issue reported on code.google.com by mmento...@gmail.com on 25 Aug 2009 at 9:32

GoogleCodeExporter commented 9 years ago
jimb has lots of patches to this code, does it still crash with all his patches 
applied?

Original comment by ted.mielczarek on 29 Apr 2010 at 6:11

GoogleCodeExporter commented 9 years ago
mmento?
> jimb has lots of patches to this code, does it still crash with all his 
patches applied?

Original comment by wayne.m...@gmail.com on 17 Jan 2011 at 5:38