Hi Soji, On Mon, Oct 15, 2018 at 11:10:09PM +0530, Soji Antony wrote: > Hi Olivier, > > Many thanks for your reply. > Please find the gdb output given below. > > # gdb /usr/sbin/haproxy core.dump3.13871 > GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1 > Copyright (C) 2014 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > > > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from /usr/sbin/haproxy...(no debugging symbols > found)...done. > [New LWP 13872] > [New LWP 13873] > [New LWP 13888] > [New LWP 13889] > [New LWP 13890] > [New LWP 13892] > [New LWP 13893] > [New LWP 13894] > [New LWP 13895] > [New LWP 13871] > [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'. > #0 0x000055b79086de43 in _start () > (gdb) thread apply all bt > > Thread 10 (Thread 0x7f88ee327980 (LWP 13871)): > #0 0x000055b79086dee1 in _start () > > Thread 9 (Thread 0x7f88d37fe700 (LWP 13895)): > #0 0x000055b79086de46 in _start () > > Thread 8 (Thread 0x7f88cb7fe700 (LWP 13894)): > #0 0x000055b79086de46 in _start () > > Thread 7 (Thread 0x7f88d3fff700 (LWP 13893)): > #0 0x000055b79086de43 in _start () > > Thread 6 (Thread 0x7f88e8c25700 (LWP 13892)): > #0 0x000055b79086de43 in _start () > > Thread 5 (Thread 0x7f88e94c5700 (LWP 13890)): > #0 0x000055b79086de46 in _start () > > Thread 4 (Thread 0x7f88e9cc6700 (LWP 13889)): > #0 0x000055b79086de46 in _start () > > Thread 3 (Thread 0x7f88ea4c7700 (LWP 13888)): > #0 0x000055b79086de43 in _start () > > Thread 2 (Thread 0x7f88eacc8700 (LWP 13873)): > #0 0x000055b79086de43 in _start () > > Thread 1 (Thread 0x7f88eb4c9700 (LWP 13872)): > #0 0x000055b79086de43 in _start () > (gdb) info threads > Id Target Id Frame > 10 Thread 0x7f88ee327980 (LWP 13871) 0x000055b79086dee1 in _start () > 9 Thread 0x7f88d37fe700 (LWP 13895) 0x000055b79086de46 in _start () > 8 Thread 0x7f88cb7fe700 (LWP 13894) 0x000055b79086de46 in _start () > 7 Thread 0x7f88d3fff700 (LWP 13893) 0x000055b79086de43 in _start () > 6 Thread 0x7f88e8c25700 (LWP 13892) 0x000055b79086de43 in _start () > 5 Thread 0x7f88e94c5700 (LWP 13890) 0x000055b79086de46 in _start () > 4 Thread 0x7f88e9cc6700 (LWP 13889) 0x000055b79086de46 in _start () > 3 Thread 0x7f88ea4c7700 (LWP 13888) 0x000055b79086de43 in _start () > 2 Thread 0x7f88eacc8700 (LWP 13873) 0x000055b79086de43 in _start () > * 1 Thread 0x7f88eb4c9700 (LWP 13872) 0x000055b79086de43 in _start () > (gdb) >
Unfortunately, as is often the case with gdb, that's less than useful :/ If you have that available, you may install the haproxy-dbg package, but I'm not convinced it will yield better results. Can you share your config, obsucating any confidential informations, IP addresses etc ? Do you do anything on a stat sockets ? You mentionned you where getting a segfault, do you know how to reproduce it ? You also mentionned reloads are frequent, can you tell if the CPU spike happens immediately after a reload ? Thanks ! Olivier

