{"issue":{"state":"open","created_at":"2011-12-06T01:41:49Z","updated_at":"2011-12-06T01:41:49Z","user":{"gravatar_id":"e3432383ab44c75369649bdd94b60bfd","id":138484,"url":"https://api.github.com/users/phire","login":"phire","avatar_url":"https://secure.gravatar.com/avatar/e3432383ab44c75369649bdd94b60bfd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"This is not very reproducible. It seamed to happen 2 out of 15 times when I approached the guy on the bench  right near the start of mars_city1. \r\n\r\n64bit cmake build, revision 9d762e736d7fdaa659f0a00f087a8ee0b74970bb\r\n\r\nBacktrace (entry 15 contains the first segfault):\r\n\r\n\r\n\t(gdb) bt\r\n\t#0  0x00000000005c9c5f in idBlockAlloc<idSampleDecoderLocal, 64>::Shutdown (\r\n\t    this=0x18400e0)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/../idlib/../idlib/Heap.h:227\r\n\t#1  0x00000000005ca780 in idBlockAlloc<idSampleDecoderLocal, 64>::~idBlockAlloc\r\n\t    (this=0x18400e0, __in_chrg=<optimized out>)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/../idlib/../idlib/Heap.h:193\r\n\t#2  0x00007ff98af794b1 in ?? () from /lib/libc.so.6\r\n\t#3  0x00007ff98af79535 in exit () from /lib/libc.so.6\r\n\t#4  0x0000000000636b9d in Posix_Exit (ret=11)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sys/posix/posix_main.cpp:101\r\n\t#5  0x0000000000638be9 in sig_handler (signum=11, info=0x7fff59cb1bb0, \r\n\t    context=0x7fff59cb1a80)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sys/posix/posix_signal.cpp:100\r\n\t#6  <signal handler called>\r\n\t#7  0x00000000005c9c5f in idBlockAlloc<idSampleDecoderLocal, 64>::Shutdown (\r\n\t    this=0x18400e0)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/../idlib/../idlib/Heap.h:227\r\n\t#8  0x00000000005c8ea8 in idSampleDecoder::Shutdown ()\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/snd_decoder.cpp:331\r\n\t#9  0x00000000005d1eb6 in idSoundSystemLocal::Shutdown (this=0x1840ee0)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/snd_system.cpp:486\r\n\t#10 0x00000000004e1406 in idCommonLocal::ShutdownGame (this=0xd65b40, \r\n\t    reloading=false)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Common.cpp:3072\r\n\t#11 0x00000000004e0bd7 in idCommonLocal::Shutdown (this=0xd65b40)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Common.cpp:2881\r\n\t#12 0x00000000004d9188 in idCommonLocal::Quit (this=0xd65b40)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Common.cpp:786\r\n\t#13 0x0000000000638c6a in sig_handler (signum=11, info=0x7fff59cb21b0, \r\n\t    context=0x7fff59cb2080)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sys/posix/posix_signal.cpp:120\r\n\t#14 <signal handler called>\r\n\t#15 0x00000000005c9ebc in idBlockAlloc<idSampleDecoderLocal, 64>::Alloc (\r\n\t    this=0x18400e0)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/../idlib/../idlib/Heap.h:210\r\n\t#16 0x00000000005c8ebc in idSampleDecoder::Alloc ()\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/snd_decoder.cpp:340\r\n\t#17 0x00000000005cbd4f in idSoundChannel::Start (this=0x16097110)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/snd_emitter.cpp:202\r\n\t#18 0x00000000005cdae4 in idSoundEmitterLocal::StartSound (this=0x160970b0, \r\n\t    shader=0xb8ef5d0, channel=0, diversity=0.928833008, soundShaderFlags=0, \r\n\t    allowSlow=true)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sound/snd_emitter.cpp:838\r\n\t#19 0x00007ff97e0a6933 in idEntity::StartSoundShader (this=0xce7acd4, \r\n\t    shader=0xb8ef5d0, channel=0, soundShaderFlags=0, broadcast=false, \r\n\t    length=0x0)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/game/Entity.cpp:1605\r\n\t#20 0x00007ff97e0c25c4 in idEntityFx::Run (this=0xce7acd4, time=111360)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/game/Fx.cpp:446\r\n\t#21 0x00007ff97e0c3425 in idEntityFx::Think (this=0xce7acd4)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/game/Fx.cpp:606\r\n\t#22 0x00007ff97e0d18d1 in idGameLocal::RunFrame (this=0x7ff97e630cc0, \r\n\t    clientCmds=0x7fff59cb3880)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/game/Game_local.cpp:2269\r\n\t#23 0x000000000053a64a in idSessionLocal::RunGameTic (this=0xdf6520)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Session.cpp:2777\r\n\t#24 0x000000000053a34b in idSessionLocal::Frame (this=0xdf6520)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Session.cpp:2723\r\n\t#25 0x00000000004dfe0f in idCommonLocal::Frame (this=0xd65b40)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/framework/Common.cpp:2465\r\n\t#26 0x000000000063a521 in main (argc=1, argv=0x7fff59cb3ac8)\r\n\t    at /home/phire/projects/doom3/doom3.gpl/neo/sys/linux/main.cpp:578\r\n\r\n\r\nIt looks like the block/free lists are getting corrupted.","assignee":null,"id":2457532,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":15,"title":"Double segfault in id custom heap allocator.","html_url":"https://github.com/phire/doom3.gpl/issues/15","closed_at":null,"url":"https://api.github.com/repos/phire/doom3.gpl/issues/15","milestone":null},"action":"opened"}