<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
OK, getting closer :). Let's see who is the proc ID 46.<br>
<br>
In GDB, just do <br>
<br>
> p pt[46]<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div class="moz-cite-prefix">On 10/7/21 3:37 PM, Andrew Yager wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEX38CN_xr3mZeNja9Uud9ey8=Pwr2fqaQ2XoEkmObMT9tgYNw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hi Bogdan-Andrei,</div>
<div><br>
</div>
<div>OK; my non expert opinion
is that these two lines in
ipc.c may be a pointer to a
"symptom" of the problem…</div>
<div><br>
</div>
<div>// FIXME - we should
check if the destination
process really listens<br>
// for read, otherwise we
may end up filling in the
pipe and block<br>
</div>
<div><br>
</div>
<div>but, I really want to
know why it's blocking on
the IPC comms before that.</div>
<div><br>
</div>
<div>Here's the BT.</div>
<div><br>
</div>
<div>(gdb) bt full<br>
#0 0x00007f1e4ce9b297 in
__libc_write
(fd=fd@entry=195,
buf=buf@entry=0x7fffc86261b0,
nbytes=nbytes@entry=24) at
../sysdeps/unix/sysv/linux/write.c:26<br>
resultvar =
18446744073709551104<br>
__arg3 =
<optimized out><br>
_a2 = <optimized
out><br>
sc_ret =
<optimized out><br>
__arg1 =
<optimized out><br>
_a3 = <optimized
out><br>
sc_cancel_oldtype =
<optimized out><br>
resultvar =
<optimized out><br>
resultvar =
<optimized out><br>
__arg2 =
<optimized out><br>
_a1 = <optimized
out><br>
#1 0x000055ddea5cad33 in
__ipc_send_job
(payload2=0x0,
payload1=0x55ddea590760
<rpc_get_pkg_stats>,
type=0, fd=195) at ipc.c:171<br>
job = {snd_proc = 1,
handler_type = 0, payload1 =
0x55ddea590760
<rpc_get_pkg_stats>,
payload2 = 0x0}<br>
n = <optimized
out><br>
job = <optimized
out><br>
n = <optimized
out><br>
__FUNCTION__ =
"__ipc_send_job"<br>
#2 ipc_send_rpc
(dst_proc=dst_proc@entry=46,
rpc=rpc@entry=0x55ddea590760
<rpc_get_pkg_stats>,
param=param@entry=0x0) at
ipc.c:194<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>