Skip to content

Instantly share code, notes, and snippets.

View wolfmanjm's full-sized avatar

Jim Morris wolfmanjm

View GitHub Profile
> ty gdb.txt
#0 on_block_begin (argument=0x0, this=0x10004258) at src/modules/robot/Stepper.cpp:126
#1 Stepper::on_block_begin (this=0x10004258, argument=0x0) at src/modules/robot/Stepper.cpp:112
#2 0x00005c1a in Kernel::call_event (this=<optimized out>, id_event=<optimized out>, argument=0x0) at src/libs/Kernel.cpp:117
#3 0x0000ad62 in Block::release (this=<optimized out>) at src/modules/robot/Block.cpp:213
#4 0x0000e248 in stepper_motor_finished_move (this=<optimized out>, dummy=<optimized out>) at src/modules/robot/Stepper.cpp:166
#5 Stepper::stepper_motor_finished_move (this=<optimized out>, dummy=<optimized out>) at src/modules/robot/Stepper.cpp:159
#6 0x00006cca in call (this=<optimized out>) at ./src/libs/FPointer.h:151
#7 call (this=<optimized out>) at src/libs/StepperMotor.cpp:77
#8 StepperMotor::signal_move_finished (this=0x100040b8) at src/libs/StepperMotor.cpp:84
@wolfmanjm
wolfmanjm / gist:4976414
Created February 18, 2013 10:17
crash while playing large object
Remote debugging using /dev/ttyUSB0
abort () at gcc4mbed/src/gcc4mbed.c:88
88 __debugbreak();
(gdb) set pagination off
(gdb) set logging on
Copying output to gdb.txt.
(gdb) bt
#0 abort () at gcc4mbed/src/gcc4mbed.c:88
#1 0x00024830 in operator new(unsigned int) ()
#2 0x00024124 in std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) ()
#0 abort () at gcc4mbed/src/gcc4mbed.c:88
#1 0x00024830 in operator new(unsigned int) ()
#2 0x00024124 in std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) ()
#3 0x00024302 in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned int) ()
#4 0x0002434a in std::string::assign(std::string const&) ()
#5 0x0000a1fa in operator= (__str=..., this=0x10007ef0) at /home/morris/work/reprap/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/basic_string.h:542
#6 GcodeDispatch::on_console_line_received (this=0x10002420, line=<optimized out>) at src/modules/communication/GcodeDispatch.cpp:87
#7 0x00005c02 in Kernel::call_event (this=<optimized out>, id_event=<optimized out>, argument=0x10007f78) at src/libs/Kernel.cpp:117
#8 0x0001e7ec in on_main_loop (this=0x10004d38, argument=<optimized out>) at src/modules/utils/simpleshell/SimpleShell.cpp:243
#9 SimpleShell::on_main_loop (this=0x10004d38, argum
#0 0x0000b69e in on_idle (this=0x10004478, argument=<optimized out>) at src/modules/robot/Player.cpp:42
#1 Player::on_idle (this=0x10004478, argument=<optimized out>) at src/modules/robot/Player.cpp:32
#2 0x00005b38 in Kernel::call_event (this=0x10001c20, id_event=<optimized out>) at src/libs/Kernel.cpp:111
#3 0x0000b83a in Player::wait_for_queue (this=0x10004478, free_blocks=<optimized out>) at src/modules/robot/Player.cpp:128
#4 0x0000b2c0 in Planner::append_block (this=0x10004390, target=0x10007d84, feed_rate=3600, distance=0.48979426305168172, deltas=0x10007d68) at src/modules/robot/Planner.cpp:44
#5 0x0000d3e6 in Robot::append_milestone (this=0x10003fc8, target=0x10007db8, rate=60) at src/modules/robot/Robot.cpp:253
#6 0x0000d54e in Robot::append_line (this=0x10003fc8, gcode=<optimized out>, target=0x10007e28, rate=60) at src/modules/robot/Robot.cpp:286
#7 0x0000dccc in Robot::execute_gcode (this=0x10003fc8, gcode=0x100075e0) at src/modules/robot/Robot.cpp:219
#8 0x0000e15e in Robot::on_gcode_re
This file has been truncated, but you can view the full file.
G92
G90
G21
M83
G1 F1800.000 E-1.00000
G1 Z0.250 F3600.000
G1 X73.110 Y103.906
G1 F1800.000 E1.00000
G1 X71.820 Y104.736 F2400.000 E0.04487
G1 X71.290 Y105.016 E0.01753
#0 0x10007d3c in ?? ()
#1 0x00024f94 in char* std::string::_S_construct<char*>(char*, char*, std::allocator<char> const&, std::forward_iterator_tag) ()
#2 0x10007d04 in ?? ()
#3 0x10007d04 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
58
59 GPIO leds[5] = {
60 GPIO(P1_18),
61 GPIO(P1_19),
62 GPIO(P1_20),
#0 0x000276f8 in _free_r ()
#1 0x0000af2e in on_idle (this=0x10004490, argument=<optimized out>) at src/modules/robot/Conveyor.cpp:42
#2 Conveyor::on_idle (this=0x10004490, argument=<optimized out>) at src/modules/robot/Conveyor.cpp:32
#3 0x00005b48 in Kernel::call_event (this=0x10001de8, id_event=<optimized out>) at src/libs/Kernel.cpp:111
#4 0x0000b0c6 in Conveyor::wait_for_queue (this=0x10004490, free_blocks=<optimized out>) at src/modules/robot/Conveyor.cpp:128
#5 0x0000bdc0 in Planner::append_block (this=0x100043a8, target=0x10007d8c, feed_rate=1500, distance=0.49513558557228182, deltas=0x10007d70) at src/modules/robot/Planner.cpp:44
#6 0x0000d44e in Robot::append_milestone (this=0x10003fe0, target=0x10007dc0, rate=25) at src/modules/robot/Robot.cpp:253
#7 0x0000d5b6 in Robot::append_line (this=0x10003fe0, gcode=<optimized out>, target=0x10007e30, rate=25) at src/modules/robot/Robot.cpp:286
#8 0x0000dd34 in Robot::execute_gcode (this=0x10003fe0, gcode=0x10007b18) at src/modules/robot/Robot.cpp:2
#0 0x000276fe in _free_r ()
#1 0x00015552 in _M_dispose (__a=..., this=<optimized out>) at /home/morris/work/reprap/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/basic_string.h:244
#2 ~basic_string (this=0x10007f8c, __in_chrg=<optimized out>) at /home/morris/work/reprap/Smoothie/gcc4mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/c++/4.6.2/bits/basic_string.h:534
#3 USBSerial::on_main_loop (this=0x10000be8, argument=<optimized out>) at src/libs/USBDevice/USBSerial/USBSerial.cpp:263
#4 0x00005b5c in Kernel::call_event (this=0x10001de8, id_event=<optimized out>) at src/libs/Kernel.cpp:111
#5 0x000046f4 in main () at src/main.cpp:106
58
59 GPIO leds[5] = {
60 GPIO(P1_18),
61 GPIO(P1_19),
#0 abort () at gcc4mbed/src/gcc4mbed.cpp:172
#1 0x000200e6 in operator new (size=0) at gcc4mbed/src/gcc4mbed.cpp:347
#2 0x000200e6 in operator new (size=0) at gcc4mbed/src/gcc4mbed.cpp:347
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
167
168
169 extern "C" void abort(void)
170 {
171 if (MRI_ENABLE)
172 __debugbreak();
arm_solution rostock # same as rostock for now
alpha_angle 30.0 # this provides an optional offset from the alpha tower to the x/y system
beta_relative_angle 120.0 # this is the angle in degrees from the alpha tower to the beta tower
gamma_relative_angle 240.0 # this is the angle in degrees from the alpha tower to the gamma tower
arm_length 430.0 # this is the length of an arm from hinge to hinge
arm_radius 197.19 # this is the horiontal distance from hinge to hinge when the effector is centered
# Robot module configurations : general handling of movement G-codes and slicing into moves