After installing pyglet, the first test fails with a segfault on RHEL4
(with a locally-compiled Python 2.5).  Running in gdb gives the
traceback below.  It seems to be segfaulting in libGL.so.  The version
I have came with x.org 6.8.2-1.EL.33:

> rpm -qf /usr/X11R6/lib/libGL.so
xorg-x11-devel-6.8.2-1.EL.33

Is that version not compatible with pyglet?  Is there a list of
dependencies and their versions somewhere?  (I know the website says
"No external dependencies or installation requirements" but more
specifics would be nice.  I don't want to avoid upgrading any required
dependencies unless I have to.)

Cheers,
Mike

> gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.1rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run test.py
Starting program: /wonkabar/data1/usr/bin/python test.py
[Thread debugging using libthread_db enabled]
[New Thread -1208571232 (LWP 30247)]
------------------------------------------------------------------------------
Test that a window can be opened.

Expected behaviour:
    One small window will be opened coloured purple.

    Close the window or press ESC to end the test.

Press return to begin test...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208571232 (LWP 30247)]
0x00b10dcc in _glthread_SetTSD () from /usr/X11R6/lib/libGL.so
(gdb) bt
#0  0x00b10dcc in _glthread_SetTSD () from /usr/X11R6/lib/libGL.so
#1  0x008c36ef in ffi_call_SYSV ()
    at /wonka/data1/builds/Python-2.5.1/Modules/_ctypes/libffi/src/x86/
sysv.S:60
#2  0x008c35f2 in ffi_call (cif=0xbfe95150, fn=0xb114e7
<glXCreateWindow>,
    rvalue=0xbfe950a0, avalue=0xbfe95080)
    at /wonka/data1/builds/Python-2.5.1/Modules/_ctypes/libffi/src/x86/
ffi.c:221
#3  0x008be206 in _CallProc (pProc=0xb114e7 <glXCreateWindow>,
argtuple=0x890921c,
    flags=4097, argtypes=0x87db7cc, restype=0x856964c, checker=0x0)
    at /wonka/data1/builds/Python-2.5.1/Modules/_ctypes/callproc.c:665
#4  0x008baa8c in CFuncPtr_call (self=0x87db63c, inargs=0x890921c,
kwds=0x0)
    at /wonka/data1/builds/Python-2.5.1/Modules/_ctypes/_ctypes.c:3362
#5  0x0805d80c in PyObject_Call (func=0x0, arg=0x890921c, kw=0x0)
    at Objects/abstract.c:1860
#6  0x080bdea4 in PyEval_EvalFrameEx (f=0x895424c, throwflag=0) at
Python/ceval.c:3775
#7  0x080c2e02 in PyEval_EvalFrameEx (f=0x895037c, throwflag=0) at
Python/ceval.c:3650
#8  0x080c2e02 in PyEval_EvalFrameEx (f=0x8934c9c, throwflag=0) at
Python/ceval.c:3650
#9  0x080c3bb3 in PyEval_EvalCodeEx (co=0x8680448, globals=0x8777e3c,
locals=0x0,
    args=0x881fc48, argcount=3, kws=0x890f090, kwcount=0,
defs=0x8634800, defcount=12,
    closure=0x0) at Python/ceval.c:2831
#10 0x0810c06a in function_call (func=0x87b7ba4, arg=0x881fc3c,
kw=0x893482c)
    at Objects/funcobject.c:517
#11 0x0805d80c in PyObject_Call (func=0x0, arg=0x881fc3c,
kw=0x893482c)
    at Objects/abstract.c:1860
#12 0x080be4b6 in PyEval_EvalFrameEx (f=0x89346b4, throwflag=0) at
Python/ceval.c:3844
#13 0x080c3bb3 in PyEval_EvalCodeEx (co=0x87c9cb0, globals=0x87a5eec,
locals=0x0,
    args=0x881fab0, argcount=3, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0)
    at Python/ceval.c:2831
#14 0x0810c06a in function_call (func=0x881d5bc, arg=0x881faa4,
kw=0x0)
    at Objects/funcobject.c:517
#15 0x0805d80c in PyObject_Call (func=0x0, arg=0x881faa4, kw=0x0)
    at Objects/abstract.c:1860
#16 0x080666e1 in instancemethod_call (func=0x87a22f4, arg=0x881faa4,
kw=0x0)
    at Objects/classobject.c:2497
#17 0x0805d80c in PyObject_Call (func=0x0, arg=0x890a494, kw=0x0)
    at Objects/abstract.c:1860
#18 0x0809dea2 in slot_tp_init (self=0x891df84, args=0x890a494,
kwds=0x0)
    at Objects/typeobject.c:4862
#19 0x08096792 in type_call (type=0x88357e4, args=0x890a494, kwds=0x0)
    at Objects/typeobject.c:436
#20 0x0805d80c in PyObject_Call (func=0x0, arg=0x890a494, kw=0x0)
    at Objects/abstract.c:1860
#21 0x080bdea4 in PyEval_EvalFrameEx (f=0x8934554, throwflag=0) at
Python/ceval.c:3775
#22 0x080c2e02 in PyEval_EvalFrameEx (f=0x89343e4, throwflag=0) at
Python/ceval.c:3650
#23 0x080c2e02 in PyEval_EvalFrameEx (f=0x8933f94, throwflag=0) at
Python/ceval.c:3650
#24 0x080c3bb3 in PyEval_EvalCodeEx (co=0x83d5890, globals=0x83d3964,
locals=0x0,
    args=0x8908dc0, argcount=2, kws=0x8597d90, kwcount=0,
defs=0x8551098, defcount=1,
    closure=0x0) at Python/ceval.c:2831
#25 0x0810c06a in function_call (func=0x855104c, arg=0x8908db4,
kw=0x8933f04)
    at Objects/funcobject.c:517
#26 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908db4,
kw=0x8933f04)
    at Objects/abstract.c:1860
#27 0x080be4b6 in PyEval_EvalFrameEx (f=0x8933d9c, throwflag=0) at
Python/ceval.c:3844
#28 0x080c3bb3 in PyEval_EvalCodeEx (co=0x84f93c0, globals=0x83d3964,
locals=0x0,
    args=0x89092b8, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0)
    at Python/ceval.c:2831
#29 0x0810c06a in function_call (func=0x85510ac, arg=0x89092ac,
kw=0x0)
    at Objects/funcobject.c:517
#30 0x0805d80c in PyObject_Call (func=0x0, arg=0x89092ac, kw=0x0)
    at Objects/abstract.c:1860
#31 0x080666e1 in instancemethod_call (func=0x87a1e04, arg=0x89092ac,
kw=0x0)
    at Objects/classobject.c:2497
#32 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908aa4, kw=0x0)
    at Objects/abstract.c:1860
#33 0x0809d2d6 in slot_tp_call (self=0x891ec04, args=0x8908aa4,
kwds=0x0)
    at Objects/typeobject.c:4633
#34 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908aa4, kw=0x0)
    at Objects/abstract.c:1860
#35 0x080bdea4 in PyEval_EvalFrameEx (f=0x8933c34, throwflag=0) at
Python/ceval.c:3775
#36 0x080c3bb3 in PyEval_EvalCodeEx (co=0x83d82b0, globals=0x83d3964,
locals=0x0,
    args=0x8908d48, argcount=2, kws=0x8594830, kwcount=0, defs=0x0,
defcount=0,
    closure=0x0) at Python/ceval.c:2831
#37 0x0810c06a in function_call (func=0x855180c, arg=0x8908d3c,
kw=0x8933604)
    at Objects/funcobject.c:517
#38 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908d3c,
kw=0x8933604)
    at Objects/abstract.c:1860
---Type <return> to continue, or q <return> to quit---
#39 0x080be4b6 in PyEval_EvalFrameEx (f=0x8933acc, throwflag=0) at
Python/ceval.c:3844
#40 0x080c3bb3 in PyEval_EvalCodeEx (co=0x83d83f8, globals=0x83d3964,
locals=0x0,
    args=0x8908b88, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0)
    at Python/ceval.c:2831
#41 0x0810c06a in function_call (func=0x855184c, arg=0x8908b7c,
kw=0x0)
    at Objects/funcobject.c:517
#42 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908b7c, kw=0x0)
    at Objects/abstract.c:1860
#43 0x080666e1 in instancemethod_call (func=0x87a1914, arg=0x8908b7c,
kw=0x0)
    at Objects/classobject.c:2497
#44 0x0805d80c in PyObject_Call (func=0x0, arg=0x89084cc, kw=0x0)
    at Objects/abstract.c:1860
#45 0x0809d2d6 in slot_tp_call (self=0x8939c1c, args=0x89084cc,
kwds=0x0)
    at Objects/typeobject.c:4633
#46 0x0805d80c in PyObject_Call (func=0x0, arg=0x89084cc, kw=0x0)
    at Objects/abstract.c:1860
#47 0x080bdea4 in PyEval_EvalFrameEx (f=0x8933964, throwflag=0) at
Python/ceval.c:3775
#48 0x080c3bb3 in PyEval_EvalCodeEx (co=0x83d82b0, globals=0x83d3964,
locals=0x0,
    args=0x8908cc0, argcount=2, kws=0x8594a58, kwcount=0, defs=0x0,
defcount=0,
    closure=0x0) at Python/ceval.c:2831
#49 0x0810c06a in function_call (func=0x855180c, arg=0x8908cb4,
kw=0x8933574)
    at Objects/funcobject.c:517
#50 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908cb4,
kw=0x8933574)
    at Objects/abstract.c:1860
#51 0x080be4b6 in PyEval_EvalFrameEx (f=0x89336bc, throwflag=0) at
Python/ceval.c:3844
#52 0x080c3bb3 in PyEval_EvalCodeEx (co=0x83d83f8, globals=0x83d3964,
locals=0x0,
    args=0x8908210, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0)
    at Python/ceval.c:2831
#53 0x0810c06a in function_call (func=0x855184c, arg=0x8908204,
kw=0x0)
    at Objects/funcobject.c:517
#54 0x0805d80c in PyObject_Call (func=0x0, arg=0x8908204, kw=0x0)
    at Objects/abstract.c:1860
#55 0x080666e1 in instancemethod_call (func=0x87a1874, arg=0x8908204,
kw=0x0)
    at Objects/classobject.c:2497
#56 0x0805d80c in PyObject_Call (func=0x0, arg=0x890848c, kw=0x0)
    at Objects/abstract.c:1860
#57 0x0809d2d6 in slot_tp_call (self=0x891dc24, args=0x890848c,
kwds=0x0)
    at Objects/typeobject.c:4633
#58 0x0805d80c in PyObject_Call (func=0x0, arg=0x890848c, kw=0x0)
    at Objects/abstract.c:1860
#59 0x080bdea4 in PyEval_EvalFrameEx (f=0x891d0a4, throwflag=0) at
Python/ceval.c:3775
#60 0x080c2e02 in PyEval_EvalFrameEx (f=0x891cf1c, throwflag=0) at
Python/ceval.c:3650
#61 0x080c2e02 in PyEval_EvalFrameEx (f=0x891cdb4, throwflag=0) at
Python/ceval.c:3650
#62 0x080c2e02 in PyEval_EvalFrameEx (f=0x891cab4, throwflag=0) at
Python/ceval.c:3650
#63 0x080c2e02 in PyEval_EvalFrameEx (f=0x88fdc14, throwflag=0) at
Python/ceval.c:3650
#64 0x080c2e02 in PyEval_EvalFrameEx (f=0x84ca4dc, throwflag=0) at
Python/ceval.c:3650
#65 0x080c3bb3 in PyEval_EvalCodeEx (co=0x8526310, globals=0x836d0a4,
locals=0x836d0a4,
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
closure=0x0)
    at Python/ceval.c:2831
#66 0x080c3d02 in PyEval_EvalCode (co=0x8526310, globals=0x836d0a4,
locals=0x836d0a4)
    at Python/ceval.c:494
#67 0x080e2431 in PyRun_FileExFlags (fp=0x834d008, filename=0xbff4c4c8
"test.py",
    start=257, globals=0x836d0a4, locals=0x836d0a4, closeit=1,
flags=0xbfe98b1c)
    at Python/pythonrun.c:1271
#68 0x080e30b6 in PyRun_SimpleFileExFlags (fp=0x834d008,
filename=0xbff4c4c8 "test.py",
    closeit=1, flags=0xbfe98b1c) at Python/pythonrun.c:877
#69 0x08056e2d in Py_Main (argc=1, argv=0xbfe98c54) at Modules/main.c:
523
#70 0x080563cb in main (argc=2, argv=0xbfe98c54) at ./Modules/python.c:
23
(gdb)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to pyglet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to