[r131]Crash at start of game sometimes +EDIT: FULL 64bit FIX
Posted: Thu Jul 10, 2008 6:32
by Agent ME
Sometimes in Doom2, if I start a new game and immediately look down, the game crashes out. Probably around 1 out of 5 times for me.
I'm on Ubuntu 8.04 in 64 bit with the binary compiled to 64 bit. This might be related to this bug, which I'm exhibiting. Seems to only happen in GL mode.
(Ignore everything in crash reports about audio not working - that always happens on my system when I'm listening to music too. Sound works fine otherwise. Apparently my system doesn't support hardware mixing or something.)
Regular crash report. It seems to be cut off at the end, possibly a glitch in g/zdoom. (Taken from file zdoom-crash.log which was generated on crashing.)
I'm on Ubuntu 8.04 in 64 bit with the binary compiled to 64 bit. This might be related to this bug, which I'm exhibiting. Seems to only happen in GL mode.
(Ignore everything in crash reports about audio not working - that always happens on my system when I'm listening to music too. Sound works fine otherwise. Apparently my system doesn't support hardware mixing or something.)
Regular crash report. It seems to be cut off at the end, possibly a glitch in g/zdoom. (Taken from file zdoom-crash.log which was generated on crashing.)
Spoiler: Crash ReportOutput of GDB when debugged during crash:Code: Select all
*** Fatal Error *** Address not mapped to object (signal 11) Address: 0x1e9e0a0 System: Linux laptop 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64 GNU/Linux GCC version: 4.2.3 GZDoom version 1.1.4 (r131M) / ZDoom2.2.0 (r1069) (Jul 9 2008) Command line: ./gzdoomd Wad 0: gzdoom.pk3 Wad 1: doom2.wad Current map: MAP01 viewx = -6291456 viewy = 51380224 viewz = 6356992 viewangle = 4d500000 Executing: gdb --quiet --batch --command=gdb-respfile-GN1WyI --pid=7467 [Thread debugging using libthread_db enabled] [New Thread 0x7ff083b0d7c0 (LWP 7467)] 0x00007ff088c964df in waitpid () from /lib/libc.so.6 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ff083b0d7c0 (LWP 7467)] 0x0000000088c964df in ?? () * Loaded Libraries From To Syms Read Shared Object Library 0x00007ff08bd871b0 0x00007ff08bd93f88 Yes /usr/lib/libz.so.1 0x00007ff08baf2cd0 0x00007ff08bb86d08 Yes /usr/lib/libfmodex64.so 0x00007ff08b80c0b0 0x00007ff08b859678 Yes /usr/lib/libSDL-1.2.so.0 0x00007ff08b5e58a0 0x00007ff08b5fdd08 Yes /usr/lib/libjpeg.so.62 0x00007ff08b079ea0 0x00007ff08b29d218 Yes /usr/lib/libgtk-x11-2.0.so.0 0x00007ff08ad95560 0x00007ff08addcd78 Yes /usr/lib/libgdk-x11-2.0.so.0 0x00007ff08ab63560 0x00007ff08ab6e3f8 Yes /usr/lib/libatk-1.0.so.0 0x00007ff08a943af0 0x00007ff08a952898 Yes /usr/lib/libgdk_pixbuf-2.0.so.0 0x00007ff08a738490 0x00007ff08a73c1f8 Yes /usr/lib/libpangocairo-1.0.so.0 0x00007ff08a4fdfe0 0x00007ff08a5199e8 Yes /usr/lib/libpango-1.0.so.0 0x00007ff08a28ef00 0x00007ff08a2d5988 Yes /usr/lib/libcairo.so.2 0x00007ff08a049e10 0x00007ff08a072248 Yes /usr/lib/libgobject-2.0.so.0 0x00007ff089e3e260 0x00007ff089e3f148 Yes /usr/lib/libgmodule-2.0.so.0 0x00007ff089c39e20 0x00007ff089c3a9d8 Yes /lib/libdl.so.2 0x00007ff08998dda0 0x00007ff0899e4568 Yes /usr/lib/libglib-2.0.so.0 0x00007ff08c00adc0 0x00007ff08c05308c Yes /usr/lib/libGL.so.1 0x00007ff08970df50 0x00007ff089761a38 Yes /usr/lib/libGLU.so.1 0x00007ff08943e940 0x00007ff0894b4527 Yes /usr/lib/libstdc++.so.6 0x00007ff08916ceb0 0x00007ff0891ab258 Yes /lib/libm.so.6 0x00007ff088f5d1a0 0x00007ff088f660c8 Yes /lib/libgcc_s.so.1 0x00007ff088c16e30 0x00007ff088d07e78 Yes /lib/libc.so.6 0x00007ff0889e2250 0x00007ff0889ed038 Yes /lib/libpthread.so.0 0x00007ff0887d3600 0x00007ff0887d9788 Yes /usr/lib/libpulse-simple.so.0 0x00007ff088588e50 0x00007ff0885ba628 Yes /usr/lib/libpulse.so.0 0x00007ff088320cf0 0x00007ff088369c18 Yes /usr/lib/libdirectfb-1.0.so.0 0x00007ff08810d850 0x00007ff088110a78 Yes /usr/lib/libfusion-1.0.so.0 0x00007ff087ef9e30 0x00007ff087f05e88 Yes /usr/lib/libdirect-1.0.so.0 0x00007ff087c0dbc0 0x00007ff087c93698 Yes /usr/lib/libX11.so.6 0x00007ff0879f1bd0 0x00007ff0879f28e8 Yes /usr/lib/libXcomposite.so.1 0x00007ff0877efa50 0x00007ff0877f04f8 Yes /usr/lib/libXdamage.so.1 0x00007ff0875eb320 0x00007ff0875edf18 Yes /usr/lib/libXfixes.so.3 0x00007ff0873bf130 0x00007ff0873d5878 Yes /usr/lib/libfontconfig.so.1 0x00007ff0871ab880 0x00007ff0871b5e18 Yes /usr/lib/libXext.so.6 0x00007ff086fa0af0 0x00007ff086fa6b88 Yes /usr/lib/libXrender.so.1 0x00007ff086d9daa0 0x00007ff086d9e4f8 Yes /usr/lib/libXinerama.so.1 0x00007ff086b95960 0x00007ff086b9b1c8 Yes /usr/lib/libXi.so.6 0x00007ff08698e900 0x00007ff086992748 Yes /usr/lib/libXrandr.so.2 0x00007ff086785c20 0x00007ff08678a818 Yes /usr/lib/libXcursor.so.1 0x00007ff08655dcd0 0x00007ff08657b7b8 Yes /usr/lib/libpangoft2-1.0.so.0 0x00007ff0862e4920 0x00007ff086333b78 Yes /usr/lib/libfreetype.so.6 0x00007ff0860b7f70 0x00007ff0860d0038 Yes /usr/lib/libpng12.so.0 0x00007ff085e879e0 0x00007ff085eaaa38 Yes /usr/lib/libpixman-1.so.0 0x00007ff085c6e1a0 0x00007ff085c7c038 Yes /lib/libselinux.so.1 0x00007ff08bf9ca60 0x00007ff08bfb2d44 Yes /lib64/ld-linux-x86-64.so.2 0x00007ff085a443a0 0x00007ff085a5e328 Yes /usr/lib/libpcre.so.3 0x00007ff084fbb9a0 0x00007ff085715b1c Yes /usr/lib/libGLcore.so.1 0x00007ff084d8b670 0x00007ff084d8b6d8 Yes /usr/lib/tls/libnvidia-tls.so.1 0x00007ff084b86e20 0x00007ff084b884f8 Yes /lib/libcap.so.1 0x00007ff08497f3a0 0x00007ff084983188 Yes /lib/librt.so.1 0x00007ff084776f50 0x00007ff08477b7e8 Yes /usr/lib/libSM.so.6 0x00007ff08455e410 0x00007ff08456c088 Yes /usr/lib/libICE.so.6 0x00007ff0843588b0 0x00007ff084358b58 Yes /usr/lib/libxcb-xlib.so.0 0x00007ff084145fb0 0x00007ff084151048 Yes /usr/lib/libxcb.so.1 0x00007ff083f1bbf0 0x00007ff083f32458 Yes /usr/lib/libexpat.so.1 0x00007ff083d16c40 0x00007ff083d17928 Yes /usr/lib/libXau.so.6 0x00007ff083b112c0 0x00007ff083b12ba8 Yes /usr/lib/libXdmcp.so.6 0x00007ff083740340 0x00007ff083745348 Yes /lib/libnss_compat.so.2 0x00007ff08352a0a0 0x00007ff0835369a8 Yes /lib/libnsl.so.1 0x00007ff08331d020 0x00007ff083322ce8 Yes /lib/libnss_nis.so.2 0x00007ff083110ff0 0x00007ff083117578 Yes /lib/libnss_files.so.2 0x00007ff082e436c0 0x00007ff082e4f138 Yes /usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so 0x00007ff082c3e150 0x00007ff082c3e5a8 Yes /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 0x00007ff081ce6bb0 0x00007ff081ce6fd8 Yes /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so 0x00007ff081ab8810 0x00007ff081adbfb8 Yes /usr/lib/librsvg-2.so.2 0x00007ff081884f90 0x00007ff08189ee18 Yes /usr/lib/libgsf-1.so.114 0x00007ff0816461d0 0x00007ff0816637b8 Yes /usr/lib/libcroco-0.6.so.3 0x00007ff081320b70 0x00007ff0813f2ee8 Yes /usr/lib/libxml2.so.2 0x00007ff081095f20 0x00007ff0810d31a8 Yes /usr/lib/libgio-2.0.so.0 0x00007ff080e737b0 0x00007ff080e7f268 Yes /lib/libbz2.so.1.0 * Threads * 1 Thread 0x7ff083b0d7c0 (LWP 7467) 0x0000000088c964df in ?? () * FPU Status R7: Empty 0x00000000000000000000 R6: Empty 0x00000000000000000000 R5: Empty 0x00000000000000000000 R4: Empty 0x00000000000000000000 R3: Empty 0x00000000000000000000 R2: Empty 0x00000000000000000000 R1: Empty 0x00000000000000000000 =>R0: Empty 0x00000000000000000000 Status Word: 0x0000 TOP: 0 Control Word: 0x037f IM DM ZM OM UM PM PC: Extended Precision (64-bits) RC: Round to nearest Tag Word: 0xffff Instruction Pointer: 0x00:0x00000000 Operand Pointer: 0x00:0x00000000 Opcode: 0x0000 * Registers rax 0xfffffffffffffe00 -512 rbx 0x0 0 rcx 0xffffffffffffffff -1 rdx 0x0 0 rsi 0x0 0 rdi 0x1d33 7475 rbp 0x0 0x0 rsp 0x7fff941b5970 0x7fff941b5970 r8 0x0 0 r9 0x1d2b 7467 r10 0x0 0 r11 0x246 582 r12 0x1d33 7475 r13 0x7fff941b7670 140735678215792 r14 0x0 0 r15 0x0 0 rip 0x88c964df 0x88c964df eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 fctrl 0x37f 895 fstat 0x0 0 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x0 0 foseg 0x0 0 fooff 0x0 0 fop 0x0 0 mxcsr 0x1f80 [ IM DM ZM OM UM PM ] * Bytes near %eip:
Spoiler: Debugging stuffCode: Select all
chris@laptop:~/Desktop/gzdoom_svn$ gdb ./gzdoomd GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... (gdb) run Starting program: /home/chris/Desktop/gzdoom_svn/gzdoomd lights.pk3 [Thread debugging using libthread_db enabled] GZDoom v1.1.4 - SVN revision 131M - SDL version Compiled on Jul 9 2008 [New Thread 0x7f2aaa5b07c0 (LWP 7236)] [New Thread 0x41587950 (LWP 7237)] M_LoadDefaults: Load system defaults. W_Init: Init WADfiles. adding /home/chris/Desktop/gzdoom_svn/gzdoom.pk3 adding /usr/local/share/doom2.wad (2919 lumps) adding lights.pk3 I_Init: Setting up machine state. I_InitSound: Initializing FMOD FMOD Sound System, copyright � Firelight Technologies Pty, Ltd., 1994-2008. I System::init returned error code 60 GSound init failed. Using nosound. V_Init: allocate screen. S_Init: Setting up sound. ST_Init: Init startup screen. P_Init: Checking cmd-line parameters... G_ParseMapInfo: Load map definitions. S_InitData: Load sound definitions. TEAMINFO_Init: Load team definitions. LoadDecorations: Load external actors. R_Init: Init Doom refresh subsystem. DecalLibrary: Load decals. M_Init: Init miscellaneous info. P_Init: Init Playloop state. ParseSBarInfo: Loading custom status bar definition. D_CheckNetGame: Checking network game status. player 1 of 1 (1 nodes) [Thread 0x41587950 (LWP 7237) exited] Support for non power 2 textures enabled. Occlusion query enabled. Resolution: 640 x 480 Could not create music stream. If your soundcard cannot play more than one wave at a time, you will hear no music. /dev/dsp: Device or resource busy Couldn't open dsp device (`d') +MAP01 - entryway Could not create music stream. If your soundcard cannot play more than one wave at a time, you will hear no music. /dev/dsp: Device or resource busy Couldn't open dsp device (`d') Picked up a clip. Program exited normally. (gdb) run "" Starting program: /home/chris/Desktop/gzdoom_svn/gzdoomd "" [Thread debugging using libthread_db enabled] GZDoom v1.1.4 - SVN revision 131M - SDL version Compiled on Jul 9 2008 [New Thread 0x7f206b0d17c0 (LWP 7267)] [New Thread 0x413fc950 (LWP 7272)] M_LoadDefaults: Load system defaults. W_Init: Init WADfiles. adding /home/chris/Desktop/gzdoom_svn/gzdoom.pk3 adding /usr/local/share/doom2.wad (2919 lumps) I_Init: Setting up machine state. I_InitSound: Initializing FMOD FMOD Sound System, copyright � Firelight Technologies Pty, Ltd., 1994-2008. I System::init returned error code 60 GSound init failed. Using nosound. V_Init: allocate screen. S_Init: Setting up sound. ST_Init: Init startup screen. P_Init: Checking cmd-line parameters... G_ParseMapInfo: Load map definitions. S_InitData: Load sound definitions. TEAMINFO_Init: Load team definitions. LoadDecorations: Load external actors. R_Init: Init Doom refresh subsystem. DecalLibrary: Load decals. M_Init: Init miscellaneous info. P_Init: Init Playloop state. ParseSBarInfo: Loading custom status bar definition. D_CheckNetGame: Checking network game status. player 1 of 1 (1 nodes) [Thread 0x413fc950 (LWP 7272) exited] Support for non power 2 textures enabled. Occlusion query enabled. Resolution: 640 x 480 Could not create music stream. If your soundcard cannot play more than one wave at a time, you will hear no music. /dev/dsp: Device or resource busy Couldn't open dsp device (`d') +MAP01 - entryway Could not create music stream. If your soundcard cannot play more than one wave at a time, you will hear no music. /dev/dsp: Device or resource busy Couldn't open dsp device (`d') Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f206b0d17c0 (LWP 7267)] 0x000000000068d350 in averageColor (data=0x1ed5310, size=7680, maxout=false) at src/gl/gfxfuncs.cpp:69 69 r += BPART(data[i]); (gdb)