SIGSEGV caused by compiled Java code

Jesper Wilhelmsson jesper.wilhelmsson at oracle.com
Sat Oct 14 22:41:00 UTC 2023


Hi Reto,

If you think you have found a bug then please do report it through bugreport.java.com. Provide as much relevant info as you possibly can. A reproducer is much appreciated. You can find more information about what info to provide here: https://openjdk.org/guide/#filing-an-issue

Thanks,
/Jesper

> On 14 Oct 2023, at 19:12, Reto Merz <reto.merz at abacus.ch> wrote:
> 
> Hello,
> 
> We can always reproduce a JVM crash SIGSEGV caused by compiled Java code.
> At the moment we can it only reproduce on Linux system (Ubuntu 22.04.3 LTS), and not on Windows.
> 
> First we have seen it with version
>    OpenJDK Runtime Environment Temurin-17.0.4.1+1 (17.0.4.1+1) (build 17.0.4.1+1)
> 
> After that we updatet to the latest 17 LTS Temurin release
>    OpenJDK Runtime Environment Temurin-17.0.8.1+1 (17.0.8.1+1) (build 17.0.8.1+1)
> 
> but we can still reproduce it.
> 
> Here is the content of the full hs_err_pid*.log:
>    https://github.com/retomerz/pasetbin/blob/main/hs_err_pid215731.log
> 
> The Java code of the mentioned method (ch.abacus.abareport.Logger.logOldImpl(Level,String,Throwable))
> is below [1].
> 
> Is this a known problem or should we report this via bugreport.java.com?
> In case we should report it, what exact info should be provided?
> 
> Thanks
> 
> Regards
> Reto
> 
> [1]
> private static void logOldImpl(Level level, String message, Throwable throwable){
>    if (LOG_TO_SYSTEM_OUT){
>        System.out.println(/*NlsIgnore*/"LOG: " + level + " -> " + message);
>    } else {
>        try {
>            if (ULCParams.hasULCParams()){
>                message = ((AVSystem)((WeakReference)ULCParams.currentULCParams().properties().get(AVSystem.PARAM_STRING)).get()).getReport().getFile().getURL().toString() + " - " + message;
>            }
>        } catch (Exception e){
>            message = /*NlsIgnore*/"no system - " + message;
>        }
>        getLogger().log(level, message, throwable);
>    }
> 
>    if (throwable != null){
>        throwable.printStackTrace();
>    }
> }
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/discuss/attachments/20231014/db5bdb4b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://mail.openjdk.org/pipermail/discuss/attachments/20231014/db5bdb4b/signature-0001.asc>


More information about the discuss mailing list