|
From: Simon E. <si...@es...> - 2004-06-09 13:45:27
|
Hello list, I'm trying to valgrind my application, which is a 3d graphics program running on Linux 2.4. I'm using SDL and OpenGL for the 3d graphics. The program executes cleanly whitout Valgrind, but when I start it with Valgrind I get a segmentation fault. I'm using Valgrind version 2.1.1, and SDL 1.2.7, compiled for Gentoo Linux. The bug is also present in Valgrind version 2.0.0. I've tracked down the problem to OpenGl, in SDL I create a surface like this: videoFlags = SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_HWPALETTE | SDL_RESIZABLE; screen = SDL_SetVideoMode(800, 600, 32, videoFlags); If I remove SDL_OPENGL from the flags, the program works in Valgrind. Does anyone else experience this problem/bug? I'm thinking it might be linked to the gfx drivers (ATI). -- Simon Ejsing, Systemudvikler esoft ApS, http://www.esoft.dk Skibhusvej 52C, DK-5000 Odense C. Tlf: 70 222 466, Fax: 63 122 466 |
|
From: Dimitri Papadopoulos-O. <pap...@sh...> - 2004-06-10 07:26:59
|
Hi, > Hello list, I'm trying to valgrind my application, which is a 3d graphics > program running on Linux 2.4. I'm using SDL and OpenGL for the 3d graphics. Which exact Linux distribution and version is this? > [...] > Does anyone else experience this problem/bug? I'm thinking it might be linked > to the gfx drivers (ATI). Indeed I would suggest trying without ATI drivers. http://search.gmane.org/search.php?query=ATI+driver&email=&group=gmane.comp.debugging.valgrind There used to be problems with Nvidia drivers too: http://article.gmane.org/gmane.comp.debugging.valgrind/684/ Dimitri |
|
From: Simon E. <si...@es...> - 2004-06-10 07:42:23
|
On Thursday 10 June 2004 09:26, Dimitri Papadopoulos-Orfanos wrote: > Hi, > > > Hello list, I'm trying to valgrind my application, which is a 3d > > graphics program running on Linux 2.4. I'm using SDL and OpenGL for the > > 3d graphics. > > Which exact Linux distribution and version is this? Gentoo Linux, the 2.4 version was for the kernel (2.4.20-gentoo-r9 is the full version). -- Simon Ejsing, Systemudvikler esoft ApS, http://www.esoft.dk Skibhusvej 52C, DK-5000 Odense C. Tlf: 70 222 466, Fax: 63 122 466 |