[Bug sanitizer/60569] New: Segfault with -flto and -fsanitize=undefined
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 18 19:41:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60569
Bug ID: 60569
Summary: Segfault with -flto and -fsanitize=undefined
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Building Firefox with -flto and -fsanitize=undefined crashes gcc on
final libxul link.
markus@x4 skia % cat test.ii
class A
{
void m_fn1 ();
enum TriState
{
kUnknown_TriState
};
struct
{
TriState fMSAAEnabled;
void m_fn1 () { fMSAAEnabled = kUnknown_TriState; }
} fHWAAState;
};
void A::m_fn1 () { fHWAAState.m_fn1 (); }
markus@x4 skia % g++ -fsanitize=undefined -r -nostdlib -flto test.ii
test.ii: In member function ‘m_fn1’:
test.ii:11:10: internal compiler error: Segmentation fault
void m_fn1 () { fMSAAEnabled = kUnknown_TriState; }
^
Please submit a full bug report,
More information about the Gcc-bugs
mailing list