Page 1 of 1

uninitialized values in VBoxOGLcrutil and VBoxOGLpackspu

Posted: 12. Oct 2011, 18:40
by DrHazard
First up, thanks for VirtualBox! We're a game development company primarily focused on serious games, but also have recently released our first consumer game, Achron. We use VirtualBox to test our game engine against a multitude of Linux distributions easily.

Our game engine, Resequence, works perfectly fine with 3D acceleration on Ubuntu under VirtualBox; we use OpenGL 2.1 with some long and complex shaders. However, when we run Resequence with Valgrind we get reams of errors like the following:
==2612== Conditional jump or move depends on uninitialised value(s)
==2612== at 0x4C28DE8: memcpy (mc_replace_strmem.c:497)
==2612== by 0x99CBB32: crStrndup (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLcrutil.so)
==2612== by 0xC5DDEE6: crStateGLSLProgramCacheUniforms (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLpackspu.so)
==2612== by 0xC5BADF9: ??? (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLpackspu.so)
==2612== by 0x4272CC: MapEffects::MapEffects(int, int, int, int) (MapEffects.cpp:523)
==2612== by 0x465281: main (Achron.cpp:137)


==2612== Conditional jump or move depends on uninitialised value(s)
==2612== at 0x99CB454: crStrcmp (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLcrutil.so)
==2612== by 0xC5DDAE1: crStateGetUniformLocation (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLpackspu.so)
==2612== by 0xC5BAE1C: ??? (in /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGLpackspu.so)
==2612== by 0x4272CC: MapEffects::MapEffects(int, int, int, int) (MapEffects.cpp:523)
==2612== by 0x465281: main (Achron.cpp:137)

And some that indicate that glGetObjectParameterivARB(shaderObject, GL_OBJECT_LINK_STATUS_ARB, &linked); is not setting the expected output argument (linked):

==2612== Conditional jump or move depends on uninitialised value(s)
==2612== at 0x44BB2C: RenderEffects::LinkShaders() (RenderEffects.cpp:315)
==2612== by 0x4686A8: TerrainObjectEffectsDepthOnly::TerrainObjectEffectsDepthOnly() (TerrainObjectEffects.cpp:663)
==2612== by 0x465532: main (Achron.cpp:148)

We're willing to give a free copy of Achron to any VirtualBox developers who are willing to look into fixing these issues to help solidify VirtualBox's 3D support.

Re: uninitialized values in VBoxOGLcrutil and VBoxOGLpackspu

Posted: 12. May 2012, 11:39
by misha
Sorry for the delayed response. I (VBox 3D developer) am willing to have a look into this problem. Could you please provide me with detailed steps to reproduce it.
You can post me either here or directly at mikhail dot sennikovsky at oracle dot com