Skip to content

Instantly share code, notes, and snippets.

@wjwwood
Created January 27, 2012 22:51
Show Gist options
  • Select an option

  • Save wjwwood/1691394 to your computer and use it in GitHub Desktop.

Select an option

Save wjwwood/1691394 to your computer and use it in GitHub Desktop.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
`/Users/william/devel/atrv_ws/mdc2250/lib/libmdc2250.dylib' has changed; re-reading symbols.
`/Users/william/devel/atrv_ws/mdc2250/bin/mdc2250_example' has changed; re-reading symbols.
Starting program: /Users/william/devel/atrv_ws/mdc2250/bin/mdc2250_example
Re-enabling shared library breakpoint 1
Unparsed token(12): Starting ...
Unparsed token(3): ?FF
MDC2250 Info: Estop is disabled.
Unparsed token(8): ^ECHOF 0
Unparsed token(6): ~ECHOF
MDC2250 Info: Echo is enabled.
MDC2250 Info: Connected to device Roboteq v1.2 RCB400 09/05/2011 with control unit RCB400 and controller model MDC2250.
Unparsed token(6): ~ECHOF
MDC2250 Info: Echo is enabled.
Breakpoint 1, mdc2250::MDC2250::setTelemetry (this=0x7fff5fbfede0, telemetry_queries=@0x7fff5fbff178, period=140734799801824, callback=@0x7fff5fbfede0) at mdc2250.cc:298
298 std::string fail_why;
(gdb) c
Continuing.
Breakpoint 1, mdc2250::MDC2250::setTelemetry (this=0x7fff5fbfede0, telemetry_queries=@0x7fff5fbff1a8, period=140734799801824, callback=@0x7fff5fbfede0) at mdc2250.cc:298
298 std::string fail_why;
(gdb) c
Continuing.
mdc2250_example(1777,0x7fff785ed960) malloc: *** error for object 0x100202548: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Program received signal SIGABRT, Aborted.
0x00007fff8fb0cce2 in __pthread_kill ()
(gdb) bt
#0 0x00007fff8fb0cce2 in __pthread_kill ()
#1 0x00007fff904d77d2 in pthread_kill ()
#2 0x00007fff904c8a7a in abort ()
#3 0x00007fff904ea4ac in szone_error ()
#4 0x00007fff904ea4e8 in free_list_checksum_botch ()
#5 0x00007fff904f1463 in tiny_malloc_from_free_list ()
#6 0x00007fff904f200e in szone_malloc_should_clear ()
#7 0x00007fff905273c8 in malloc_zone_malloc ()
#8 0x00007fff905281a4 in malloc ()
#9 0x00007fff9084668e in operator new ()
#10 0x0000000100033a73 in std::_Deque_base<std::string, std::allocator<std::string> >::_M_initialize_map (this=0x100202238, __num_elements=140734799799008) at serial_listener.cc:441
#11 0x0000000100033be5 in std::_Deque_iterator<std::string, std::string&, std::string*>::_Deque_iterator () at /Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/bits/stl_deque.h:385
#12 0x0000000100033be5 in std::deque<std::string, std::allocator<std::string> >::deque (this=0x100202238, __x=@0x7fff5fbfe3f8) at stl_deque.h:708
#13 0x00000001000351a1 in std::deque<std::string, std::allocator<std::string> >::deque () at /Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/bits/stl_deque.h:219
#14 std::queue<std::string, std::deque<std::string, std::allocator<std::string> > >::queue () at /Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/bits/stl_queue.h:135
#15 0x00000001000351a1 in serial::ConcurrentQueue<std::string>::ConcurrentQueue (this=0x100202238) at stl_deque.h:219
#16 0x0000000100035520 in serial::BufferedFilter::BufferedFilter (this=0x10015a000, comparator=@0x7fff5fbfe538, buffer_size=6159910815399936, listener=@0x7fff5fbfeec8) at serial_listener.h:839
#17 0x000000010002c1da in serial::SerialListener::createBufferedFilter (this=0x7fff5fbfdf78, comparator=@0x15e26800000000, buffer_size=6159910815399936) at serial_listener.h:838
#18 0x00000001000960e5 in boost::function<bool ()(std::string const&)>::~function () at mdc2250.cc:433
#19 0x00000001000960e5 in boost::function1<bool, std::string const&>::~function1 () at mdc2250.cc:433
#20 0x00000001000960e5 in boost::function1<bool, std::string const&>::clear () at /usr/local/Cellar/boost/1.48.0/include/boost/function/function_template.hpp:33
#21 0x00000001000960e5 in mdc2250::MDC2250::_issueCommand (this=0x10015a000, command=@0x7fff5fbfec80, failure_reason=@0x7fff5fbfec68, cmd_type=@0x0) at mdc2250.cc:752
#22 0x000000010009839f in mdc2250::MDC2250::setTelemetry (this=0x7fff5fbfede0, telemetry_queries=@0x7fff5fbff1a8, period=140734799801824, callback=@0x7fff5fbfede0) at mdc2250.cc:299
#23 0x0000000100002e2a in run () at mdc2250_example.cc:20
#24 0x000000010000334e in main () at mdc2250_example.cc:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment