#34 psyco

closed-fixed
nobody
5
2004-07-30
2004-03-31
No

System: FreeBSD 4.9-STABLE, gcc version 2.95.4
20020320, Python 2.3.3 psyco 1.2

"import psycho" triggers out of memory error

I've attached a core dump. Psycho 1.1.1 works with no
problems however.

Let me know if you need more information.

Discussion

  • Armin Rigo

    Armin Rigo - 2004-03-31
    • summary: psyco "out of memory" error loading library --> psyco
     
  • Armin Rigo

    Armin Rigo - 2004-03-31

    Logged In: YES
    user_id=4771

    The core dump was not attached. Usual SF problem: you need
    to check a box, otherwise it ignores your file selection.

     
  • Kirk Job-Sluder

    Kirk Job-Sluder - 2004-03-31

    Logged In: YES
    user_id=594741

    thanks for checking that. I'm wiling to test out solutions,
    but need some pretty detailed instructions as I'm not
    familiar with c build processes.

     
  • Kirk Job-Sluder

    Kirk Job-Sluder - 2004-03-31
    • summary: psyco --> "import psyco" triggers out of memory error on FreeBSD
     
  • Kirk Job-Sluder

    Kirk Job-Sluder - 2004-03-31
    • summary: "import psyco" triggers out of memory error on FreeBSD --> psyco
     
  • Armin Rigo

    Armin Rigo - 2004-04-07

    Logged In: YES
    user_id=4771

    Someone had a similar problem on Solaris/Intel. It seems
    that allocating big chunks of memory with mmap() doesn't
    work too well on all Unix systems -- I may even say, only
    seems to work on Linux. I will try to make the code more
    robust and try alternatives if mmap() doesn't work.

    Can you check if the following solves the problem: in
    c/codemanager.c, line 9 is:

    #ifndef MS_WINDOWS

    Can you change it to:

    #if 0

    Then rebuild and reinstall Psyco, using as previously
    'python setup.py build' and 'python setup.py install'.

     
  • Armin Rigo

    Armin Rigo - 2004-07-30
    • status: open --> closed-fixed
     
  • Armin Rigo

    Armin Rigo - 2004-07-30

    Logged In: YES
    user_id=4771

    Checked in automatic fall back to PyMem_MALLOC() if mmap()
    doesn't appear to work on the given platform -- at least
    doesn't like the way I call it, but I don't know what is
    wrong with it.

    It should get rid of the problem.

     

Log in to post a comment.