harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnusson, Geir" <geir.magnus...@intel.com>
Subject RE: [jira] Created: (HARMONY-638) [classlib] Tests hang on in luni : tests.api.java.io.FileTest / test_setReadOnly on Ubunti 6.06
Date Wed, 21 Jun 2006 21:22:48 GMT

> From: Oliver Deakin [mailto:oliver.deakin@googlemail.com] 
> 
> Geir Magnusson Jr wrote:
> > Oliver Deakin wrote:
> >   
> >> The example returns once they have fixed it. If you look 
> at the example
> >> just before the "Why Runtime.exec() hangs" heading 
> (BadExecJava2.java)
> >> you will see a situation that is almost exactly the same 
> as in the test
> >> case.
> >> i.e. an exec followed by a waitFor(), without any reading 
> of streams.
> >> In this case the exec never returns.
> >>
> >> The later example is how to fix it.
> >>     
> >
> > I don't think so.
> >
> > When they are saying "the exec never returns", they are meaning that
> > from the POV of the programmer, the spawned thing never returns.
> >
> > That's why you can do
> >
> > exec()
> > do IO
> > waitFor()
> > done
> >
> > However, in our case, when I say "exec never returns" I 
> mean "exec()"
> > never returns.
> >
> > so you'd never actually get to "do IO" above, because you 
> are hanging in
> > exec().
> >
> > Big difference, right?
> >   
> 
> Certainly - do you have a stack trace that gives more info 
> for what each 
> of the threads are
> doing? Could you attach it to the JIRA if you do please - Ive 
> just tried 
> running a cut down
> version of the test on my SLES9 machine and it exited fine, 
> so it would 
> be useful to have
> a trace from your machine to see what's happening.
> 

Could you send me the code for Process so I can see what's going on
here? :)


Geir

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message