[freespace2] Crash with latest version
christophe.cavalaria at enst-bretagne.fr
christophe.cavalaria at enst-bretagne.fr
Sat Sep 18 05:42:37 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sorry about the other mail. I made a small mistake :/
On Saturday 18 September 2004 02:49, Taylor Richards wrote:
> On Fri, 2004-09-17 at 15:40, Cavalaria Christophe wrote:
> > I know I don't have much info to give you but since the latest update, I
> > can't run Freespace 2 anymore. It just crashes with no useful error
> > message. Here is the last part of a run through valgrind :
>
> What does a run in gdb give you? A backtrace should help pinpoint the
> problem. Just remember to run freespace2 with -w and -g so that you can
> get back to the terminal window after it crashes.
>
>
> Taylor
That's interesting. I first get an error while initialising OpenAL :
General: soundcard = <nothing>
Sound: SOUND ==> Initializing OpenAL...
Program received signal SIG32, Real-time event 32.
0x400b1714 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
(gdb) bt
#0 0x400b1714 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
#1 0x400b12b8 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
#2 0x400b0a61 in pthread_create () from /lib/i686/libpthread.so.0
#3 0x40122ea6 in Posix_CreateThread () from /usr/local/lib/libopenal.so.0
#4 0x4010c632 in _alSetMixer () from /usr/local/lib/libopenal.so.0
#5 0x4012427d in alcGetCurrentContext () from /usr/local/lib/libopenal.so.0
#6 0x401231e1 in alcMakeContextCurrent () from /usr/local/lib/libopenal.so.0
#7 0x08169fc2 in ds_init(int, int) (use_a3d=0, use_eax=0)
at src/sound/ds.cpp:1480
#8 0x081670c6 in snd_init(int, int) (use_a3d=0, use_eax=0)
at src/sound/sound.cpp:437
#9 0x0804e819 in game_init() () at src/freespace2/freespace.cpp:2478
#10 0x08056397 in WinMainSub(int, int, char*, int) (hInst=1, hPrev=0,
szCmdLine=0x8a7ed28 "-w", nCmdShow=0) at src/freespace2/freespace.cpp:7166
#11 0x0805651b in WinMain(int, int, char*, int) (hInst=1, hPrev=0,
szCmdLine=0x8a7ed28 "-w", nCmdShow=0) at src/freespace2/freespace.cpp:7276
#12 0x0805901c in main (argc=3, argv=0xbffff574)
at src/freespace2/unixmain.cpp:48
#13 0x402e9c57 in __libc_start_main () from /lib/i686/libc.so.6
But if I run it without sound or if I ask it to continue, it just crashes like
that :
on GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture
GL_SGIX_shadow GL_SUN_slice_accum
Program received signal SIGSEGV, Segmentation fault.
0x626f5f72 in ?? ()
(gdb) bt
#0 0x626f5f72 in ?? ()
Cannot access memory at address 0x65666675
Doh :/ I'll have to run gdb with a breakpoint then.
And that was one of the most interresting gdb run I've ever done. The game
crashes as soon as I run the line 2856 of gropengl.cpp
mprintf(( "Extensions : %s\n", glGetString(GL_EXTENSIONS) ));
and if I just comment that line, it works perfectly ! If I step into, I arrive
in the function outwnd_printf2 with a tmp of size MAX_LINE_WIDTH*4 with
MAX_LINE_WIDTH=128 ! It seems the extensions available on the latest OpenGL
driver takes too much place even for that. I'll just increase it to 256 I
guess.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFBTAMUmqNN7QaJ/qgRAnHMAJ9QfaLus8EvINIrNV0qd7bp8cP66gCgmsbH
FLb0WlAegy7rei0NijYyIoQ=
=ms/E
-----END PGP SIGNATURE-----
More information about the freespace2
mailing list