Weird New libjava Testsuite Failure (PR java/14104)

Andrew Haley aph@redhat.com
Wed Mar 17 19:42:00 GMT 2004


 > > Andrew Haley writes:
 > > > Ranjit Mathew writes:
 > > > > 
 > > > > Any insights into the problem or at least how to
 > > > > try to reproduce it reliably?
 > > > 
 > > > I'll have a look.
 > > 
 > > Okay, so it's even weirder than I thought. If I rename libjava.jar to
 > > libjava.0jar in order to make it run first in the testsuite, it
 > > doesn't fail either!
 > > 
 > > We have a real Heisenbug here...
 > 
 > Oh yes - and it does not seem dependent on the order
 > either - if I rename "libjava.jar" to say "libjava.jacks123"
 > so that it is still executed in the same order, it doesn't
 > fail - however, if I rename it back to "libjava.jar", it
 > duly fails! I am able to consistently reproduce this
 > over several runs. What the...
Okay, I've found the problem. It's because there is a file called
libjava.jar in libajava/testsuite. Unfortunately, that file is a
directory. :-)
Looks like we don't check that a file really is a file before opening it.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /