View Issue Details

IDProjectCategoryView StatusLast Update
0003579The Dark ModSaving/Loadingpublic14.05.2016 20:24
Reporterdolanor Assigned Totaaaki  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04
Product VersionTDM 2.00 
Target VersionTDM 2.04Fixed in VersionTDM 2.04 
Summary0003579: thedarkmod.x86 crash on exit every time
DescriptionI just downloaded the game from bittorrent.
I created the darkmod folder as needed, I launch the executable in the folder, and when I quit from the main menu GUI, it core dumps.
Here is the backtrace from the core.

(gdb) bt
#0 0x08373110 in idStr::FreeData() ()
0000001 0xb72a7f51 in ?? () from /lib/i386-linux-gnu/libc.so.6
0000002 0xb72a7fdd in exit () from /lib/i386-linux-gnu/libc.so.6
0000003 0x082a4028 in Posix_Exit(int) ()
0000004 0x082a40cf in Sys_Quit() ()
0000005 0x080ba648 in idSessionLocal::HandleMainMenuCommands(char const*) ()
0000006 0x080bc11c in T.1525 ()
0000007 0x080bdaee in idSessionLocal::ProcessEvent(sysEvent_s const*) ()
#8 0x08095e8e in idEventLoop::RunEventLoop(bool) ()
0000009 0x0805c450 in idCommonLocal::Frame() ()
0000010 0x082a63dd in main ()
Steps To Reproduce* Launch the game
* On the main menu screen, hit quit then yes
TagsNo tags attached.

Activities

taaaki

taaaki

01.06.2014 19:23

administrator   ~0006647

Temporary fix committed in darkmod_src r6025. On exit, a double free of an idStr is being attempted, leading to the segfault (out of bounds). An additional check was added to the Heap.h to catch this.

Still need to investigate further as the idStr is originally freed on exit from its scope. Not sure why it still exists when exiting the game (due to the earlier call the destructor, it is now out of bounds).

Issue History

Date Modified Username Field Change
16.10.2013 19:17 dolanor New Issue
02.11.2013 23:45 taaaki Assigned To => taaaki
02.11.2013 23:45 taaaki Status new => assigned
01.06.2014 19:16 taaaki Target Version => TDM 2.02
01.06.2014 19:20 taaaki Target Version TDM 2.02 => TDM 2.03
01.06.2014 19:23 taaaki Note Added: 0006647
08.12.2014 19:04 grayman Target Version TDM 2.03 => TDM 2.04
14.05.2016 20:24 taaaki Status assigned => resolved
14.05.2016 20:24 taaaki Fixed in Version => TDM 2.04
14.05.2016 20:24 taaaki Resolution open => fixed