#1100 Crash when exiting

v1.3.5
closed-fixed
None
5
2015-01-03
2013-12-20
Ian
No

ak|ra (Mathias Gumz) and I discussed this bug on irc. Fluxbox crashes, and then gets stuck in some infinite loop. This happens only when Xorg kill fluxbox such as when .xinitrc contains "fluxbox & ; exec xterm". Reproduced on 1.3.2 (debian7 stock) and 1.3.5 (source build gcc47), both x64.

BT while CPU is at 100%: http://pastebin.ca/2514994
My fluxbox -info: http://pastebin.ca/2515758

ak|ra pointed out the following code as significant to the crash:
http://git.fluxbox.org/fluxbox.git/tree/src/fluxbox.cc#n820
http://git.fluxbox.org/fluxbox.git/tree/src/Window.cc#n2048

Additional comments by ak|ra:
--------
#define UnmapNotify
#21 0x0000000000418729 in Fluxbox::eventLoop (this=0x8ef620) at fluxbox.cc:530
e = {type = 18,
so, its an unmapnotify (a window informs x-server, that it wants to go away)
and then we call the ::restore() function which crashes
it crashes     FbTk::App::instance()->sync(false);
the recursion comes later, thats the crash
the crash -> signal handler -> attempt to cleanly shutdown fluxbox
#8  Fluxbox::handleSignal (
#4  FbTk::STLUtil::forAll
#2  0x000000000042bed5 in BScreen::shutdown
somewhere in there then
but the crash comes first
--------

Please let me know if there is anything more I can provide to help.

Ian

Discussion

  • Mathias Gumz

    Mathias Gumz - 2014-01-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,13 +1,13 @@
    -Akir and I discussed this bug on irc. Fluxbox crashes, and then gets stuck in some infinite loop. This happens only when Xorg kill fluxbox such as when .xinitrc contains "fluxbox & ; exec xterm". Reproduced on 1.3.2 (debian7 stock) and 1.3.5 (source build gcc47), both x64.
    +ak|ra (Mathias Gumz) and I discussed this bug on irc. Fluxbox crashes, and then gets stuck in some infinite loop. This happens only when Xorg kill fluxbox such as when .xinitrc contains "fluxbox & ; exec xterm". Reproduced on 1.3.2 (debian7 stock) and 1.3.5 (source build gcc47), both x64.
    
     BT while CPU is at 100%: http://pastebin.ca/2514994
     My fluxbox -info: http://pastebin.ca/2515758
    
    -Akir pointed out the following code as significant to the crash:
    +ak|ra pointed out the following code as significant to the crash:
     http://git.fluxbox.org/fluxbox.git/tree/src/fluxbox.cc#n820
     http://git.fluxbox.org/fluxbox.git/tree/src/Window.cc#n2048
    
    -    Additional comments by Akir:
    +    Additional comments by ak|ra:
         --------
         #define UnmapNotify
         #21 0x0000000000418729 in Fluxbox::eventLoop (this=0x8ef620) at fluxbox.cc:530
    
     
  • Mathias Gumz

    Mathias Gumz - 2014-02-15

    yah. ugly. attached a potential fix. please give it a try.

     
  • Ian

    Ian - 2014-02-18

    Looks good from here. Thanks!

     
  • Mathias Gumz

    Mathias Gumz - 2014-02-19
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks