Getting a core dump

I have to use openGL for a graphics class I’m taking currently. So far I’ve compiled and run several different projects without issue, however recently something went completely bonkers and I’m having difficulty getting to the cause of it.

The issue is I can’t run any program using openGL at the moment regardless of when it was made/compiled.
Solution files I downloaded from the teacher’s website ages ago all fail to run with the same error despite being fine two days ago:

OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x951de10
OpenGL Warning: Retry with 0xd1 returned 1 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x951de10
OpenGL Warning: Retry with 0xd1 returned 1 visuals
framework.cpp:65: OpenGL error “invalid enumerant” (0x0500) detected on call:
glutReshapeWindow(defaultCanvasWidth, defaultCanvasHeight)
– exiting with core dump (where available)

framework.cpp is a file that’s provided to us by the teacher and involves no coding to be done by us, and again, there can’t possibly be something wrong with it as the compiled version of these programs were fine for the last four months.

Does anyone know of some kind of Ubuntu update or really any other possibility that could’ve caused this OS wide issue?

Again, I can technically provide code, but code shouldn’t be the problem here, it was working only days ago, no changes made period.

Google for your problem:

Suggests work-around of:


Sounds like your GPU’s GL drivers are mis-installed or your application is mis-linked. Using VirtualBox or Chromium by chance? Let’s see:

glxinfo | egrep 'version|renderer|vendor' ldd which glxinfo

ldd my_pgm

Disabling the hardware acceleration did work, thank you.
I am using VirtualBox, sorry about not specifying that beforehand. Specifically I’m running Ubuntu 10.04 LTS on VirtualBox under Windows 7

Not sure whether or not you still need any of that information, since I guess the workaround does indeed… well, work, but running those commands gets me these:

$ glxinfo | egrep ‘version|renderer|vendor’
server glx vendor string: Chromium
server glx version string: 1.3 Chromium
client glx vendor string: Chromium
client glx version string: 1.3 Chromium
GLX version: 1.3
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.0 Chromium 1.9
OpenGL shading language version string: 1.10 - Intel Build
$ ldd which glxinfo => (0x003da000) => /usr/lib/mesa/ (0x0031f000) => /lib/tls/i686/cmov/ (0x004e7000) => /usr/lib/ (0x0099b000) => /lib/tls/i686/cmov/ (0x00db4000) => /lib/tls/i686/cmov/ (0x00549000) => /usr/lib/ (0x00110000) => /usr/lib/ (0x008e6000) => /usr/lib/ (0x00120000) => /usr/lib/ (0x00b19000) => /lib/ (0x00f81000) => /lib/tls/i686/cmov/ (0x002eb000)
/lib/ (0x00af1000) => /usr/lib/ (0x00871000) => /lib/tls/i686/cmov/ (0x001f2000) => /usr/lib/ (0x0083e000) => /usr/lib/ (0x002c6000)
$ ldd my_pgm => (0x0055c000) => /usr/lib/ (0x00c3f000) => /usr/lib/ (0x00110000) => /usr/lib/ (0x00b1c000) => /lib/tls/i686/cmov/ (0x00a5f000) => /lib/ (0x00c76000) => /lib/tls/i686/cmov/ (0x00181000) => /usr/lib/mesa/ (0x002db000) => /lib/tls/i686/cmov/ (0x00de6000) => /usr/lib/ (0x00f2d000) => /usr/lib/ (0x00340000) => /usr/lib/ (0x00d89000) => /usr/lib/ (0x0045d000)
/lib/ (0x00629000) => /usr/lib/ (0x00865000) => /usr/lib/ (0x008a0000) => /lib/ (0x00a25000) => /lib/tls/i686/cmov/ (0x00fbd000) => /usr/lib/ (0x0046b000) => /lib/tls/i686/cmov/ (0x00485000) => /usr/lib/ (0x00d30000) => /usr/lib/ (0x00774000)

Glad that did it. Yeah, at least the facts align here. VirtualBox/Chromium related.