Package: python2.4-dev
Version: 2.4.4-4

First of all, I'm not sure whether this is a bug with python2.4-dev or with
python2.4 itself, but I think as those packages are closely related, that
doesn't matter that much.

I have the following minimal reproducer of the problem:

[EMAIL PROTECTED] cat pytest.c
#include <Python.h>

int main()
{
    Py_Initialize();
    PyRun_SimpleString("print 'hello world1'");
    Py_Finalize();

    Py_Initialize();
    PyRun_SimpleString("print 'hello world2'");
    Py_Finalize();
}

Now, the two scenarios, one with python2.4 2.4.4-3 which works and
one with python2.4 2.4.4-4 which is broken:

[EMAIL PROTECTED] dpkg -l python2.4-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  python2.4-dev  2.4.4-3        Header files and a static library for Python
[EMAIL PROTECTED] gcc -o pytest pytest.c -I/usr/include/python2.4 -lpython2.4
[EMAIL PROTECTED] ./pytest 
hello world1
hello world2
[EMAIL PROTECTED] 

[EMAIL PROTECTED] dpkg -l python2.4-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  python2.4-dev  2.4.4-4        Header files and a static library for Python
[EMAIL PROTECTED] gcc -o pytest pytest.c -I/usr/include/python2.4 -lpython2.4
[EMAIL PROTECTED] ./pytest 
hello world1
hello world2
Segmentation fault
[EMAIL PROTECTED]

So, it looks like something broke between 2.4.4-3 and 2.4.4-4 which made
calling the interpreter more than once impossible.

Both is on Debian unstable with the difference of the two package versions.
If you need more information, please don't hesitate to contact me.

Greetings,
Stefan

-- 
Dipl.-Inf. Stefan Bellon
Axivion GmbH
Nobelstr. 15
70569 Stuttgart
Germany
Tel: +49 711 6204378-6
Fax: +49 711 6204378-9

Geschaeftsfuehrung: Stefan Bellon, Thomas Eisenbarth, Sebastian Rummler
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 720590


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to