Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on exit #7

Closed
motorsep opened this issue Dec 23, 2012 · 4 comments
Closed

Segfault on exit #7

motorsep opened this issue Dec 23, 2012 · 4 comments

Comments

@motorsep
Copy link

Ubuntu 12.04 64-bit SDL1

[Thread 0x7fffeeaa4700 (LWP 2955) exited]
[Thread 0x7fffef2a5700 (LWP 2954) exited]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000b11c62 in idStrPool::FreeString (this=0x1627480, poolStr=0x2980d40)
at /home/motorsep/games/RBDOOM-3-BFG/neo/idlib/../idlib/containers/StrPool.h:200
200 delete pool[i];

Backtrace:
#0 0x0000000000b11c62 in idStrPool::FreeString (this=0x1627480,

poolStr=0x2980d40)
at /home/motorsep/games/RBDOOM-3-BFG/neo/idlib/../idlib/containers/StrPool.h:200

#1 0x0000000000b14483 in FreeString (poolStr=, this=0x1627480)

at /home/motorsep/games/RBDOOM-3-BFG/neo/idlib/../idlib/containers/StrPool.h:175

#2 idDict::Clear (this=0x161f1f8)

at /home/motorsep/games/RBDOOM-3-BFG/neo/idlib/Dict.cpp:233

#3 0x0000000000af93ee in ~idDict (this=0x161f1f8, __in_chrg=)

at /home/motorsep/games/RBDOOM-3-BFG/neo/sys/../idlib/../idlib/Dict.h:224

#4 idSessionLocal::~idSessionLocal (this=0x161b320, __in_chrg=)

at /home/motorsep/games/RBDOOM-3-BFG/neo/sys/sys_session_local.cpp:138

#5 0x00007ffff665f901 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#6 0x00007ffff665f985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#7 0x0000000000b03c2b in Posix_Exit (ret=0)

at /home/motorsep/games/RBDOOM-3-BFG/neo/sys/posix/posix_main.cpp:118

#8 0x0000000000b03c8b in Sys_Quit ()

at /home/motorsep/games/RBDOOM-3-BFG/neo/sys/posix/posix_main.cpp:172

#9 0x0000000000a04a6d in idMenuHandler_Shell::idSWFScriptFunction_QuitDialog::Call (this=0x58e2860, thisObject=, parms=...)

at /home/motorsep/games/RBDOOM-3-BFG/neo/d3xp/menus/MenuHandler_Shell.cpp:939

#10 0x00000000007a9650 in idSWFScriptFunction_Script::Run (

this=<optimized out>, thisObject=0x36e14a0, stack=..., bitstream=...)
at /home/motorsep/games/RBDOOM-3-BFG/neo/swf/SWF_ScriptFunction.cpp:1011

#11 0x00000000007ab6ec in idSWFScriptFunction_Script::Call (this=0x49613f0,

thisObject=0x36e14a0, parms=...)
at /home/motorsep/games/RBDOOM-3-BFG/neo/swf/SWF_ScriptFunction.cpp:250

#12 0x00000000007bf0a2 in idSWF::HandleEvent (this=0x3692250,

event=0x7fffffffdaa0)
at /home/motorsep/games/RBDOOM-3-BFG/neo/swf/SWF_Events.cpp:287

#13 0x00000000005d62c0 in idCommonDialog::HandleDialogEvent (

this=<optimized out>, sev=<optimized out>)
at /home/motorsep/games/RBDOOM-3-BFG/neo/framework/Common_dialog.cpp:1569

#14 0x00000000005c32d8 in idCommonLocal::ProcessEvent (this=0xdabe80,

event=0x7fffffffdaa0)
at /home/motorsep/games/RBDOOM-3-BFG/neo/framework/Common.cpp:1691

#15 0x00000000005fc247 in idEventLoop::ProcessEvent (this=,

ev=...)
at /home/motorsep/games/RBDOOM-3-BFG/neo/framework/EventLoop.cpp:186

#16 0x00000000005fc406 in idEventLoop::RunEventLoop (this=0xdcd240,

commandExecution=<optimized out>)
at /home/motorsep/games/RBDOOM-3-BFG/neo/framework/EventLoop.cpp:221

#17 0x00000000005d840c in idCommonLocal::Frame (this=0xdabe80)

at /home/motorsep/games/RBDOOM-3-BFG/neo/framework/common_frame.cpp:473

#18 0x0000000000b109bd in main (argc=, argv=)

at /home/motorsep/games/RBDOOM-3-BFG/neo/sys/linux/linux_main.cpp:689
@DanielGibson
Copy link

I've already fixed that in https://github.com/DanielGibson/DOOM-3-BFG/commits/clang

Feel free to test it (or more specifically DanielGibson@cca3053 )

@motorsep
Copy link
Author

Perhaps, but I am reporting it as it wasn't fixed in RBDoom3-BFG ;)

@motorsep
Copy link
Author

Ok, works with Daniel's patch.

@RobertBeckebans
Copy link
Owner

Patch merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants