OpenJDK 8 Segfault on Startup

Attie Grande attie.grande at argentum-systems.co.uk
Tue Nov 27 21:41:44 UTC 2018


Hi Aleksey,

On Mon, 26 Nov 2018 at 19:47, Aleksey Shipilev <ashipile at redhat.com> wrote:
>
> On 11/26/18 3:22 PM, Attie Grande wrote:
> > I'm confident that I've cleared the call to Arguments::parse() in
> > Threads::create_vm() [2], but this is getting messy, and surely cannot
> > be the correct way to debug JVM.
>
> Yes, {fast,slow}debug build and attached debugger is the correct way to debug JVM. Are you doing GDB
> with release build, per chance?

I think that's quite probable... I'll look into producing and using a
debug build tomorrow.

> > I've attached an error report: hs_err_pid5803.log.
>
> Attachment was stripped, please put the file somewhere, and post the link?

Apologies - see here: https://pastebin.com/raw/f1PB4uJm

> > - 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?
>
> I remember seeing the similar report at #openjdk @ OFTC, was that you? OpenJDK 8 on ARM probably
> means Zero VM, and maybe there is Yocto-specific problem, maybe even caused by some Yocto patch. It
> is impossible to tell having only the names for the patches :)

It wasn't me, but the IRC log looks like they are in a very familiar situation!
I'm also trying to run 162b12 on Yocto on i.MX6, and yes, Zero VM.
I've included a list of patches by URL below...

> Can you try with fastdebug and/or without Yocto patches?

I'll certainly try this tomorrow morning.

> Relevant part of IRC log:
>
> (10:43:57 AM) hitendra [~oftc-webi at 117.239.215.177] entered the room.
> (10:44:44 AM) hitendra: I tried to build latest openjdk-8 (V 162b12) . It successfully compiled for
> armv7 processor, But when I run java on imx6 module (Toradex) , it give me core dump Error.
> (10:45:01 AM) hitendra: can anyone please help??
> (10:50:27 AM) shade: that probably means you built Zero VM?
> (10:51:22 AM) shade: anyway, coredumps can be opened with gdb, and "thread apply all bt" would show
> where the threads were during that crash
> (10:51:50 AM) shade: it is highly advisable to build fastdebug version to look for asserts;
> configure --with-debug-level=fastdebug
> (10:52:39 AM) hitendra: # A fatal error has been detected by the Java Runtime Environment: # #
> Internal Error (os_linux_zero.cpp:254), pid=13475, tid=0x7681e460 #  fatal error: caught unhandled
> signal 11 # # JRE version:  (8.0_162-b12) (build ) # Java VM: OpenJDK Zero VM (25.162-b12
> interpreted mode linux-arm ) # Core dump written. Default location: /home/root/core or core.13475 #
> # An error report file with more information is saved as: # /home/root/hs_err_pid13475.log # #
> (10:52:55 AM) hitendra: I got this kind of error
> (10:55:16 AM) jerboaa: ok, this is Zero: "OpenJDK Zero VM"
> (10:55:57 AM) jerboaa: I'd try running it through a debugger
> (10:55:58 AM) hitendra: what is the solution ?
> (10:56:21 AM) jerboaa: I don't know. too little info :)
> (10:57:45 AM) hitendra: which information You want?
> (10:57:57 AM) jerboaa: why 162b12? Have you tried the latest tree from:
> http://hg.openjdk.java.net/jdk8u/jdk8u
> (10:59:00 AM) hitendra: is there any know issue with this java version on arm processor??
> (10:59:49 AM) jerboaa: hitendra, I don't know we build Zero on Fedora armv7 and haven't had any
> major issues
> (11:00:46 AM) jerboaa: https://koji.fedoraproject.org/koji/buildinfo?buildID=1129832 look for
> armv7hl architecture
> (11:01:30 AM) shade: unhandled signal? is this running in qemu guest, perchance?
> (11:10:10 AM) hitendra: actually i created linux os with yocto  latest (sumo), and clone letest
> meta-java banch and truing to build openjdk-8 . it compiled successfully
> (11:11:06 AM) hitendra: when i run the java on hardware (imx6 module (Toradex)) it casue core dump error
> (11:11:54 AM) jerboaa: so you should probably talk to yocto people about this.
>
> -Aleksey

After a quick review, I *think* that these are all relatively are
harmless (wrt Zero VM)... but this may not be the case.

http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/remove-shell-variables-from-autoheader.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/filter-aclocal-copy-too.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/dont-expect-fqpn-for-make.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-no-genx11-in-headless.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-no-unused-deps.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-find-compiler-fix-env-respect.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-prevent-debuginfo-in-favour-of-openembedded-package-split.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0001-jdk-comparison-between-pointer-and-integer.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0002-hotspot-fix-compilation-with-security-flags-enabled.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0003-jdk-Allow-using-a-system-installed-libjpeg.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0004-jdk-Allow-using-a-system-installed-libpng.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0005-hotspot-use-correct-include-for-poll.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0006-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0007-jdk-use-correct-include-for-poll.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0008-jdk-use-correct-include-for-signal.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0009-jdk-disable-backtrace-musl-build-fix.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/0010-build-fix-build-on-as-needed-toolchains-generic.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-restrict-to-staging-dir.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-stdc++11.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-assembler-flag-handling-in-makefile.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-adlc-flags.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-add-missing-linker-flags.patch?h=sumo
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/plain/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-assembler-flag-handling-in-makefile.patch?h=sumo

Attie


More information about the jdk-dev mailing list