*** glibc detected *** /home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node: free(): invalid pointer: 0x00000000012ece58 *** [closed]

asked 2014-03-14 01:24:50 -0500

MaxItaly gravatar image

updated 2014-03-14 09:47:47 -0500

William gravatar image

Hi everybody. I'm trying to run a single package (rosrun) built in catkin. This problem occours after a while that the node is running. I didn't use any "free()" command in my code, so I really don't understand why this core dumps occours. Thanks everybody..

*** glibc detected *** /home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node: free(): invalid pointer: 0x00000000012ece58 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f89b3bebb96]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZN9__gnu_cxx13new_allocatorIdE10deallocateEPdm+0x20)[0x47dec0]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZNSt12_Vector_baseIdSaIdEE13_M_deallocateEPdm+0x32)[0x47c160]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZNSt12_Vector_baseIdSaIdEED2Ev+0x45)[0x47bc11]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZNSt6vectorIdSaIdEED2Ev+0x42)[0x47952e]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_Z9callback2RKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE+0x1abd)[0x4766f2]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZN5boost6detail8function22void_function_invoker1IPFvRKNS_10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEEEvSB_E6invokeERNS1_15function_bufferESB_+0x28)[0x481006]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZNK5boost9function1IvRKNS_10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEEEclES9_+0x5d)[0x482da1]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZN5boost6detail8function26void_function_obj_invoker1INS_8functionIFvRKNS_10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEEEEEvSA_E6invokeERNS1_15function_bufferESA_+0x2e)[0x482079]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZNK5boost9function1IvNS_10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEEEclES7_+0x70)[0x4868ac]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEEvE4callERNS_36SubscriptionCallbackHelperCallParamsE+0x68)[0x485eb2]
/opt/ros/groovy/lib/libroscpp.so(_ZN3ros17SubscriptionQueue4callEv+0x8f7)[0x7f89b4a77797]
/opt/ros/groovy/lib/libroscpp.so(_ZN3ros13CallbackQueue9callOneCBEPNS0_3TLSE+0x1f9)[0x7f89b4a295c9]
/opt/ros/groovy/lib/libroscpp.so(_ZN3ros13CallbackQueue13callAvailableENS_12WallDurationE+0x24b)[0x7f89b4a2b08b]
/opt/ros/groovy/lib/libroscpp.so(_ZN3ros8spinOnceEv+0x2a)[0x7f89b4a5ffea]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node(main+0x54f)[0x476fe9]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f89b3b8e76d]
/home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node[0x474b39]
======= Memory map: ========
00400000-004d5000 r-xp 00000000 08:05 2622439                            /home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node
006d4000-006d5000 r--p 000d4000 08:05 2622439                            /home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node
006d5000-006d6000 rw-p 000d5000 08:05 2622439                            /home/arscontrol/catkin_ws/devel/lib/localizer_vers1/localizer_vers1_node
012d8000-01314000 rw-p 00000000 00:00 0                                  [heap]
7f8998000000-7f8998021000 rw-p 00000000 00:00 0 
7f8998021000-7f899c000000 ---p 00000000 00:00 0 
7f89a0000000-7f89a0021000 rw-p 00000000 00:00 0 
7f89a0021000-7f89a4000000 ---p 00000000 00:00 0 
7f89a4000000-7f89a4021000 rw-p 00000000 00:00 0 
7f89a4021000-7f89a8000000 ---p 00000000 00:00 0 
7f89a8000000-7f89a8021000 rw-p 00000000 00:00 0 
7f89a8021000-7f89ac000000 ---p 00000000 00:00 0 
7f89ad783000-7f89ad784000 ---p 00000000 00:00 0 
7f89ad784000-7f89adf84000 rw-p 00000000 00:00 0                          [stack:22852]
7f89adf84000-7f89adf85000 ---p 00000000 00:00 0 
7f89adf85000-7f89ae785000 rw-p 00000000 00:00 0                          [stack:22847]
7f89ae785000-7f89ae786000 ---p 00000000 00:00 0 
7f89ae786000-7f89aef86000 rw-p 00000000 00:00 0                          [stack:22846]
7f89aef86000-7f89aef87000 ---p 00000000 00:00 0 
7f89aef87000-7f89af787000 rw-p 00000000 00:00 0                          [stack:22845]
7f89af787000-7f89af793000 r-xp 00000000 08:05 1974163                    /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f89af793000-7f89af992000 ---p 0000c000 08:05 1974163                    /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f89af992000-7f89af993000 r--p 0000b000 08:05 1974163                    /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f89af993000-7f89af994000 rw-p 0000c000 08:05 1974163                    /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f89af9b1000-7f89af9c2000 rw-p 00000000 00:00 0 
7f89af9c2000-7f89af9c9000 r--s 00000000 08:05 809491                     /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f89af9c9000-7f89b00ae000 r--p 00000000 08:05 531261                     /usr/lib/locale/locale-archive
7f89b00ae000-7f89b121d000 r-xp 00000000 08:05 541561                     /usr/lib/libicudata.so.48.1.1
7f89b121d000-7f89b141c000 ---p 0116f000 08:05 541561                     /usr/lib/libicudata.so.48.1.1
7f89b141c000-7f89b141d000 r--p 0116e000 08:05 541561                     /usr/lib/libicudata.so.48.1.1
7f89b141d000-7f89b141e000 rw-p 0116f000 08:05 541561 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: http://wiki.ros.org/Support for more details. by tfoote
close date 2019-09-17 14:19:14.899679

Comments

1

You need to provide some more detail of your code. This could happen anywhere. Apparently you use boost::shared_ptr. Do you use shared_ptr in classes? Two classes pointing each other with shared_ptrs? Manually deleting something you assigned to a shared_ptr?

Wolf gravatar imageWolf ( 2014-03-14 06:57:44 -0500 )edit