Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551392

Summary: =sys-block/gparted-0.22.0 segfaults when gcc 5.1.0 is installed
Product: Gentoo Linux Reporter: Chris <Christopher.Lundgren>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: alex_y_xu, Christopher.Lundgren
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris 2015-06-06 20:12:44 UTC
=sys-block/gparted-0.22.0 segfaults when gcc 5.1.0 is installed. Gparted was compiled using gcc-4.9.2 (it won't compile with gcc 5.1.0). This is the output I get from gdb when I try to run it:

Starting program: /usr/sbin/gpartedbin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff594732a in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long) ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/5.1.0/libstdc++.so.6

Also, it is impossible for me to downgrade - regardless if I switch gcc version.


Reproducible: Always

Steps to Reproduce:
1. run gparted
Actual Results:  
gparted segfaults

Expected Results:  
Gparted would run normally.
Comment 1 Alex Xu (Hello71) 2015-06-06 20:44:20 UTC
you must compile all c++11 programs with the same minor gcc version.

https://www.gentoo.org/support/news-items/2014-10-26-gcc_4_7_introduced_new_c++11_abi.html
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/

if some program does not compile with gcc 5.1, please open a new bug with emerge --info and build.log.
Comment 2 SpanKY gentoo-dev 2015-08-21 21:34:33 UTC
follow along in bug 550432 for details on revdep-rebuild

*** This bug has been marked as a duplicate of bug 547788 ***