Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100944

Re: EOFError: marshal data too short -- causes?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: EOFError: marshal data too short -- causes?
Date Tue, 29 Dec 2015 02:19:22 -0500
Lines 30
Message-ID <mailman.48.1451373609.11925.python-list@python.org> (permalink)
References <56822D4F.8070309@g.nevcal.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de GHYmdI+odMnGoFcOylSO9AWz12rCzl7Wblrcx48zDGKA==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '1200,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'server:': 0.09; 'python': 0.10; 'assume': 0.11; 'jan': 0.11; 'stack': 0.13; '24,': 0.16; '54,': 0.16; 'crashes': 0.16; 'morning,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:too': 0.16; 'wrote:': 0.16; 'skip:" 30': 0.20; '"",': 0.22; 'trace': 0.22; 'file.': 0.22; 'trying': 0.22; 'am,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'header :User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'skip:" 20': 0.26; 'skip:_ 20': 0.26; 'subject: -- ': 0.27; 'inspect': 0.29; 'skip:_ 10': 0.32; 'compiled': 0.32; 'changed': 0.33; 'file': 0.34; 'worked': 0.34; 'too': 0.36; 'should': 0.36; 'received:71': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'data': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'above,': 0.63; 'glenn': 0.84; 'recompile': 0.84; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pool-71-185-227-36.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To <56822D4F.8070309@g.nevcal.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100944

Show key headers only | View raw


On 12/29/2015 1:50 AM, Glenn Linderman wrote:
> Here's a sanatized stack trace off my web server:
>
>    File ".../cgihelpers.py", line 10, in
>      import cgitb
>    File ".../py34/lib/python3.4/cgitb.py", line 24, in
>      import inspect
>    File ".../py34/lib/python3.4/inspect.py", line 54, in
>      from dis import COMPILER_FLAG_NAMES as _flag_names
>    File "", line 2237, in _find_and_load
>    File "", line 2226, in _find_and_load_unlocked
>    File "", line 1200, in _load_unlocked
>    File "", line 1129, in _exec
>    File "", line 1467, in exec_module
>    File "", line 1570, in get_code
>    File "", line 656, in _compile_bytecode
> EOFError: marshal data too short
>
>
> It worked this morning, and does this now.  I hadn't changed anything.

Since it crashes trying to unmarshal compiled dis bytecode, I would 
assume that the .pyc file is corrupted and remove it. Based on the 
above, it should be in
.../py34/lib/python3.4/__pycache__/dis.*.pyc
Python will then recompile dis and write a new .pyc file.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: EOFError: marshal data too short -- causes? Terry Reedy <tjreedy@udel.edu> - 2015-12-29 02:19 -0500

csiph-web