Cannot access memory at address 0x0 [closed]
My OS is raspbian jessie and I run ROS on my mechine. when I executed "rosrun rviz rviz", I came across the problem: segmentation fault.
Xlib: extension "RANDR" missing on display ":1.0".
[ INFO] [1464613179.571870535]: rviz version 1.11.14
[ INFO] [1464613179.573039068]: compiled against Qt version 4.8.6
[ INFO] [1464613179.573252712]: compiled against OGRE version 1.9.0 (Ghadamon)
Segmentation fault
so I try "gdb rviz rviz", and here is my detail information:
pi@raspberrypi:~ $ gdb rviz rviz
GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rviz...(no debugging symbols found)...done.
/home/pi/rviz: No such file or directory.
(gdb) r
Starting program: /opt/ros/indigo/bin/rviz
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Cannot access memory at address 0x0
Program received signal SIGILL, Illegal instruction.
0x6ecbbdc8 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) continue
Continuing.
[New Thread 0x6e636210 (LWP 3143)]
Xlib: extension "RANDR" missing on display ":1.0".
[ INFO] [1464614869.881315472]: rviz version 1.11.14
[ INFO] [1464614869.882283385]: compiled against Qt version 4.8.6
[ INFO] [1464614869.882465728]: compiled against OGRE version 1.9.0 (Ghadamon)
[New Thread 0x6da54210 (LWP 3146)]
[New Thread 0x6d0ff210 (LWP 3147)]
[New Thread 0x6c8ff210 (LWP 3148)]
[New Thread 0x6beff210 (LWP 3160)]
Program received signal SIGSEGV, Segmentation fault.
0x74276f4c in glXCreateContext () from /usr/lib/arm-linux-gnueabihf/libGL.so.1
(gdb) backtrace
#0 0x74241f4c in glXCreateContext ()
from /usr/lib/arm-linux-gnueabihf/libGL.so.1
#1 0x76eea2b0 in rviz::RenderSystem::setupDummyWindowId() ()
from /opt/ros/indigo/lib/librviz.so
#2 0x76eef940 in rviz::RenderSystem::RenderSystem() ()
from /opt/ros/indigo/lib/librviz.so
#3 0x76eefdd4 in rviz::RenderSystem::get() ()
from /opt/ros/indigo/lib/librviz.so
#4 0x76ee93bc in rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) ()
from /opt/ros/indigo/lib/librviz.so
#5 0x76f10cb0 in rviz::RenderPanel::RenderPanel(QWidget*) ()
from /opt/ros/indigo/lib/librviz.so
#6 0x76f5291c in rviz::VisualizationFrame::initialize(QString const&) ()
from /opt/ros/indigo/lib/librviz.so
#7 0x76f5ae8c in rviz::VisualizerApp::init(int, char**) ()
from /opt/ros/indigo/lib/librviz.so
#8 0x00010ff0 in main ()
(gdb) p
The history is empty.
I don't understand what does this mean. Anyone could do me a favour and give me some clues. Thanks a lot!
Please let me know if I can provide more information.
Are you still trying to run RViz over an SSH session?
yeah, however never make it. the same trouble