OpenGL related crash

Bug #363432 reported by Dmitriy
4
Affects Status Importance Assigned to Milestone
GLiPy
Won't Fix
Low
Nicolas Rougier

Bug Description

When I try to run GLiPy (the Bazaar version), it crashes with the message below:

*** glibc detected *** /usr/bin/python: corrupted double-linked list:
0x000000000314dc90 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fd0c9d788b8]
/lib/libc.so.6[0x7fd0c9d7a20e]
/lib/libc.so.6(cfree+0x76)[0x7fd0c9d7a3f6]
/usr/lib/libpython2.6.so.1.0[0x7fd0ca987bbb]
/usr/lib/libpython2.6.so.1.0[0x7fd0ca95786b]
/usr/lib/libpython2.6.so.1.0[0x7fd0ca985e27]
/usr/lib/libpython2.6.so.1.0(PyDict_SetItem+0x70)[0x7fd0ca987ed0]
/usr/lib/libpython2.6.so.1.0(_PyModule_Clear+0x14f)[0x7fd0ca98a94f]
/usr/lib/libpython2.6.so.1.0(PyImport_Cleanup+0x441)[0x7fd0caa02e91]
/usr/lib/libpython2.6.so.1.0(Py_Finalize+0x9d)[0x7fd0caa0dfcd]
/usr/lib/libpython2.6.so.1.0(Py_Main+0x54d)[0x7fd0caa1c7ed]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fd0c9d24546]
/usr/bin/python[0x400679]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:07 46592 /usr/bin/python2.6
00600000-00601000 rw-p 00000000 08:07 46592 /usr/bin/python2.6
0152f000-032a8000 rw-p 0152f000 00:00 0
[heap]
7fd0bc0fc000-7fd0bc0fe000 r-xp 00000000 08:07 47701
/usr/lib/python2.6/lib-dynload/resource.so
7fd0bc0fe000-7fd0bc2fe000 ---p 00002000 08:07 47701
/usr/lib/python2.6/lib-dynload/resource.so
7fd0bc2fe000-7fd0bc2ff000 rw-p 00002000 08:07 47701
/usr/lib/python2.6/lib-dynload/resource.so
7fd0bc2ff000-7fd0bc467000 r-xp 00000000 08:07 33939
/usr/lib/libcrypto.so.0.9.8
7fd0bc467000-7fd0bc666000 ---p 00168000 08:07 33939
/usr/lib/libcrypto.so.0.9.8
7fd0bc666000-7fd0bc68b000 rw-p 00167000 08:07 33939
/usr/lib/libcrypto.so.0.9.8
7fd0bc68b000-7fd0bc68e000 rw-p 7fd0bc68b000 00:00 0
7fd0bc68e000-7fd0bc6d8000 r-xp 00000000 08:07 33942 /usr/lib/libssl.so.0.9.8
7fd0bc6d8000-7fd0bc8d7000 ---p 0004a000 08:07 33942 /usr/lib/libssl.so.0.9.8
7fd0bc8d7000-7fd0bc8de000 rw-p 00049000 08:07 33942 /usr/lib/libssl.so.0.9.8
7fd0bc8de000-7fd0bc8e1000 r-xp 00000000 08:07 47727
/usr/lib/python2.6/lib-dynload/_hashlib.so
7fd0bc8e1000-7fd0bcae1000 ---p 00003000 08:07 47727
/usr/lib/python2.6/lib-dynload/_hashlib.so
7fd0bcae1000-7fd0bcae2000 rw-p 00003000 08:07 47727
/usr/lib/python2.6/lib-dynload/_hashlib.so
7fd0bcae2000-7fd0bcae6000 r-xp 00000000 08:07 47725
/usr/lib/python2.6/lib-dynload/termios.so
7fd0bcae6000-7fd0bcce6000 ---p 00004000 08:07 47725
/usr/lib/python2.6/lib-dynload/termios.so
7fd0bcce6000-7fd0bcce8000 rw-p 00004000 08:07 47725
/usr/lib/python2.6/lib-dynload/termios.so
7fd0bcce8000-7fd0bccfa000 r-xp 00000000 08:07 47728
/usr/lib/python2.6/lib-dynload/_curses.so
7fd0bccfa000-7fd0bcefa000 ---p 00012000 08:07 47728
/usr/lib/python2.6/lib-dynload/_curses.so
7fd0bcefa000-7fd0bcefc000 rw-p 00012000 08:07 47728
/usr/lib/python2.6/lib-dynload/_curses.so
7fd0bcefc000-7fd0bd1fd000 rw-p 7fd0bcefc000 00:00 0
7fd0bd1fd000-7fd0bd200000 r-xp 00000000 08:07 47686
/usr/lib/python2.6/lib-dynload/_heapq.so
7fd0bd200000-7fd0bd400000 ---p 00003000 08:07 47686
/usr/lib/python2.6/lib-dynload/_heapq.so
7fd0bd400000-7fd0bd402000 rw-p 00003000 08:07 47686
/usr/lib/python2.6/lib-dynload/_heapq.so
7fd0bd402000-7fd0bd404000 r-xp 00000000 08:07 47677
/usr/lib/python2.6/lib-dynload/_bisect.so
7fd0bd404000-7fd0bd603000 ---p 00002000 08:07 47677
/usr/lib/python2.6/lib-dynload/_bisect.so
7fd0bd603000-7fd0bd604000 rw-p 00001000 08:07 47677
/usr/lib/python2.6/lib-dynload/_bisect.so
7fd0bd604000-7fd0bd615000 r--p 00000000 08:07 89770
/usr/share/fonts/TTF/Vera.ttf
7fd0bd615000-7fd0bd62a000 r--s 00000000 08:07 151902
/var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86-64.cache-2
7fd0bd62a000-7fd0bd631000 r--s 00000000 08:07 90216
/var/cache/fontconfig/a98d8961fa319a64d3cfd8640c79e62d-x86-64.cache-2
7fd0bd631000-7fd0bd639000 r--s 00000000 08:07 151899
/var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86-64.cache-2
7fd0bd639000-7fd0bd65d000 r--s 00000000 08:07 151898
/var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86-64.cache-2
7fd0bd65d000-7fd0bd6b9000 r--s 00000000 08:07 151897
/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86-64.cache-2
7fd0bd6b9000-7fd0bd715000 r--s 00000000 08:07 151895
/var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86-64.cache-2
7fd0bd715000-7fd0bda6f000 rw-p 7fd0bd715000 00:00 0
7fd0bda6f000-7fd0bdaa7000 r-xp 00000000 08:07 153873
/usr/lib/python2.6/site-packages/numpy/random/mtrand.so
7fd0bdaa7000-7fd0bdca7000 ---p 00038000 08:07 153873
/usr/lib/python2.6/site-packages/numpy/random/mtrand.so
7fd0bdca7000-7fd0bdcba000 rw-p 00038000 08:07 153873
/usr/lib/python2.6/site-packages/numpy/random/mtrand.so
7fd0bdcba000-7fd0bdcc3000 r-xp 00000000 08:07 154383
/usr/lib/python2.6/site-packages/numpy/fft/fftpack_lite.so
7fd0bdcc3000-7fd0bdec2000 ---p 00009000 08:07 154383
/usr/lib/python2.6/site-packages/numpy/fft/fftpack_lite.so
7fd0bdec2000-7fd0bdec3000 rw-p 00008000 08:07 154383
/usr/lib/python2.6/site-packages/numpy/fft/fftpack_lite.so
7fd0bdec3000-7fd0bdecc000 r-xp 00000000 08:07 47724
/usr/lib/python2.6/lib-dynload/itertools.so
7fd0bdecc000-7fd0be0cc000 ---p 00009000 08:07 47724
/usr/lib/python2.6/lib-dynload/itertools.so
7fd0be0cc000-7fd0be0d0000 rw-p 00009000 08:07 47724
/usr/lib/python2.6/lib-dynload/itertools.so
7fd0be0d0000-7fd0be1a9000 r-xp 00000000 08:07 7033
/usr/lib/libgfortran.so.3.0.0
7fd0be1a9000-7fd0be3a9000 ---p 000d9000 08:07 7033
/usr/lib/libgfortran.so.3.0.0
7fd0be3a9000-7fd0be3ab000 rw-p 000d9000 08:07 7033
/usr/lib/libgfortran.so.3.0.0
7fd0be3ab000-7fd0be403000 r-xp 00000000 08:07 197225
/usr/lib/libblas.so.3.0.3
7fd0be403000-7fd0be602000 ---p 00058000 08:07 197225
/usr/lib/libblas.so.3.0.3
7fd0be602000-7fd0be603000 rw-p 00057000 08:07 197225
/usr/lib/libblas.so.3.0.3
7fd0be603000-7fd0beb06000 r-xp 00000000 08:07 197615 /usr/lib/liblapack.so.3
7fd0beb06000-7fd0bed06000 ---p 00503000 08:07 197615 /usr/lib/liblapack.so.3
7fd0bed06000-7fd0bed0a000 rw-p 00503000 08:07 197615 /usr/lib/liblapack.so.3
7fd0bed0a000-7fd0bee18000 rw-p 7fd0bed0a000 00:00 0
7fd0bee18000-7fd0bee1d000 r-xp 00000000 08:07 153894
/usr/lib/python2.6/site-packages/numpy/linalg/lapack_lite.so
7fd0bee1d000-7fd0bf01d000 ---p 00005000 08:07 153894
/usr/lib/python2.6/site-packages/numpy/linalg/lapack_lite.so
7fd0bf01d000-7fd0bf01e000 rw-p 00005000 08:07 153894
/usr/lib/python2.6/site-packages/numpy/linalg/lapack_lite.so
7fd0bf01e000-7fd0bf022000 r-xp 00000000 08:07 154321
/usr/lib/python2.6/site-packages/numpy/lib/_compiled_base.so
7fd0bf022000-7fd0bf221000 ---p 00004000 08:07 154321
/usr/lib/python2.6/site-packages/numpy/lib/_compiled_base.so
7fd0bf221000-7fd0bf222000 rw-p 00003000 08:07 154321
/usr/lib/python2.6/site-packages/numpy/lib/_compiled_base.so
7fd0bf222000-7fd0bf247000 r-xp 00000000 08:07 154154
/usr/lib/python2.6/site-packages/numpy/core/scalarmath.so
7fd0bf247000-7fd0bf446000 ---p 00025000 08:07 154154
/usr/lib/python2.6/site-packages/numpy/core/scalarmath.so
7fd0bf446000-7fd0bf448000 rw-p 00024000 08:07 154154
/usr/lib/python2.6/site-packages/numpy/core/scalarmath.so
7fd0bf448000-7fd0bf45b000 r-xp 00000000 08:07 47709
/usr/lib/python2.6/lib-dynload/cPickle.so
7fd0bf45b000-7fd0bf65a000 ---p 00013000 08:07 47709
/usr/lib/python2.6/lib-dynload/cPickle.so
7fd0bf65a000-7fd0bf65c000 rw-p 00012000 08:07 47709
/usr/lib/python2.6/lib-dynload/cPickle.so
7fd0bf65c000-7fd0bf66e000 r-xp 00000000 08:07 154152
/usr/lib/python2.6/site-packages/numpy/core/_sort.so
7fd0bf66e000-7fd0bf86e000 ---p 00012000 08:07 154152
/usr/lib/python2.6/site-packages/numpy/core/_sort.so
7fd0bf86e000-7fd0bf86f000 rw-p 00012000 08:07 154152
/usr/lib/python2.6/site-packages/numpy/core/_sort.so
7fd0bf86f000-7fd0bf8b2000 r-xp 00000000 08:07 154163
/usr/lib/python2.6/site-paAborted

Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

Running glipy/glipy/terminal/console.py also crashes with the following error:
Mesa 7.2 implementation error: referencing deleted buffer object
Please report at bugzilla.freedesktop.org
Traceback (most recent call last):
  File "console.py", line 433, in <module>
    pyglet.app.run()
  File "/usr/lib/python2.6/site-packages/pyglet/app/__init__.py", line 264, in run
    EventLoop().run()
  File "/usr/lib/python2.6/site-packages/pyglet/app/xlib.py", line 94, in run
    sleep_time = self.idle()
  File "/usr/lib/python2.6/site-packages/pyglet/app/__init__.py", line 193, in idle
    window.dispatch_event('on_draw')
  File "/usr/lib/python2.6/site-packages/pyglet/window/__init__.py", line 1217, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "/usr/lib/python2.6/site-packages/pyglet/event.py", line 340, in dispatch_event
    if handler(*args):
  File "console.py", line 421, in on_draw
    console.draw()
  File "console.py", line 191, in draw
    self._batch.draw()
  File "/usr/lib/python2.6/site-packages/pyglet/graphics/__init__.py", line 538, in draw
    func()
  File "/usr/lib/python2.6/site-packages/pyglet/graphics/__init__.py", line 470, in <lambda>
    (lambda d, m: lambda: d.draw(m))(domain, mode))
  File "/usr/lib/python2.6/site-packages/pyglet/graphics/vertexdomain.py", line 270, in draw
    buffer.bind()
  File "/usr/lib/python2.6/site-packages/pyglet/graphics/vertexbuffer.py", line 398, in bind
    self.data_ptr + self._dirty_min)
  File "/usr/lib/python2.6/site-packages/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: invalid enumerant

Revision history for this message
Nicolas Rougier (rougier) wrote :

I fear the last line of the traceback indicates a problem with vertex arrays and probably opengl driver (mesa ?).

Are you able to run all pyglet examples without errors ?
What is your architecture and system ?
If linux, can you try glxinfo to see if you have direct or indirect rendering ?

Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote : Re: [Bug 363432] Re: OpenGL related crash

On Sat, Apr 18, 2009 at 2:27 PM, Nicolas Rougier
<email address hidden> wrote:
>
> I fear the last line of the traceback indicates a problem with vertex arrays and probably opengl driver (mesa ?).
>
> Are you able to run all pyglet examples without errors ?

I just tried them and I get the same type of errors on all pyglet
examples, so the probelm appears to be upstream.

> What is your architecture and system ?
> If linux, can you try glxinfo to see if you have direct or indirect rendering ?

I am on Linux (ArchLinux to be precise); glxinfo reports that I have
direct rendering.

Best,
Dmitriy

Revision history for this message
Dmitriy (6-launchpad-foxcub-org) wrote :

Turned out all I needed was a system upgrade. After updating all the
packages in my distribution (a few of them were xorg and OpenGL
related), everything works. Pyglets work and so does GLiPy, which
might I add looks great.

Sorry for the trouble and thanks for your help.
Dmitriy

On Sat, Apr 18, 2009 at 8:22 PM, Dmitriy Morozov <email address hidden> wrote:
> On Sat, Apr 18, 2009 at 2:27 PM, Nicolas Rougier
> <email address hidden> wrote:
>>
>> I fear the last line of the traceback indicates a problem with vertex arrays and probably opengl driver (mesa ?).
>>
>> Are you able to run all pyglet examples without errors ?
>
> I just tried them and I get the same type of errors on all pyglet
> examples, so the probelm appears to be upstream.
>
>> What is your architecture and system ?
>> If linux, can you try glxinfo to see if you have direct or indirect rendering ?
>
> I am on Linux (ArchLinux to be precise); glxinfo reports that I have
> direct rendering.
>
> Best,
> Dmitriy
>

Changed in glipy:
assignee: nobody → rougier
status: New → Incomplete
importance: Undecided → Low
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.