Segmentation Fault (rospack, rosrun, etc.) ROS Kinetic Ubuntu 16.04
Hi everyone,
I have just installed ROS Kinetic in a Ubuntu 16.04 machine but it seems that something is wrong because ROS does not work as normally.
If I do a roscd + <tab>
I get no pkg recommendation and an error:
roscd *** Error in `rosstack': double free or corruption (out): 0x00007f7f0004aab0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7f000c37e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7f000cc37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7f000d053c]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack8StackageD1Ev+0x44)[0x7f7f009cdee4]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack11Rosstackage11addStackageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x3a4)[0x7f7f009c3e84]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack11Rosstackage11crawlDetailERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbibRSt6vectorIPNS_20DirectoryCrawlRecordESaISB_EERN5boost9unordered13unordered_setIS6_NSF_4hashIS6_EESt8equal_toIS6_ESaIS6_EEE+0x53b)[0x7f7f009c5abb]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack11Rosstackage11crawlDetailERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbibRSt6vectorIPNS_20DirectoryCrawlRecordESaISB_EERN5boost9unordered13unordered_setIS6_NSF_4hashIS6_EESt8equal_toIS6_ESaIS6_EEE+0x459)[0x7f7f009c59d9]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack11Rosstackage5crawlESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEb+0x166)[0x7f7f009c6966]
/opt/ros/kinetic/lib/librospack.so(_ZN7rospack11rospack_runEiPPcRNS_11RosstackageERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xfeb)[0x7f7f009d7d9b]
rosstack(main+0x54)[0x400b04]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f7f0006c830]
rosstack(_start+0x29)[0x400bd9]
======= Memory map: ========
Later, I tested to launch, for instance, the rviz program but getting the next message:
find: ‘’: No such file or directory
[ INFO] [1520875186.477656721]: rviz version 1.12.15
[ INFO] [1520875186.477721911]: compiled against Qt version 5.5.1
[ INFO] [1520875186.477734832]: compiled against OGRE version 1.9.0 (Ghadamon)
Segmentation fault (core dumped)
If I do a "rospack profile" I get:
Segmentation fault (core dumped)
I have tried to re-install everything but no success.
Any help would be appreciated.
Regards,
Raúl
Edit 1:
I installed ROS Kinetic following the instructions in the wiki.
This is the brief information about me PC:
-Computer-
Processor : 4x Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
Memory : 16311MB (3431MB used)
Operating System : Ubuntu 16.04.4 LTS
Date/Time : lun 12 mar 2018 18:16:24 CET
-Display-
Resolution : 3840x1080 pixels
OpenGL Renderer : Unknown
X11 Vendor : The X.Org Foundation
-Multimedia-
Audio Adapter : HDA-Intel - HDA Intel PCH
-SCSI Disks-
ATA WDC WD10EURX-63C
hp DVD-RAM GH80N
Edit 2:
apt list --upgradable
Listing... Done
Edit 3:
python --version
Python 2.7.12
Please tell us how you installed ROS, what platform this is, CPU architecture, versions of things, etc.
Also: please try and post error messages in English only. I understand what it says now, but English is the language used on this forum, so please stick to that.
Hi @gvdhoorn, thank you for your answer. I have edited the question with the information you asked.
the reason why rviz always crash is possible fatal bug in your code , could you please paste the your code ?
Hi @HRG-lsw, I have still no source code associated. My problem seems to be related to the installation because I cannot even do a rospack or a rosrun.
Any help? cc @ahendrix@tfoote
Something to check: is your entire system up-to-date? If you have partially updated some things, that may explain the
SEGFAULT
s. Can you do asudo apt-get update
and thenapt list --upgradable
and add the output to your original question?I have add the result of the system checking @gvdhoorn . As you can see, everything ok about upgrades. There must be another problem.
Can you run the
python
binary by itself? What is the output ofpython --version
? And after startingpython
, and then typingimport rospkg
, does that work?Hi @gvdhoorn, my python version is 2.7. No problem importing the package in python.
We have tried same in other computer getting the same issues. Maybe is problem about the Ubuntu version or because an upgrade?
I'm not sure what is going on.
SEGFAULT
s are typically either caused by programming errors, or by mismatched binary versions that do not guarantee ABI bw-compatibility. Seeing as this is a rather isolated case (for now), I suspect the latter. But I don't know how or why you're running into this.For me, that I have been working with many versions of ROS (since electric), it is the first time that I have this kind of issue. But I really do not know why is this happening. I have installed ROS following the same exactly steps in a Ubuntu 16.04 in a laptop and it is working. So no idea.
Any suggestions?