Created
January 13, 2013 19:31
-
-
Save bgamari/4525799 to your computer and use it in GitHub Desktop.
`std::vector` allocation failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#0 abort () at gcc4mbed/src/gcc4mbed.c:87 | |
#1 0x0001ffb8 in operator new(unsigned int) () | |
#2 0x0000a2c0 in allocate (__n=<optimized out>, this=<optimized out>) | |
at /home/ben/reprap/repos/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/ext/new_allocator.h:92 | |
#3 _M_allocate (__n=<optimized out>, this=<optimized out>) | |
at /home/ben/reprap/repos/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/stl_vector.h:150 | |
#4 std::vector<Gcode, std::allocator<Gcode> >::_M_insert_aux<Gcode const&>(__gnu_cxx::__normal_iterator<Gcode*, std::vector<Gcode, std::allocator<Gcode> > >, Gcode const&&&) (this=0x10005600, __position=...) | |
at /home/ben/reprap/repos/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/vector.tcc:324 | |
#5 0x0000a504 in push_back (__x=..., this=0x10005600) | |
at /home/ben/reprap/repos/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/stl_vector.h:834 | |
#6 Block::append_gcode (this=0x100055e8, gcode=0x10007ce8) | |
at src/modules/robot/Block.cpp:176 | |
#7 0x00005a78 in Kernel::call_event (this=0x100020e8, | |
id_event=<optimized out>, argument=0x10007ce8) at src/libs/Kernel.cpp:142 | |
#8 0x0000988c in GcodeDispatch::on_console_line_received (this=0x10002cd0, | |
line=<optimized out>) at src/modules/communication/GcodeDispatch.cpp:119 | |
#9 0x00005a78 in Kernel::call_event (this=0x100020e8, | |
id_event=<optimized out>, argument=0x10007d60) at src/libs/Kernel.cpp:142 | |
#10 0x00009b18 in on_main_loop (this=0x100029d8, argument=<optimized out>) | |
at src/modules/communication/SerialConsole.cpp:60 | |
#11 SerialConsole::on_main_loop (this=0x100029d8, argument=<optimized out>) | |
at src/modules/communication/SerialConsole.cpp:50 | |
#12 0x00005a1a in Kernel::call_event (this=0x100020e8, | |
id_event=<optimized out>) at src/libs/Kernel.cpp:133 | |
#13 0x00004748 in main () at src/main.cpp:153 | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{{
Remote debugging using /dev/ttyUSB0
tick (this=0x1) at src/libs/StepTicker.cpp:86
86 this->active_motors[i]->tick();
(gdb) c
Continuing.
Hard Fault
Status Register: 0x40000000
Forced
Bus Fault
Status Register: 0x04
Imprecise Data Access
Program received signal SIGSEGV, Segmentation fault.
0x0001fb08 in __malloc_unlock ()
(gdb) bt
#0 0x0001fb08 in __malloc_unlock ()
#1 0x0001fa50 in _malloc_r ()
#2 0x0001c930 in operator new(unsigned int) ()
#3 0x00009520 in allocate (__n=, this=)
#4 _M_allocate (__n=, this=)
#5 std::vector<Gcode, std::allocator >::_M_insert_aux<Gcode const&>(__gnu_cxx::__normal_iterator<Gcode*, std::vector<Gcode, std::allocator > >, Gcode const&&&) (this=0x10005158, __position=...)
#6 0x00009764 in push_back (__x=..., this=0x10005158)
#7 Block::append_gcode (this=0x10005140, gcode=0x10007ce8)
#8 0x00005680 in Kernel::call_event (this=0x10001600,
#9 0x00008a50 in GcodeDispatch::on_console_line_received (this=0x100021e8,
#10 0x00005680 in Kernel::call_event (this=0x10001600,
#11 0x00008d58 in on_main_loop (this=0x10001ef0, argument=)
#12 SerialConsole::on_main_loop (this=0x10001ef0, argument=)
#13 0x00005622 in Kernel::call_event (this=0x10001600,
#14 0x000044c6 in main () at src/main.cpp:153
(gdb)
}}}