Issue 6050 in pharo: ensureDirectory looks strange

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

Issue 6050 in pharo: ensureDirectory looks strange

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Bug Milestone-2.0

New issue 6050 by [hidden email]: ensureDirectory looks strange
http://code.google.com/p/pharo/issues/detail?id=6050

We got also a problem with the ZipTests tearDown

In Pharo 2.0 [1]:
(1 to: 100) do: [ :e |
         subdir := ('directory', e asString) asFileReference.
         subdir ensureDirectory.
         self assert: subdir isDirectory ].

The above snippet:
* usually creates 2-3 out of the 100 directories requested
* doesn't fail until usually ~70-80th iteration (i.e. isDirectory is  
returning true when there is no directory)!!

I followed the #ensureDirectory above until it hit the primitive and  
everything seemed okay, but I can't debug the vm this second...

Sean

[1] Image
-----
Pharo2.0a
Latest update: #20118

Virtual Machine
---------------
/Applications/JitCocoaVM.app/Contents/MacOS/CogVM
CoInterpreter VMMaker-oscog-EstebanLorenzano.155 uuid:  
c53d1f34-009e-425c-9f88-398f8d39c5e8 Apr 15 2012,  
StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.155 uuid:  
c53d1f34-009e-425c-9f88-398f8d39c5e8 Apr 15 2012,  
https://git.gitorious.org/cogvm/blessed.git Commit:  
043d256c0d39b78e04db8608c0ebfbf096223a3f Date: Sun Apr 15 14:18:12 2012  
+0200 By: Guille <[hidden email]>
Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
CoInterpreter VMMaker-oscog-EstebanLorenzano.155 uuid:  
c53d1f34-009e-425c-9f88-398f8d39c5e8 Apr 15 2012
StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.155 uuid:  
c53d1f34-009e-425c-9f88-398f8d39c5e8 Apr 15 2012



_______________________________________________
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 6050 in pharo: ensureDirectory looks strange

pharo

Comment #1 on issue 6050 by [hidden email]: ensureDirectory looks  
strange
http://code.google.com/p/pharo/issues/detail?id=6050

Issue 6051 has been merged into this issue.


_______________________________________________
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 6050 in pharo: ensureDirectory looks strange

pharo
Updates:
        Cc: [hidden email]

Comment #2 on issue 6050 by [hidden email]: ensureDirectory looks  
strange
http://code.google.com/p/pharo/issues/detail?id=6050

I think it might be a VM bug because:
* the FS code looks okay
* Steph, Guille, and I were getting different results
I posted to the VM list http://forum.world.st/FilePlugin-bug-td4634074.html


_______________________________________________
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 6050 in pharo: ensureDirectory looks strange

pharo
Updates:
        Status: Closed

Comment #3 on issue 6050 by [hidden email]: ensureDirectory looks  
strange
http://code.google.com/p/pharo/issues/detail?id=6050

The code snippet works now with the Jenkins Cog VM at  
https://ci.lille.inria.fr/pharo/job/Cog-VM/ (build #45 - last successful)


_______________________________________________
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 6050 in pharo: ensureDirectory looks strange

pharo

Comment #4 on issue 6050 by [hidden email]: ensureDirectory looks  
strange
http://code.google.com/p/pharo/issues/detail?id=6050

Disussion of fix at  
http://forum.world.st/FileReference-gt-gt-exists-not-working-td4634285.html


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