#5 jit coredump on freebsd

closed-fixed
nobody
5
2002-03-25
2002-03-15
Mr. Codepage
No

FreeBSD 4.5
GCC 2.95.3
Python 2.2
Psyco cvs updated at time of bug submission

Psyco will dump core if it is compiled without debug
turned on with the following script.

>>> calcPrimesUpTo(10000)
2.1458179950714111
>>> import psyco
>>> psyco.bind(calcPrimesUpTo)
>>> calcPrimesUpTo(10000)
Segmentation fault (core dumped)

Reading symbols from /usr/libexec/ld-elf.so.1...(no
debugging symbols found)...done.
#0 0x28239b8e in do_promotion_long ()
from /usr/local/lib/python2.2/site-
packages/psyco/_psyco.so
(gdb) bt
#0 0x28239b8e in do_promotion_long ()
from /usr/local/lib/python2.2/site-
packages/psyco/_psyco.so
#1 0x81c0043 in ?? ()
#2 0x2825782a in psycofunction_call ()
from /usr/local/lib/python2.2/site-
packages/psyco/_psyco.so
#3 0x8099b54 in PyObject_Call ()
#4 0x807350a in PyEval_GetFuncDesc ()
#5 0x8071523 in PyEval_EvalCode ()
#6 0x807234c in PyEval_EvalCodeEx ()
#7 0x80730b4 in PyEval_GetFuncDesc ()

Discussion

  • Mr. Codepage
    Mr. Codepage
    2002-03-15

    freebsd jit primes deth

     
    Attachments
  • Mr. Codepage
    Mr. Codepage
    2002-03-15

    Logged In: YES
    user_id=9229

    Recompiled with

    python setup.py build --debug

    and

    #PSYCO_DEBUG = 1

    crash is on line 939

    935 inline code_t* fix_fast_common_case(rt_promotion_t*
    fs, long value,
    936 code_t* codeptr)
    937 {
    938 #if PROMOTION_FAST_COMMON_CASE
    939 FIX_JUMP_IF_EQUAL(fs->jump_if_equal_code, value,
    codeptr);
    940 #endif
    941 return codeptr;
    942 }

     
  • Mr. Codepage
    Mr. Codepage
    2002-03-25

    Logged In: YES
    user_id=9229

    As for a cvs update Sun March 24 7 PM PST this is bug is
    marked FIXED CLOSED.

    Great job, this works on FreeBSD in a non debug build.

     
  • Mr. Codepage
    Mr. Codepage
    2002-03-25

    • status: open --> closed-fixed