[New-bugs-announce] [issue11449] tarfile tries to file_.tell() even when creating a new archive

Dan Stromberg report at bugs.python.org
Wed Mar 9 06:00:12 CET 2011


New submission from Dan Stromberg <strombrg at gmail.com>:

The attached file demonstrates the problem in 2.5, 2.5, 2.7, 3.0, 3.1 and 3.2.

In short, I believe when you're creating a new tar archive (say, to a pipe), there should be no need for a file_.tell() (which blows up when it's a pipe).

I have a workaround, as demonstrated in the file, but probably others shouldn't have to work around this also in the future.

Suggested fix: Only do the tell when you're appending or performing other operations that require subsequent seek's.

----------
components: Extension Modules
files: tar-test
messages: 130422
nosy: strombrg
priority: normal
severity: normal
status: open
title: tarfile tries to file_.tell() even when creating a new archive
type: crash
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file21059/tar-test

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11449>
_______________________________________


More information about the New-bugs-announce mailing list