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

Bug 101327

Summary: Windowmaker icons stick to mouse pointer and will not release.
Product: Gentoo Linux Reporter: Andreas Westin <gentoo>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED NEEDINFO    
Severity: major CC: basic, Manfred.Kroehnert
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Westin 2005-08-04 06:44:10 UTC
If I compile windowmaker 0.9x with hardened gcc the "icons" will stick to the
pointer and won't release, however if I turn off stack protector it works fine.
I run windowmaker with tightvnc, don't know if the problem occurs with normal usage.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 solar (RETIRED) gentoo-dev 2006-01-05 18:42:56 UTC
Can anybody else can confirm this problem?
Comment 2 Nick Hadaway 2006-01-12 20:14:01 UTC
I can confirm this bug.
I worked with a hardened stack as well and got this problem.

current ~x86.
Comment 3 Manfred Kroehnert 2006-01-15 07:54:08 UTC
I had the same problem.
My system is based on a hardened stage 1 and most of the software is ~x86.
After turning off the stack protector the icon problem was gone.
Comment 4 basic 2006-07-02 00:02:28 UTC
this is a stack protector bug, it seems to currupt stacks when a file is too big. There was a similar issue with wesnoth awhile back, they decided to just force disable stack protector. I wish maintainers won't disable stack protector without even letting the user know about it though.
Comment 5 basic 2006-07-02 00:21:31 UTC
(In reply to comment #4)
> this is a stack protector bug, it seems to currupt stacks when a file is too
> big. There was a similar issue with wesnoth awhile back, they decided to just
> force disable stack protector. I wish maintainers won't disable stack protector
> without even letting the user know about it though.
> 
forgot to mention how I come to know this. I manage to track the problem down to the return (by pointer) value of WMMaskEvent calls from functions in dock.c getting weird numbers for button ids, but when I dump the values in WMMaskEvent it works. So it would seem something was currupting the return value when WMMaskEvent returns, which should not be possible as it is passed by pointer (reference).

The dock.c file (the file that manages all things docking in windowmaker) is 4479 line long, the longest of the windowmaker source files. If I compile that file alone without -fstack-protector (by adding a rule to Makefile.in for dock.o: dock.c, with -fno-stack-protector), it works.


Comment 6 Christian Heim (RETIRED) gentoo-dev 2007-06-02 20:35:43 UTC
Is this still an issue with x11-wm/windowmaker-0.92.0-r3 and an up-to-date toolchain ?