Menu

#731 icewm segfault with qt-4.2 application

crash
closed-fixed
icewm-1.2 (683)
5
2006-12-03
2006-10-09
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    test program using Qt 4.2.0

     
  • Eduard Bloch

    Eduard Bloch - 2006-10-20

    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.

     
  • Eduard Bloch

    Eduard Bloch - 2006-10-20

    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

     
  • Marko Macek

    Marko Macek - 2006-11-12
    • assigned_to: nobody --> captnmark
    • status: open --> open-fixed
     
  • Marko Macek

    Marko Macek - 2006-11-12

    Logged In: YES
    user_id=1814

    fixed in CVS

     
  • Marko Macek

    Marko Macek - 2006-12-03
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.