VirtualBox

Opened 7 years ago

Closed 7 years ago

#16200 closed defect (invalid)

Ubuntu 14.04.1 LTS rviz OpenGL segfault -> guest application problem

Reported by: fandji Owned by:
Component: 3D support Version: VirtualBox 5.1.8
Keywords: OpenGL Segfault Ubuntu Rviz Ros Cc:
Guest type: Linux Host type: Linux

Description

Hello

Package: ros-indigo-rviz First running roscore, then run rviz. Result:

$rviz
[ INFO] [1479456243.876189590]: rviz version 1.11.15
[ INFO] [1479456243.876276446]: compiled against Qt version 4.8.6
[ INFO] [1479456243.876298641]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [1479456244.246978732]: Stereo is NOT SUPPORTED
[ INFO] [1479456244.247668068]: OpenGl version: 2.1 (GLSL 1.2).
Segmentation fault (core dumped)

Attachments (9)

gdb.txt (5.5 KB ) - added by fandji 7 years ago.
glxinfo.txt (39.9 KB ) - added by fandji 7 years ago.
modinfovboxguest.txt (404 bytes ) - added by fandji 7 years ago.
modinfovboxsf.txt (438 bytes ) - added by fandji 7 years ago.
modinfovboxvideo.txt (516 bytes ) - added by fandji 7 years ago.
rosindigorvizversion.txt (1.3 KB ) - added by fandji 7 years ago.
rvizout.txt (36.0 KB ) - added by fandji 7 years ago.
uname_a.txt (120 bytes ) - added by fandji 7 years ago.
gdb_additions_debug.txt (5.9 KB ) - added by fandji 7 years ago.

Download all attachments as: .zip

Change History (13)

by fandji, 7 years ago

Attachment: gdb.txt added

by fandji, 7 years ago

Attachment: glxinfo.txt added

by fandji, 7 years ago

Attachment: modinfovboxguest.txt added

by fandji, 7 years ago

Attachment: modinfovboxsf.txt added

by fandji, 7 years ago

Attachment: modinfovboxvideo.txt added

by fandji, 7 years ago

Attachment: rosindigorvizversion.txt added

by fandji, 7 years ago

Attachment: rvizout.txt added

by fandji, 7 years ago

Attachment: uname_a.txt added

comment:1 by fandji, 7 years ago

Segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffc15a662d in ?? () from /usr/lib/x86_64-linux-gnu/VBoxOGLpackspu.so
  • Backtrace and gdb session is in gdb.txt.
  • Programoutput is in rvizout.txt
  • Kernel version and ubuntu version in uname_a.txt
  • Package version ros-indigo-rviz in rosindigorvizversion.txt
  • glxinfo in glxinfo.txt
  • modinfo vboxguest in modinfovboxguest.txt, also version of guest utils visible
  • modinfo vboxguest in modinfovboxsf.txt, also version of guest utils visible
  • modinfo vboxguest in modinfovboxvideo.txt, also version of guest utils visible

comment:2 by Michael Thayer, 7 years ago

Thank you for the report. Unfortunately, 3D pass-through in Linux guests is currently mainly user-supported<1>. We might or might not find time to look at this (though we probably should not, based on available developers and current work load); however if you can identify the problem yourself chances are higher that it will get fixed. The easiest way would probably start with building the Additions yourself<2>, if possible in the affected guest, for ease of debugging. I would not try to build the installer; instead I would just replace the libraries you need to debug with the versions you built yourself to get debugging information (there is a small chance that would go wrong, but I think it really is small).

<1> https://www.virtualbox.org/wiki/X11Guest3D
<2> https://www.virtualbox.org/wiki/Linux%20build%20instructions

comment:3 by fandji, 7 years ago

I got the debug build of the additions working: https://forums.virtualbox.org/viewtopic.php?f=10&t=80202

svn info
Path: .
Working Copy Root Path: /home/k0/virtualboxdebug/vbox
URL: http://www.virtualbox.org/svn/vbox/trunk
Relative URL: ^/trunk
Repository Root: http://www.virtualbox.org/svn/vbox
Repository UUID: cfe28804-0f27-0410-a406-dd0f0b0b656f
Revision: 64628
Node Kind: directory
Schedule: normal
Last Changed Author: vboxsync
Last Changed Rev: 64628
Last Changed Date: 2016-11-10 12:30:13 +0100 (Don, 10 Nov 2016)

As I see, it is not a fault of the additions:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffc06e8d2f in crPackColor4ubv (v=0xc <error: Cannot access memory at address 0xc>)
    at /home/k0/virtualboxdebug/vbox/out/linux.amd64/debug/obj/VBoxOGLgen/packer.c:1911
1911		WRITE_DATA(0, GLubyte, v[0]);

as v is supplied by ogre (you even check for a NULL Pointer). So I assume that ogre or what's the stack up is at fault? The backtrace is as gdb_addtions_debug.txt attached. If this assumption is correct and segfault is in this case the expected behaviour, then please close this bug ticket.

Last edited 7 years ago by fandji (previous) (diff)

by fandji, 7 years ago

Attachment: gdb_additions_debug.txt added

comment:4 by Michael Thayer, 7 years ago

Resolution: invalid
Status: newclosed
Summary: Ubuntu 14.04.1 LTS rviz OpenGL segfaultUbuntu 14.04.1 LTS rviz OpenGL segfault -> guest application problem

Thank you for the testing and feedback!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use