Bug Tracker – Full Text Bug Listing

Bug 1221

Summary: Odamex crashes shortly after boot - SDL2 - Ubuntu 16.10
Product: Odamex Reporter: Anthony Weed <awweed2>
Component: ClientAssignee: Odamex Bug Reporter <odamex-bug-reporter>
Status: NEW ---    
Severity: normal CC: grandpachuck187, mdvulture, odamex-bug-reporter
Priority: P1    
Version: 0.7.x (Old)   
Hardware: x86 (Windows, Linux, etc)   
OS: Linux   
Attachments: Odamex crash dump

Description Anthony Weed 2017-02-06 17:51:39 UTC
Created attachment 557 [details]
Odamex crash dump

I am able to join a game, but it will usually crash within the first 30 seconds. Sometimes instantly.

I can only attach one file, but will paste the other odamex dumps (though they all seem the same).

I am running Ubuntu1 16.10 x64 on unity and sdl2.

Signal number: 11
Errno: 0
Signal code: 1
Fault Address: 0x55ae9f8ee23f
/opt/odamex/build/client/odamex(_Z14writeBacktraceiP9siginfo_t+0x161)[0x55ae9f4163b1]
/opt/odamex/build/client/odamex(_Z17sigactionCallbackiP9siginfo_tPv+0x92)[0x55ae9f416492]
/lib/x86_64-linux-gnu/libc.so.6(+0x35860)[0x7f27ed782860]
/opt/odamex/build/client/odamex(_Z22R_FillTranslucentSpanPv+0xac)[0x55ae9f50450c]
/opt/odamex/build/client/odamex(_Z14R_DrawParticleP11vissprite_s+0xbe)[0x55ae9f516cee]
/opt/odamex/build/client/odamex(_Z15R_DrawVisSpriteP11vissprite_sii+0x234)[0x55ae9f516f44]
/opt/odamex/build/client/odamex(_Z12R_DrawMaskedv+0xab)[0x55ae9f517a5b]
/opt/odamex/build/client/odamex(_Z18R_RenderPlayerViewP8player_s+0x172)[0x55ae9f50f7e2]
/opt/odamex/build/client/odamex(_Z9D_Displayv+0x15c)[0x55ae9f4d544c]
/opt/odamex/build/client/odamex(_ZN19CappedTaskScheduler3runEv+0x3b)[0x55ae9f40db3b]
/opt/odamex/build/client/odamex(_Z9D_RunTicsPFvvES0_+0x237)[0x55ae9f409577]
/opt/odamex/build/client/odamex(_Z10D_DoomLoopv+0x53)[0x55ae9f4d5c73]
/opt/odamex/build/client/odamex(_Z10D_DoomMainv+0x834)[0x55ae9f4d6554]
/opt/odamex/build/client/odamex(main+0x160)[0x55ae9f3f3040]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f27ed76d3f1]
/opt/odamex/build/client/odamex(_start+0x2a)[0x55ae9f3fb61a]

Signal number: 11
Errno: 0
Signal code: 1
Fault Address: 0x562134ed7e6b
/opt/odamex/build/client/odamex(_Z14writeBacktraceiP9siginfo_t+0x161)[0x5621349fe3b1]
/opt/odamex/build/client/odamex(_Z17sigactionCallbackiP9siginfo_tPv+0x92)[0x5621349fe492]
/lib/x86_64-linux-gnu/libc.so.6(+0x35860)[0x7f4858ada860]
/opt/odamex/build/client/odamex(_Z22R_FillTranslucentSpanPv+0xac)[0x562134aec50c]
/opt/odamex/build/client/odamex(_Z14R_DrawParticleP11vissprite_s+0xbe)[0x562134afecee]
/opt/odamex/build/client/odamex(_Z15R_DrawVisSpriteP11vissprite_sii+0x234)[0x562134afef44]
/opt/odamex/build/client/odamex(_Z12R_DrawMaskedv+0xab)[0x562134affa5b]
/opt/odamex/build/client/odamex(_Z18R_RenderPlayerViewP8player_s+0x172)[0x562134af77e2]
/opt/odamex/build/client/odamex(_Z9D_Displayv+0x15c)[0x562134abd44c]
/opt/odamex/build/client/odamex(_ZN19CappedTaskScheduler3runEv+0x3b)[0x5621349f5b3b]
/opt/odamex/build/client/odamex(_Z9D_RunTicsPFvvES0_+0x237)[0x5621349f1577]
/opt/odamex/build/client/odamex(_Z10D_DoomLoopv+0x53)[0x562134abdc73]
/opt/odamex/build/client/odamex(_Z10D_DoomMainv+0x834)[0x562134abe554]
/opt/odamex/build/client/odamex(main+0x160)[0x5621349db040]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f4858ac53f1]
/opt/odamex/build/client/odamex(_start+0x2a)[0x5621349e361a]

Signal number: 11
Errno: 0
Signal code: 1
Fault Address: 0x555dd3b8a487
/opt/odamex/build/client/odamex(_Z14writeBacktraceiP9siginfo_t+0x161)[0x555dd36b63b1]
/opt/odamex/build/client/odamex(_Z17sigactionCallbackiP9siginfo_tPv+0x92)[0x555dd36b6492]
/lib/x86_64-linux-gnu/libc.so.6(+0x35860)[0x7f0044781860]
/opt/odamex/build/client/odamex(_Z22R_FillTranslucentSpanPv+0xac)[0x555dd37a450c]
/opt/odamex/build/client/odamex(_Z14R_DrawParticleP11vissprite_s+0xbe)[0x555dd37b6cee]
/opt/odamex/build/client/odamex(_Z15R_DrawVisSpriteP11vissprite_sii+0x234)[0x555dd37b6f44]
/opt/odamex/build/client/odamex(_Z12R_DrawMaskedv+0xab)[0x555dd37b7a5b]
/opt/odamex/build/client/odamex(_Z18R_RenderPlayerViewP8player_s+0x172)[0x555dd37af7e2]
/opt/odamex/build/client/odamex(_Z9D_Displayv+0x15c)[0x555dd377544c]
/opt/odamex/build/client/odamex(_ZN19CappedTaskScheduler3runEv+0x3b)[0x555dd36adb3b]
/opt/odamex/build/client/odamex(_Z9D_RunTicsPFvvES0_+0x237)[0x555dd36a9577]
/opt/odamex/build/client/odamex(_Z10D_DoomLoopv+0x53)[0x555dd3775c73]
/opt/odamex/build/client/odamex(_Z10D_DoomMainv+0x834)[0x555dd3776554]
/opt/odamex/build/client/odamex(main+0x160)[0x555dd3693040]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f004476c3f1]
/opt/odamex/build/client/odamex(_start+0x2a)[0x555dd369b61a]
Comment 1 HeX_Vulture 2019-08-12 21:44:02 UTC
Does this still happen?
Comment 2 Anthony Weed 2019-08-18 15:24:32 UTC
idk why dont you try it out, though 16.04 is an old version of ubuntu now.
Comment 3 Dr. Sean 2020-04-12 16:57:45 UTC
This crash appears to be a buffer overflow when rendering particle effects (8bpp video mode). I believe this was addressed in these three commits, which addresses a buffer overflow condition with our 8bpp translucency table:

https://github.com/odamex/odamex/commit/dc518b0e5e6f543112ac0d022c87428c46fda5b2
https://github.com/odamex/odamex/commit/112452cccd0f1353c66b7689881fb4d23cbd3bbe
https://github.com/odamex/odamex/commit/eb9990841e0a5acc8c8469196403b123b9c9fb80