Panda crash on Fedora

Hello all, I am running into a very frustrating problem with Panda3D. I downloaded the RPM from here for Fedora 9 (64bit) and installed the package with no problem.
I was told that Panda was so easy to use, but I cannot even get the simplest program running.
I created a simple test file as suggested in the manual, the file only contains:

import direct.directbase.DirectStart
run()

but whenever I run this, the program crashes horribly. A window is briefly seen, opening and closing. This is what I get on the console:

$ python test.py 
DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
:util(warning): Adjusting global clock's real time by 0.582924 seconds.
*** glibc detected *** python: malloc(): memory corruption: 0x000000000227c150 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3bf2e7b5df]
/lib64/libc.so.6(__libc_malloc+0x98)[0x3bf2e7ce18]
/usr/lib64/libpython2.5.so.1.0(_PyObject_GC_Malloc+0xa)[0x3c096e7fba]
/usr/lib64/libpython2.5.so.1.0(_PyObject_GC_NewVar+0x2e)[0x3c096e80ae]
/usr/lib64/libpython2.5.so.1.0(PyFrame_New+0x3c9)[0x3c0965a9a9]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x8a)[0x3c096bf3fa]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x58cc)[0x3c096be45c]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x70d)[0x3c096bfa7d]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCode+0x32)[0x3c096bfcc2]
/usr/lib64/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xc0)[0x3c096d1dd0]
/usr/lib64/libpython2.5.so.1.0[0x3c096d2058]
/usr/lib64/libpython2.5.so.1.0[0x3c096d3749]
/usr/lib64/libpython2.5.so.1.0[0x3c096d39e2]
/usr/lib64/libpython2.5.so.1.0[0x3c096d402f]
/usr/lib64/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x45)[0x3c096d4395]
/usr/lib64/libpython2.5.so.1.0[0x3c096b79cd]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x71)[0x3c096b7fc1]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1e7c)[0x3c096baa0c]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x70d)[0x3c096bfa7d]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCode+0x32)[0x3c096bfcc2]
/usr/lib64/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xc0)[0x3c096d1dd0]
/usr/lib64/libpython2.5.so.1.0[0x3c096d2058]
/usr/lib64/libpython2.5.so.1.0[0x3c096d3749]
/usr/lib64/libpython2.5.so.1.0[0x3c096d39e2]
/usr/lib64/libpython2.5.so.1.0[0x3c096d4076]
/usr/lib64/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x45)[0x3c096d4395]
/usr/lib64/libpython2.5.so.1.0[0x3c096b79cd]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x71)[0x3c096b7fc1]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1e7c)[0x3c096baa0c]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x70d)[0x3c096bfa7d]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCode+0x32)[0x3c096bfcc2]
/usr/lib64/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xc0)[0x3c096d1dd0]
/usr/lib64/libpython2.5.so.1.0[0x3c096d2058]
/usr/lib64/libpython2.5.so.1.0[0x3c096d3749]
/usr/lib64/libpython2.5.so.1.0[0x3c096d39e2]
/usr/lib64/libpython2.5.so.1.0[0x3c096d402f]
/usr/lib64/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x45)[0x3c096d4395]
/usr/lib64/libpython2.5.so.1.0[0x3c096b79cd]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x71)[0x3c096b7fc1]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1e7c)[0x3c096baa0c]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x70d)[0x3c096bfa7d]
/usr/lib64/libpython2.5.so.1.0[0x3c0965ba32]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0[0x3c096443b0]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x71)[0x3c096b7fc1]
/usr/lib64/libpython2.5.so.1.0(PyInstance_New+0x76)[0x3c09648326]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x2db3)[0x3c096bb943]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x70d)[0x3c096bfa7d]
/usr/lib64/libpython2.5.so.1.0(PyEval_EvalCode+0x32)[0x3c096bfcc2]
/usr/lib64/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xc0)[0x3c096d1dd0]
/usr/lib64/libpython2.5.so.1.0[0x3c096d2058]
/usr/lib64/libpython2.5.so.1.0[0x3c096d3749]
/usr/lib64/libpython2.5.so.1.0[0x3c096d39e2]
/usr/lib64/libpython2.5.so.1.0[0x3c096d4076]
/usr/lib64/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x45)[0x3c096d4395]
/usr/lib64/libpython2.5.so.1.0[0x3c096b79cd]
/usr/lib64/libpython2.5.so.1.0(PyObject_Call+0x13)[0x3c0963d173]
/usr/lib64/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x71)[0x3c096b7fc1]
======= Memory map: ========
00110000-00139000 r-xp 00000000 fd:03 4227221                            /usr/lib/panda3d/libp3dtool.so
00139000-00338000 ---p 00029000 fd:03 4227221                            /usr/lib/panda3d/libp3dtool.so
00338000-0033a000 rw-p 00028000 fd:03 4227221                            /usr/lib/panda3d/libp3dtool.so
0033a000-0033c000 rwxp 00000000 00:0e 765                                /dev/zero
00400000-00401000 r-xp 00000000 fd:03 3467185                            /usr/bin/python
0048f000-004d9000 r-xp 00000000 fd:03 4227200                            /usr/lib/panda3d/libCgGL.so
004d9000-005d8000 ---p 0004a000 fd:03 4227200                            /usr/lib/panda3d/libCgGL.so
005d8000-005e2000 rw-p 00049000 fd:03 4227200                            /usr/lib/panda3d/libCgGL.so
005e2000-005f6000 rw-p 005e2000 00:00 0 
00600000-00601000 rw-p 00000000 fd:03 3467185                            /usr/bin/python
006b7000-00930000 r-xp 00000000 fd:03 4227234                            /usr/lib/panda3d/libpandaexpress.so
00930000-00b2f000 ---p 00279000 fd:03 4227234                            /usr/lib/panda3d/libpandaexpress.so
00b2f000-00b4f000 rw-p 00278000 fd:03 4227234                            /usr/lib/panda3d/libpandaexpress.so
00b4f000-00b58000 rw-p 00b4f000 00:00 0 
00b58000-00baa000 r-xp 00000000 fd:03 4227222                            /usr/lib/panda3d/libp3dtoolconfig.so
00baa000-00daa000 ---p 00052000 fd:03 4227222                            /usr/lib/panda3d/libp3dtoolconfig.so
00daa000-00dad000 rw-p 00052000 fd:03 4227222                            /usr/lib/panda3d/libp3dtoolconfig.so
00dad000-00dae000 rw-p 00dad000 00:00 0 
00dae000-0110a000 r-xp 00000000 fd:03 4227199                            /usr/lib/panda3d/libCg.so
0110a000-0120a000 ---p 0035c000 fd:03 4227199                            /usr/lib/panda3d/libCg.so
0120a000-012b9000 rw-p 0035c000 fd:03 4227199                            /usr/lib/panda3d/libCg.so
012b9000-012cb000 rw-p 012b9000 00:00 0 
012cb000-0141b000 r-xp 00000000 fd:03 4227220                            /usr/lib/panda3d/libp3direct.so
0141b000-0161a000 ---p 00150000 fd:03 4227220                            /usr/lib/panda3d/libp3direct.so
0161a000-01629000 rw-p 0014f000 fd:03 4227220                            /usr/lib/panda3d/libp3direct.so
01629000-0162d000 rw-p 01629000 00:00 0 
017a9000-022ac000 rw-p 017a9000 00:00 0                                  [heap]
05f7a000-05f9f000 r-xp 00000000 fd:03 11862285                           /usr/lib64/libpng12.so.0.34.0
05f9f000-0619e000 ---p 00025000 fd:03 11862285                           /usr/lib64/libpng12.so.0.34.0
0619e000-0619f000 rw-p 00024000 fd:03 11862285                           /usr/lib64/libpng12.so.0.34.0
063e4000-063e5000 r-xp 00000000 fd:03 3793494                            /usr/lib64/nvidia/tls/libnvidia-tls.so.173.14.15
063e5000-064e4000 ---p 00001000 fd:03 3793494                            /usr/lib64/nvidia/tls/libnvidia-tls.so.173.14.15
064e4000-064e5000 rw-p 00000000 fd:03 3793494                            /usr/lib64/nvidia/tls/libnvidia-tls.so.173.14.15
06c0b000-06c48000 r-xp 00000000 fd:03 4227235                            /usr/lib/panda3d/libpandafx.so
06c48000-06e47000 ---p 0003d000 fd:03 4227235                            /usr/lib/panda3d/libpandafx.so
06e47000-06e4b000 rw-p 0003c000 fd:03 4227235                            /usr/lib/panda3d/libpandafx.so
07535000-07698000 r-xp 00000000 fd:03 4227240                            /usr/lib/panda3d/libpandaphysics.so
07698000-07898000 ---p 00163000 fd:03 4227240                            /usr/lib/panda3d/libpandaphysics.so
07898000-078ac000 rw-p 00163000 fd:03 4227240                            /usr/lib/panda3d/libpandaphysics.so
078ac000-078b2000 rw-p 078ac000 00:00 0 
4041c000-4041d000 ---p 4041c000 00:00 0 
4041d000-40e1d000 rwxp 4041d000 00:00 0 
41a85000-41b0a000 rw-p 00000000 00:0e 765                                /dev/zero
41db4000-41db5000 ---p 41db4000 00:00 0 
41db5000-427b5000 rwxp 41db5000 00:00 0 
3022200000-3022203Aborted

My python version is 2.5.1. I have the system updated to the latest available packages. Seems like there is a problem with glibc but what could it be, wrong version? The package in my system for glibc is version 2.8-8. Any suggestions are greatly appreciated.

I can bet my bottom dollar that the problem is OpenAL.
Try editing your /etc/Config.prc file, search for the line that contains “audio-library-name libp3openal_audio”, and replace the value with “libp3fmod_audio”.

I really thought I fixed this in 1.5.4.

Thank you! Surely enough the program now works. I get the grey window. I tried some other examples and they run too. The only problem is that I get errors on the audio now:

$ python test.py 
DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
:audio(error): _system->init(): Error initializing output device. 
:audio(error): _system->init(): Error initializing output device. 
:util(warning): Adjusting global clock's real time by 0.896807 seconds.
:util(warning): Adjusting global clock's real time by -0.021992 seconds.

I may need to tweak some the audio configuration, but at least the rest is working.

Oh, it just means Panda can’t initialize audio since some other application is already using it. Try shutting down all the applications using sound. (Shutting down pulseaudio works for me, too.)

I haven’t tried this, but should fix it :
ubuntuforums.org/showthread.php?t=789578