parallelpython 1.5.7 crash

Discussion in 'Python' started by makobu, Dec 12, 2009.

  1. makobu

    makobu Guest

    Hi all,

    Hi all,

    with the above version of parallelpython, what causes this?

    Traceback (most recent call last):
    File "C:\Users\tim\code_base\svn\octopus\parallel_python\pp.py",
    line 762, in
    __run
    sresult = worker.t.receive()
    File "C:\Users\tim\code_base\svn\octopus\parallel_python
    \pptransport.py", line
    133, in receive
    msg = self.r.read(msg_len)
    OverflowError: long int too large to convert to int
    Unhandled exception in thread started by <bound method Server.__run of
    <parallel
    _python.pp.Server object at 0x017EEC70>>
    Traceback (most recent call last):
    File "C:\Users\tim\code_base\svn\octopus\parallel_python\pp.py",
    line 771, in
    __run
    job.finalize(sresult)
    UnboundLocalError: local variable 'sresult' referenced before
    assignment
     
    makobu, Dec 12, 2009
    #1
    1. Advertising

  2. makobu

    zeph Guest

    I looked in the browsable svn repo for parallel python at
    http://parallelpython.googlecode.com/svn/trunk/

    1) OverflowError: long int too large to convert to int

    This is a bug in their code (comments are mine) in pytransport.py:

    size_packed = self.r.read(struct.calcsize("!Q")) # reads in 8-
    character string
    msg_len = struct.unpack("!Q", size_packed)[0] # unpacks to a long
    value, e.g. "12345678" -> 3544952156018063160L
    msg = self.r.read(msg_len) #
    3544952156018063160L is too long for file.read, which I presume must
    be able to cast as an int

    As an example:
    >>> sys.stdin.read(3544952156018063160L)

    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    OverflowError: long int too large to convert to int



    2) UnboundLocalError: local variable 'sresult' referenced before
    assignment

    This is another bug in their code. This is an error in pp.py (again,
    comments are mine, some code omitted for brevity):

    try:
    # ...snip...
    sresult = worker.t.receive() # sets sresult
    except:
    if self.__exiting:
    return
    else:
    # at this point, __run doesn't return, but sresult was not defined
    since the
    # execution was unwound because, presumable, the first fatal you
    got, the OverflowError
    sys.excepthook(*sys.exc_info())
    # ...snip...
    job.finalize(sresult) # UnboundLocalError here from missing sresult


    You can submit these as a bug report to the author if you want - feel
    free to copy-paste or link to this post :)

    - zeph
     
    zeph, Dec 13, 2009
    #2
    1. Advertising

  3. makobu

    makobu Guest

    Thanks Zeph.
     
    makobu, Dec 15, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Radha
    Replies:
    0
    Views:
    964
    Radha
    Jul 7, 2003
  2. Gaël

    w3wp crash and memory leakage

    Gaël, Oct 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,703
    Alvin Bruney
    Oct 16, 2003
  3. John
    Replies:
    3
    Views:
    470
  4. cs

    IIS "crash"

    cs, Feb 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    494
  5. =?Utf-8?B?TmlsZXNodw==?=

    application crash in try catch

    =?Utf-8?B?TmlsZXNodw==?=, Mar 2, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,178
    Sorin Dolha [MCSD .NET]
    Mar 2, 2004
Loading...

Share This Page