VirtualBox

Ticket #9800 (closed defect: fixed)

Opened 3 years ago

Last modified 6 months ago

Crash in VBoxOGLpackspu.so when using glInterleavedArrays

Reported by: philiptaylor Owned by:
Priority: minor Component: 3D support
Version: VirtualBox 4.1.4 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description (last modified by misha) (diff)

When running the game 0 A.D. and starting a match, it crashes inside the guest with

Program received signal SIGSEGV, Segmentation fault.
0x00007fffc75e8f86 in ?? () from /usr/lib/VBoxOGLpackspu.so
(gdb) bt
#0  0x00007fffc75e8f86 in ?? () from /usr/lib/VBoxOGLpackspu.so
#1  0x00007fffc75be86b in crPackExpandArrayElement () from /usr/lib/VBoxOGLpackspu.so
#2  0x00007fffc75bea10 in crPackExpandDrawArrays () from /usr/lib/VBoxOGLpackspu.so
#3  0x00000000006b9653 in CMiniMap::Draw (this=0x7fffca6f02f0) at ../../../source/gui/MiniMap.cpp:404

where source/gui/MiniMap.cpp is doing

glInterleavedArrays(GL_C4UB_V2F, sizeof(MinimapUnitVertex), &vertexArray[0]);
glDrawArrays(GL_POINTS, 0, (GLsizei)vertexArray.size());

glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);

I changed the game in  http://trac.wildfiregames.com/changeset/10419 to explicitly perform equivalent behaviour to glInterleavedArrays, which stops it from crashing, suggesting a possible problem with glInterleavedArrays.

I think I have the latest version of Guest Additions installed, though I'm not sure how to verify that. I haven't tried setting up a minimised test case for this bug.

Change History

comment:1 Changed 2 years ago by Clint

I'm seeing a similar issue under VirtualBox 4.1.14 with a Java application that uses JOGL.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f5cf9a79e23, pid=5841, tid=140036858197760
#
# JRE version: 6.0_31-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [VBoxOGLpackspu.so+0x94e23]  char+0x10313
Stack: [0x00007f5cdf203000,0x00007f5cdf304000],  sp=0x00007f5cdf300620,  free space=1013k
C  [VBoxOGLpackspu.so+0x94e23]  char+0x10313
C  [VBoxOGLpackspu.so+0x12af03]  char+0x43
C  [libjogl_desktop.so+0x3d447]  Java_jogamp_opengl_gl4_GL4bcImpl_dispatch_1glDrawArrays1__IIIJ+0x3a
j  jogamp.opengl.gl4.GL4bcImpl.dispatch_glDrawArrays1(IIIJ)V+0
j  jogamp.opengl.gl4.GL4bcImpl.glDrawArrays(III)V+39
  • Host: Windows 7 (64-bit)
  • Guest: Ubuntu 12.04 (64-bit)

comment:2 Changed 2 years ago by Clint

I wonder if some of the "uninitialized value" warnings mentioned here could be related:

 https://forums.virtualbox.org/viewtopic.php?uid=71800&f=3&t=45319&start=0

comment:3 Changed 2 years ago by misha

  • Description modified (diff)

Could you give me the exact testcase (i.e. point me to exact version of your java application that causes the crash, or whatever) so that I can reproduce it locally and fix it?

comment:4 Changed 6 months ago by misha

  • Status changed from new to closed
  • Resolution set to fixed

No response, closing.. Please give a try to VBox 4.3 and 4.3 Additions, and re-open if needed, providing a VM log file and the info requested above.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use