OpenJDK 8 Segfault on Startup
attie.grande at argentum-systems.co.uk
Mon Nov 26 19:04:40 UTC 2018
Thanks for your response.
I'm using the latest that the meta-java layer supports, which I
believe is jdk8u162-b12 / d2e3920d2fd0 .
I could give a newer release a try, but I was trying to avoid the
potential patchwork headache involved (at least for now...)
On Mon, 26 Nov 2018 at 18:47, Martijn Verburg <martijnverburg at gmail.com> wrote:
> Which version of OpenJDK 8 are you trying. Is this from the tip of jdk8u forest?
> On Mon, 26 Nov 2018 at 17:26, Attie Grande <attie.grande at argentum-systems.co.uk> wrote:
>> Hi All,
>> I apologise if this is the wrong list, if it is, please let me know.
>> After getting a "waiting approval" / "members-only list" response, I
>> had another look at the available lists, but still feel this is the
>> most suitable.
>> I've been trying to get OpenJDK 8 running on Linux on an ARM platform,
>> using the Yocto Sumo recipes from meta-java .
>> Unfortunately, the result is a java executable that cannot startup
>> without hitting a SIGSEGV. Even running "simple" things like `java` or
>> `java -help` result in a segmentation fault.
>> Investigating with GDB shows that the segfault is in libjvm.so, but
>> there are no symbols in this region of memory, and the stack has been
>> destroyed (I suspect as part of the VM's operation?)
>> I've spent some time following the execution through this "fog of
>> war", and library functions like malloc(), strlen(), etc... are called
>> fairly regularly.
>> I'm confident that I've cleared the call to Arguments::parse() in
>> Threads::create_vm() , but this is getting messy, and surely cannot
>> be the correct way to debug JVM.
>> One of the last strings I see through strlen() before the segfault is
>> "I2C/C2I adapters", which points directly at
>> AdapterBlob::AdapterBlob() ... I don't know if that will give a
>> hint of state / progress to anyone in the know.
>> I've attached an error report: hs_err_pid5803.log.
>> - How would I go about debugging OpenJDK to figure out what's going on here?
>> - I have a series of patches applies (see below), are there any
>> obvious missing or harmful patches?
>> - Has anyone been down this road before?
>> Thanks in advance,
>> $ quilt series
>> : http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/tree/recipes-core/openjdk?h=sumo
>> : https://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/d2e3920d2fd0/src/share/vm/runtime/thread.cpp#l3335
>> : https://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/d2e3920d2fd0/src/share/vm/code/codeBlob.cpp#l270
> Cheers, Martijn (Sent from Gmail Mobile)
More information about the jdk-dev