Skip to content

Instantly share code, notes, and snippets.

@wjwwood
Created March 5, 2011 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjwwood/856757 to your computer and use it in GitHub Desktop.
Save wjwwood/856757 to your computer and use it in GitHub Desktop.
This is the backtrace form gdb of rviz running on my macbook pro.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
Ogre::RenderSystem::attachRenderTarget (this=0x118012568, target=@0x0) at /Users/william/ros/diamondback/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreRenderSystem.cpp:235
235 assert( target.getPriority() < OGRE_NUM_RENDERTARGET_GROUPS );
(gdb) thread apply all bt full
Thread 8 (process 80339):
#0 0x00007fff84188fca in __semwait_signal ()
No symbol table info available.
#1 0x00007fff8418cde1 in _pthread_cond_wait ()
No symbol table info available.
#2 0x00000001003bafc4 in boost::condition_variable::timed_wait (this=0x10700ee80, m=@0x117780e10, wait_until=@0x117780e30) at condition_variable.hpp:64
timeout = {
tv_sec = 1299362687,
tv_nsec = 975735000
}
cond_res = <value temporarily unavailable, due to optimizations>
#3 0x00000001015b5669 in ros::CallbackQueue::callAvailable (this=0x10700ede0, timeout=@0x186a0) at condition_variable_fwd.hpp:68
wait_duration = (const microseconds &) Cannot access memory at address 0x0
Thread 7 (process 80339):
#0 0x00007fff84188fca in __semwait_signal ()
No symbol table info available.
#1 0x00007fff8418cde1 in _pthread_cond_wait ()
No symbol table info available.
#2 0x00000001003a2511 in boost::condition_variable::wait (this=0x117603340, m=@0x107303e50) at condition_variable.hpp:53
res = <value temporarily unavailable, due to optimizations>
__func__ = "wait"
#3 0x00000001015ac80d in ros::ROSOutAppender::logThread (this=0x117603260) at /Users/william/ros/diamondback/ros_comm/clients/cpp/roscpp/src/libros/rosout_appender.cpp:135
local_queue = {
<std::_Vector_base<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > >,std::allocator<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > > > >> = {
_M_impl = {
<std::allocator<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > > >> = {
<__gnu_cxx::new_allocator<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > > >> = {<No data fields>}, <No data fields>},
members of std::_Vector_base<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > >,std::allocator<boost::shared_ptr<rosgraph_msgs::Log_<std::allocator<void> > > > >::_Vector_impl:
_M_start = 0x0,
_M_finish = 0x0,
_M_end_of_storage = 0x0
}
}, <No data fields>}
#4 0x000000010180d1f9 in thread_proxy ()
No symbol table info available.
#5 0x00007fff84187536 in _pthread_start ()
No symbol table info available.
#6 0x00007fff841873e9 in thread_start ()
No symbol table info available.
Thread 6 (process 80339):
#0 0x00007fff84191e92 in select$DARWIN_EXTSN ()
No symbol table info available.
#1 0x0000000101790975 in XmlRpc::XmlRpcDispatch::work (this=0x117600520, timeout=0.10000000000000001) at /Users/william/ros/diamondback/ros_comm/utilities/xmlrpcpp/src/XmlRpcDispatch.cpp:110
tv = {
tv_sec = 0,
tv_usec = 100000
}
nEvents = <value temporarily unavailable, due to optimizations>
inFd = {
fds_bits = {0 <repeats 32 times>}
}
outFd = {
fds_bits = {0 <repeats 32 times>}
}
excFd = {
fds_bits = {0 <repeats 32 times>}
}
maxFd = 13
it = <value temporarily unavailable, due to optimizations>
#2 0x000000010154155d in ~unique_lock [inlined] () at /Users/william/ros/diamondback/ros_comm/clients/cpp/roscpp/src/libros/xmlrpc_manager.cpp:256
No locals.
#3 0x000000010154155d in ~unique_lock [inlined] () at /opt/local/include/boost/thread/locks.hpp:403
No locals.
#4 0x000000010154155d in ros::XMLRPCManager::serverThreadFunc (this=0x1176004b0) at /Users/william/ros/diamondback/ros_comm/clients/cpp/roscpp/src/libros/xmlrpc_manager.cpp:256
No locals.
#5 0x000000010180d1f9 in thread_proxy ()
No symbol table info available.
#6 0x00007fff84187536 in _pthread_start ()
No symbol table info available.
#7 0x00007fff841873e9 in thread_start ()
No symbol table info available.
Thread 5 (process 80339):
#0 0x00007fff841d11a6 in poll ()
No symbol table info available.
#1 0x00000001014f513c in ros::PollSet::update (this=0x117601340, poll_timeout=100) at /Users/william/ros/diamondback/ros_comm/clients/cpp/roscpp/src/libros/poll_set.cpp:202
ret = <value temporarily unavailable, due to optimizations>
__PRETTY_FUNCTION__ = "void ros::PollSet::update(int)"
loc = {
initialized_ = false,
logger_enabled_ = false,
level_ = ros::console::levels::Count,
logger_ = 0x0
}
#2 0x00000001015450bd in ros::PollManager::threadFunc (this=0x117601340) at /Users/william/ros/diamondback/ros_comm/clients/cpp/roscpp/src/libros/poll_manager.cpp:95
No locals.
#3 0x000000010180d1f9 in thread_proxy ()
No symbol table info available.
#4 0x00007fff84187536 in _pthread_start ()
No symbol table info available.
#5 0x00007fff841873e9 in thread_start ()
No symbol table info available.
Thread 4 (process 80339):
#0 0x00007fff841afe5e in __sigwait ()
No symbol table info available.
#1 0x00007fff841afe37 in sigwait ()
No symbol table info available.
#2 0x000000010001020c in rviz::VisualizerApp::signalHandler (this=0x105159aa0) at /Users/william/ros/diamondback/visualization/rviz/src/rviz/visualizer_app.cpp:289
sig = 88081440
signal_set = 4294967295
#3 0x00000001003b5a49 in thread_proxy (param=<value temporarily unavailable, due to optimizations>) at libs/thread/src/pthread/thread.cpp:121
No locals.
#4 0x00007fff84187536 in _pthread_start ()
No symbol table info available.
#5 0x00007fff841873e9 in thread_start ()
No symbol table info available.
Thread 3 (process 80339):
#0 0x00007fff84167f8a in __workq_kernreturn ()
No symbol table info available.
#1 0x00007fff8416839c in _pthread_wqthread ()
No symbol table info available.
#2 0x00007fff84168005 in start_wqthread ()
No symbol table info available.
Thread 2 (process 80339):
#0 0x00007fff8416716a in kevent ()
No symbol table info available.
#1 0x00007fff8416903d in _dispatch_mgr_invoke ()
No symbol table info available.
#2 0x00007fff84168d14 in _dispatch_queue_invoke ()
No symbol table info available.
#3 0x00007fff8416883e in _dispatch_worker_thread2 ()
No symbol table info available.
#4 0x00007fff84168168 in _pthread_wqthread ()
No symbol table info available.
#5 0x00007fff84168005 in start_wqthread ()
No symbol table info available.
Thread 1 (process 80339):
#0 Ogre::RenderSystem::attachRenderTarget (this=0x118012568, target=@0x0) at /Users/william/ros/diamondback/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreRenderSystem.cpp:235
__func__ = "attachRenderTarget"
#1 0x0000000118d358fd in Ogre::GLRenderSystem::_createRenderWindow (this=0x118012568, name=@0x7fff5fbfd190, width=1024, height=768, fullScreen=<value temporarily unavailable, due to optimizations>, miscParams=0x7fff5fbfd110) at /Users/william/ros/diamondback/visualization_common/ogre/build/ogre_src_v1-7-1/RenderSystems/GL/src/OgreGLRenderSystem.cpp:1012
ss = {
<std::basic_iostream<char,std::char_traits<char> >> = {
<std::basic_istream<char,std::char_traits<char> >> = {
<std::basic_ios<char,std::char_traits<char> >> = {
<std::ios_base> = {
_vptr$ios_base = 0x7fff7117aa08,
static boolalpha = std::_S_boolalpha,
static dec = std::_S_dec,
static fixed = std::_S_fixed,
static hex = std::_S_hex,
static internal = std::_S_internal,
static left = std::_S_left,
static oct = std::_S_oct,
static right = std::_S_right,
static scientific = std::_S_scientific,
static showbase = std::_S_showbase,
static showpoint = std::_S_showpoint,
static showpos = std::_S_showpos,
static skipws = std::_S_skipws,
static unitbuf = std::_S_unitbuf,
static uppercase = std::_S_uppercase,
static adjustfield = std::_S_adjustfield,
static basefield = std::_S_basefield,
static floatfield = std::_S_floatfield,
static badbit = std::_S_badbit,
static eofbit = std::_S_eofbit,
static failbit = std::_S_failbit,
static goodbit = std::_S_goodbit,
static app = std::_S_app,
static ate = std::_S_ate,
static binary = std::_S_bin,
static in = std::_S_in,
static out = std::_S_out,
static trunc = std::_S_trunc,
static beg = std::_S_beg,
static cur = std::_S_cur,
static end = std::_S_end,
_M_precision = 6,
_M_width = 0,
_M_flags = 4098,
_M_exception = std::_S_goodbit,
_M_streambuf_state = std::_S_goodbit,
_M_callbacks = 0x0,
_M_word_zero = {
_M_pword = 0x0,
_M_iword = 0
},
_M_local_word = {{
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}},
_M_word_size = 8,
_M_word = 0x7fff5fbfced8,
_M_ios_locale = {
static none = 0,
static ctype = 1,
static numeric = 2,
static collate = 4,
static time = 8,
static monetary = 16,
static messages = 32,
static all = 63,
_M_impl = 0x7fff7117f760,
static _S_classic = 0x7fff7117f760,
static _S_global = 0x7fff7117f760,
static _S_categories = 0x7fff7117bd60,
static _S_once = {
__sig = 1330529093,
__opaque = "\000\000\000\000\000\000\000"
}
}
},
members of std::basic_ios<char,std::char_traits<char> >:
_M_tie = 0x0,
_M_fill = 32 ' ',
_M_fill_init = true,
_M_streambuf = 0x7fff5fbfce48,
_M_ctype = 0x7fff7117f9a0,
_M_num_put = 0x7fff7117fc30,
_M_num_get = 0x7fff7117fc20
},
members of std::basic_istream<char,std::char_traits<char> >:
_vptr$basic_istream = 0x7fff7117a9b8,
_M_gcount = 0
},
<std::basic_ostream<char,std::char_traits<char> >> = {
members of std::basic_ostream<char,std::char_traits<char> >:
_vptr$basic_ostream = 0x7fff7117a9e0
}, <No data fields>},
members of std::basic_stringstream<char,std::char_traits<char>,std::allocator<char> >:
_M_stringbuf = {
<std::basic_streambuf<char,std::char_traits<char> >> = {
_vptr$basic_streambuf = 0x7fff7117ad90,
_M_in_beg = 0x1051b89f8 "GLRenderSystem::_createRenderWindow \"OgreRenderWindow1\", 1024x768 windowed miscParams: parentWindowHandle=6291526 ",
_M_in_cur = 0x1051b89f8 "GLRenderSystem::_createRenderWindow \"OgreRenderWindow1\", 1024x768 windowed miscParams: parentWindowHandle=6291526 ",
_M_in_end = 0x1051b89f9 "LRenderSystem::_createRenderWindow \"OgreRenderWindow1\", 1024x768 windowed miscParams: parentWindowHandle=6291526 ",
_M_out_beg = 0x1051b89f8 "GLRenderSystem::_createRenderWindow \"OgreRenderWindow1\", 1024x768 windowed miscParams: parentWindowHandle=6291526 ",
_M_out_cur = 0x1051b8a6b "",
_M_out_end = 0x1051b8bf8 "",
_M_buf_locale = {
static none = 0,
static ctype = 1,
static numeric = 2,
static collate = 4,
static time = 8,
static monetary = 16,
static messages = 32,
static all = 63,
_M_impl = 0x7fff7117f760,
static _S_classic = 0x7fff7117f760,
static _S_global = 0x7fff7117f760,
static _S_categories = 0x7fff7117bd60,
static _S_once = {
__sig = 1330529093,
__opaque = "\000\000\000\000\000\000\000"
}
}
},
members of std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >:
_M_mode = 24,
_M_string = {
static npos = 18446744073709551615,
_M_dataplus = {
<std::allocator<char>> = {
<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
members of std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider:
_M_p = 0x1051b89f8 "GLRenderSystem::_createRenderWindow \"OgreRenderWindow1\", 1024x768 windowed miscParams: parentWindowHandle=6291526 "
}
}
}
}
win = (class Ogre::RenderWindow *) 0x0
#2 0x000000010028a91f in Ogre::Root::createRenderWindow (this=0x118001dd8, name=<value temporarily unavailable, due to optimizations>, width=<value temporarily unavailable, due to optimizations>, height=<value temporarily unavailable, due to optimizations>, fullScreen=<value temporarily unavailable, due to optimizations>, miscParams=<value temporarily unavailable, due to optimizations>) at /Users/william/ros/diamondback/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreRoot.cpp:1199
ret = <value temporarily unavailable, due to optimizations>
#3 0x0000000100a5c2b1 in ogre_tools::wxOgreRenderWindow::createRenderWindow (this=0x10704de30) at /Users/william/ros/diamondback/visualization_common/ogre_tools/src/ogre_tools/wx_ogre_render_window.cpp:221
params = {
_M_t = {
_M_impl = {
<Ogre::STLAllocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,Ogre::CategorisedAllocPolicy<MEMCATEGORY_GENERAL> >> = {
<Ogre::STLAllocatorBase<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >> = {<No data fields>},
members of Ogre::STLAllocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,Ogre::CategorisedAllocPolicy<MEMCATEGORY_GENERAL> >:
_vptr$STLAllocator = 0x100a70d10
},
members of std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,Ogre::STLAllocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<MEMCATEGORY_GENERAL> > >::_Rb_tree_impl<std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,false>:
_M_key_compare = {
<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::basic_string<char, std::char_traits<char>, std::allocator<char> >,bool>> = {<No data fields>}, <No data fields>},
_M_header = {
_M_color = std::_S_red,
_M_parent = 0x118118aa8,
_M_left = 0x118118aa8,
_M_right = 0x118118aa8
},
_M_node_count = 1
}
}
}
width = 1024
height = 768
#4 0x0000000100a5c8e8 in ogre_tools::wxOgreRenderWindow::wxOgreRenderWindow (this=0x10704de30, ogre_root=0x118001dd8, parent=0x106875e00, id=-1, pos=@0x10279a018, size=@0x7fff5fbfd430, style=134217728, validator=@0x10279b840, create_render_window=true) at /Users/william/ros/diamondback/visualization_common/ogre_tools/src/ogre_tools/wx_ogre_render_window.cpp:48
No locals.
#5 0x0000000101ef3c46 in list [inlined] () at /usr/include/c++/4.2.1/bits/stl_list.h:52
No locals.
#6 0x0000000101ef3c46 in std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >::_M_init () at /usr/include/c++/4.2.1/bits/stl_list.h:473
__a = (const 'std::allocator<boost::signals::connection>' &) Cannot access memory at address 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment