[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-20 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Huh. I wonder how importlib is ending up being the implementation of 
import then? Guess I also need to double-check everything is still 
cleaning itself up properly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

One of the buildbots suffered a test_multiprocessing failure, which
itself is not such an unusual thing.  But the error that was
subsequently thrown looks like it might point to a place where
importlib's error handling could be improved.  The error that was thrown
certainly gives no clear indication of what really caused the problem.

The full buildbot report was:
http://www.python.org/dev/buildbot/all/builders/ia64%20Ubuntu%203.1/builds/93/steps/test/logs/stdio

Here are the tracebacks (the second one being the interesting one):

Traceback (most recent call last):
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/process.py,
line 233, in _bootstrap
self.run()
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/process.py,
line 88, in run
self._target(*self._args, **self._kwargs)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/test/test_multiprocessing.py,
line 1211, in _putter
queue = manager.get_queue()
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/managers.py,
line 644, in temp
token, exp = self._create(typeid, *args, **kwds)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/managers.py,
line 544, in _create
id, exposed = dispatch(conn, None, 'create', (typeid,)+args, kwds)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/managers.py,
line 79, in dispatch
kind, result = c.recv()
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/connection.py,
line 408, in recv
s = self._conn.recv_bytes()
IOError: [Errno 104] Connection reset by peer
test test_multiprocessing failed -- Traceback (most recent call last):
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/test/test_multiprocessing.py,
line 1222, in test_rapid_restart
queue = manager.get_queue()
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/managers.py,
line 644, in temp
token, exp = self._create(typeid, *args, **kwds)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/managers.py,
line 542, in _create
conn = self._Client(self._address, authkey=self._authkey)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/multiprocessing/connection.py,
line 427, in XmlClient
import xmlrpc.client as xmlrpclib
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/importlib/_bootstrap.py,
line 151, in decorated
return fxn(self, module)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/importlib/_bootstrap.py,
line 399, in load_module
return self._load_module(module)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/importlib/_bootstrap.py,
line 324, in _load_module
code_object = self.get_code(module.__name__)
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/importlib/_bootstrap.py,
line 411, in get_code
pyc_timestamp = marshal._r_long(data[4:8])
  File
/home/pybot/buildarea/3.1.klose-debian-ia64/build/Lib/importlib/__init__.py,
line 65, in _r_long
x = int_bytes[0]
IndexError: index out of range

--
components: Library (Lib)
messages: 95511
nosy: brett.cannon, jnoller, r.david.murray
priority: low
severity: normal
stage: test needed
status: open
title: Strange importlib error during test_multiprocessing failure
type: behavior
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

I will obviously have a look, but why the heck is test_multiprocessing 
calling importlib? Is it meant to do that? Or is this part of the -j flag 
for regrtest?

--
assignee:  - brett.cannon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

And it looks like the error was triggered from a malformed .pyc file that 
was truncated. Guess I need to be more careful with that possibility. =)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

This was on a buildbot, and regrtest -j isn't used there, but in any
case it wouldn't affect importlib as far as I know.  From the traceback
it looks like multiprocessing is just doing an import.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com