[Mingw-users] Cannot run nehe01 under gdb
- Date: Tue, 01 Apr 2008 16:57:22 +0300
- From: Mikko Lehtonen <scoopr@xxxxxx>
- Subject: [Mingw-users] Cannot run nehe01 under gdb
Hi,
I have this rather peculiar problem. I compiled NeHe's OpenGL sample
code in mingw (available from
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01), Took the
visualc++ version and just made a Makefile for compiling it with
mingw32-make (and commented out #include <GL\glaux.h> as it was not
needed and not available), you can get this version from here
http://scoopr.osaa.fi/nehe01_mingw.zip
Now the compiled exe works just fine, but when I run it under gdb, I get
this
Program received signal SIGSEGV, Segmentation fault.
0x01ff1ee9 in atioglx2!DrvValidateVersion ()
from C:\WINDOWS\system32\atioglx2.dll
(gdb) bt
#0 0x01ff1ee9 in atioglx2!DrvValidateVersion ()
from C:\WINDOWS\system32\atioglx2.dll
#1 0x021aa640 in atioglx2!atiPPHSN () from C:\WINDOWS\system32\atioglx2.dll
#2 0x02390070 in ?? ()
#3 0x02390070 in ?? ()
#4 0x0022eb98 in ?? ()
#5 0x01ff208b in atioglx2!DrvValidateVersion ()
from C:\WINDOWS\system32\atioglx2.dll
#6 0x00000000 in ?? ()
(gdb)
When stepping through code, it is specifically the call to
ChoosePixelFormat that bombs.
This naturally works just fine in visual studio.
I have no clue how to try to resolve this issue. Is the ATI driver at
fault (I wouldn't be surprised) or gdb, or win32api? Rather surprisingly
I found nothing googling, making me blame some combination of these. Or
am I just doing something wrong?
I have mingw-5.1.3, gcc 3.4.5, gdb 6.7.5
--
Mikko Lehtonen
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users