From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] SIG33 message
Date: Tue, 16 Apr 2019 14:41:46 -0400 (EDT) [thread overview]
Message-ID: <928278419.2587.1555440106952.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <91e63721-14c2-74f8-66ac-fec45ae8721f@gydle.com>
----- On Apr 16, 2019, at 2:21 PM, Sebastien Boisvert sboisvert at gydle.com wrote:
> On 2019-04-16 2:12 p.m., Mathieu Desnoyers wrote:
> [snip]
>>
>> Hi Sebastien,
>>
>> This part of the ring buffer should only be used by the consumer daemon through
>> liblttng-ust-ctl.so, never from the traced applications.
>>
>> So I keep suspecting that it's NPTL's use of SIG33 which is causing an old
>> version of gdb to trap, ref:
>> https://gdb.sourceware.narkive.com/SzqG56iA/program-received-signal-sig33-real-time-event-33
>>
>> Thanks,
>>
>> Mathieu
>>
>
> If it is the case that an old gdb is involved,
> then it is unrelated to this kill() call site in the LTTng-UST source code:
>
> libringbuffer/ring_buffer_frontend.c:767: kill(getpid(),
> LTTNG_UST_RB_SIG_TEARDOWN);
>
> because LTTNG_UST_RB_SIG_TEARDOWN is SIGRTMIN + 2. According to the man page of
> signal(7) [1],
> SIGRTMIN is 34 (Native Posix Thread Library) or 35 (LinuxThreads, whatever that
> is).
>
>
> The equation
>
> 33 = SIGRTMIN + 2
>
> is not satisfied with either 34 or 35.
>
>
> So, is upgrading gdg the solution ?
Based on the gdb forum link I showed, either explicitly disable handling
SIG33 in older gdb:
handle SIG33 nostop noprint pass
or upgrade gdb.
Thanks,
Mathieu
>
>
> [1] http://man7.org/linux/man-pages/man7/signal.7.html
>
>
> [snip]
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2019-04-16 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAJyWpKFdOV6uiwWUicD5GNSSjWsD1TXjn=p45p_g6xu7F3HJbQ@mail.gmail.com>
2019-04-16 17:40 ` Mathieu Desnoyers
2019-04-16 17:58 ` Sebastien Boisvert
2019-04-16 18:11 ` Mathieu Desnoyers
2019-04-16 18:21 ` Sebastien Boisvert
2019-04-16 18:41 ` Mathieu Desnoyers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=928278419.2587.1555440106952.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox