Comment 12 for bug 289925

Revision history for this message
shaman.sir (shaman-sir) wrote :

The same on i686 Ubuntu 8.10/Python2.6/PyOpenGL 3.0.0c1

but the cause seems to be another

:~$ python --version
Python 2.6.2

:~$ uname -a
Linux <machine> 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux

:~$ python
Python 2.6.2 (r262:71600, Apr 16 2009, 10:57:41)
[GCC 4.3.2] on linux2
>>> import OpenGL
>>> OpenGL.__version__
'3.0.0c1'

:~$ gdb python
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/python
[Thread debugging using libthread_db enabled]
Python 2.6.2 (r262:71600, Apr 16 2009, 10:57:41)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[New Thread 0xb7e8c8c0 (LWP 20735)]
>>> from OpenGL import GLUT
>>> GLUT.glutInitDisplayMode(GLUT.GLUT_RGBA | GLUT.GLUT_DOUBLE)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e8c8c0 (LWP 20735)]
0xb7c26156 in glGetError () from /usr/lib/libGL.so.1
(gdb) bt
#0 0xb7c26156 in glGetError () from /usr/lib/libGL.so.1
#1 0xb7cdbf67 in ffi_call_SYSV ()
    at /home/shamansir/Software/Packages/Python-2.6.2/Modules/_ctypes/libffi/src/x86/sysv.S:61
#2 0xb7cdbda6 in ffi_call (cif=0xbfc603a8, fn=0xb7c26150 <glGetError>,
    rvalue=0x0, avalue=0xbfc60420)
    at /home/shamansir/Software/Packages/Python-2.6.2/Modules/_ctypes/libffi/src/x86/ffi.c:213
#3 0xb7cd64aa in _CallProc (pProc=0xb7c26150 <glGetError>,
    argtuple=0xb7e4c02c, flags=<value optimized out>, argtypes=0x0,
    restype=0x93402f4, checker=0x0)
    at /home/shamansir/Software/Packages/Python-2.6.2/Modules/_ctypes/callproc.c:815
#4 0xb7ccdda9 in CFuncPtr_call (self=0xb7c617e4, inargs=0xb7e4c02c, kwds=0x0)
    at /home/shamansir/Software/Packages/Python-2.6.2/Modules/_ctypes/_ctypes.c:3857
#5 0x0805f6ca in PyObject_Call (func=0xb7c617e4, arg=0xb7e4c02c, kw=0x0)
    at Objects/abstract.c:2492
#6 0x080dace2 in PyEval_EvalFrameEx (f=0x93ae2ac, throwflag=0)
    at Python/ceval.c:3917
#7 0x080dddb8 in PyEval_EvalCodeEx (co=0xb7c7ee78, globals=0xb7c8802c,
    locals=0x0, args=0xb7e3d970, argcount=4, kws=0x0, kwcount=0,
    defs=0xb7c83cf8, defcount=2, closure=0x0) at Python/ceval.c:2968
---Type <return> to continue, or q <return> to quit---
#8 0x0813206f in function_call (func=0xb7c7f844, arg=0xb7e3d964, kw=0x0)
    at Objects/funcobject.c:524
#9 0x0805f6ca in PyObject_Call (func=0xb7c7f844, arg=0xb7e3d964, kw=0x0)
    at Objects/abstract.c:2492
#10 0x080665ca in instancemethod_call (func=0xb7c7f844, arg=0xb7e3d964, kw=0x0)
    at Objects/classobject.c:2579
#11 0x080640d1 in PyObject_CallFunctionObjArgs (callable=0xb7d21eb4)
    at Objects/abstract.c:2492
#12 0xb7ccdde3 in CFuncPtr_call (self=0xb78bd984, inargs=0xb7e7ad0c, kwds=0x0)
    at /home/shamansir/Software/Packages/Python-2.6.2/Modules/_ctypes/_ctypes.c:3873
#13 0x0805f6ca in PyObject_Call (func=0xb78bd984, arg=0xb7e7ad0c, kw=0x0)
    at Objects/abstract.c:2492
#14 0x080dace2 in PyEval_EvalFrameEx (f=0x933028c, throwflag=0)
    at Python/ceval.c:3917
#15 0x080dddb8 in PyEval_EvalCodeEx (co=0xb7e18e30, globals=0xb7e6f0b4,
    locals=0xb7e6f0b4, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:2968
#16 0x080ddf17 in PyEval_EvalCode (co=0xb7e18e30, globals=0xb7e6f0b4,
    locals=0xb7e6f0b4) at Python/ceval.c:522
#17 0x080fb6b5 in PyRun_InteractiveOneFlags (fp=0xb7fe7420,
    filename=0x81490df "<stdin>", flags=0xbfc61148) at Python/pythonrun.c:1335
#18 0x080fb948 in PyRun_InteractiveLoopFlags (fp=0xb7fe7420,
---Type <return> to continue, or q <return> to quit---
    filename=0x81490df "<stdin>", flags=0xbfc61148) at Python/pythonrun.c:760
#19 0x080fc186 in PyRun_AnyFileExFlags (fp=0xb7fe7420,
    filename=0x81490df "<stdin>", closeit=0, flags=0xbfc61148)
    at Python/pythonrun.c:729
#20 0x0805ae42 in Py_Main (argc=0, argv=0xbfc61214) at Modules/main.c:599
#21 0x08059f32 in main (argc=-1077541912, argv=0xb7cdbda6)
    at ./Modules/python.c:23