run specific jtreg tests under gdb

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Nov 16 16:32:34 UTC 2020


Hello,

In the .jtr file that is generated when you run a test, jtreg will generate
a `rerun` section, containing a shell script to run the test standalone.
This section is intended for use in cases like yours, where you want to
modify how the test is run, such as to run it under a debugger.

Note that in the section in the .jtr file, characters are escaped, and so
characters like `\` appear as `\\`. You can either copy and paste the
text into a text editor to unescape the text, or you can use the jtreg
`-show` option, which can be used to extract content from a .jtr file
and write it to the console, or piped into a file of your choosing.

I hope that helps.

-- Jon

On 11/16/20 6:26 AM, Δημήτρης Μπακαλιος wrote:
> Hello all,
> I am extending GraalVM to support ShenandoahGC and i am testing it using
> jtreg but some tests fail with segmentation fault.So i would like to use
> gdb with those specific tests but i can't find a way to do it.The command
> that jtreg has on its results forks a new process so that doesnt help.I
> run the tests using this command
> jtreg -v -jdk:/graal/graal-shenandoah-jdk
>   -vmoptions:"-XX:+UnlockDiagnosticVMOptions -XX:+UseShenandoahGC
> -XX:-InlineNatives" /jdk/test/hotspot/jtreg/gc/shenandoah
> Thanks in advance, i hope i have given enough infos for you to help me


More information about the jtreg-dev mailing list