Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi ROS rviz segmentation fault #889

Closed
ppersia37 opened this issue May 17, 2015 · 16 comments
Closed

Raspberry pi ROS rviz segmentation fault #889

ppersia37 opened this issue May 17, 2015 · 16 comments

Comments

@ppersia37
Copy link

i recently installed ROS on Raspberry pi 2 in order to implement SLAM algorithm on it every thing went verry well until i run the rviz (rosrun rviz rviz ) i get segmentation fault msg . any body have a solution for this situation .thakns in advance

@wjwwood
Copy link
Member

wjwwood commented May 18, 2015

If you expect to get help, you might want to consider what information others need to help you, for example:

  • What version of OS you are using on the rpi2
  • What version of rviz
  • What version of ROS
  • What was the console output
  • What was output to the ogre log file

Anything else you think might be useful. Just saying that there was a segfault is not enough information.

Likely you'll need to compile rviz in debug mode and run it with gdb in order to get a traceback of the segfault.

@wjwwood
Copy link
Member

wjwwood commented May 18, 2015

I'm going to close this until you update the issue with more information. If you do so I'll reopen the issue.

@wjwwood wjwwood closed this as completed May 18, 2015
@ppersia37
Copy link
Author

ok im using debian wheezy OS on rpi2 with ROS indigo version and the Console output is just
"Segmentation Fault"

@wjwwood wjwwood reopened this May 18, 2015
@wjwwood
Copy link
Member

wjwwood commented May 18, 2015

Is there an Ogre log file in the directory you ran rviz in? Without a traceback from gdb it's going to be really hard to resolve this issue. Are you opening rviz with an rviz config file set?

@ppersia37
Copy link
Author

when i run gdb /opt/ros/indigo/share/rviz/rviz i get
/opt/ros/indigo/share/rviz/rviz: No such file or directory.

but when i run rospack find rviz i get

/opt/ros/indigo/share/rviz

im realy confused

@trainman419
Copy link
Contributor

The rviz binary is not in /opt/ros/indigo/share/rviz; it should be in /opt/ros/indigo/lib/rviz

@wjwwood
Copy link
Member

wjwwood commented May 19, 2015

What @trainman419 said. Unfortunately running rviz with gdb without first rebuilding it in with -DCMAKE_BUILD_TYPE=Debug will not produce a useful traceback most likely. However, if you do manage to get a gdb traceback with the released version of rviz, then please post it, you never know what might help.

@ppersia37
Copy link
Author

when i run gdb /opt/ros/indigo/lib/rviz/rviz i get Reading symbols from /opt/ros/indigo/lib/rviz/rviz...(no debugging symbols found)...done.

please ca you tell me how to get a gdb traceback with the released version of rviz

thank you for your help

@wjwwood
Copy link
Member

wjwwood commented May 19, 2015

You need to run rviz after gdb finishes "reading symbols" by typing r and pressing enter. Then when rviz crashes you can type bt and press enter to get a backtrace. I'd recommend having a look at a gdb guide like this one: http://beej.us/guide/bggdb/

@ppersia37
Copy link
Author

thanks for the Description and im sorry of being late to update my issue

this is what i get when i follow your instructions with gdb:

(gdb) r
Starting program: /opt/ros/indigo/lib/rviz/rviz
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x6f87c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) bt
#0  0x6f87c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
Cannot access memory at address 0x0
#1  0x6f879004 in OPENSSL_cpuid_setup ()
   from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2  0x76fe8254 in ?? () from /lib/ld-linux-armhf.so.3
#3  0x7efff59c in ?? ()
Cannot access memory at address 0x0
#4  0x7efff59c in ?? ()
Cannot access memory at address 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

@wjwwood
Copy link
Member

wjwwood commented Jun 1, 2015

As I feared, that's not a particularly useful traceback. You would need to build rviz with debug on to get a better idea of the problem.

@wjwwood
Copy link
Member

wjwwood commented Aug 5, 2015

Please get us a core dump or debug traceback from this. Until then it's not even clear what the source of the error is and I'm going to close the issue. We can reopen it if more information comes up.

@wjwwood wjwwood closed this as completed Aug 5, 2015
@dchang0
Copy link

dchang0 commented Dec 23, 2015

This appears to be a "bug" in that RVIZ does not handle the SIGILLs that OpenSSL produces normally gracefully. I have opened a better-documented bug here:

#955

@Ashok12698
Copy link

Hi @wjwwood, I am facing the similar issue while tried to run 'rosrun rviz rviz' on my SBC.
Here are the details when i run 'rosrun rviz rviz'

image

Here are the details when i run gdb.

image

Looking forward to your kind suggestions to resolve this. Thanks

@wjwwood
Copy link
Member

wjwwood commented Oct 21, 2020

@Ash-S please open a new issue and please do not post pictures of text, it cannot be copied or searched.

@Ashok12698
Copy link

@Ash-S please open a new issue and please do not post pictures of text, it cannot be copied or searched.

@wjwwood , I understood. Yes i created a new issue. Please check that. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants