[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch + tests in r74336 (trunk), r74338 (py3k) and r74339 (3.1). Thanks for the report, and don't hesitate to do more stress testing of the IO lib! -- resolution: -> fixed status: open -> closed versions: +Python 2.7 ___

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-05 Thread Karoly Lorentey
Karoly Lorentey added the comment: The patch does fix my issue, thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an initial patch. Could you try it on your workload? -- keywords: +patch Added file: http://bugs.python.org/file14657/issue6629.patch ___ Python tracker ___

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'll look into this as soon as possible. -- assignee: -> pitrou nosy: +pitrou priority: -> critical stage: -> needs patch versions: +Python 3.2 ___ Python tracker __

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-03 Thread Karoly Lorentey
New submission from Karoly Lorentey : The new io.BufferedRandom implementation in Python 3.1 has a broken seek that seems not to properly handle the case when the target of the seek lies inside the contents of the file buffer. It leaves the file object in a confused state, such that the next