[HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
vanfanel
Posts: 97
Joined: Thu Mar 24, 2016 6:04 pm

[HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by vanfanel »

Hi,

This is happening with the (very nice) Smooth Doom mod only, both on X86 and ARM Linux, using latest ZDOOM sources to build:

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: (nil)

Generating zdoom-crash.log and killing process 10155, please wait... 

29	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
./doom: line 1: 10155 Killed                  ./zdoom -iwad doomu.wad -file SmoothDoom.pk3

During ZDOOM launch with the mod, I get these:

Code: Select all


ZDoom <unknown version> -  - SDL version
Compiled on Sep  9 2016

M_LoadDefaults: Load system defaults.
W_Init: Init WADfiles.
 adding /home/manuel/doom/zdoom.pk3, 585 lumps
 adding doomu.wad, 2306 lumps
 adding SmoothDoom.pk3, 4477 lumps
I_Init: Setting up machine state.
CPU Vendor ID: GenuineIntel
  Name: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
  Family 6, Model 42, Stepping 7
  Features: MMX SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
I_InitSound: Initializing OpenAL
  Opened device Built-in Audio Analog Stereo
  EFX enabled
V_Init: allocate screen.
S_Init: Setting up sound.
ST_Init: Init startup screen.
Checking cmd-line parameters...
S_InitData: Load sound definitions.
G_ParseMapInfo: Load map definitions.
Texman.Init: Init texture manager.
ParseTeamInfo: Load team definitions.
LoadActors: Load actor definitions.
DECORATE parsing took 63.52 ms
R_Init: Init Doom refresh subsystem.
DecalLibrary: Load decals.
M_Init: Init menus.
P_Init: Init Playloop state.
Unknown flat SLIME01
Unknown flat SLIME02
Unknown flat SLIME03
Unknown flat SLIME04
Unknown flat SLIME05
Unknown flat SLIME06
Unknown flat SLIME07
Unknown flat SLIME08
ParseSBarInfo: Loading default status bar definition.
ParseSBarInfo: Loading custom status bar definition.
D_CheckNetGame: Checking network game status.
player 1 of 1 (1 nodes)
Using video driver x11
Resolution: 640 x 480



And now for the crash log:

Code: Select all


*** Fatal Error ***
Address not mapped to object (signal 11)
Address: (nil)

System: Linux vader 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ZDoom version <unknown version> (0)
Compiler version: 5.3.1 20160413

Command line: ./zdoom -iwad doomu.wad -file SmoothDoom.pk3

Wad 0: zdoom.pk3
Wad 1: doomu.wad
Wad 2: SmoothDoom.pk3

Current map: e1m1

viewx = 1058.133558
viewy = -3213.523190
viewz = 24.777552
viewangle = 35.507812

Executing: gdb --quiet --batch --command=gdb-respfile-3iQ5jl
[New LWP 10157]
[New LWP 10158]
[New LWP 10159]
[New LWP 10160]
[New LWP 10639]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fba7529bfbb in __waitpid (pid=11991, stat_loc=0xd119ec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29

* Loaded Libraries
From                To                  Syms Read   Shared Object Library
0x00007fba754c1110  0x00007fba755772e0  Yes (*)     /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
0x00007fba75290a70  0x00007fba7529dab1  Yes         /lib/x86_64-linux-gnu/libpthread.so.0
0x00007fba75085100  0x00007fba750881df  Yes         /lib/x86_64-linux-gnu/librt.so.1
0x00007fba74e6adf0  0x00007fba74e7b870  Yes (*)     /lib/x86_64-linux-gnu/libz.so.1
0x00007fba74c65da0  0x00007fba74c6698e  Yes         /lib/x86_64-linux-gnu/libdl.so.2
0x00007fba7496cd20  0x00007fba74a18cb9  Yes (*)     /usr/lib/x86_64-linux-gnu/libstdc++.so.6
0x00007fba745df600  0x00007fba74650d0a  Yes         /lib/x86_64-linux-gnu/libm.so.6
0x00007fba743c6a70  0x00007fba743d68b5  Yes (*)     /lib/x86_64-linux-gnu/libgcc_s.so.1
0x00007fba7401a8b0  0x00007fba7416d334  Yes         /lib/x86_64-linux-gnu/libc.so.6
0x00007fba73d25aa0  0x00007fba73db5b02  Yes (*)     /usr/lib/x86_64-linux-gnu/libasound.so.2
0x00007fba73ab7b20  0x00007fba73ae4439  Yes (*)     /usr/lib/x86_64-linux-gnu/libpulse.so.0
0x00007fba7389ebe0  0x00007fba738a5347  Yes (*)     /usr/lib/x86_64-linux-gnu/libsndio.so.6.1
0x00007fba7357a870  0x00007fba736022e4  Yes (*)     /usr/lib/x86_64-linux-gnu/libX11.so.6
0x00007fba73353590  0x00007fba7335d39f  Yes (*)     /usr/lib/x86_64-linux-gnu/libXext.so.6
0x00007fba73148420  0x00007fba7314ce20  Yes (*)     /usr/lib/x86_64-linux-gnu/libXcursor.so.1
0x00007fba72f43af0  0x00007fba72f443ec  Yes (*)     /usr/lib/x86_64-linux-gnu/libXinerama.so.1
0x00007fba72d351a0  0x00007fba72d3f6f7  Yes (*)     /usr/lib/x86_64-linux-gnu/libXi.so.6
0x00007fba72b29c70  0x00007fba72b2fa82  Yes (*)     /usr/lib/x86_64-linux-gnu/libXrandr.so.2
0x00007fba72924cd0  0x00007fba72925a8c  Yes (*)     /usr/lib/x86_64-linux-gnu/libXss.so.1
0x00007fba7271efc0  0x00007fba727218c8  Yes (*)     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
0x00007fba7251c6a0  0x00007fba7251c876  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1
0x00007fba72312bc0  0x00007fba723170a7  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
0x00007fba72107200  0x00007fba72108d71  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0
0x00007fba71ecae70  0x00007fba71ee5895  Yes (*)     /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0
0x00007fba757bbac0  0x00007fba757d9640  Yes         /lib64/ld-linux-x86-64.so.2
0x00007fba71cbe800  0x00007fba71cc3612  Yes (*)     /lib/x86_64-linux-gnu/libjson-c.so.2
0x00007fba71a53e70  0x00007fba71a95e49  Yes (*)     /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
0x00007fba71800460  0x00007fba7182b1e4  Yes (*)     /lib/x86_64-linux-gnu/libdbus-1.so.3
0x00007fba715e4400  0x00007fba715f161f  Yes (*)     /lib/x86_64-linux-gnu/libbsd.so.0
0x00007fba713c86b0  0x00007fba713d71a5  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb.so.1
0x00007fba711b6ad0  0x00007fba711bc9e5  Yes (*)     /usr/lib/x86_64-linux-gnu/libXrender.so.1
0x00007fba70fb0530  0x00007fba70fb2756  Yes (*)     /usr/lib/x86_64-linux-gnu/libXfixes.so.3
0x00007fba70da87f0  0x00007fba70dad09c  Yes (*)     /usr/lib/x86_64-linux-gnu/libffi.so.6
0x00007fba7593c810  0x00007fba75993b4f  Yes (*)     /lib/x86_64-linux-gnu/libsystemd.so.0
0x00007fba70b9fd70  0x00007fba70ba3798  Yes (*)     /lib/x86_64-linux-gnu/libwrap.so.0
0x00007fba7093a070  0x00007fba7097c35c  Yes (*)     /usr/lib/x86_64-linux-gnu/libsndfile.so.1
0x00007fba7072f300  0x00007fba70731988  Yes (*)     /usr/lib/x86_64-linux-gnu/libasyncns.so.0
0x00007fba7052ae50  0x00007fba7052bacc  Yes (*)     /usr/lib/x86_64-linux-gnu/libXau.so.6
0x00007fba703251d0  0x00007fba70326b38  Yes (*)     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
0x00007fba70107ab0  0x00007fba7011a29b  Yes (*)     /lib/x86_64-linux-gnu/libselinux.so.1
0x00007fba6fee20d0  0x00007fba6fef624d  Yes (*)     /lib/x86_64-linux-gnu/liblzma.so.5
0x00007fba6fc07d00  0x00007fba6fca8648  Yes (*)     /lib/x86_64-linux-gnu/libgcrypt.so.20
0x00007fba6f9e9ff0  0x00007fba6f9f71e1  Yes         /lib/x86_64-linux-gnu/libnsl.so.1
0x00007fba6f779420  0x00007fba6f7dacfd  Yes (*)     /usr/lib/x86_64-linux-gnu/libFLAC.so.8
0x00007fba6f4dba60  0x00007fba6f4de1a7  Yes (*)     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2
0x00007fba6f2b0990  0x00007fba6f2c0398  Yes         /lib/x86_64-linux-gnu/libresolv.so.2
0x00007fba6f03e530  0x00007fba6f08d623  Yes (*)     /lib/x86_64-linux-gnu/libpcre.so.3
0x00007fba6ee2b8d0  0x00007fba6ee34db9  Yes (*)     /lib/x86_64-linux-gnu/libgpg-error.so.0
0x00007fba6ec21a70  0x00007fba6ec25c05  Yes (*)     /usr/lib/x86_64-linux-gnu/libogg.so.0
0x00007fba6e9f6da0  0x00007fba6ea0d00d  Yes (*)     /usr/lib/x86_64-linux-gnu/libvorbis.so.0
0x00007fba6e7ec2d0  0x00007fba6e7f1bf1  Yes         /lib/x86_64-linux-gnu/libnss_compat.so.2
0x00007fba6e5e10b0  0x00007fba6e5e78ce  Yes         /lib/x86_64-linux-gnu/libnss_nis.so.2
0x00007fba6e3cf1b0  0x00007fba6e3d52a1  Yes         /lib/x86_64-linux-gnu/libnss_files.so.2
0x00007fba6e167ee0  0x00007fba6e1a9825  Yes (*)     /usr/lib/x86_64-linux-gnu/libopenal.so.1
0x00007fba68681f40  0x00007fba686c0132  Yes (*)     /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
0x00007fba68444b00  0x00007fba6845cc19  Yes (*)     /lib/x86_64-linux-gnu/libexpat.so.1
0x00007fba6823ed00  0x00007fba6823f4a3  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
0x00007fba6803bc00  0x00007fba6803c3d8  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb-present.so.0
0x00007fba5fdf9ed0  0x00007fba5fdfbe39  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1
0x00007fba5fbf5990  0x00007fba5fbf5c7c  Yes (*)     /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
0x00007fba5f9d1620  0x00007fba5f9dc5b3  Yes (*)     /usr/lib/x86_64-linux-gnu/libglapi.so.0
0x00007fba5f7c4b90  0x00007fba5f7c549b  Yes (*)     /usr/lib/x86_64-linux-gnu/libXdamage.so.1
0x00007fba5f5c25e0  0x00007fba5f5c26fb  Yes (*)     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
0x00007fba5f3b2fe0  0x00007fba5f3bab75  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
0x00007fba5f1a5890  0x00007fba5f1a69b5  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0
0x00007fba5ef98540  0x00007fba5ef9fb50  Yes (*)     /usr/lib/x86_64-linux-gnu/libdrm.so.2
0x00007fba4dad28b0  0x00007fba4f0befaf  Yes (*)     /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
0x00007fba5d7f49b0  0x00007fba5d80d4e0  Yes (*)     /usr/lib/x86_64-linux-gnu/libedit.so.2
0x00007fba5d5cd870  0x00007fba5d5d9868  Yes (*)     /lib/x86_64-linux-gnu/libtinfo.so.5
0x00007fba5c387bf0  0x00007fba5c3ba3c8  Yes (*)     /usr/lib/x86_64-linux-gnu/libtxc_dxtn.so
(*): Shared library is missing debugging information.

* Threads
  Id   Target Id         Frame 
* 1    Thread 0x7fba759248c0 (LWP 10155) "zdoom" 0x00007fba7529bfbb in __waitpid (pid=11991, stat_loc=0xd119ec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
  2    Thread 0x7fba6e15c700 (LWP 10157) "threaded-ml" 0x00007fba740f5e8d in poll () at ../sysdeps/unix/syscall-template.S:84
  3    Thread 0x7fba75902700 (LWP 10158) "alsoft-mixer" pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:143
  4    Thread 0x7fba6995a700 (LWP 10159) "SDLTimer" 0x00007fba7529a867 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x158b270) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  5    Thread 0x7fba759d58c0 (LWP 10160) "zdoom" 0x00007fba75087ee5 in timer_helper_thread (arg=<optimized out>) at ../sysdeps/unix/sysv/linux/timer_routines.c:89
  6    Thread 0x7fba4ce2b700 (LWP 10639) "zdoom" pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185

* 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            0x2ed7	11991
rcx            0x7fba7529bfbb	140438806314939
rdx            0x0	0
rsi            0xd119ec	13703660
rdi            0x2ed7	11991
rbp            0xd119ec	0xd119ec
rsp            0xd119b0	0xd119b0
r8             0x0	0
r9             0x7fba759248c0	140438813165760
r10            0x0	0
r11            0x246	582
r12            0x0	0
r13            0xd0eec0	13692608
r14            0x1090	4240
r15            0xc	12
rip            0x7fba7529bfbb	0x7fba7529bfbb <__waitpid+107>
eflags         0x246	[ PF ZF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0

* Backtrace

Thread 6 (Thread 0x7fba4ce2b700 (LWP 10639)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1  0x00007fba7499690c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#2  0x00000000005dd11b in OpenALSoundRenderer::BackgroundProc() ()
No symbol table info available.
#3  0x00007fba7499bc70 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#4  0x00007fba752926fa in start_thread (arg=0x7fba4ce2b700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fba4ce2b700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140438130571008, 7966727915094634724, 0, 140729028744255, 8388608, 140438182824944, -7927715157945913116, -7927625595228426012}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x00007fba74101b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 5 (Thread 0x7fba759d58c0 (LWP 10160)):
#0  0x00007fba75087ee5 in timer_helper_thread (arg=<optimized out>) at ../sysdeps/unix/sysv/linux/timer_routines.c:89
        resultvar = <optimized out>
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
        si = {si_signo = 32, si_errno = 0, si_code = -2, _sifields = {_pad = {1, 0, 21995984, 0 <repeats 25 times>}, _kill = {si_pid = 1, si_uid = 0}, _timer = {si_tid = 1, si_overrun = 0, si_sigval = {sival_int = 21995984, sival_ptr = 0x14fa1d0}}, _rt = {si_pid = 1, si_uid = 0, si_sigval = {sival_int = 21995984, sival_ptr = 0x14fa1d0}}, _sigchld = {si_pid = 1, si_uid = 0, si_status = 21995984, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x1, si_addr_lsb = -24112, si_addr_bnd = {_lower = 0x0, _upper = 0x0}}, _sigpoll = {si_band = 1, si_fd = 21995984}, _sigsys = {_call_addr = 0x1, _syscall = 21995984, _arch = 0}}}
        ss = {__val = {2147483648, 0 <repeats 15 times>}}
#1  0x00007fba752926fa in start_thread (arg=0x7fba759d58c0) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fba759d58c0
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140438813890752, 7966727915094634724, 0, 140729028744127, 140438813891456, 20889216, -7927624045491162908, -7927625595228426012}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#2  0x00007fba74101b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 4 (Thread 0x7fba6995a700 (LWP 10159)):
#0  0x00007fba7529a867 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x158b270) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
        __ret = -512
        oldtype = 2
        err = <optimized out>
#1  do_futex_wait (sem=sem@entry=0x158b270, abstime=0x0) at sem_waitcommon.c:111
No locals.
#2  0x00007fba7529a914 in __new_sem_wait_slow (sem=0x158b270, abstime=0x0) at sem_waitcommon.c:181
        _buffer = {__routine = 0x7fba7529a820 <__sem_wait_cleanup>, __arg = 0x158b270, __canceltype = 0, __prev = 0x0}
        err = <optimized out>
        d = 0
#3  0x00007fba7529a9ba in __new_sem_wait (sem=<optimized out>) at sem_wait.c:29
No locals.
#4  0x00007fba755716ce in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
No symbol table info available.
#5  0x00007fba75571825 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
No symbol table info available.
#6  0x00007fba75523503 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
No symbol table info available.
#7  0x00007fba7552309c in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
No symbol table info available.
#8  0x00007fba75571399 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
No symbol table info available.
#9  0x00007fba752926fa in start_thread (arg=0x7fba6995a700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fba6995a700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140438612059904, 7966727915094634724, 0, 140729028744575, 140438612060608, 20889216, -7927650362458672924, -7927625595228426012}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#10 0x00007fba74101b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 3 (Thread 0x7fba75902700 (LWP 10158)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:143
No locals.
#1  0x00007fba73ade7e8 in pa_threaded_mainloop_wait () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#2  0x00007fba6e1a5a69 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#3  0x00007fba6e1a8f27 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#4  0x00007fba752926fa in start_thread (arg=0x7fba75902700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fba75902700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140438813026048, 7966727915094634724, 0, 140729028744319, 140438813026752, 140438687865072, -7927624021424246556, -7927625595228426012}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x00007fba74101b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 2 (Thread 0x7fba6e15c700 (LWP 10157)):
#0  0x00007fba740f5e8d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fba73ade201 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#2  0x00007fba73acfa01 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#3  0x00007fba73ad00ae in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#4  0x00007fba73ad0160 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#5  0x00007fba73ade149 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#6  0x00007fba71a91678 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
No symbol table info available.
#7  0x00007fba752926fa in start_thread (arg=0x7fba6e15c700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fba6e15c700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140438687565568, 7966727915094634724, 0, 140729028744335, 8388608, 22194896, -7927640467927764764, -7927625595228426012}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0x00007fba74101b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 1 (Thread 0x7fba759248c0 (LWP 10155)):
#0  0x00007fba7529bfbb in __waitpid (pid=11991, stat_loc=0xd119ec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
        resultvar = 18446744073709551104
        sc_cancel_oldtype = 0
#1  0x000000000050275e in ?? ()
No symbol table info available.
#2  <signal handler called>
No locals.
#3  __memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:78
No locals.
#4  0x00000000009094a2 in VMFrameStack::Alloc(int) ()
No symbol table info available.
#5  0x00000000009095de in VMFrameStack::AllocFrame(VMScriptFunction*) ()
No symbol table info available.
#6  0x000000000090984d in VMFrameStack::Call(VMFunction*, VMValue*, int, VMReturn*, int, VMException**) ()
No symbol table info available.
#7  0x000000000069327c in FState::CallAction(AActor*, AActor*, FStateParamInfo*, FState**) ()
No symbol table info available.
#8  0x000000000073d36c in DPSprite::SetState(FState*, bool) ()
No symbol table info available.
#9  0x000000000073dcfe in P_BringUpWeapon(player_t*) ()
No symbol table info available.
#10 0x000000000081e1b2 in AInventory::Destroy() ()
No symbol table info available.
#11 0x000000000073a936 in AActor::Destroy() ()
No symbol table info available.
#12 0x000000000065640d in DThinker::DestroyAllThinkers() ()
No symbol table info available.
#13 0x000000000074fcfa in P_FreeLevelData() ()
No symbol table info available.
#14 0x0000000000750380 in ?? ()
No symbol table info available.
#15 0x0000000000506ea2 in call_terms() ()
No symbol table info available.
#16 0x00007fba74034fe8 in __run_exit_handlers (status=0, listp=0x7fba743be5f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = <optimized out>
#17 0x00007fba74035035 in __GI_exit (status=<optimized out>) at exit.c:104
No locals.
#18 0x000000000050b8a0 in ST_Endoom() ()
No symbol table info available.
#19 0x000000000057b6d5 in DQuitMenu::HandleResult(bool) ()
No symbol table info available.
#20 0x000000000057b8b9 in DMessageBoxMenu::MenuEvent(int, bool) ()
No symbol table info available.
#21 0x000000000056e3b8 in M_Responder(event_t*) ()
No symbol table info available.
#22 0x00000000006231a0 in D_ProcessEvents() ()
No symbol table info available.
#23 0x000000000062bdfa in NetUpdate() ()
No symbol table info available.
#24 0x000000000062e26a in TryRunTics() ()
No symbol table info available.
#25 0x0000000000624aa5 in D_DoomLoop() ()
No symbol table info available.
#26 0x0000000000626c29 in D_DoomMain() ()
No symbol table info available.
#27 0x00000000004f0f96 in main ()
No symbol table info available.
Any ideas on what's going on?
Last edited by vanfanel on Fri Sep 09, 2016 4:47 am, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [HEAD, Linux, X86, ARM] Zdoom + SmoothDoom.pk3 crash on

Post by Graf Zahl »

You are going to have to debug this stuff yourself.

The big problem with all this Raspberry Pi stuff is that nobody here can check it. To be honest, if you want to build on such a system you have to be willing to analyze such things yourself. Reporting bugs won't do much good.
vanfanel
Posts: 97
Joined: Thu Mar 24, 2016 6:04 pm

Re: [HEAD, Linux, X86, ARM] Zdoom + SmoothDoom.pk3 crash on

Post by vanfanel »

Graf Zahl wrote:You are going to have to debug this stuff yourself.

The big problem with all this Raspberry Pi stuff is that nobody here can check it. To be honest, if you want to build on such a system you have to be willing to analyze such things yourself. Reporting bugs won't do much good.
@Grahf Zahl: this is happening on X86 too.. It's NOT a Raspberry Pi specific issue. It happens on both X86 and ARM.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by Graf Zahl »

Ok, seems I missed that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by Graf Zahl »

Does not crash for me. Anything special I need to do?
vanfanel
Posts: 97
Joined: Thu Mar 24, 2016 6:04 pm

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by vanfanel »

@Graf: Nothing special, just run:

./zdoom -iwad doomu.wad -file SmoothDoom.pk3

Then start first episode for example, load first level, and quit the game. It crashes on exit here.

It crashes on exit with doom2.wad, too.
And I repeat: it happens on X86 too, running Lubuntu 16.04. In fact, that's where I found the problem.
User avatar
JPL
 
 
Posts: 523
Joined: Mon Apr 09, 2012 12:27 pm
Contact:

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by JPL »

I can't seem to repro this with latest. My version of SmoothDoom.pk3 is dated 2016-01-14 and is 8244243 bytes, is there a newer version?
vanfanel
Posts: 97
Joined: Thu Mar 24, 2016 6:04 pm

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by vanfanel »

@JPL: Same as mine. Can you please point to the exact link where you got your version from?
User avatar
JPL
 
 
Posts: 523
Joined: Mon Apr 09, 2012 12:27 pm
Contact:

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by JPL »

vanfanel wrote:@JPL: Same as mine. Can you please point to the exact link where you got your version from?
The "DOWNLOAD ME!" link at the top of this post: http://forum.zdoom.org/viewtopic.php?f=19&t=45550

The file's MD5 checksum is

Code: Select all

a44b9520a6464e94751839a9e17c3391
.

I'm running in 64-bit Arch Linux.
vanfanel
Posts: 97
Joined: Thu Mar 24, 2016 6:04 pm

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by vanfanel »

@JPL: I am using the same WAD.

Ok:
-If I build latest stable release (http://zdoom.org/files/zdoom/2.8/zdoom-2.8.1-src.7z) everything works right.
-If I build latest sources (https://github.com/rheit/zdoom), SmoothDoom crashes on exit.

For me it's pretty clear that there's a problem with SmoothDoom in latest GIT sources.
I must repeat: this happens on Lubuntu 16.04 and Raspbian, both in X86 and ARM, with different compilers and libs.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by _mental_ »

It doesn't crash for me with the latest commit at the moment. Tested on Windows and macOS with both back-ends 64-bit. Probably something specific to Linux or SDL back-end on Linux or GCC compiler.
User avatar
JPL
 
 
Posts: 523
Joined: Mon Apr 09, 2012 12:27 pm
Contact:

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by JPL »

I've built from the latest commit as well, and it doesn't crash for me.
SmoothDoom doesn't use any sounds, so this is quite likely a red herring, but I've built ZDoom without FMOD, ie using the OpenAL sound backend.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by Edward-san »

Cannot reproduce the crash in my Ubuntu MATE 16.04 x86_64 system, though I compiled with clang-4.0 from llvm-toolchain-xenial repository located here. Can you check if it crashes also when you compile with clang?

[edit]I tried with GCC 5 and indeed it crashes. It's the usual destructor order problem which has always been present in GCC 5.x series in release mode. See this valgrind + zdoom log:
Spoiler:
I have no idea on how to fix this, though.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by Graf Zahl »

Do I understand this correctly that the NameManager gets deleted too early so that some stuff that uses it accesses invalid data?
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: [HEAD, Linux, X86] Zdoom + SmoothDoom.pk3 crash on exit

Post by Edward-san »

Yeah, seems like that. GCC 5+ and GCC 6+ are affected by this. Now the question is if it's better to make a workaround or report the bug at gcc bugzilla...
Post Reply

Return to “Closed Bugs [GZDoom]”