FS#28429 - [lib32-gtk2] segfaults when built with -O2

Attached to Project: Arch Linux
Opened by Heinrich Siebmanns (Harvey) - Tuesday, 14 February 2012, 20:36 GMT
Last edited by Laurent Carlier (lordheavy) - Friday, 21 June 2013, 06:26 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I use a 32bit package called RealStudio (30day trial version under http://www.realsoftware.com/download/). It needs lib32-gtk2.

The version from multilib segfaults when the gtk2 file requester is scrolled using the scrollbars or the PGdown key. When built without the flags -fbuilting and -g all is normal again. This happens with all recent versions of lib32-gtk2. See multilib mailing list for additional info:
http://mailman.archlinux.org/pipermail/arch-multilib/2012-February/000271.html
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Friday, 21 June 2013, 06:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with gcc-4.8.1-1
Comment by Florian Pritz (bluewind) - Sunday, 26 February 2012, 16:11 GMT
Ok, I can reproduce the issue and it seems gcc optimizations are at fault. "-O2 -g" segfaults, while "-O0 -g" doesn't.

Sadly you don't get very useful backtraces in gdb if your code is optimized by gcc. I've attached the package and backtrace when built with "-O2 -g".

Could you open a bugreport with gtk2 upstream? Maybe they can tell use what's broken here.

Edit: gtk2 package was too big, I've uplaoded it here: http://xinu.at/~flo/tmp/lib32-gtk2-2.24.10-1-x86_64.pkg.tar.xz
   gtk2-bt (7.6 KiB)
Comment by Heinrich Siebmanns (Harvey) - Sunday, 26 February 2012, 17:33 GMT Comment by Allan McRae (Allan) - Friday, 16 November 2012, 12:27 GMT
Status?
Comment by Heinrich Siebmanns (Harvey) - Friday, 16 November 2012, 13:30 GMT
Nobody upstream ever cared about the bug report... Meanwhile RealStudio even crashes on a 32 Bit installation of Arch Linux while it does not on Ubuntu or even Kubuntu. So I can't say if it still is the original issue.
Comment by Laurent Carlier (lordheavy) - Monday, 17 June 2013, 08:08 GMT
Please test, it should be fixed with gcc-4.8.1 and at least lib32-gtk2-2.24.19-1

This bug seems really related to this gcc/wine bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57003#c13
Comment by Laurent Carlier (lordheavy) - Friday, 21 June 2013, 06:25 GMT
Just tested and it seems fixed, so closing

Loading...