You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2026/08/27 13:28:17 UTC

(kafka) branch trunk updated: KAFKA-20314 Update GraalVM to version 25 to fix native image segfault on startup (#22059)

This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d5b3cd62f4f KAFKA-20314 Update GraalVM to version 25 to fix native image segfault on startup (#22059)
d5b3cd62f4f is described below

commit d5b3cd62f4fe12f04ddae3f0e27c912296c4922a
Author: sstremler <st...@gmail.com>
AuthorDate: Thu Aug 27 15:28:09 2026 +0200

    KAFKA-20314 Update GraalVM to version 25 to fix native image segfault on startup (#22059)
    
    Update GraalVM to version 25 to fix native image segfault on startup.
    
    `getpwuid` is not thread-safe and caused intermittent segfaults (~2%)
    during startup of kafka-native. GraalVM 25 fixes this by calling
    `getpwuid_r` instead.
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 docker/native/Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docker/native/Dockerfile b/docker/native/Dockerfile
index 77ebe745846..e23cfb5d817 100644
--- a/docker/native/Dockerfile
+++ b/docker/native/Dockerfile
@@ -13,7 +13,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM ghcr.io/graalvm/graalvm-community:21 AS build-native-image
+# GraalVM 25+ required: earlier versions call getpwuid (not thread-safe), causing
+# intermittent segfaults (~2%) on startup. GraalVM 25 switches to getpwuid_r.
+FROM ghcr.io/graalvm/graalvm-community:25 AS build-native-image
 
 ARG kafka_url=""