From: Kienan Stewart via lttng-dev <lttng-dev@lists.lttng.org>
To: Brian Hutchinson <b.hutchman@gmail.com>,
"lttng-dev@lists.lttng.org" <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] Using lttng-ust 2.13.6 from Yocto Kirkstone and getting weird segfault saying strlen_asimd.S can't be found.
Date: Fri, 12 Jul 2024 15:21:22 -0400 [thread overview]
Message-ID: <5d0ba65b-aa15-453d-b925-4b8045c39a3a@efficios.com> (raw)
In-Reply-To: <CAFZh4h9veQ+jRHOF=UGsjBVV_CcrdNUp1g76273APryrbyM5yw@mail.gmail.com>
Hi Brian,
On 7/12/24 2:56 PM, Brian Hutchinson wrote:
> Hi again Kienan,
>
> Manifest says librcu is 0.13.2.
thanks
>
> The app is made up of a bunch of sup projects (about 40 or so) that are
> built into a bunch of .o objects (I think it's a structure automatically
> setup by cmake) and finally linked together with the main app .o object
> so it looks like it's all static linking.
>
> The part where I put in a call to lttng-ust trace is in one of the sub
> projects. Looking at all of your example linking scenarios in the
> documentation, I think what we are doing fits the same scenario as the
> hello world build/link.
>
> All of the sub project .o's are linked with the main app's .o and linked
> with lttng-ust and ld at the end.
>
> I've also tried building the trace provider bits linked with lttng-ust
> and dl as a .so and using LD_PRELOAD to load that before starting the
> app. I get same segfault that way too.
>
> Stupid question. Do I need to create a lttng session or something
> before the app with lttng-ust tracepoints even runs? Reason I ask is,
> systemd starts up several other apps that setup and do things that the
> app in question needs before it can run so I was hoping the app could
> start then I create a session and attach to the pid to do tracing. I
> can't really start it like the hello world where is runs and pauses
> while you wait for a key press and then setup and start all the lttng
> session and recording bits, then hit a key and the tracepoints are
> exercised. From all I've read, an application with lttng-ust
> tracepoints should run as a normal program and the tracing lines do
> nothing until a lttng session is started and the tracepoints enabled.
>
It's not necessary to create a session, or even have the sessiond
running when a traced application is launched.
When an application that is compiled with user-space tracing, there's
are early constructors that run prior to the application's main entry
point. By default this waits for up to 3000ms to perform registration
with a sessiond before continuing to the program's main entry point.
This delay is controlled by the environment variable
LTTNG_UST_REGISTER_TIMEOUT ( see
https://lttng.org/man/3/lttng-ust/v2.13/#doc-_environment_variables ).
The UST application also opens a piece of shared memory at a well known
location and reads it waiting for changes. The sessiond will write to
the shared memory at the location when it starts to signal to any UST
apps that registration can be retried. C.f.
https://github.com/lttng/lttng-ust/blob/9b9714603cfa96a63a42dc9cb8266f81df42a4f3/src/lib/lttng-ust/lttng-ust-comm.c#L1978
> Thought I'd ask in case my understanding is wrong and how I'm starting
> things up is the problem.
>
> I'll work on fixing the 2.13.8 lttng-ust built (as I'm not convinced yet
> it's right based on what I mentioned before) and let you know how it goes.
>
If you're not sure re: size, you could always compute a sha512 sum for
the libraries.
thanks,
kienan
P.S. Could you please keep lttng-dev in CC? thank you.
> Thanks and have a good weekend!
>
> Regards,
>
> Brian
>
> On Fri, Jul 12, 2024 at 10:30 AM Brian Hutchinson <b.hutchman@gmail.com
> <mailto:b.hutchman@gmail.com>> wrote:
>
> No, it's a giant app. But made what I'm trying to test as simple
> as possible to demonstrate the error ... its the same trace provider
> that worked with hello world and my app is just calling a line of that.
>
> I don't think I did something right with my 2.13.8 build. Bitbake
> made a package that says it's 2.13.8 but I compared the files to
> 2.13.6 and the file sizes were all identical so somethings not
> right. So I need to figure out why recipe isn't working.
>
> I'm off work today but when I get a chance I'll check manifest and
> get you the rcu version and try to describe how app is built.
>
> Thanks,
>
> Brian
>
> On Fri, Jul 12, 2024, 10:17 AM Kienan Stewart <kstewart@efficios.com
> <mailto:kstewart@efficios.com>> wrote:
>
> Hi Brian,
>
> On 7/11/24 7:20 PM, Brian Hutchinson wrote:
> > Hi Kienan
> >
> > Do I need to update lttng-tools and modules too? I did a
> bbappend and
> > pulled in 2.13.8 recipe from master and get the same issue.
> I'm double
> > checking to make sure everything built right. Had to update
> sdk, rootfs
> > and rebuild app with new sdk etc.
>
> I don't believe so.
>
> Do you have a minimal reproducer example that you are able to share
> including the build instructions you are using?
>
> Also, which version of urcu is being used in your environment?
>
> thanks,
> kienan
>
> >
> > Regards,
> >
> > Brian
> >
> > On Thu, Jul 11, 2024 at 8:38 AM Kienan Stewart
> <kstewart@efficios.com <mailto:kstewart@efficios.com>
> > <mailto:kstewart@efficios.com
> <mailto:kstewart@efficios.com>>> wrote:
> >
> > Hi Brian,
> >
> > On 7/11/24 8:33 AM, Brian Hutchinson via lttng-dev wrote:
> > > ...
> > >
> > > I'm not sure about this, still trying to comprehend
> everything,
> > but I
> > > think my issue could be related to all this gcc TLS,
> heap,
> > trampoline
> > > talk here:
> > >
> > >
> >
> https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html>
> >
> <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html>>
> > >
> >
> <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html> <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html <https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg13584.html>>>
> > >
> > > Regards,
> > >
> > > Brian
> > >
> >
> > You could try using lttng-ust 2.13.8, which includes a
> fix for the
> > discussion you referenced.
> >
> >
> https://github.com/lttng/lttng-ust/commit/5db715e800d9b721f48495a987cd26c25965e836 <https://github.com/lttng/lttng-ust/commit/5db715e800d9b721f48495a987cd26c25965e836> <https://github.com/lttng/lttng-ust/commit/5db715e800d9b721f48495a987cd26c25965e836 <https://github.com/lttng/lttng-ust/commit/5db715e800d9b721f48495a987cd26c25965e836>>
> >
> > Please let us know if it doesn't solve it.
> >
> > thanks,
> > kienan
> >
>
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next prev parent reply other threads:[~2024-07-12 19:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 1:53 [lttng-dev] Using lttng-ust 2.13.6 from Yocto Kirkstone and getting weird segfault saying strlen_asimd.S can't be found Brian Hutchinson via lttng-dev
2024-07-11 12:33 ` Brian Hutchinson via lttng-dev
2024-07-11 12:38 ` Kienan Stewart via lttng-dev
[not found] ` <CAFZh4h9hyQj0JV5_pA4tQyoB8hTAfkmWbmZ2jJW2Vcwk4NMVig@mail.gmail.com>
2024-07-12 14:17 ` Kienan Stewart via lttng-dev
[not found] ` <CAFZh4h8yk-u54wMGitXYYfPSYTwfdO=j8QVKSDqhCufbomHLrw@mail.gmail.com>
[not found] ` <CAFZh4h9veQ+jRHOF=UGsjBVV_CcrdNUp1g76273APryrbyM5yw@mail.gmail.com>
2024-07-12 19:21 ` Kienan Stewart via lttng-dev [this message]
2024-07-17 1:27 ` Brian Hutchinson via lttng-dev
2024-07-17 14:13 ` Kienan Stewart via lttng-dev
2024-07-17 16:27 ` Brian Hutchinson via lttng-dev
2024-07-18 14:27 ` Kienan Stewart via lttng-dev
2024-07-23 4:48 ` Brian Hutchinson via lttng-dev
[not found] ` <CAFZh4h-_ixamDD4hMMETXGx8oA6Dr_3R5eFBeQPusFnKHEXKGg@mail.gmail.com>
2024-07-24 16:04 ` Kienan Stewart via lttng-dev
2024-07-25 19:54 ` Brian Hutchinson via lttng-dev
2024-07-29 19:03 ` Kienan Stewart via lttng-dev
2024-07-30 12:40 ` Brian Hutchinson via lttng-dev
2024-07-30 15:54 ` Brian Hutchinson via lttng-dev
2024-07-30 15:55 ` [lttng-dev] [yocto] " Khem Raj via lttng-dev
2024-07-30 16:31 ` Brian Hutchinson via lttng-dev
2024-07-30 15:58 ` [lttng-dev] " Kienan Stewart via lttng-dev
2024-08-21 12:51 ` Brian Hutchinson via lttng-dev
2024-08-21 15:02 ` Kienan Stewart via lttng-dev
2024-07-29 22:36 ` Brian Hutchinson via lttng-dev
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=5d0ba65b-aa15-453d-b925-4b8045c39a3a@efficios.com \
--to=lttng-dev@lists.lttng.org \
--cc=b.hutchman@gmail.com \
--cc=kstewart@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;
as well as URLs for NNTP newsgroup(s).