http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49538
Summary: Revision 175341 causes segfaults Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: mar...@trippelsdorf.de After building "konsole" with the latest gcc I see this: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f6ea97 in ?? () from /usr/lib64/libkonsoleprivate.so (gdb) bt #0 0x00007ffff7f6ea97 in ?? () from /usr/lib64/libkonsoleprivate.so #1 0x00007ffff7ab376f in __cxa_finalize (d=0x7ffff7fb90a0) at cxa_finalize.c:56 #2 0x00007ffff7f125e3 in ?? () from /usr/lib64/libkonsoleprivate.so #3 0x00007fffffffd8e0 in ?? () #4 0x00007ffff7dec1da in _dl_fini () at dl-fini.c:244 Backtrace stopped: frame did not save the PC I've bisected this to: c85c2c3f3bb4e66026354b08d5fc29e7330297ad is the first bad commit commit c85c2c3f3bb4e66026354b08d5fc29e7330297ad Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Thu Jun 23 16:52:56 2011 +0000 * optimize.c (maybe_clone_body): Set linkage flags before cgraph_same_body_alias. http://gcc.gnu.org/ml/gcc-cvs/2011-06/msg00832.html http://gcc.gnu.org/viewcvs?view=revision&revision=175341 Reverting the commit above "solves" the problem.