Tue 01 Apr 2008 06:47:19 AM UTC, original submission:
Got the following with -test-games-nox. I thought I'd make a ticket so it doesn't get lost.
------------
------------
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Program received signal SIGABRT, Aborted.
[Switching to Thread -1229031696 (LWP 5423)]
0xffffe410 in __kernel_vsyscall ()
Current language: auto; currently c
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7af0ec5 in raise () from /lib/i686/libc.so.6
#2 0xb7af2921 in abort () from /lib/i686/libc.so.6
#3 0xb7cf3750 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
#4 0xb7cf0fd5 in __cxa_pure_virtual () from /usr/lib/libstdc++.so.6
#5 0xb7cf1012 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb7cf113a in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb7cf176e in operator new () from /usr/lib/libstdc++.so.6
#8 0x080821fe in __gnu_cxx::new_allocator<int>::allocate (this=0xbf9c7aa0,
__n=536870912)
at /usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../../include/c++/4.2.2/ext/new_allocator.h:91
#9 0x08082222 in std::_Vector_base<int, std::allocator<int> >::_M_allocate (
this=0xbf9c7aa0, __n=536870912)
at /usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../../include/c++/4.2.2/bits/stl_vector.h:128
#10 0x080876d5 in std::vector<int, std::allocator<int> >::_M_insert_aux (
this=0xbf9c7aa0, __position={_M_current = 0x4c17b008}, __x=@0xbf9c7a84)
at /usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../../include/c++/4.2.2/bits/vector.tcc:271
#11 0x080878b5 in std::vector<int, std::allocator<int> >::push_back (
---Type <return> to continue, or q <return> to quit---
this=0xbf9c7aa0, __x=@0xbf9c7a84)
at /usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../../include/c++/4.2.2/bits/stl_vector.h:605
#12 0x0808d7f7 in NewNicowar::compute_defense_flag_positioning (this=0x84a6328,
echo=@0x84840e8) at src/AINicowar.cpp:2109
#13 0x0809d2b5 in NewNicowar::tick (this=0x84a6328, echo=@0x84840e8)
at src/AINicowar.cpp:406
#14 0x08072632 in AIEcho::Echo::getOrder (this=0x84840e8) at src/AIEcho.cpp:4952
#15 0x0805a654 in AI::getOrder (this=0x83fb108, paused=false) at src/AI.cpp:108
#16 0x080e22a1 in Engine::run (this=0xbf9c7df8) at src/Engine.cpp:304
#17 0x0812d760 in Glob2::runTestGames (this=0xbf9f58a3) at src/Glob2.cpp:142
#18 0x0812dbd4 in Glob2::run (this=0xbf9f58a3, argc=2, argv=0xbf9f5944)
at src/Glob2.cpp:174
#19 0x0812e3b5 in main (argc=Cannot access memory at address 0x152f
) at src/Glob2.cpp:337
(gdb) frame 12
#12 0x0808d7f7 in NewNicowar::compute_defense_flag_positioning (this=0x84a6328,
echo=@0x84840e8) at src/AINicowar.cpp:2109
2109 flagLocations.push_back(maxPos);
Current language: auto; currently c++
(gdb) print max
$1 = 4
(gdb)
|