adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
129 stars 308 forks source link

jdk8 win64 hotspot: jdk_jdi_0 fails with JDWP library path too long #2154

Open lumpfish opened 3 years ago

lumpfish commented 3 years ago

jdk8 win64 hotspot: jdk_jdi_0 fails with:

FATAL ERROR in native method: JDWP One or more of the library paths supplied to jdwp, likely by sun.boot.library.path, is too long., jvmtiError=JVMTI_ERROR_INVALID_LOCATION(24)

Link to failing job: https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/397/consoleFull Build under test:

12:29:01  openjdk version "1.8.0_282"
12:29:01  OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b07)
12:29:01  OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b07, mixed mode)

Output of failing test:

12:46:26  ===============================================
12:46:26  Running test jdk_jdi_0 ...
12:46:26  ===============================================
12:46:26  jdk_jdi_0 Start Time: Sat Jan  9 12:46:19 2021 Epoch Time (ms): 1610196379619
12:46:26  Nothing to be done for setup.
12:46:26  variation: Mode150
12:46:26  JVM_OPTIONS:  -XX:+UseCompressedOops 
12:46:26  { itercnt=1; \
12:46:26  mkdir -p "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_16101954855260\\jdk_jdi_0"; \
12:46:26  cd "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_16101954855260\\jdk_jdi_0"; \
12:46:26  "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image\\bin\\java" -Xmx512m -jar "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\jtreg\\lib\\jtreg.jar" \
12:46:26  -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:2  -vmoptions:"-Xmx512m  -XX:+UseCompressedOops " \
12:46:26  -w ""J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_16101954855260\\jdk_jdi_0"\\work" \
12:46:26  -r "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\report" \
12:46:26  -jdk:"J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image" \
12:46:26  -exclude:"J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test\\ProblemList.txt" \
12:46:26  -exclude:"J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\ProblemList_openjdk8.txt" \
12:46:26  "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test:jdk_jdi"; \
12:46:26  if [ $? -eq 0 ] ; then echo ""; echo "jdk_jdi_0""_PASSED"; echo ""; cd J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/;  else echo ""; echo "jdk_jdi_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_16101954855260\\TestTargetResult";
12:46:26  Directory "J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work" not found: creating
12:46:26  XML output with verification to J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work
12:47:35  --------------------------------------------------
12:47:35  TEST: com/sun/jdi/PrivateTransportTest.sh
12:47:35  TEST JDK: J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image
12:47:35  
12:47:35  ACTION: compile -- Passed. Compilation successful
12:47:35  REASON: User specified action: run compile -g HelloWorld.java 
12:47:35  TIME:   0.026 seconds
12:47:35  messages:
12:47:35  command: compile -g J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\HelloWorld.java
12:47:35  reason: User specified action: run compile -g HelloWorld.java 
12:47:35  Mode: agentvm
12:47:35  Agent id: 2
12:47:35  elapsed time (seconds): 0.026
12:47:35  configuration:
12:47:35  Boot Layer (javac runtime environment)
12:47:35    class path: J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\lib\tools.jar
12:47:35                J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\jvmtest\openjdk\jtreg\lib\javatest.jar
12:47:35                J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\jvmtest\openjdk\jtreg\lib\jtreg.jar
12:47:35  
12:47:35  javac compilation environment
12:47:35    source path: J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi
12:47:35    class path:  J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi
12:47:35                 J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi
12:47:35                 J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\lib\tools.jar
12:47:35  
12:47:35  rerun:
12:47:35  cd 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\scratch\1' && \
12:47:35  PATH='C:\cygwin64\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\openjdk\jdk-8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\rust\bin;C:\Program Files\IcedTeaWEB\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files (x86)\IncrediBuild' \
12:47:35  SystemDrive=C: \
12:47:35  SystemRoot='C:\windows' \
12:47:35  TEMP='C:\Users\jenkins.bld-win2012r2-2\AppData\Local\Temp' \
12:47:35  TMP='C:\Users\jenkins.bld-win2012r2-2\AppData\Local\Temp' \
12:47:35  windir='C:\windows' \
12:47:35      'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\bin\javac' \
12:47:35          -J-ea \
12:47:35          -J-esa \
12:47:35          -J-Xmx512m \
12:47:35          -J-XX:+UseCompressedOops \
12:47:35          -J-Dtest.vm.opts='-ea -esa -Xmx512m -XX:+UseCompressedOops' \
12:47:35          -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-XX:+UseCompressedOops' \
12:47:35          -J-Dtest.compiler.opts= \
12:47:35          -J-Dtest.java.opts= \
12:47:35          -J-Dtest.jdk='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image' \
12:47:35          -J-Dcompile.jdk='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image' \
12:47:35          -J-Dtest.timeout.factor=8.0 \
12:47:35          -J-Dtest.root='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test' \
12:47:35          -J-Dtest.name=com/sun/jdi/PrivateTransportTest.sh \
12:47:35          -J-Dtest.file='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\PrivateTransportTest.sh' \
12:47:35          -J-Dtest.src='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
12:47:35          -J-Dtest.src.path='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
12:47:35          -J-Dtest.classes='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi' \
12:47:35          -J-Dtest.class.path='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi' \
12:47:35          -J-Dtest.class.path.prefix='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi;J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
12:47:35          -d 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi' \
12:47:35          -sourcepath 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
12:47:35          -classpath 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi;J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\classes\1\com\sun\jdi;J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\lib\tools.jar' \
12:47:35          -g 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\HelloWorld.java'
12:47:35  
12:47:35  ACTION: shell -- Failed. Execution failed: exit code 1
12:47:35  REASON: User specified action: run shell PrivateTransportTest.sh 
12:47:35  TIME:   0.214 seconds
12:47:35  messages:
12:47:35  command: shell PrivateTransportTest.sh
12:47:35  reason: User specified action: run shell PrivateTransportTest.sh 
12:47:35  elapsed time (seconds): 0.214
12:47:35  STDOUT:
12:47:35  JDK under test is: J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image
12:47:35  Setup private transport library by copying an existing one and renaming
12:47:35  cp J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image/jre/bin/dt_socket.dll /cygdrive/j/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/TKG/test_output_16101954855260/jdk_jdi_0/work/classes/1/com/sun/jdi/private_dt_socket.dll
12:47:35  PATH=/usr/bin:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdrive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Strawberry/perl/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/openjdk/jdk-8/bin:/cygdrive/c/apache-ant/apache-ant-1.10.5/bin:/cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/cygdrive/c/rust/bin:/cygdrive/c/Program Files/IcedTeaWEB/bin:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.0:/cygdrive/c/Program Files (x86)/WiX Toolset v3.14/bin:/cygdrive/c/Program Files (x86)/IncrediBuild:/cygdrive/j/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/TKG/test_output_16101954855260/jdk_jdi_0/work/classes/1/com/sun/jdi
12:47:35  J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image/bin/java -agentlib:jdwp=transport=J:\\jenkins\\workspace\\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\\openjdk-tests\\TKG\\test_output_16101954855260\\jdk_jdi_0\\work\\classes\\1\\com\\sun\\jdi\\private_dt_socket,server=y,suspend=n -classpath "J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/TKG/test_output_16101954855260/jdk_jdi_0/work/classes/1/com/sun/jdi" HelloWorld
12:47:35  FATAL ERROR in native method: JDWP One or more of the library paths supplied to jdwp, likely by sun.boot.library.path, is too long., jvmtiError=JVMTI_ERROR_INVALID_LOCATION(24)
12:47:35  test status for  was: 1
12:47:35  The test failed :-(
12:47:35  exit status was 1
12:47:35  STDERR:
12:47:35  JDWP exit error JVMTI_ERROR_INVALID_LOCATION(24): One or more of the library paths supplied to jdwp, likely by sun.boot.library.path, is too long. [linker_md.c:60]
12:47:35  unspecified test failure
12:47:35  rerun:
12:47:35  cd 'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work\scratch\1' && \
12:47:35  PATH='C:\cygwin64\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\openjdk\jdk-8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\rust\bin;C:\Program Files\IcedTeaWEB\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files (x86)\IncrediBuild' \
12:47:35  SystemDrive=C: \
12:47:35  SystemRoot='C:\windows' \
12:47:35  TEMP='C:\Users\jenkins.bld-win2012r2-2\AppData\Local\Temp' \
12:47:35  TMP='C:\Users\jenkins.bld-win2012r2-2\AppData\Local\Temp' \
12:47:35  windir='C:\windows' \
12:47:35  TESTFILE=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi/PrivateTransportTest.sh \
12:47:35  TESTSRC=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi \
12:47:35  TESTSRCPATH=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi \
12:47:35  TESTCLASSES=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/TKG/test_output_16101954855260/jdk_jdi_0/work/classes/1/com/sun/jdi \
12:47:35  TESTCLASSPATH=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/TKG/test_output_16101954855260/jdk_jdi_0/work/classes/1/com/sun/jdi \
12:47:35  COMPILEJAVA=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image \
12:47:35  TESTJAVA=J:/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image \
12:47:35  TESTVMOPTS='-ea -esa -Xmx512m -XX:+UseCompressedOops' \
12:47:35  TESTTOOLVMOPTS='-J-ea -J-esa -J-Xmx512m -J-XX:+UseCompressedOops' \
12:47:35  TESTJAVACOPTS= \
12:47:35  TESTJAVAOPTS= \
12:47:35  TESTTIMEOUTFACTOR=8.0 \
12:47:35  TESTROOT='J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test' \
12:47:35  FS='\' \
12:47:35  PS=; \
12:47:35  NULL=NUL \
12:47:35      sh \
12:47:35          'J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\PrivateTransportTest.sh'
12:47:35  
12:47:35  TEST RESULT: Failed. Execution failed: exit code 1
12:47:35  --------------------------------------------------
12:48:02  Test results: passed: 111; failed: 1
12:48:07  Report written to J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\jvmtest\openjdk\report\html\report.html
12:48:07  Results written to J:\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_16101954855260\jdk_jdi_0\work
12:48:07  Error: Some tests failed or other problems occurred.
12:48:07  
12:48:07  jdk_jdi_0_FAILED
lumpfish commented 3 years ago

Test passes on a different machine; https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/400/console (test-ibmcloud-win2012r2-x64-2):

18:45:02  ===============================================
18:45:02  Running test jdk_jdi_0 ...
18:45:02  ===============================================
18:45:02  jdk_jdi_0 Start Time: Fri Jan 15 12:45:03 2021 Epoch Time (ms): 1610736303865
18:45:02  Nothing to be done for setup.
18:45:02  variation: Mode150
18:45:02  JVM_OPTIONS:  -XX:+UseCompressedOops 
18:45:02  { itercnt=1; \
18:45:02  mkdir -p "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_161073559386\\jdk_jdi_0"; \
18:45:02  cd "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_161073559386\\jdk_jdi_0"; \
18:45:02  "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image\\bin\\java" -Xmx512m -jar "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\jtreg\\lib\\jtreg.jar" \
18:45:02  -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:4  -vmoptions:"-Xmx512m  -XX:+UseCompressedOops " \
18:45:02  -w ""E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_161073559386\\jdk_jdi_0"\\work" \
18:45:02  -r "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\report" \
18:45:02  -jdk:"E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdkbinary/j2sdk-image" \
18:45:02  -exclude:"E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test\\ProblemList.txt" \
18:45:02  -exclude:"E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests///..//jvmtest\\openjdk\\ProblemList_openjdk8.txt" \
18:45:02  "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test:jdk_jdi"; \
18:45:02  if [ $? -eq 0 ] ; then echo ""; echo "jdk_jdi_0""_PASSED"; echo ""; cd E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/;  else echo ""; echo "jdk_jdi_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/\\TKG\\test_output_161073559386\\TestTargetResult";
18:45:03  Directory "E:\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_161073559386\jdk_jdi_0\work" not found: creating
18:45:05  XML output with verification to E:\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_161073559386\jdk_jdi_0\work
18:46:33  Test results: passed: 112
18:46:35  Report written to E:\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\jvmtest\openjdk\report\html\report.html
18:46:35  Results written to E:\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdk-tests\TKG\test_output_161073559386\jdk_jdi_0\work
18:46:35  
18:46:35  jdk_jdi_0_PASSED
lumpfish commented 3 years ago

A machine on which the test currently fails: test-azure-win2012r2-x64-2 (win32 jdk): https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/372/console

19:07:22  ===============================================
19:07:22  Running test jdk_jdi_2 ...
19:07:22  ===============================================
19:07:22  jdk_jdi_2 Start Time: Fri Jan 15 19:07:19 2021 Epoch Time (ms): 1610737639864
19:07:22  Nothing to be done for setup.
19:07:22  variation: Mode1000
19:07:22  JVM_OPTIONS:  
19:07:22  { itercnt=1; \
19:07:22  mkdir -p "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\TKG\\test_output_16107358529328\\jdk_jdi_2"; \
19:07:22  cd "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\TKG\\test_output_16107358529328\\jdk_jdi_2"; \
19:07:22  "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image\\bin\\java" -Xmx512m -jar "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests///..//jvmtest\\openjdk\\jtreg\\lib\\jtreg.jar" \
19:07:22  -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:1  -vmoptions:"-Xmx512m  " \
19:07:22  -w ""C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\TKG\\test_output_16107358529328\\jdk_jdi_2"\\work" \
19:07:22  -r "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests///..//jvmtest\\openjdk\\report" \
19:07:22  -jdk:"C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image" \
19:07:22  -exclude:"C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test\\ProblemList.txt" \
19:07:22  -exclude:"C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests///..//jvmtest\\openjdk\\ProblemList_openjdk8.txt" \
19:07:22  "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\openjdk\\openjdk-jdk\\jdk\\test:jdk_jdi"; \
19:07:22  if [ $? -eq 0 ] ; then echo ""; echo "jdk_jdi_2""_PASSED"; echo ""; cd C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/;  else echo ""; echo "jdk_jdi_2""_FAILED"; echo ""; fi; } 2>&1 | tee -a "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/\\TKG\\test_output_16107358529328\\TestTargetResult";
19:07:22  Directory "C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work" not found: creating
19:07:22  XML output with verification to C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work
19:09:52  --------------------------------------------------
19:09:52  TEST: com/sun/jdi/PrivateTransportTest.sh
19:09:52  TEST JDK: C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image
19:09:52  
19:09:52  ACTION: compile -- Passed. Compilation successful
19:09:52  REASON: User specified action: run compile -g HelloWorld.java 
19:09:52  TIME:   0.044 seconds
19:09:52  messages:
19:09:52  command: compile -g C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\HelloWorld.java
19:09:52  reason: User specified action: run compile -g HelloWorld.java 
19:09:52  Mode: agentvm
19:09:52  Agent id: 1
19:09:52  elapsed time (seconds): 0.044
19:09:52  configuration:
19:09:52  Boot Layer (javac runtime environment)
19:09:52    class path: C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image\lib\tools.jar
19:09:52                C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\jvmtest\openjdk\jtreg\lib\javatest.jar
19:09:52                C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\jvmtest\openjdk\jtreg\lib\jtreg.jar
19:09:52  
19:09:52  javac compilation environment
19:09:52    source path: C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi
19:09:52    class path:  C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi
19:09:52                 C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi
19:09:52                 C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image\lib\tools.jar
19:09:52  
19:09:52  rerun:
19:09:52  cd 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\scratch' && \
19:09:52  PATH='C:\cygwin64\bin;C:\cabbage;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\openjdk\jdk-8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\rust\bin;C:\Program Files\Java\IcedTeaWeb\bin' \
19:09:52  SystemDrive=C: \
19:09:52  SystemRoot='C:\Windows' \
19:09:52  TEMP='C:\Users\JENKIN~1.TES\AppData\Local\Temp' \
19:09:52  TMP='C:\Users\JENKIN~1.TES\AppData\Local\Temp' \
19:09:52  windir='C:\Windows' \
19:09:52      'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image\bin\javac' \
19:09:52          -J-ea \
19:09:52          -J-esa \
19:09:52          -J-Xmx512m \
19:09:52          -J-Dtest.vm.opts='-ea -esa -Xmx512m' \
19:09:52          -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \
19:09:52          -J-Dtest.compiler.opts= \
19:09:52          -J-Dtest.java.opts= \
19:09:52          -J-Dtest.jdk='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image' \
19:09:52          -J-Dcompile.jdk='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image' \
19:09:52          -J-Dtest.timeout.factor=8.0 \
19:09:52          -J-Dtest.root='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test' \
19:09:52          -J-Dtest.name=com/sun/jdi/PrivateTransportTest.sh \
19:09:52          -J-Dtest.file='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\PrivateTransportTest.sh' \
19:09:52          -J-Dtest.src='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
19:09:52          -J-Dtest.src.path='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
19:09:52          -J-Dtest.classes='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi' \
19:09:52          -J-Dtest.class.path='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi' \
19:09:52          -J-Dtest.class.path.prefix='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi;C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
19:09:52          -d 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi' \
19:09:52          -sourcepath 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi' \
19:09:52          -classpath 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi;C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\classes\com\sun\jdi;C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdkbinary\j2sdk-image\lib\tools.jar' \
19:09:52          -g 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\HelloWorld.java'
19:09:52  
19:09:52  ACTION: shell -- Failed. Execution failed: exit code 1
19:09:52  REASON: User specified action: run shell PrivateTransportTest.sh 
19:09:52  TIME:   0.215 seconds
19:09:52  messages:
19:09:52  command: shell PrivateTransportTest.sh
19:09:52  reason: User specified action: run shell PrivateTransportTest.sh 
19:09:52  elapsed time (seconds): 0.215
19:09:52  STDOUT:
19:09:52  JDK under test is: C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image
19:09:52  Setup private transport library by copying an existing one and renaming
19:09:52  cp C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image/jre/bin/dt_socket.dll /cygdrive/c/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/TKG/test_output_16107358529328/jdk_jdi_2/work/classes/com/sun/jdi/private_dt_socket.dll
19:09:52  PATH=/usr/bin:/cygdrive/c/cabbage:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Strawberry/perl/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/openjdk/jdk-8/bin:/cygdrive/c/apache-ant/apache-ant-1.10.5/bin:/cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/cygdrive/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.0:/cygdrive/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/cygdrive/c/rust/bin:/cygdrive/c/Program Files/Java/IcedTeaWeb/bin:/cygdrive/c/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/TKG/test_output_16107358529328/jdk_jdi_2/work/classes/com/sun/jdi
19:09:52  C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image/bin/java -agentlib:jdwp=transport=C:\\Users\\jenkins\\workspace\\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\\openjdk-tests\\TKG\\test_output_16107358529328\\jdk_jdi_2\\work\\classes\\com\\sun\\jdi\\private_dt_socket,server=y,suspend=n -classpath "C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/TKG/test_output_16107358529328/jdk_jdi_2/work/classes/com/sun/jdi" HelloWorld
19:09:52  FATAL ERROR in native method: JDWP One or more of the library paths supplied to jdwp, likely by sun.boot.library.path, is too long., jvmtiError=JVMTI_ERROR_INVALID_LOCATION(24)
19:09:52  test status for  was: 1
19:09:52  The test failed :-(
19:09:52  exit status was 1
19:09:52  STDERR:
19:09:52  JDWP exit error JVMTI_ERROR_INVALID_LOCATION(24): One or more of the library paths supplied to jdwp, likely by sun.boot.library.path, is too long. [linker_md.c:60]
19:09:52  unspecified test failure
19:09:52  rerun:
19:09:52  cd 'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work\scratch' && \
19:09:52  PATH='C:\cygwin64\bin;C:\cabbage;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\openjdk\jdk-8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\rust\bin;C:\Program Files\Java\IcedTeaWeb\bin' \
19:09:52  SystemDrive=C: \
19:09:52  SystemRoot='C:\Windows' \
19:09:52  TEMP='C:\Users\JENKIN~1.TES\AppData\Local\Temp' \
19:09:52  TMP='C:\Users\JENKIN~1.TES\AppData\Local\Temp' \
19:09:52  windir='C:\Windows' \
19:09:52  TESTFILE=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi/PrivateTransportTest.sh \
19:09:52  TESTSRC=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi \
19:09:52  TESTSRCPATH=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi \
19:09:52  TESTCLASSES=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/TKG/test_output_16107358529328/jdk_jdi_2/work/classes/com/sun/jdi \
19:09:52  TESTCLASSPATH=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdk-tests/TKG/test_output_16107358529328/jdk_jdi_2/work/classes/com/sun/jdi \
19:09:52  COMPILEJAVA=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image \
19:09:52  TESTJAVA=C:/Users/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_x86-32_windows/openjdkbinary/j2sdk-image \
19:09:52  TESTVMOPTS='-ea -esa -Xmx512m' \
19:09:52  TESTTOOLVMOPTS='-J-ea -J-esa -J-Xmx512m' \
19:09:52  TESTJAVACOPTS= \
19:09:52  TESTJAVAOPTS= \
19:09:52  TESTTIMEOUTFACTOR=8.0 \
19:09:52  TESTROOT='C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test' \
19:09:52  FS='\' \
19:09:52  PS=; \
19:09:52  NULL=NUL \
19:09:52      sh \
19:09:52          'C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\openjdk\openjdk-jdk\jdk\test\com\sun\jdi\PrivateTransportTest.sh'
19:09:52  
19:09:52  TEST RESULT: Failed. Execution failed: exit code 1
19:09:52  --------------------------------------------------
19:11:35  Test results: passed: 111; failed: 1
19:11:45  Report written to C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\jvmtest\openjdk\report\html\report.html
19:11:45  Results written to C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-32_windows\openjdk-tests\TKG\test_output_16107358529328\jdk_jdi_2\work
19:11:45  Error: Some tests failed or other problems occurred.
19:11:45  
19:11:45  jdk_jdi_2_FAILED
lumpfish commented 3 years ago

So it looks like this test fails with a 'path too long' message on machines with the Jenkins workspace set to

C:\Users\Jenkins\workspace
J:\jenkins\workspace

and passes on machines with the Jenkins workspace set to

E:\workspace
andrew-m-leonard commented 3 years ago

@sxa @Haroon-Khel oddly this is not a problem on build-ibmcloud-win2012r2-x64-2 despite it's PATH being way over 260... : 1) Do we have some Windows setting on this node that changes behavior? 2) Or Is there some PATH shortening Windows option to use short path names ~... ?

/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Strawberry/perl/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/openjdk/jdk-8/bin:/cygdrive/c/apache-ant/apache-ant-1.10.5/bin:/cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/cygdrive/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.0:/cygdrive/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/cygdrive/c/Program Files (x86)/IncrediBuild:/cygdrive/c/rust/bin:/cygdrive/c/Program Files/IcedTeaWEB/bin
lumpfish commented 3 years ago

The test runs with a path converted into "c:\xxxx" style paths, so it will be shorter than the cygwin PATH

andrew-m-leonard commented 3 years ago

@lumpfish do you know why the path is "converted" on some machines and not others?

andrew-m-leonard commented 3 years ago

@lumpfish ah nw, see what you're saying! it's converted on both, but on one it's slightly shorter...

andrew-m-leonard commented 3 years ago

@sxa Stewart, do we think we can reduce the PATH length for the likes of this example? from: test-packet-win2012r2-x64-1

C:\cygwin64\bin;C:\Program Files\AdoptOpenJDK\jdk-8.0.265.01-hotspot\bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mellanox\MLNX_WinOF2\Management Tools;C:\Program Files\Mellanox\MLNX_WinOF2\Performance Tools;C:\Program Files\Mellanox\MLNX_WinOF2\Diagnostic Tools;C:\Program Files\Mellanox\MLNX_VPI\IB\Tools;C:\Program Files\Mellanox\MLNX_CIMProvider\lib\mft;C:\Program Files\Java\jdk8u144-b01\bin;C:\apache-ant\apache-ant-1.10.1\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Git\cmd;C:\Strawberry\perl\bin 

Could the Mellanox tools be removed?

andrew-m-leonard commented 3 years ago

i've added some debug:

13:36:51  JDWP exit error JVMTI_ERROR_INVALID_LOCATION(24): BAD ! DBG_PATH = fname=C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\aqa-tests\TKG\output_16252293879918\jdk_custom_1\work\classes\0\com\sun\jdi\private_dt_socket, path=C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\jre\bin paths_copy=C:\Users\jenkins\workspace\Test_openjdk8_hs_sanity.openjdk_x86-64_windows\openjdkbinary\j2sdk-image\jre\bin

The combination of \.dll is greater than 260 chars. Q: why is fname a path...?

andrew-m-leonard commented 3 years ago

Looks like testcase error, it should be using the absolute path option when specifying the full transport dll


-agentlib:<agent-lib-name>=<options>
    The name following -agentlib: is the name of the library to load. Lookup of the library, both its full name and location, proceeds in a platform-specific manner. Typically, the <agent-lib-name> is expanded to an operating system specific file name. The <options> will be passed to the agent on start-up. For example, if the option -agentlib:foo=opt1,opt2 is specified, the VM will attempt to load the shared library foo.dll from the system PATH under WindowsTM or libfoo.so from the LD_LIBRARY_PATH under the SolarisTM operating environment. 
-agentpath:<path-to-agent>=<options>
    The path following -agentpath: is the absolute path from which to load the library. No library name expansion will occur. The <options> will be passed to the agent on start-up. For example, if the option -agentpath:c:\myLibs\foo.dll=opt1,opt2 is specified, the VM will attempt to load the shared library c:\myLibs\foo.dll. 
andrew-m-leonard commented 3 years ago

This line is wrong: https://github.com/adoptium/jdk8u/blob/c7691288e1d7a9dd52e589967716fb425057fcd7/jdk/test/com/sun/jdi/PrivateTransportTest.sh#L197

I'll raise a bug

andrew-m-leonard commented 3 years ago

Raised: https://bugs.openjdk.java.net/browse/JDK-8269822