From nobody Thu Feb 27 17:00:08 2025 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z3cyy6jJ5z59J6m for ; Thu, 27 Feb 2025 17:00:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z3cyy3fnzz46F2 for ; Thu, 27 Feb 2025 17:00:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740675610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6nMspIkGItZbtFEuc4833LtlAjomOCLYjWRFT5nASMM=; b=bP/jBWNTsRbtJFoPpX9tmapkoLjmO1iTYT74zw3DKR4YeTEz0aOc3SQVsX2NkA31B+fyco PeT93cEmH4a9qZDb510/qib3yaYKL6ZJvKTQ1bPnAawtYIQs4Wv/ApnTNPuRSPZSXlKYMz nr2Tuz0j+AG3pe5Jz5N1WArL2/XjER5yWf8YXxLYM/7ADVvtTVA0tWnLujjN9jmBXeG6sC TlbB9PSynl5sYvWS39X8ABAPAmdOze0WrC0ohJjNIqxrvP8wQbkI91d9kZERcX92hiDekI pgTGEHF587k86hW0P7zV9zLIrcTDsuBRSp+sKVdu88/aT1MQg92ztlsqfhqUeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740675610; a=rsa-sha256; cv=none; b=diBTxD30zupCyDJa5LFxeVJacvqr2mQwPj9uhENg+JYqNgva00nc7qY1riTBR4GM67DIYg qEBchXYXyIfsOAtHHhcYsrujxyOIDlbHP167qYRhJO/isXbn50p5RxE7iOFzbIcvKubtIR q4Yy/qOmSJY7fFARLWvhVeqbLqCBddNItkSqEQWEJ8pdwRb1wz1zKrWmyz1mphmc7iA/mW +pFs+rS28KP1iTnQHNI9zNqWOKQElP+YjejhGE1ALh4x8OpC+Qk1jpXadjt8ZpVqtQ0+9H H2l/7JMl3X4oQ5feM/2YWovPVvsgfpejWZiR5ymWaA9IYfZfUA/24z90TVtNMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740675610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6nMspIkGItZbtFEuc4833LtlAjomOCLYjWRFT5nASMM=; b=PJqZ5IY0CyJ2yT1CqvD/+KAUC06sl52bwu3nw79icRCEOv44Q48fg3k4RaCOMhO1Pg2lLH b72P02e4U1mP8WsbVXINjrs8F+XZ7EUwK4nV8V9sBd+np+UQ03p2kv6LL7JHHjv6mObANN wETlC8o/3cIyVAYEgIn39qiH+7Jo186xniuyOduNITnt26EsmtTysn2YvnSjo8/iUfRTLZ tF++IjeIUks+azRmW7zNEkkoIPAJBTt7ESsLyXh2d8c/Ue2MkI/yWUF6IyXkIvlaSx2EmZ QrUqZR4gIdmilzlovgukmDZYPzaeBCsrrHDnwUJTzovXsnofNTz+PmFogWnWDw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z3cyy3GTqzrkF for ; Thu, 27 Feb 2025 17:00:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 51RH0ApG002703 for ; Thu, 27 Feb 2025 17:00:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51RH0AIL002702 for java@FreeBSD.org; Thu, 27 Feb 2025 17:00:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 281382] java/openjdk21 segfaults with www/tomcat101 on aarch64 Date: Thu, 27 Feb 2025 17:00:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: michaelo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281382 --- Comment #14 from Michael Osipov --- Have you tried to run jsvc with Tomcat interactively without detaching from= the terminal, hence avoiding fork()? As far as I can see it chokes right here: https://github.com/apache/commons-daemon/blob/c35de58523fc870ba27bcc22b6beb= d44c22261c8/src/main/java/org/apache/commons/daemon/support/DaemonLoader.ja= va#L210 My gut feeling is that the regular Java launcher sets something which jvsc = is not setting for reflection. You might want to try older Java versions which= are less strict. Also worth trying is to enable Tomcat trace logging. I bet if you create a sample Commons Daemon based application without Tomca= t it will crash as well. Maybe https://github.com/apache/tomcat/blob/114191befd63566d466854488a6a1d75ed593= e0a/bin/catalina.sh#L289-L295? Sample apps: * https://github.com/naftulikay/commons-daemon-example * https://github.com/apache/commons-daemon/blob/master/src/samples/SimpleDaem= on.java --=20 You are receiving this mail because: You are on the CC list for the bug.=