This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90576 - xtest unit tests freezing on windows during daily test run
Summary: xtest unit tests freezing on windows during daily test run
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: TEST
: 90421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-05 11:30 UTC by Tomas Danek
Modified: 2006-12-08 13:07 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2006-12-05 11:30:50 UTC
happened three times during last three days/testruns (functional tests on
1.6)..only on windows, test4u is not able to kill them, test4u server must be
restarted to unblock queue. Is this problem of test4u or just of those tests?
Comment 1 ehucka 2006-12-05 12:32:11 UTC
I have looked at blocked machine. The test4u is waiting for executed ant
process. Process.destory doesn't work on the blocked process than.
Comment 2 Tomas Danek 2006-12-05 14:28:14 UTC
for now i've excluded xtest unit tests from masterconfig
Comment 3 Tomas Danek 2006-12-06 12:15:11 UTC
Jirko, can you look at it ??
Comment 4 Jiri Skrivanek 2006-12-06 15:00:19 UTC
I tried to run it on qa-amdv20-s2. I watched logs and the test passes. But I
haven't received results and it seems test4u restarts itself. I really don't
know what is happenning there. Could you tell me how and where to reproduce it?
Comment 5 Jiri Skrivanek 2006-12-07 10:45:00 UTC
It is really strange. I can reproduce it only with JDK1.6 (ant -f
xtest/test/build.xml). It freezes when getting localhost name at 

at java.net.Inet4AddressImpl.getLocalHostName(Native Method)
at java.net.InetAddress.getLocalHost(InetAddress.java:1297)
at org.netbeans.xtest.pe.xmlbeans.SystemInfo.getCurrentHost(SystemInfo.java:65)

But when you hit Enter key two times it releases!!! I guess it can be something
with streams hold or redirected by Ant. If I use input="XXX" it works

        <java classname="org.apache.tools.ant.Main"
classpath="${java.class.path}" fork="true" input="XXX">

Do you have a notion what it could be?
Comment 6 ehucka 2006-12-07 11:41:35 UTC
No, this 'ask for input' must come from JDK. As I remember similar issue we were
solving before a time - I had to patch xtest to skip this
InetAddress.getLocalHost that time. There is set machine's name by property
xtest.machine since the time in test4u.
Comment 7 Jiri Skrivanek 2006-12-07 13:51:02 UTC
It is fixed now and xtest module is againg in master-config. I added dummy input
to a Java task definition. It prevents JVM from beeing blocked by reading
standard input. It was already reported as JDK issue
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6306875).


/cvs/xtest/test/build-unit.xml,v  <--  build-unit.xml
new revision: 1.5; previous revision: 1.4
Comment 8 ehucka 2006-12-07 15:39:55 UTC
*** Issue 90421 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Danek 2006-12-08 13:07:23 UTC
thanks, today tests passed -> verified.