[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, some INCREF may be missing. The issue may be with the callback mechanism; these are usually difficult to get right. Actually by pure luck I found suspect code that may be the cause of this crash: in src/event/listener_python.cc, the "Args" tuple is

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Kai Sterker
Kai Sterker added the comment: To compile against a python version that is not system-default, configure with PYTHON=/usr/bin/python2.7 ../adonthell/configure --with-py-cflags=-I/usr/include/python2.7 --with-py-libs=-lpython2.7 Regardless of that, your hints are proving useful. I compiled

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This programs embeds a Python interpreter and uses the C API extensively. I tried to compile it, but could not make it use Python 2.7. Your stracktrace suggests a buffer overflow, or reuse of a freed object: "ob_refcnt = 8462385097079783424, ob_type = 0x7

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Kai Sterker
New submission from Kai Sterker : Since update to Python 2.7.3 (as distributed by Ubuntu 12.04 64bit), I experience occasional crashes in the application I am developing (which uses Python scripting). The crash either happens at the first key press or it does not happen at all. Smells like a r