-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I'm seeing segfault in spoa-mirror when using it to receive HTTP traffic from HAProxy. I'm running HA-Proxy version 2.1.4 2020/04/02 with spoa-mirror v1.2.9 [build 2409] on CentOS 7.6.1810 with 3.10.0-514.16.1.el7.x86_64 kernel. The segfault is repeatable, happening on the second HTTP request I send to HAProxy.
this is backtrace (its repeatable):
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff071b700 (LWP 7472)]
0x000000000040526f in mir_ptr_free (data=0x7ffff0714be0) at spoa-message.c:499
499 list_for_each_entry_safe(hdr, hdr_back, (*data)->hdrs, list)
(gdb) bt
#0 0x000000000040526f in mir_ptr_free (data=0x7ffff0714be0) at spoa-message.c:499
#1 0x0000000000405009 in spoa_msg_mirror (frame=0x7fffe000aff0, buf=0x7ffff0714c80, end=0x7fffe000b3cf "") at spoa-message.c:456
#2 0x00000000004063d1 in process_frame_cb (loop=0x7fffe00008c0, ev=0x7fffe000b028, revents=256) at spoa.c:348
#3 0x00007ffff7942587 in ev_invoke_pending () from /lib64/libev.so.4
#4 0x00007ffff794578d in ev_run () from /lib64/libev.so.4
#5 0x0000000000411f39 in worker_thread (data=0x62dd60) at worker.c:300
#6 0x00007ffff7729ea5 in start_thread () from /lib64/libpthread.so.0
#7 0x00007ffff74528dd in clone () from /lib64/libc.so.6