Ticket #9800 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

Crash in 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/
(gdb) bt
#0  0x00007fffc75e8f86 in ?? () from /usr/lib/
#1  0x00007fffc75be86b in crPackExpandArrayElement () from /usr/lib/
#2  0x00007fffc75bea10 in crPackExpandDrawArrays () from /usr/lib/
#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());


I changed the game in 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 4 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  []  char+0x10313
Stack: [0x00007f5cdf203000,0x00007f5cdf304000],  sp=0x00007f5cdf300620,  free space=1013k
C  []  char+0x10313
C  []  char+0x43
C  []  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 4 years ago by Clint

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

comment:3 Changed 4 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 2 years 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.
ContactPrivacy policyTerms of Use