Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205907 - [4.2/bad code] ftree-loop-linear breaks kdelibs-3.5.8
Summary: [4.2/bad code] ftree-loop-linear breaks kdelibs-3.5.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 00:31 UTC by Mr. B
Modified: 2009-04-20 17:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. B 2008-01-15 00:31:29 UTC
ftree-loop-linear breaks kdelibs. Might be an idea to filter ftree-loop-linear when compiling with gcc 4.2.

Reproducible: Always

Steps to Reproduce:
1. Add ftree-loop-linear to CFLAGS
2. Compile kdelibs
3. Try to run, say, Konqueror.

Actual Results:  
Konqueror segfaults.

kbuildsycoca running...
KCrash: Application 'konqueror' crashing...

Expected Results:  
Konqueror shouldn't crash.

kbuildsycoca running...
[New Thread 0x2b5671798530 (LWP 13935)]
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b5671798530 (LWP 13935)]
0x00002b566a7514de in memcpy () from /lib/libc.so.6


I'm guessing something like:

#-ftree-loop-linear with 4.2.* breaks kdelibs 3.3.8
if gcc-version ge 4 2 && gcc-version lt 4 3; then
	filter-flags -ftree-loop-linear
fi

Should ideally be added to the ebuild.
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-01-15 00:45:59 UTC
Did you try to recompile qt, kdelibs and each of those programs before trying to run it? Did those errors appear after upgrading to gcc without rebuilding both qt, kdelibs and the kde programs?
Comment 2 Mr. B 2008-01-15 00:56:59 UTC
No, I didn't. I just removed ftree-loop-linear, recompiled and it worked again. Then I recompiled again with ftree-loop-linear and it didn't work. Finally, I compiled it without again. Then it worked.

Do programmes with ftree-loop-linear sometimes not work if dependencies aren't compiled with the same flag? If so I guess I could try compiling it with loop-linear again and kdebase as well...
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-01-15 01:34:09 UTC
It is not a supported compiler flag, so there's no point in filtering it, but maybe the toolchain team is interested, especially, if you can provide a reduced test case.

gcc bugzilla shows up some issues, too: http://tinyurl.com/3aoyo5
Comment 4 Mr. B 2008-01-15 01:40:24 UTC
Okay, I just thought you might want to filter it. I've never actually experienced a miscompilation with the flag before, just ICEs.

As for a reduced testcase, I sincerely doubt that, my apologies but I'm quite new to the non-Windows world (thus have no experience debugging). Just your average layman, yada yada.
Comment 5 SpanKY gentoo-dev 2008-02-16 22:54:42 UTC
gcc-4.2.3 is in the tree if you want to re-test ...

it'd be good to get a reduced test case here
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2009-04-20 17:29:26 UTC
I can't reproduce this with gcc-4.3.