PDA

View Full Version : Getting a core dump



JoeChief
10-20-2011, 11:04 PM
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)
Aborted


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.

Dark Photon
10-21-2011, 05:04 AM
Google for your problem:

* https://forums.virtualbox.org/viewtopic.php?f=3&t=30964

Suggests work-around of:

env LIBGL_ALWAYS_INDIRECT=1 ./my_pgm

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

JoeChief
10-21-2011, 01:40 PM
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 8.14.10.1930
$ ldd `which glxinfo` linux-gate.so.1 => (0x003da000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x0031f000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x004e7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0099b000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00db4000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00549000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00110000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x008e6000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00120000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00b19000)
libdrm.so.2 => /lib/libdrm.so.2 (0x00f81000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x002eb000)
/lib/ld-linux.so.2 (0x00af1000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00871000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x001f2000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x0083e000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x002c6000)
$ ldd my_pgm
linux-gate.so.1 => (0x0055c000)
libglut.so.3 => /usr/lib/libglut.so.3 (0x00c3f000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00110000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b1c000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00a5f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c76000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00181000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x002db000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00de6000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00f2d000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00340000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00d89000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x0045d000)
/lib/ld-linux.so.2 (0x00629000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00865000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x008a0000)
libdrm.so.2 => /lib/libdrm.so.2 (0x00a25000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00fbd000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x0046b000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00485000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00d30000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00774000)

Dark Photon
10-21-2011, 06:18 PM
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:
Glad that did it. Yeah, at least the facts align here. VirtualBox/Chromium related.