FogBugz (Case [Issue]10411) Streams - flush after nextChunkPut:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]10411) Streams - flush after nextChunkPut:

Pharo Issue Tracker
A FogBugz case was edited by Goubier Thierry.

Case ID:      10411
Title:        flush after nextChunkPut:
Status:       Resolved (Fix Review Needed)
Category:     Bug
Project:      Streams
Area:         Misc
Priority:     2 - Really Important
Milestone:    Pharo3.0: 30/03/2014
Assigned To:  Pavel Krivanek

URL:          https://pharo.fogbugz.com/default.asp?10411

After looking at RemoteString code, I'm not surprised at all by the bug. It was waiting to bite us sooner or later.

in RemoteString, we write the comment with:

string: aString onFileNumber: fileNumber toFile: aFileStream

(use the FileStream in parameter, I suppose this is the unique instance in the system, you'll understand next...)

Then we read back the comment, with... string, where we find:

theFile := (SourceFiles at: sourceFileNumber) readOnlyCopy.

And readOnlyCopy, if we follow the track, will reopen a stream for the same file name, with at the vm level, a different descriptor. So, when the system does a bit of buffering, we are out of sync...


You are subscribed to this case.  If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=10411) from this case.

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker