EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Andrea Vacondio
Hi,
this was initially posted on AdoptJDK issue tracker here
https://github.com/AdoptOpenJDK/openjdk-build/issues/1165 but after
verified that it's also affecting Azul's Zulu, I was suggested to post here.

On a Windows 10 32 bits I have a script that does a jlink on the 32bits jdk
11.0.3+7. When running 'java' on the resulting runtime I get a
EXCEPTION_ACCESS_VIOLATION (attached to the issue in GitHub there is the
error log). This doesn't happen if I run 'java' on the jdk. The same script
is used in a 64bits environment and everything works fine.
Please let me know if you need further information, this constantly
happens, I tried running the script multiple times and I got the same
result.
Andrea
Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Aleksey Shipilev-3
On 7/17/19 2:37 PM, Andrea Vacondio wrote:
> On a Windows 10 32 bits I have a script that does a jlink on the 32bits jdk
> 11.0.3+7. When running 'java' on the resulting runtime I get a
> EXCEPTION_ACCESS_VIOLATION (attached to the issue in GitHub there is the
> error log). This doesn't happen if I run 'java' on the jdk. The same script

There are quite a few bugfixes for x86_32 that went into 11.0.4, please try with recent 11u release.
Running with fastdebug binaries, if you can get hold of them, would also be a plus.

--
Thanks,
-Aleksey

Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Alan Bateman
In reply to this post by Andrea Vacondio
On 17/07/2019 13:37, Andrea Vacondio wrote:

> Hi,
> this was initially posted on AdoptJDK issue tracker here
> https://github.com/AdoptOpenJDK/openjdk-build/issues/1165 but after
> verified that it's also affecting Azul's Zulu, I was suggested to post here.
>
> On a Windows 10 32 bits I have a script that does a jlink on the 32bits jdk
> 11.0.3+7. When running 'java' on the resulting runtime I get a
> EXCEPTION_ACCESS_VIOLATION (attached to the issue in GitHub there is the
> error log). This doesn't happen if I run 'java' on the jdk. The same script
> is used in a 64bits environment and everything works fine.
> Please let me know if you need further information, this constantly
> happens, I tried running the script multiple times and I got the same
> result.
> Andrea
Where is the script? I'm curious if it runs jlink with --compress=2. If
so then you may be running into JDK-8215123[1] which is a calling
convention issue specific to Windows 32-bit. It was fixed for JDK 12 so
would be good to test with a JDK 12 or JDK 13 EA build to see if you
still run into issues.

-Alan.

[1] https://bugs.openjdk.java.net/browse/JDK-8215123
Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Andrea Vacondio
These are the args we use:
 --add-modules
java.base,java.datatransfer,java.logging,java.naming,java.sql,java.desktop,java.xml,java.scripting,jdk.unsupported,java.prefs
--compress 2 --no-man-pages --no-header-files --strip-debug

Tested with jdk-12.0.1+12 and got:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000377, pid=1052,
tid=2008
#
# JRE version:  (12.0.1+12) (build )
# Java VM: OpenJDK Server VM (12.0.1+12, mixed mode, emulated-client, g1
gc, windows-x86)
# Problematic frame:
# C  0x00000377

I'll try to find a 11.0.4 fastdebug binaries to test it..

Il giorno gio 18 lug 2019 alle ore 08:12 Alan Bateman <
[hidden email]> ha scritto:

> On 17/07/2019 13:37, Andrea Vacondio wrote:
> > Hi,
> > this was initially posted on AdoptJDK issue tracker here
> > https://github.com/AdoptOpenJDK/openjdk-build/issues/1165 but after
> > verified that it's also affecting Azul's Zulu, I was suggested to post
> here.
> >
> > On a Windows 10 32 bits I have a script that does a jlink on the 32bits
> jdk
> > 11.0.3+7. When running 'java' on the resulting runtime I get a
> > EXCEPTION_ACCESS_VIOLATION (attached to the issue in GitHub there is the
> > error log). This doesn't happen if I run 'java' on the jdk. The same
> script
> > is used in a 64bits environment and everything works fine.
> > Please let me know if you need further information, this constantly
> > happens, I tried running the script multiple times and I got the same
> > result.
> > Andrea
> Where is the script? I'm curious if it runs jlink with --compress=2. If
> so then you may be running into JDK-8215123[1] which is a calling
> convention issue specific to Windows 32-bit. It was fixed for JDK 12 so
> would be good to test with a JDK 12 or JDK 13 EA build to see if you
> still run into issues.
>
> -Alan.
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8215123
>
Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Aleksey Shipilev-3
On 7/18/19 11:19 AM, Andrea Vacondio wrote:

> These are the args we use:
>  --add-modules
> java.base,java.datatransfer,java.logging,java.naming,java.sql,java.desktop,java.xml,java.scripting,jdk.unsupported,java.prefs
> --compress 2 --no-man-pages --no-header-files --strip-debug
>
> Tested with jdk-12.0.1+12 and got:
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000377, pid=1052,
> tid=2008
> #
> # JRE version:  (12.0.1+12) (build )
> # Java VM: OpenJDK Server VM (12.0.1+12, mixed mode, emulated-client, g1
> gc, windows-x86)
> # Problematic frame:
> # C  0x00000377
>
> I'll try to find a 11.0.4 fastdebug binaries to test it..

Just "release" 11.0.4 would be fine to test; it was released yesterday. "fastdebug" would be nice if
the error persists.

-Aleksey

Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Alan Bateman
In reply to this post by Andrea Vacondio
On 18/07/2019 10:19, Andrea Vacondio wrote:
> These are the args we use:
>  --add-modules
> java.base,java.datatransfer,java.logging,java.naming,java.sql,java.desktop,java.xml,java.scripting,jdk.unsupported,java.prefs
> --compress 2 --no-man-pages --no-header-files --strip-debug
Can you also check this without `--compress 2` ?

-Alan
Reply | Threaded
Open this post in threaded view
|

Re: EXCEPTION_ACCESS_VIOLATION on a jlinked 11.0.3+7 32bits

Andrea Vacondio
Tested the same script with 11.0.4 and everything seems to work correctly.
Thanks for the help

Il giorno gio 18 lug 2019 alle ore 11:50 Alan Bateman <
[hidden email]> ha scritto:

> On 18/07/2019 10:19, Andrea Vacondio wrote:
> > These are the args we use:
> >  --add-modules
> >
> java.base,java.datatransfer,java.logging,java.naming,java.sql,java.desktop,java.xml,java.scripting,jdk.unsupported,java.prefs
>
> > --compress 2 --no-man-pages --no-header-files --strip-debug
> Can you also check this without `--compress 2` ?
>
> -Alan
>