Bug 613657
Summary: | [abrt] crash in pylint-0.20.0-1.fc13: tokenize.py:352:generate_tokens:TokenError: ('EOF in multi-line statement', (3093, 0)) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mads Kiilerich <mads> | ||||
Component: | pylint | Assignee: | Brian Lane <bcl> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 13 | CC: | bcl, mrunge | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | abrt_hash:b3e572e3 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-07-13 16:27:12 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Mads Kiilerich
2010-07-12 14:13:51 UTC
Created attachment 431187 [details]
File: backtrace
Could you attach mq.py as well? It seems like the problem happened because I was updating (truncating) files (tracked by mercurial) while pylint was checking them, and pylint thus got so confused that it crashed. I will try to fix Mercurial so it don't modify the files, but the issue here is that pylint should handle such errors with a (fatal) error message but without crashing. Reproducibel with f=open('x.py', 'w') f.write('+1\\\n'*100) import os os.system('pylint x.py &') for i in range(f.tell(),1,-4): print i f.seek(i) f.truncate() That's not something that I would expect to work. (In reply to comment #5) > That's not something that I would expect to work. That's fair enough. But it happens in real life, and it gives a crash that abrt will report to you (or CC here). I would expect it to fail in a civilized way. |