-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
10, 11, 12
-
x86_64
-
linux_ubuntu
ADDITIONAL SYSTEM INFORMATION :
$ uname -a
Linux unit-959 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
JDK under test: /usr/lib/jvm/java-10-oracle
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The test javax/swing/LookAndFeel/8145547/DemandGTK3.sh fails on Ubuntu 18.04 with the message "Failed. Examine logs." if it was launched from CL. The following logs are produced:
- logg is empty
- strace.log contains a lot of lines, it does not contain the string 'libgtk-3.*=\ *[0-9]*$' which is grepped by the test
The test failed in the environment where
$ which strace
/usr/bin/strace
According to the comments in DemandGTK3.sh it might be expected behaviour
"# It is true for OEL 7 and Ubuntu 14, 16
# but may fail in future. Save tomorrow for tomorrow."
Probably tomorrow has been already come.
When the test is executed via jtreg it fails by timeout
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1)
$ jtreg -Djava.awt.headless=false test/javax/swing/LookAndFeel/8145547/DemandGTK3.sh
2)
$ pwd
~/jdk/test/javax/swing/LookAndFeel/8145547
$ export TESTJAVA=/usr/lib/jvm/jdk-10.0.2
$ export TESTCLASSPATH=~/jdk/JTwork/classes/javax/swing/LookAndFeel/8145547
$ bash -x ./DemandGTK3.sh
ACTUAL -
1)
#section:shell
----------messages:(3/129)----------
command: shell DemandGTK3.sh
reason: User specified action: run shell/timeout=400 DemandGTK3.sh
elapsed time (seconds): 400.012
----------System.out:(3/83)----------
/usr/bin/strace
There is GTK 3 library: we should use it
Timeout refired 400 times
----------System.err:(0/0)----------
2)
$ bash -x ./DemandGTK3.sh
+ which strace
/usr/bin/strace
+ '[' 0 -ne 0 ']'
++ /sbin/ldconfig -v
++ grep libgtk-3.so
++ wc -l
+ HAVE_3=1
+ '[' 1 = 0 ']'
+ echo 'There is GTK 3 library: we should use it'
There is GTK 3 library: we should use it
+ strace -o strace.log -fe open /usr/lib/jvm/jdk-10.0.2/bin/java -cp /home/vprovodin/workspace/github/JetBrainsRuntime/jdk/JTwork/classes/javax/swing/LookAndFeel/8145547 -Djdk.gtk.version=3 ProvokeGTK
+ EXECRES=0
+ grep 'libgtk-3.*=\ *[0-9]*$' strace.log
+ '[' 0 -ne 0 ']'
+ cat logg
+ '[' -s logg ']'
+ echo 'Failed. Examine logs.'
Failed. Examine logs.
+ exit 3
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/javax/swing/LookAndFeel/8145547
---------- END SOURCE ----------
FREQUENCY : always
$ uname -a
Linux unit-959 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
JDK under test: /usr/lib/jvm/java-10-oracle
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The test javax/swing/LookAndFeel/8145547/DemandGTK3.sh fails on Ubuntu 18.04 with the message "Failed. Examine logs." if it was launched from CL. The following logs are produced:
- logg is empty
- strace.log contains a lot of lines, it does not contain the string 'libgtk-3.*=\ *[0-9]*$' which is grepped by the test
The test failed in the environment where
$ which strace
/usr/bin/strace
According to the comments in DemandGTK3.sh it might be expected behaviour
"# It is true for OEL 7 and Ubuntu 14, 16
# but may fail in future. Save tomorrow for tomorrow."
Probably tomorrow has been already come.
When the test is executed via jtreg it fails by timeout
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1)
$ jtreg -Djava.awt.headless=false test/javax/swing/LookAndFeel/8145547/DemandGTK3.sh
2)
$ pwd
~/jdk/test/javax/swing/LookAndFeel/8145547
$ export TESTJAVA=/usr/lib/jvm/jdk-10.0.2
$ export TESTCLASSPATH=~/jdk/JTwork/classes/javax/swing/LookAndFeel/8145547
$ bash -x ./DemandGTK3.sh
ACTUAL -
1)
#section:shell
----------messages:(3/129)----------
command: shell DemandGTK3.sh
reason: User specified action: run shell/timeout=400 DemandGTK3.sh
elapsed time (seconds): 400.012
----------System.out:(3/83)----------
/usr/bin/strace
There is GTK 3 library: we should use it
Timeout refired 400 times
----------System.err:(0/0)----------
2)
$ bash -x ./DemandGTK3.sh
+ which strace
/usr/bin/strace
+ '[' 0 -ne 0 ']'
++ /sbin/ldconfig -v
++ grep libgtk-3.so
++ wc -l
+ HAVE_3=1
+ '[' 1 = 0 ']'
+ echo 'There is GTK 3 library: we should use it'
There is GTK 3 library: we should use it
+ strace -o strace.log -fe open /usr/lib/jvm/jdk-10.0.2/bin/java -cp /home/vprovodin/workspace/github/JetBrainsRuntime/jdk/JTwork/classes/javax/swing/LookAndFeel/8145547 -Djdk.gtk.version=3 ProvokeGTK
+ EXECRES=0
+ grep 'libgtk-3.*=\ *[0-9]*$' strace.log
+ '[' 0 -ne 0 ']'
+ cat logg
+ '[' -s logg ']'
+ echo 'Failed. Examine logs.'
Failed. Examine logs.
+ exit 3
---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/javax/swing/LookAndFeel/8145547
---------- END SOURCE ----------
FREQUENCY : always