Skip to content

Instantly share code, notes, and snippets.

@scpeters
Created June 10, 2014 00:51
Show Gist options
  • Save scpeters/1118d601dbb5b1b6555c to your computer and use it in GitHub Desktop.
Save scpeters/1118d601dbb5b1b6555c to your computer and use it in GitHub Desktop.
Backtrace 2 from RemoveModelUnPaused

Console output:

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from WorldTest
[ RUN      ] WorldTest.RemoveModelUnPaused
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.182
[Dbg] [ServerFixture.cc:144] ServerFixture load in 0.9 seconds, timeout after 600 seconds
*** Error in `test/integration/INTEGRATION_world': malloc(): memory corruption (fast): 0x00007fe0c5032320 ***

Selected backtrace:

Thread 1 (Thread 0x7fe0696a6700 (LWP 9498)):
#0  0x00007fe0c2b08f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fe0c2b0c388 in __GI_abort () at abort.c:89
#2  0x00007fe0c2b461d4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fe0c2c54a10 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007fe0c2b50f37 in malloc_printerr (action=<optimized out>, str=0x7fe0c2c54db0 "malloc(): memory corruption (fast)", 
    ptr=<optimized out>) at malloc.c:4996
#4  0x00007fe0c2b53c44 in _int_malloc (av=0x7fe034000020, bytes=16) at malloc.c:3359
#5  0x00007fe0c2b555f0 in __GI___libc_malloc (bytes=16) at malloc.c:2891
#6  0x00007fe0c3412f2d in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007fe0c5ac175e in allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.8/ext/new_allocator.h:104
#8  _M_allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:168
#9  _M_create_storage (__n=<optimized out>, this=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:181
#10 _Vector_base (__a=..., __n=<optimized out>, this=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:136
#11 vector (__x=..., this=this@entry=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:312
#12 gazebo::physics::Model::GetLinks (this=0x7fe0a084db80) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/Model.cc:589
#13 0x00007fe0c5af3fc6 in gazebo::physics::World::ProcessMessages (this=this@entry=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:1883
#14 0x00007fe0c5af53d0 in gazebo::physics::World::Step (this=this@entry=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:586
#15 0x00007fe0c5af58c5 in gazebo::physics::World::RunLoop (this=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:419
#16 0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#17 0x00007fe0c4bb0182 in start_thread (arg=0x7fe0696a6700) at pthread_create.c:312
#18 0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 3 (Thread 0x7fe0c63f7880 (LWP 9471)):
#0  0x00007fe0c3421870 in std::ios_base::ios_base() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000000000041f1bc in basic_ios (this=0x7fe02c0009b8) at /usr/include/c++/4.8/bits/basic_ios.h:456
#2  basic_stringstream (__m=(std::_S_in | std::_S_out), this=0x7fe02c000950, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /usr/include/c++/4.8/sstream:538
#3  testing::Message::Message (this=0x7ffffbadc120) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:912
#4  0x0000000000412de3 in testing::internal::FormatCxxExceptionMessage (description=0x7fe0c3472a42 "std::bad_alloc", 
    location=location@entry=0x46fff1 "the test body") at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2031
#5  0x000000000043f2e6 in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=object@entry=0xeed180, 
    method=<optimized out>, location=location@entry=0x46fff1 "the test body")
    at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2124
#6  0x0000000000431407 in testing::Test::Run (this=this@entry=0xeed180) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2152
#7  0x00000000004314a6 in testing::TestInfo::Run (this=0xeeb230) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2327
---Type <return> to continue, or q <return> to quit---
#8  0x00000000004315ad in testing::TestCase::Run (this=0xeeace0) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2445
#9  0x000000000043183d in testing::internal::UnitTestImpl::RunAllTests (this=0xeea920)
    at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:4316
#10 0x0000000000431b2e in HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=<optimized out>, 
    method=<optimized out>, object=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2079
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (
    location=0x4714f8 "auxiliary test code (environments or event listeners)", 
    method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x431620 <testing::internal::UnitTestImpl::RunAllTests()>, object=0xeea920) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2115
#12 testing::UnitTest::Run (this=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:3930
#13 0x000000000041322f in RUN_ALL_TESTS () at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/include/gtest/gtest.h:2288
#14 main (argc=1, argv=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/integration/world.cc:168

Full backtrace:

(gdb) thread apply all bt

Thread 27 (Thread 0x7fe06a6a8700 (LWP 9496)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0c57bd38b in boost::condition_variable::wait (this=this@entry=0x7fe0a0334788, m=...)
    at /usr/include/boost/thread/pthread/condition_variable.hpp:73
#2  0x00007fe0c57bbe6b in gazebo::sensors::SensorManager::SensorContainer::RunLoop (this=0x7fe0a0334730)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/sensors/SensorManager.cc:467
#3  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#4  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06a6a8700) at pthread_create.c:312
#5  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 26 (Thread 0x7fe07c649700 (LWP 9490)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07c649700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 25 (Thread 0x7fe06affa700 (LWP 9495)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06affa700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 24 (Thread 0x7fe06bbfd700 (LWP 9492)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06bbfd700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 23 (Thread 0x7fe06b3fb700 (LWP 9494)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06b3fb700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 22 (Thread 0x7fe06b7fc700 (LWP 9493)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06b7fc700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 21 (Thread 0x7fe07ffff700 (LWP 9484)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07ffff700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 20 (Thread 0x7fe069ea7700 (LWP 9497)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0c57bd38b in boost::condition_variable::wait (this=this@entry=0x7fe0a03136c8, m=...)
---Type <return> to continue, or q <return> to quit---
    at /usr/include/boost/thread/pthread/condition_variable.hpp:73
#2  0x00007fe0c57bbe6b in gazebo::sensors::SensorManager::SensorContainer::RunLoop (this=0x7fe0a0313670)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/sensors/SensorManager.cc:467
#3  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#4  0x00007fe0c4bb0182 in start_thread (arg=0x7fe069ea7700) at pthread_create.c:312
#5  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 19 (Thread 0x7fe095794700 (LWP 9482)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe095794700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 18 (Thread 0x7fe068ea5700 (LWP 9499)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0c5af8a4b in boost::condition_variable::wait (this=this@entry=0x7fe0a081e2d8, m=...)
    at /usr/include/boost/thread/pthread/condition_variable.hpp:73
#2  0x00007fe0c5aefae7 in gazebo::physics::World::LogWorker (this=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:1985
#3  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#4  0x00007fe0c4bb0182 in start_thread (arg=0x7fe068ea5700) at pthread_create.c:312
#5  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 17 (Thread 0x7fe096796700 (LWP 9480)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe096796700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 16 (Thread 0x7fe07d683700 (LWP 9488)):
#0  0x00007fe0c4bb7b9d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe0bd18e54a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#2  0x00007fe0bd19b5eb in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#3  0x00007fe0bd18de6a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#4  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07d683700) at pthread_create.c:312
#5  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 15 (Thread 0x7fe06bffe700 (LWP 9491)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe06bffe700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 14 (Thread 0x7fe097798700 (LWP 9478)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe097798700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
---Type <return> to continue, or q <return> to quit---

Thread 13 (Thread 0x7fe0a80dc700 (LWP 9473)):
#0  __clock_nanosleep (clock_id=0, flags=0, req=0x7fe0a80dbb60, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
#1  0x00007fe0c601fa93 in gazebo::common::Time::Sleep (_time=...) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/common/Time.cc:195
#2  0x00007fe0c601fc57 in gazebo::common::Time::MSleep (_ms=_ms@entry=1) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/common/Time.cc:214
#3  0x00000000004585d1 in gazebo::Server::Run (this=0x7fe0a00008c0) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/Server.cc:475
#4  0x0000000000442ad3 in ServerFixture::RunServer (this=0xeed180, _worldFilename=..., _paused=<optimized out>, _physics=...)
    at /home/scpeters/ws/gazebo/src/gazebo/test/ServerFixture.cc:233
#5  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#6  0x00007fe0c4bb0182 in start_thread (arg=0x7fe0a80dc700) at pthread_create.c:312
#7  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 12 (Thread 0x7fe07f7fe700 (LWP 9485)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07f7fe700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 11 (Thread 0x7fe07ca4a700 (LWP 9489)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fe0c36d02db in ?? () from /usr/lib/libtbb.so.2
#2  0x00007fe0c36d02f9 in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07ca4a700) at pthread_create.c:312
#4  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 10 (Thread 0x7fe094f93700 (LWP 9483)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe094f93700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7fe0a78db700 (LWP 9474)):
#0  0x00007fe0c2bcd9a3 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe0c4def418 in boost::asio::detail::epoll_reactor::run (this=0x7fe0a00018b0, block=<optimized out>, ops=...)
    at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:392
#2  0x00007fe0c4df3821 in do_run_one (ec=..., this_thread=..., lock=..., this=0x7fe0a00013c0)
    at /usr/include/boost/asio/detail/impl/task_io_service.ipp:368
#3  boost::asio::detail::task_io_service::run (this=0x7fe0a00013c0, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:153
#4  0x00007fe0c4e02ad6 in boost::asio::io_service::run (this=0x7fe0a0001350) at /usr/include/boost/asio/impl/io_service.ipp:59
#5  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#6  0x00007fe0c4bb0182 in start_thread (arg=0x7fe0a78db700) at pthread_create.c:312
#7  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fe07de84700 (LWP 9487)):
#0  0x00007fe0c2bbffbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe09407a031 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007fe09406b83c in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007fe09406bece in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fe09406bf80 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fe094079fe3 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fe07ebd2f08 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so
#7  0x00007fe0c4bb0182 in start_thread (arg=0x7fe07de84700) at pthread_create.c:312
---Type <return> to continue, or q <return> to quit---
#8  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fe095f95700 (LWP 9481)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe095f95700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7fe0a70da700 (LWP 9475)):
#0  __clock_nanosleep (clock_id=0, flags=0, req=0x7fe0a70d9d00, rem=0xffffffffffffffff) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:49
#1  0x00007fe0c601fa93 in gazebo::common::Time::Sleep (_time=...) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/common/Time.cc:195
#2  0x00007fe0c601fc57 in gazebo::common::Time::MSleep (_ms=_ms@entry=10) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/common/Time.cc:214
#3  0x0000000000469ffd in gazebo::Master::Run (this=0x7fe0a0000a50) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/Master.cc:335
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe0a70da700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fe096f97700 (LWP 9479)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0bf2d1690 in ?? () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#2  0x00007fe0bf2d06af in Ogre::DefaultWorkQueue::waitForNextRequest() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#3  0x00007fe0bf2d0b24 in Ogre::DefaultWorkQueue::_threadMain() () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.8.1
#4  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#5  0x00007fe0c4bb0182 in start_thread (arg=0x7fe096f97700) at pthread_create.c:312
#6  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fe0a66cd700 (LWP 9476)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fe0c4dfd5f0 in do_wait_until (timeout=..., m=..., 
    this=0x69c5a8 <SingletonT<gazebo::transport::ConnectionManager>::GetInstance()::t+8>)
    at /usr/include/boost/thread/pthread/condition_variable.hpp:108
#2  timed_wait (wait_until=..., m=..., this=0x69c5a8 <SingletonT<gazebo::transport::ConnectionManager>::GetInstance()::t+8>)
    at /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:108
#3  timed_wait<boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000l> > (wait_duration=..., m=..., 
    this=0x69c5a8 <SingletonT<gazebo::transport::ConnectionManager>::GetInstance()::t+8>)
    at /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:123
#4  gazebo::transport::ConnectionManager::Run (this=0x69c5a0 <SingletonT<gazebo::transport::ConnectionManager>::GetInstance()::t>)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/transport/ConnectionManager.cc:309
#5  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#6  0x00007fe0c4bb0182 in start_thread (arg=0x7fe0a66cd700) at pthread_create.c:312
#7  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fe0c63f7880 (LWP 9471)):
#0  0x00007fe0c3421870 in std::ios_base::ios_base() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000000000041f1bc in basic_ios (this=0x7fe02c0009b8) at /usr/include/c++/4.8/bits/basic_ios.h:456
#2  basic_stringstream (__m=(std::_S_in | std::_S_out), this=0x7fe02c000950, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /usr/include/c++/4.8/sstream:538
#3  testing::Message::Message (this=0x7ffffbadc120) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:912
#4  0x0000000000412de3 in testing::internal::FormatCxxExceptionMessage (description=0x7fe0c3472a42 "std::bad_alloc", 
    location=location@entry=0x46fff1 "the test body") at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2031
#5  0x000000000043f2e6 in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=object@entry=0xeed180, 
    method=<optimized out>, location=location@entry=0x46fff1 "the test body")
    at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2124
#6  0x0000000000431407 in testing::Test::Run (this=this@entry=0xeed180) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2152
#7  0x00000000004314a6 in testing::TestInfo::Run (this=0xeeb230) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2327
---Type <return> to continue, or q <return> to quit---
#8  0x00000000004315ad in testing::TestCase::Run (this=0xeeace0) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2445
#9  0x000000000043183d in testing::internal::UnitTestImpl::RunAllTests (this=0xeea920)
    at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:4316
#10 0x0000000000431b2e in HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=<optimized out>, 
    method=<optimized out>, object=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2079
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (
    location=0x4714f8 "auxiliary test code (environments or event listeners)", 
    method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x431620 <testing::internal::UnitTestImpl::RunAllTests()>, object=0xeea920) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:2115
#12 testing::UnitTest::Run (this=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/src/gtest.cc:3930
#13 0x000000000041322f in RUN_ALL_TESTS () at /home/scpeters/ws/gazebo/src/gazebo/test/gtest/include/gtest/gtest.h:2288
#14 main (argc=1, argv=<optimized out>) at /home/scpeters/ws/gazebo/src/gazebo/test/integration/world.cc:168

Thread 2 (Thread 0x7fe0a8ba6700 (LWP 9472)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe0c600c5bb in boost::condition_variable::wait (this=0xe699d8, m=...)
    at /usr/include/boost/thread/pthread/condition_variable.hpp:73
#2  0x00007fe0c60074e6 in gazebo::common::ModelDatabase::UpdateModelCache (
    this=0x69d590 <SingletonT<gazebo::common::ModelDatabase>::GetInstance()::t>, _fetchImmediately=false)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/common/ModelDatabase.cc:281
#3  0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#4  0x00007fe0c4bb0182 in start_thread (arg=0x7fe0a8ba6700) at pthread_create.c:312
#5  0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fe0696a6700 (LWP 9498)):
#0  0x00007fe0c2b08f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fe0c2b0c388 in __GI_abort () at abort.c:89
#2  0x00007fe0c2b461d4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fe0c2c54a10 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007fe0c2b50f37 in malloc_printerr (action=<optimized out>, str=0x7fe0c2c54db0 "malloc(): memory corruption (fast)", 
    ptr=<optimized out>) at malloc.c:4996
#4  0x00007fe0c2b53c44 in _int_malloc (av=0x7fe034000020, bytes=16) at malloc.c:3359
#5  0x00007fe0c2b555f0 in __GI___libc_malloc (bytes=16) at malloc.c:2891
#6  0x00007fe0c3412f2d in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007fe0c5ac175e in allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.8/ext/new_allocator.h:104
#8  _M_allocate (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:168
#9  _M_create_storage (__n=<optimized out>, this=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:181
#10 _Vector_base (__a=..., __n=<optimized out>, this=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:136
#11 vector (__x=..., this=this@entry=0x7fe0696a59f0) at /usr/include/c++/4.8/bits/stl_vector.h:312
#12 gazebo::physics::Model::GetLinks (this=0x7fe0a084db80) at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/Model.cc:589
#13 0x00007fe0c5af3fc6 in gazebo::physics::World::ProcessMessages (this=this@entry=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:1883
#14 0x00007fe0c5af53d0 in gazebo::physics::World::Step (this=this@entry=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:586
#15 0x00007fe0c5af58c5 in gazebo::physics::World::RunLoop (this=0x7fe0a081dbd0)
    at /home/scpeters/ws/gazebo/src/gazebo/gazebo/physics/World.cc:419
#16 0x00007fe0c3f7fa4a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#17 0x00007fe0c4bb0182 in start_thread (arg=0x7fe0696a6700) at pthread_create.c:312
#18 0x00007fe0c2bcd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment