<div dir="ltr"><div>After commenting out code that sets SIGINT handler in the charon.c file the charon daemon does not exit early any more. I bet that charon somehow consumes SIGINT signal that was actually addressed to GDB (this is how gdb interrupts inferior process).<br>
</div> <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 October 2013 14:04, Ansis Atteka <span dir="ltr"><<a href="mailto:ansisatteka@gmail.com" target="_blank">ansisatteka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I tried to attach to charon with following gdb command (as recommended in one of the older threads in this mailing list):<br>
gdb /usr/lib/strongswan/charon <pid><br><br></div>but charon is immediately killed after I try to interrupt it second time (ctrl+c). I am suspicious that signal handlers somehow get into way.<br>
<br>Has anyone had any success with debugging charon with GDB? Am I missing some preparation steps?<br><br></div><div>Both ubuntu 13.04 and 13.10 are affected by this.<br></div><div><br></div>Thanks,<br></div>Ansis<br></div>
</blockquote></div><br></div>