Hallo Thomas, all!
just playing around with pyext to make a simple remote procedure call I have the following problem: (python script is attached)
when I try to call the method "trigger" from an other program, PD always is crashing with the following backtrace:
----------8<---------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1345365072 (LWP 7095)] 0xb6d34602 in pyext::pyext_outlet () from /usr/lib/pd/extra/py.pd_linux (gdb) bt #0 0xb6d34602 in pyext::pyext_outlet () from /usr/lib/pd/extra/py.pd_linux #1 0xb6c57308 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0 #2 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #3 0xb6c8dd4c in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #4 0xb6c91a4a in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0 #5 0xb6c44845 in PyFunction_SetClosure () from /usr/lib/libpython2.3.so.1.0 #6 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #7 0xb6c8f422 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #8 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #9 0xb6c91a4a in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0 #10 0xb6c90b1f in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #11 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #12 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #13 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #14 0xb6c91a4a in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0 #15 0xb6c44845 in PyFunction_SetClosure () from /usr/lib/libpython2.3.so.1.0 #16 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #17 0xb6c314c3 in PyMethod_New () from /usr/lib/libpython2.3.so.1.0 #18 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #19 0xb6c8b11d in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.3.so.1.0 #20 0xb6c33c0a in PyInstance_New () from /usr/lib/libpython2.3.so.1.0 #21 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 ---Type <return> to continue, or q <return> to quit--- #22 0xb6c8dd4c in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #23 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #24 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #25 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #26 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #27 0xb6c90da5 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0 #28 0xb6c91a4a in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0 #29 0xb6c44845 in PyFunction_SetClosure () from /usr/lib/libpython2.3.so.1.0 #30 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #31 0xb6c314c3 in PyMethod_New () from /usr/lib/libpython2.3.so.1.0 #32 0xb6c29f2a in PyObject_Call () from /usr/lib/libpython2.3.so.1.0 #33 0xb6c8b11d in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.3.so.1.0 #34 0xb6cbdf71 in PyGC_Collect () from /usr/lib/libpython2.3.so.1.0 #35 0xb7f9fccd in start_thread () from /lib/tls/libpthread.so.0 #36 0xb7f33b0e in clone () from /lib/tls/libc.so.6 (gdb) -------------8<------------
I gues I am using something in a wrong way, but if I don't try to send the number to the outlet (line 31 in xmlrpc_server.py) there is no crash (e.g. a simple print in python works fine ...)
Thanks for any hint, LG Georg