RFR: JDK-8199197: Set _NT_SYMBOL_PATH when running tests on windows

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Wed Mar 7 19:20:18 UTC 2018


> 7 mars 2018 kl. 19:42 skrev Erik Joelsson <erik.joelsson at oracle.com>:
> 
>> On 2018-03-07 10:19, Magnus Ihse Bursie wrote:
>>> On 2018-03-07 18:06, Erik Joelsson wrote:
>>> When running tests on Windows in a distributed environment we currently don't have access to debug symbols, which causes stack traces in hs_err files to be useless. When running local tests this works because the product under test was built on the same machine and the debug symbols are still available there. For this to work in distributed testing, we need to both provide the symbols bundle as well as setting up the _NT_SYMBOL_PATH environment variable to point to the correct directories. This patch does just that for both the old and new test makefiles. I have verified by running a modified jtreg test in Mach5 that crashes hotspot and verified that the stack trace contains symbols.
>>> 
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8199197
>>> 
>>> Webrev: http://cr.openjdk.java.net/~erikj/8199197/webrev.01/
>> Looks good to me.
>> 
>> Just one question: is the test profile already setup to depend on the symbols image? Otherwise I don't really understand how that can be assumed to be present?
> I'm adding the dependency on testedProfile.jdk_symbols if the build OS is Windows.

So that is enough? I see. I just have this view of jib dependencies being more complicated than they probably really are. :) 

/Magnus

> 
> /Erik
>> /Magnus
>> 
>>> 
>>> /Erik
> 




More information about the build-dev mailing list