14 Jul 2025 11:50 AM - edited 14 Jul 2025 11:51 AM
The NGINX worker process crashes when we perform OneAgent runtime injection.
We are using versions 1.27.3 and 1.25.4, which, according to the documentation link, are compatible with OneAgent.
However, it works correctly with NGINX versions 1.27.5 and 1.25.0.
Could someone please review the GDB backtrace output and help identify the root cause of the issue?
Dmesg Output
[ 5539.113763] nginx[342788]: segfault at 133 ip 00007ffafac015c3 sp 00007ffe95fd7490 error 4 in liboneagentnginx.so[7ffafab36000+f07000] likely on CPU 1 (core 1, socket
0)
(gdb) backtrace
#0 0x00007ff9de4015c3 in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#1 0x00007ff9de530939 in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#2 0x00007ff9de530dd8 in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#3 0x00007ff9de53283f in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#4 0x00007ff9de532cf2 in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#5 0x00007ff9de4afb7a in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#6 0x00007ff9de4ae4de in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#7 0x00007ff9de3ff045 in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#8 0x00007ff9de3ecb5a in ?? () from /opt/dynatrace/oneagent/agent/bin/1.313.45.20250521-164818/linux-x86-64/liboneagentnginx.so
#9 0x00005609f7fdcc80 in ngx_http_log_request (r=r@entry=0x5609f91b7e20) at src/http/ngx_http_request.c:3806
#10 0x00005609f7fde5c3 in ngx_http_free_request (r=r@entry=0x5609f91b7e20, rc=rc@entry=0) at src/http/ngx_http_request.c:3747
#11 0x00005609f7fdf14f in ngx_http_set_keepalive (r=0x5609f91b7e20) at src/http/ngx_http_request.c:3169
#12 ngx_http_finalize_connection (r=0x5609f91b7e20) at src/http/ngx_http_request.c:2806
#13 0x00005609f7ff02d2 in ngx_http_upstream_handler (ev=<optimized out>) at src/http/ngx_http_upstream.c:1306
#14 0x00005609f7fc5893 in ngx_epoll_process_events (cycle=<optimized out>, timer=<optimized out>, flags=1) at src/event/modules/ngx_epoll_module.c:901
#15 0x00005609f7fbb0aa in ngx_process_events_and_timers (cycle=cycle@entry=0x5609f8c56430) at src/event/ngx_event.c:258
#16 0x00005609f7fc317b in ngx_worker_process_cycle (cycle=cycle@entry=0x5609f8c56430, data=data@entry=0x1) at src/os/unix/ngx_process_cycle.c:793
#17 0x00005609f7fc169f in ngx_spawn_process (cycle=cycle@entry=0x5609f8c56430, proc=0x5609f7fc30e0 <ngx_worker_process_cycle>, data=0x1,
name=0x5609f8170b6b "worker process", respawn=respawn@entry=1) at src/os/unix/ngx_process.c:199
#18 0x00005609f7fc4077 in ngx_reap_children (cycle=0x5609f8c56430) at src/os/unix/ngx_process_cycle.c:665
#19 ngx_master_process_cycle (cycle=0x5609f8c56430) at src/os/unix/ngx_process_cycle.c:180
#20 0x00005609f7f9925e in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:387
15 Jul 2025 08:17 AM
Hi,
The nginx worker process crashes (segfault) in the liboneagentnginx.so library during request finalization when the OneAgent integration is enabled. Support for these versions is declared, but it is possible that your installation is somehow specific, so it is worth opening a support ticket.
Radek