zuzuf wrote:you have to build TA3D with the -g -O0 flags, so call cmake like this:
cmake -DCMAKE_CXX_FLAGS:string="-g -O0" ./
then make clean && make
when it's built run it in gdb:
gdb
# file ta3d-bin.exe
# run
when it crashes it should print a backtrace, at least info about where it crashed. you can get a backtrace with the "bt" command.
I got GDB working finally. Ran ta3d in it.
The first is with the supplied alleg42.dll
The second is with the one I compiled.
- - - - Run One.
[Sun Aug 10 17:51:17 2008] [debug] [shader] Vertex shader: `shaders/water_pass1.vert` compiled
[Sun Aug 10 17:51:17 2008] [debug] [shader] Fragment shader:` shaders/water_pass1.frag` compiled
[New thread 1192.0x13c]
[New thread 1192.0x540]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
Error while reading shared library symbols:
C:\Ta3d-Dev\home\ta3d-win32\alleg42.dll: error reading symbols
- - - - End Run One.
- - - - Run Two
[Sun Aug 10 17:54:40 2008] [debug] MAP: creating low definition geometry (step 2)
[Sun Aug 10 17:54:40 2008] [debug] MAP: freeing temporary allocated memory
[Sun Aug 10 17:54:40 2008] [infos] Loading details texture...
[Sun Aug 10 17:54:40 2008] [infos] Initialising the Fog Of War...
[Sun Aug 10 17:54:40 2008] [debug] Extracting `maps\luschinfloggen.ota`...
[Sun Aug 10 17:54:40 2008] [infos] Loading map informations...
[Sun Aug 10 17:54:41 2008] [infos] Loading time: 79.097 sec.
[Sun Aug 10 17:54:42 2008] [debug] [shader] Vertex shader: `shaders/water_pass1.vert` compiled
[Sun Aug 10 17:54:42 2008] [debug] [shader] Fragment shader:` shaders/water_pass1.frag` compiled
[New thread 1176.0x4c8]
[New thread 1176.0x424]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x04a0cf4c in atiPPHSN () from C:\WIN2K\system32\atioglxx.dll
#2 0x00000000 in ?? ()
(gdb)
- - - - End Run Two.
The problem appears to be that it is not finding the alleg42.dll even though it is in the same directory. Under Winme it fails to find Fmodex.dll in the same directory.
At the same time I also noticed that the cache directory has been moved from ./cache directory to
C:\Documents and Settings\Profile\Local Settings\Application Data\ta3d
I need to put the cache directory put back. I avoid profile specific anything particularly in windows because I run multiple OS's and share the programs among them. My seamonkey runs under Winme, Win2k, Winxp & ReactOs.
If I had not reconfigured it to avoid profiles this would be impossible. Besides the Registry is EVIL!!!, use of it unstable and causes problems everytime Micro$oft changes something (Vista anyone?).