Hi
Thanks for your work on icewm! I'm learning how to
program with Trolltech's Qt. Using the GPLed Qt 4.2.0
(http://www.trolltech.com/developer/downloads/qt/index),
running the simple program attached makes icewm segfault.
I compiled/linked it against Qt 4.2.0 using "qmake
-project && qmake && make".
Whenever I run it, the X server crashes with the message
/usr/X11R6/lib/X11/xinit/xinitrc: line 28: 12113
Segmentation fault icewm
This is happening on
icewm 1.2.28 compiled with default compile and run-time
options
X.Org 6.9.0
Linux 2.4.31, glibc 2.3.5
g++ 3.3.6
Running gdb on this program only printed "program
exited normally"; icewm crashed immediately after that
message was shown.
If I can provide more useful information let me know.
Best,
Juergen Lemke
test program using Qt 4.2.0
Logged In: YES
user_id=935104
I can reproduce it as well and also with the current
cdfly-0.3 application. Looking at the first gdb backtrace it
looks like a stack overflow. Icewm is looping between:
handleWindowEvent() (yxapp.cc:905)
handleEvent() (ywindow.cc:617)
The whole thing begins in handleXEvents(yxapp.cc:852)
I cannot tell more for now, I am confused because
handleEvent() (ywindow.cc:617) should run
handleUnmapNotify(event.xunmap); which has no way to call
handleEvent again, AFAICS.
Logged In: YES
user_id=935104
The small attached change "fixes" the problem. However, the
code is undocumented and I have no clue why it is there.
Index: wmmgr.cc
RCS file: /cvsroot/icewm/icewm-1.2/src/wmmgr.cc,v
retrieving revision 1.104.2.30
diff -r1.104.2.30 wmmgr.cc
632c632
< #if 1
---
> #if 0
Logged In: YES
user_id=1814
fixed in CVS