(gdb) info stack
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xa7cd8fee in pthread_exit () from /lib/tls/i686/cmov/libc.so.6
#2 0xa7b59a6d in SDL_GetThreadID () from /usr/lib/libSDL-1.2.so.0
#3 0xa7b59abc in SDL_WaitThread () from /usr/lib/libSDL-1.2.so.0
#4 0xa7b5091d in SDL_AudioQuit () from /usr/lib/libSDL-1.2.so.0
#5 0xa7b4fe6c in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#6 0xa7b4fece in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#7 0xa7b5071d in SDL_Error () from /usr/lib/libSDL-1.2.so.0
#8 <signal handler called>
#9 0xa7c668b0 in free () from /lib/tls/i686/cmov/libc.so.6
#10 0xa7c6883f in malloc () from /lib/tls/i686/cmov/libc.so.6
#11 0xa7e14b38 in operator new () from /usr/lib/libstdc++.so.6
#12 0x081bedf7 in __gnu_cxx::new_allocator<std::_List_node<scriptevent> >::allocate (this=0x832a524, __n=1)
at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:88
#13 0x081bee1b in std::_List_base<scriptevent, std::allocator<scriptevent> >::_M_get_node (this=0x832a524)
at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:316
#14 0x081c07dc in std::list<scriptevent, std::allocator<scriptevent> >::_M_create_node (this=0x832a524, __x=@0xafdb9768)
at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_---Type <return> to continue, or q <return> to quit---
list.h:448
#15 0x081c2ffe in std::list<scriptevent, std::allocator<scriptevent> >::_M_insert (this=0x832a524, __position={_M_node = 0x832a524}, __x=@0xafdb9768)
at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:1139
#16 0x081c304c in std::list<scriptevent, std::allocator<scriptevent> >::push_back (this=0x832a524, __x=@0xafdb9768)
at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:761
#17 0x081ba334 in World::queueScript (this=0x832a520, event=9,
agent=@0xafdb97fc, from=@0xafdb97f4, p0=@0xafdb97e8, p1=@0xafdb97dc)
at World.cpp:128
#18 0x08052521 in Agent::queueScript (this=0x9dd7918, event=9,
from=@0xafdb9858, p0=@0xafdb984c, p1=@0xafdb9840) at Agent.cpp:244
#19 0x08052fae in Agent::tick (this=0x9dd7918) at Agent.cpp:503
#20 0x081b409d in SimpleAgent::tick (this=0x9dd7918) at SimpleAgent.cpp:48
#21 0x081b9eaf in World::tick (this=0x832a520) at World.cpp:171
#22 0x081c52e2 in main (argc=1, argv=0xafdba694) at main.cpp:204