Skip to content

Nginx Segmentation Fault in libluajit #704

@matthieumarrast

Description

@matthieumarrast

In our frontend servers using mfserv v2.2 (2.2.14 and 2.2.12), the nginx worker processes crash and restart continuously with a "core dumped" error.

Log /home/mfserv/log/nginx_error.log:

2026/02/19 08:27:51 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1317456
2026/02/19 08:27:51 [alert] 792677#792677: worker process 1317456 exited on signal 11 (core dumped)
2026/02/19 08:27:51 [notice] 792677#792677: start worker process 1319714
2026/02/19 08:27:51 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:27:54 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1317380
2026/02/19 08:27:54 [alert] 792677#792677: worker process 1317380 exited on signal 11 (core dumped)
2026/02/19 08:27:54 [notice] 792677#792677: start worker process 1319738
2026/02/19 08:27:54 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:28:21 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319661
2026/02/19 08:28:21 [alert] 792677#792677: worker process 1319661 exited on signal 11 (core dumped)
2026/02/19 08:28:21 [notice] 792677#792677: start worker process 1319952
2026/02/19 08:28:21 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:28:24 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319703
2026/02/19 08:28:24 [alert] 792677#792677: worker process 1319703 exited on signal 11 (core dumped)
2026/02/19 08:28:24 [notice] 792677#792677: start worker process 1319975
2026/02/19 08:28:24 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:30:06 [info] 1319714#1319714: *20756399 client 127.0.0.1 closed keepalive connection
2026/02/19 08:30:51 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319738
2026/02/19 08:30:51 [alert] 792677#792677: worker process 1319738 exited on signal 11 (core dumped)
2026/02/19 08:30:51 [notice] 792677#792677: start worker process 1321645
2026/02/19 08:30:51 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:30:54 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319952
2026/02/19 08:30:54 [alert] 792677#792677: worker process 1319952 exited on signal 11 (core dumped)
2026/02/19 08:30:54 [notice] 792677#792677: start worker process 1321668
2026/02/19 08:30:54 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:31:21 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319975
2026/02/19 08:31:21 [alert] 792677#792677: worker process 1319975 exited on signal 11 (core dumped)
2026/02/19 08:31:21 [notice] 792677#792677: start worker process 1321887
2026/02/19 08:31:21 [notice] 792677#792677: signal 29 (SIGIO) received
2026/02/19 08:31:24 [notice] 792677#792677: signal 17 (SIGCHLD) received from 1319714
2026/02/19 08:31:24 [alert] 792677#792677: worker process 1319714 exited on signal 11 (core dumped)

Log /var/log/messages showing a segfault with libluajit-5.1.so.2.1.ROLLING:

Feb 19 08:27:51 <server_name> kernel: nginx[1317456]: segfault at 1 ip 00007fa093c106d0 sp 00007ffcf5f792a8 error 4 in libluajit-5.1.so.2.1.ROLLING[7fa093c00000+86000] likely on CPU 0 (core 0, socket 0)
Feb 19 08:27:51 <server_name> kernel: Code: c7 0e 29 f8 44 89 c6 89 c2 31 c6 c1 c2 0b 29 d6 31 f1 c1 ce 07 89 ca 29 f2 31 d0 c1 c2 10 29 d0 c3 66 0f 1f 84 00 00 00 00 00 <0f> b6 0c 0e 44 0f b6 06 89 ca 32 54 06 ff 0f b6 c2 89 ca 31 f8 c1
Feb 19 08:27:51 <server_name> systemd[1]: Started Process Core Dump (PID 1319708/UID 0).
Feb 19 08:27:51 <server_name> systemd-coredump[1319713]: Resource limits disable core dumping for process 1317456 (nginx).
Feb 19 08:27:51 <server_name> systemd-coredump[1319713]: Process 1317456 (nginx) of user 1001 dumped core.
Feb 19 08:27:51 <server_name> systemd[1]: systemd-coredump@12238-1319708-0.service: Deactivated successfully.

We are using Rocky Linux v9.7 and v9.6.

I don't know the cause of this error. I don't have a clue for now. Not able to reproduce it with the metwork docker images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions