Issue 5612 in pharo: Stale file handle is used (Windows)

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

Issue 5612 in pharo: Stale file handle is used (Windows)

pharo
Status: Accepted
Owner: [hidden email]

New issue 5612 by [hidden email]: Stale file handle is used (Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

If you follow the scenario in  
http://code.google.com/p/pharo/issues/detail?id=5609

with the latest Cog VM from Eliot

http://www.mirandabanda.org/files/Cog/VM/VM.r2538/

then you will notice that Eliots VM does not crash in this scenario
but the debug console of the VM comes up and displays a warning in
the lower area of the squeak window:

  "WARNING: Manufactured file handle detected"

I asked Eliot and he told me:

"Yes, this happens when a stale file handle is used.  See  
platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c.  So I'm guessing  
you're not refreshing the standard i/o handles in a fresh run."




_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5612 in pharo: Stale file handle is used (Windows)

pharo
Updates:
        Labels: Milestone-1.4

Comment #1 on issue 5612 by [hidden email]: Stale file handle is used  
(Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

Screenshot

Attachments:
        screen.png  76.3 KB


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5612 in pharo: Stale file handle is used (Windows)

pharo
In reply to this post by pharo
Updates:
        Labels: -Milestone-1.4

Comment #3 on issue 5612 by [hidden email]: Stale file handle is  
used (Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

No a show stopper for 1.4


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5612 in pharo: Stale file handle is used (Windows)

pharo

Comment #4 on issue 5612 by [hidden email]: Stale file handle is used  
(Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

Answer from Eliot

> platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c.  So I'm guessing
> you're not refreshing the standard i/o handles in a fresh run.

How can I do that?

Make sure the primitive FileStream class>stdioHandles is called at startup  
to replace the handles from the previous run.  See the class variables of  
FileStream.

FileStream class>stdioHandles
  <primitive: 'primitiveFileStdioHandles' module: 'FilePlugin' error: ec>
  self primitiveFailed


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5612 in pharo: Stale file handle is used (Windows)

pharo

Comment #5 on issue 5612 by [hidden email]: Stale file handle is used  
(Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

Interesting: there is already a startup logic in FileStream>>startUp:
that also calls #stdioHandles

According to this there should be no problem. So either the startup logic
is not running (which I doubt) or there is something completely different  
(Monty Python TM) ...

Any other person able to reproduce this issue? I'm on XP.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5612 in pharo: Stale file handle is used (Windows)

pharo

Comment #6 on issue 5612 by [hidden email]: Stale file handle is used  
(Windows)
http://code.google.com/p/pharo/issues/detail?id=5612

sure i can reproduce. this error shows every time if you attempt to use  
stdout


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