Hi,

I've noticed a segfault of HAProxy 2.8.9. I believe it happens when a map
is updated frequently and at the same time a "clear map" command is
triggered from CLI. I know the version I use is pretty old but I didn't
find any fix that might be related to the latest versions. I would be very
grateful for help.

bt:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p
/var/run/haproxy.pid -D -sf 51'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (no_tid=0, signo=6,
threadid=139643345953088) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7f014007e140 (LWP 1292865))]
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6,
threadid=139643345953088) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=139643345953088) at
./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=139643345953088, signo=signo@entry=6) at
./nptl/pthread_kill.c:89
#3  0x00007f01400c4476 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#4  0x00007f01400aa7f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055ca8f571965 in ha_panic () at src/debug.c:439
#6  ha_panic () at src/debug.c:413
#7  <signal handler called>
#8  0x00007f01401a0b7b in madvise () at
../sysdeps/unix/syscall-template.S:117
#9  0x00007f0140128995 in mtrim (pad=0, av=0x7f007c000030) at
./malloc/malloc.c:5078
#10 __malloc_trim (s=0) at ./malloc/malloc.c:5107
#11 0x000055ca8f71f3c0 in trim_all_pools () at src/pool.c:126
#12 0x000055ca8f717d65 in cli_io_handler_clear_map (appctx=0x55cb3f02a250)
at src/map.c:1031
#13 0x000055ca8f6a6337 in cli_io_handler (appctx=0x55cb3f02a250) at
src/cli.c:1121
#14 0x000055ca8f754a52 in task_run_applet (t=0x55cb2f3e89e0,
context=<optimized out>, state=<optimized out>) at src/applet.c:454
#15 0x000055ca8f708503 in run_tasks_from_lists
(budgets=budgets@entry=0x7ffe38e14ca0)
at src/task.c:634
#16 0x000055ca8f708f19 in process_runnable_tasks () at src/task.c:876
#17 0x000055ca8f6d3cea in run_poll_loop () at src/haproxy.c:2970
#18 0x000055ca8f6d4341 in run_thread_poll_loop (data=<optimized out>) at
src/haproxy.c:3169
#19 0x000055ca8f573830 in main (argc=<optimized out>, argv=<optimized out>)
at src/haproxy.c:3859


HAProxy version 2.8.9-1842fd0 2024/04/05 - https://haproxy.org/
Status: long-term supported branch - will stop receiving fixes around Q2
2028.
Known bugs: http://www.haproxy.org/bugs/bugs-2.8.9.html
Running on: Linux 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39
UTC 2025 x86_64

Reply via email to