ClhsdbCDSCore jtreg test fails on OSX

Jaikiran Pai jai.forums2013 at
Mon Nov 4 14:41:09 UTC 2019

Not sure if this is the right place to report this, but given that the
failing test is in test/hotspot, I thought best to ask here.

I was working on a unrelated fix and happened to run tier1 tests. All
went fine, except the
test/hotspot/jtreg/serviceability/sa/ failed with:

java.lang.Error: cores is not a directory or does not have write permissions
    at ClhsdbCDSCore.main(

Looking at the testcase itself, I see this

if (Platform.isOSX()) {

    File coresDir = new File("/cores");

    if (!coresDir.isDirectory() || !coresDir.canWrite()) {

        throw new Error("cores is not a directory or does not have write

I'm on OSX. So this test expects a directory called "cores" at the root
of the filesystem? That looks odd. I don't have any such directory. Is
this an issue in the test case or am I missing some configuration to
have this "core" dump generated at some other location while running
this test?


More information about the hotspot-dev mailing list