#45 1.2 segfaults on Python 2.4rc1

closed-fixed
nobody
5
2004-12-04
2004-11-24
Jean M. Brouwers
No

We tried installing Psyco 1.2 in Python 2.4rc1**, both
from the pre-built binaries and from the source.

In both cases, Psyco/Python segfaults right after
'import psyco'.

It is unclear whether the fix for report #1051626 will
also fix this problem. Please advise. A backtrace is
attached.

/Jean Brouwers
ProphICy Semiconductor, Inc.

**) running on RedHat Linux 8 on dual Xeon

Discussion

  • Psyco core dump with Python 2.4rc1

     
    Attachments
  • Logged In: YES
    user_id=832557

    As requested, following is the patch, also attached.
    <pre>
    # patch for the file pychecker_0.8.14/pychecker/warn.py
    # $ diff warn_patched.py warn_original.py > warn.py.patch

    570,576c570,572
    < elif cfg().emptySlots:
    < try: # like 0.8.12
    < if len(slots.data) == 0:
    < err = msgs.EMPTY_SLOTS % c.name
    < warnings.append(Warning(filename,
    lineNum, err))
    < except AttributeError:
    < pass
    ---
    > elif len(slots.data) == 0 and cfg().emptySlots:
    > err = msgs.EMPTY_SLOTS % c.name
    > warnings.append(Warning(filename, lineNum, err))
    </pre>

     
  • atch for the file pychecker_0.8.14/pychecker/warn.py

     
    Attachments
  • Logged In: YES
    user_id=832557

    Sorry for this mistake. This patch was intended for an
    entirely different, PyChecker bug report.

     
  • Logged In: YES
    user_id=832557

    We just downloaded, installed and tested Psyco 1.3 with
    Python 2.4 on RH Linux 8. The crashes no longer occur.

     
  • Armin Rigo
    Armin Rigo
    2004-12-04

    Logged In: YES
    user_id=4771

    Thanks for the note! Closing the bug report.

     
  • Armin Rigo
    Armin Rigo
    2004-12-04

    • status: open --> closed-fixed