View Single Post
Old 11-20-09, 01:07 AM   #5
Khym Chanur
Registered User
 
Join Date: Nov 2009
Posts: 7
Default Re: SDL crash in libGLcore.so after un-minimize

It's available via git. Use these commands:

Code:
git clone git://crawl-ref.git.sourceforge.net/gitroot/crawl-ref/crawl-ref
cd crawl-ref/
git submodule update --init
cd crawl-ref/source
make TILES=1 NEEDS_PCRE=y MAKECMDGOALS=wizard
./crawl
Might also need gcc 4.4.1, if that contributes to causing the crash.

Also, I've found that the "starts with a blank window" problem, which is a prerequisite for crashing, doesn't happen unless you've rapidly switched back and forth a bunch of times between a suspended and un-suspended X server. On my Mandriva 2010.0 KDE desktop, this can be done by pressing Ctrl-Alt-F12 to suspend the X server and go to a text-console showing /var/log/*, and then pressing Ctrl-Alt-F7 to bring back the X server. Even after doing that, you might have to start the app two to four times before the window comes up blank (though it seems if I suspend/un-suspended the X server enough times it gets into a state where the app's window always comes up blank (or maybe that happens after the app has crashed enough times)). If you then re-start the X server the problem goes away.

The switching back-and-forth causes messages like this in /var/log/messages:

Code:
Nov 19 21:34:03 localhost acpid: client 8445[0:0] has disconnected
Nov 19 21:34:03 localhost acpid: client 8445[0:0] has disconnected
Nov 19 21:34:03 localhost acpid: client connected from 8445[0:0]
Nov 19 21:34:03 localhost acpid: 1 client rule loaded
Nov 19 21:34:03 localhost acpid: client connected from 8445[0:0]
Nov 19 21:34:03 localhost acpid: 1 client rule loaded
And these messages in /var/log/user.log

Code:
Nov 19 21:34:13 localhost klogd: CPU0 attaching NULL sched-domain.
Nov 19 21:34:13 localhost klogd: CPU1 attaching NULL sched-domain.
Nov 19 21:34:13 localhost klogd: CPU0 attaching sched-domain:
Nov 19 21:34:13 localhost klogd:  domain 0: span 0-1 level MC
Nov 19 21:34:13 localhost klogd:   groups: 0 1
Nov 19 21:34:13 localhost klogd: CPU1 attaching sched-domain:
Nov 19 21:34:13 localhost klogd:  domain 0: span 0-1 level MC
Nov 19 21:34:13 localhost klogd:   groups: 1 0
Even without the blank-window-then-crash, running the app under valgrind gives this memory error:

Code:
==3790== Conditional jump or move depends on uninitialised value(s)
==3790==    at 0x4EE78ED: ??? (in /usr/lib/libGLcore.so.190.42)
Khym Chanur is offline   Reply With Quote