SDL and Vista = bsod

Hi, I found this message
(http://twomix.devolution.com/pipermail/sdl/2006-December/077419.html)
about crashing vista when using SDL.

I’m experiencing the same problem, but it is not with all vista, we
have here ~15-20 Vistas, but only in 3 (all SP1, 2 64bits, 1 32bits)
our software crashes with bsod. I tried to find what was causing the
crash but haven’t found anything useful, just that If I compile the
app using VS2009 Express it will work (so it’s not entirely SDL fault
I think), but the weird thing is that If I run the VS2009 version and
then run the one that was crashing, it will not crash anymore until a
clean reboot (this may be something related to dll loading).

Debugging with Ollydbg will not crash (even just loading and running)
and debugging with WinDBG will crash sometimes, but I wasn’t able to
find the culprit before the random crash.
Anybody has any clue about what is happening?

We tested our app here in a variety of OSes, they are:
Windows XP 32bits
Windows XP SP2 32bits
Windows XP SP3 32bits
Windows Vista SP1 32bits
Windows Vista SP1 64 bits
Windows 7 RC1 64bits
Ubuntu Linux x86_64
Mac OSX Leopard 10.5.5

All these machines have NVidia vgas ranging from Series 6 to Series
9, the MacOSX is a ATI Radeon.

I’m testing with this dev tools:
SDL 1.2.13 (stable)
C::B 8.02
Mingw GCC Bundled with C::B 8.02 (3.4.5)
TDM-Mingw-1.905 (GCC 4.4.0)
Microsoft Visual Studio C++ 2009 Express

Ps.: You can find more links to related problems here:
http://forums.codeblocks.org/index.php/topic,10784.new.html

Thank you!–
Animal Liberation Front
http://www.animal-liberation.com/

Hey, I just thought I’d mention this since it’s short, sweet, and critical:

You are using the SDL test programs to reproduce the crash, right?On Fri, Jul 3, 2009 at 12:05 PM, fungos wrote:

Hi, I found this message
(http://twomix.devolution.com/pipermail/sdl/2006-December/077419.html)
about crashing vista when using SDL.

I’m experiencing the same problem, but it is not with all vista, we
have here ?~15-20 Vistas, but only in 3 (all SP1, 2 64bits, 1 32bits)
our software crashes with bsod. I tried to find what was causing the
crash but haven’t found anything useful, just that If I compile the
app using VS2009 Express it will work (so it’s not entirely SDL fault
I think), but the weird thing is that If I run the VS2009 version and
then run the one that was crashing, it will not crash anymore until a
clean reboot (this may be something related to dll loading).

Debugging with Ollydbg will not crash (even just loading and running)
and debugging with WinDBG will crash sometimes, but I wasn’t able to
find the culprit before the random crash.
Anybody has any clue about what is happening?

We tested our app here in a variety of OSes, they are:
Windows XP 32bits
Windows XP SP2 32bits
Windows XP SP3 32bits
Windows Vista SP1 32bits
Windows Vista SP1 64 bits
Windows 7 RC1 64bits
Ubuntu Linux x86_64
Mac OSX Leopard 10.5.5

All these machines have NVidia vgas ranging ?from Series 6 to Series
9, the MacOSX is a ATI Radeon.

I’m testing with this dev tools:
SDL 1.2.13 (stable)
C::B 8.02
Mingw GCC Bundled with C::B 8.02 (3.4.5)
TDM-Mingw-1.905 (GCC 4.4.0)
Microsoft Visual Studio C++ 2009 Express

Ps.: You can find more links to related problems here:
http://forums.codeblocks.org/index.php/topic,10784.new.html

Thank you!


Animal Liberation Front
http://www.animal-liberation.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

you just got ahead of me. Got last week no time to post the problem and
the possible solution.

I was experiencing the same problem. Unluckily i had no machine to test
this one and the people with the crashing machines were not to eager to
test something crashing their computer. I guessed this would be a
mingw32 problem as i am using Eclipse/GCC for development.

After googling a lot i found this:
http://www.increpare.com/2009/02/signifier/
The programmer (Stephen) mentions he fixed the Vista BSODs. I asked him
and he told me that he left debug information in his exes which caused
BSOD to crash. Hm, my exes were fully stripped, so this could not be the
reason. He gave me 2 version of this program to test, one stripped, one
with debug info. I passed this along to a friend and he tested them
positively. I noticed that his SDL.dll was much smaller than the one i
got. I stripped my DLLs (SDL, SDL_image+DLLs which got shipped with,
Freetype2) and since them the Vista Boxes crash no more.

Try to strip all your executables and the dlls, even the one you got
from SDL, that should work. Can you please try the both testcases in
http://libgame.evilazrael.net/files/testcase.7z ? If the executable
runs, you can cancel the program by pressing escape.
I got two people to test this one and they confirmed that the stripped
one worked.

Regards

Christoph

fungos schrieb:

Hi, I found this message
(http://twomix.devolution.com/pipermail/sdl/2006-December/077419.html)
about crashing vista when using SDL.

I’m experiencing the same problem, but it is not with all vista, we
have here ~15-20 Vistas, but only in 3 (all SP1, 2 64bits, 1 32bits)
our software crashes with bsod. I tried to find what was causing the
crash but haven’t found anything useful, just that If I compile the
app using VS2009 Express it will work (so it’s not entirely SDL fault
I think), but the weird thing is that If I run the VS2009 version and
then run the one that was crashing, it will not crash anymore until a
clean reboot (this may be something related to dll loading).

Debugging with Ollydbg will not crash (even just loading and running)
and debugging with WinDBG will crash sometimes, but I wasn’t able to
find the culprit before the random crash.
Anybody has any clue about what is happening?

We tested our app here in a variety of OSes, they are:
Windows XP 32bits
Windows XP SP2 32bits
Windows XP SP3 32bits
Windows Vista SP1 32bits
Windows Vista SP1 64 bits
Windows 7 RC1 64bits
Ubuntu Linux x86_64
Mac OSX Leopard 10.5.5

All these machines have NVidia vgas ranging from Series 6 to Series
9, the MacOSX is a ATI Radeon.

I’m testing with this dev tools:
SDL 1.2.13 (stable)
C::B 8.02
Mingw GCC Bundled with C::B 8.02 (3.4.5)
TDM-Mingw-1.905 (GCC 4.4.0)
Microsoft Visual Studio C++ 2009 Express

Ps.: You can find more links to related problems here:
http://forums.codeblocks.org/index.php/topic,10784.new.html

Thank you!


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723
MSN : msn at evilazrael.de Yahoo! : eazrael

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpOQfQACgkQBcR1PkJPtVuo5gCfQDlKvuaqvT49/nN3hoXEq5TS
rPMAoL1N5zt1XZ8eMMlQxsf4a/+3jeIN
=gnj7
-----END PGP SIGNATURE-----

Hi Christoph,

I tested both binaries in the Vistas that was crashing my app and my
simple test. And your both binaries crashed too, the exactly same
bsod.
I tried to strip all my binaries too, but still crashing.
Anyway, thanks for your tip :wink:

[ ]sOn Fri, Jul 3, 2009 at 2:37 PM, Christoph Nelles wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

you just got ahead of me. Got last week no time to post the problem and
the possible solution.

I was experiencing the same problem. Unluckily i had no machine to test
this one and the people with the crashing machines were not to eager to
test something crashing their computer. I guessed this would be a
mingw32 problem as i am using Eclipse/GCC for development.

After googling a lot i found this:
http://www.increpare.com/2009/02/signifier/
The programmer (Stephen) mentions he fixed the Vista BSODs. I asked him
and he told me that he left debug information in his exes which caused
BSOD to crash. Hm, my exes were fully stripped, so this could not be the
?reason. He gave me 2 version of this program to test, one stripped, one
with debug info. I passed this along to a friend and he tested them
positively. I noticed that his SDL.dll was much smaller than the one i
got. I stripped my DLLs (SDL, SDL_image+DLLs which got shipped with,
Freetype2) and since them the Vista Boxes crash no more.

Try to strip all your executables and the dlls, even the one you got
from SDL, that should work. Can you please try the both testcases in
http://libgame.evilazrael.net/files/testcase.7z ? If the executable
runs, you can cancel the program by pressing escape.
I got two people to test this one and they confirmed that the stripped
one worked.

Regards

Christoph

fungos schrieb:

Hi, I found this message
(http://twomix.devolution.com/pipermail/sdl/2006-December/077419.html)
about crashing vista when using SDL.

I’m experiencing the same problem, but it is not with all vista, we
have here ?~15-20 Vistas, but only in 3 (all SP1, 2 64bits, 1 32bits)
our software crashes with bsod. I tried to find what was causing the
crash but haven’t found anything useful, just that If I compile the
app using VS2009 Express it will work (so it’s not entirely SDL fault
I think), but the weird thing is that If I run the VS2009 version and
then run the one that was crashing, it will not crash anymore until a
clean reboot (this may be something related to dll loading).

Debugging with Ollydbg will not crash (even just loading and running)
and debugging with WinDBG will crash sometimes, but I wasn’t able to
find the culprit before the random crash.
Anybody has any clue about what is happening?

We tested our app here in a variety of OSes, they are:
Windows XP 32bits
Windows XP SP2 32bits
Windows XP SP3 32bits
Windows Vista SP1 32bits
Windows Vista SP1 64 bits
Windows 7 RC1 64bits
Ubuntu Linux x86_64
Mac OSX Leopard 10.5.5

All these machines have NVidia vgas ranging ?from Series 6 to Series
9, the MacOSX is a ATI Radeon.

I’m testing with this dev tools:
SDL 1.2.13 (stable)
C::B 8.02
Mingw GCC Bundled with C::B 8.02 (3.4.5)
TDM-Mingw-1.905 (GCC 4.4.0)
Microsoft Visual Studio C++ 2009 Express

Ps.: You can find more links to related problems here:
http://forums.codeblocks.org/index.php/topic,10784.new.html

Thank you!


Christoph Nelles

E-Mail ? ?: evilazrael at evilazrael.de
Jabber ? ?: eazrael at evilazrael.net ? ? ?ICQ ? ? ? : 78819723
MSN ? ? ? : msn at evilazrael.de ? ? ? ? ? Yahoo! ? ?: eazrael

PGP-Key ? : ID 0x424FB55B on subkeys.pgp.net
? ? ? ? ? ?or http://evilazrael.net/pgp.txt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpOQfQACgkQBcR1PkJPtVuo5gCfQDlKvuaqvT49/nN3hoXEq5TS
rPMAoL1N5zt1XZ8eMMlQxsf4a/+3jeIN
=gnj7
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Animal Liberation Front
http://www.animal-liberation.com/

Hi,

i think this problem should not be ignored. I gave both test programs
again to two friends, who tested them again. Sometimes the stripped
versions crashed their computers, sometimes not. The unstripped version
crashed their computer in every case. So it may still be related.
Have you tried the proposal in the thread on the gamedev forum,
compiling on vista? Did you compiled the SDL libs yourself?
At least one of the vista boxes of my friends contains a radeon, so it’s
not limited to nVidia (if it is the same problem) . And he upgraded to
SP2. Same problem.

Regards

Christoph

fungos schrieb:>Hi Christoph,

I tested both binaries in the Vistas that was crashing my app and my
simple test. And your both binaries crashed too, the exactly same
bsod.
I tried to strip all my binaries too, but still crashing.
Anyway, thanks for your tip :wink: