Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43968 - Kdevelop crashes when closing a file if you have compiled it with hardened-gcc and CFLAGS="-fstack-protector"
Summary: Kdevelop crashes when closing a file if you have compiled it with hardened-gc...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 10:00 UTC by Martin Oppegaard
Modified: 2004-09-08 18: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 Martin Oppegaard 2004-03-07 10:00:06 UTC
Kdevelop-3.0.1
KDE-3.2.0
QT-3.3.0-r1
Python-2.3.3
GCC-3.3.2-r5
Hardened-gcc-3.3.2.1-r2

Reproducible: Always
Steps to Reproduce:
1. Emerge kdevelop with hardened-gcc and -fstack-protector in your cflags
2. Open a file or project in kdevelop
3. Close a file, or quit kdevelop

Actual Results:  
Kdevelop crashes 

Expected Results:  
Not crash, but quitetly close the file or quit kdevelop. 

To fix the problem, remerge kdevelop without hardened-gcc and 
-fstack-protector.
Comment 1 Martin Oppegaard 2004-03-07 10:01:57 UTC
resolve bug, changing resolution to FIXED
Comment 2 solar (RETIRED) gentoo-dev 2004-03-07 10:07:48 UTC
Re:

"To fix the problem, remerge kdevelop without hardened-gcc and 
-fstack-protector."

How would that fix? The overflow still exists correct?
Comment 3 Martin Oppegaard 2004-03-07 10:21:48 UTC
it is a "temporaly" fix, yes. Sorry for not being clear on that.
reopening bug.
Comment 4 Alexander Gabert (RETIRED) gentoo-dev 2004-03-08 01:07:49 UTC
solution 1) unmerge hardened-gcc and only use -fstack-protector in /etc/make.conf:CFLAGS, then recompile the KDE and the kdevelop application

solution 2) if you are feeling brave and can probably trash your machine, test gcc-3.3.3-r1 with USE="hardened", then recompile KDE and kdevelop

it should be noted that a full world compiled with fstack-protector is usually more "sane" than some applications only.

Do you happen to have parts or all of the KDE libraries and executables compiled with stack protector from before November/December 2003 where we moved the propolice to glibc?

If yes, recompiling those parts of the system should also solve the problem with the dying kdevelop.
Comment 5 Martin Oppegaard 2004-03-08 07:23:19 UTC
	"Do you happen to have parts or all of the KDE libraries and executables compiled with stack protector from before November/December 2003 where we moved the propolice to glibc?"

No, I recompiled world with hardened-gcc and -fstack-protector earlier this year.

I think I'll try gcc-3.3.3-r1, and reply with the result.
Comment 6 Martin Oppegaard 2004-03-22 10:23:44 UTC
Ok, finally ive recompiled kdevelop. I had to use solution 1, as gcc.3.3.3-r1 won't compile. (As it's still -*, I'll leave it and try again when it's updated.) 
Comment 7 Alexey McSakoff 2004-03-23 02:55:34 UTC
Recompilation with USE="hardened" gcc-3.3.3-r1 don't solve the problem.
kde 3.2.1
qt 3.3.1-r1

BTW kdevelop 3.0.2 have same bug, it crashes while file closing.
Comment 8 solar (RETIRED) gentoo-dev 2004-09-08 18:29:01 UTC
Problem is with KDE and QT and the likes. Reopen a bug with the gentoo kde developers/maintainers if problem persists.