[lttng-dev] LTTNG LIB UST Crash
Lakshmi Deverkonda
laksd at nvidia.com
Thu Sep 7 07:46:30 EDT 2023
Thanks for replying.
Basically in our python3 application, we already have a logger which will redirect the logs to a log file. By default, only info logs gets logged unless user explicitly turns on debug logging via cli.
For LTTNG Tracing, we would want to log all the events that is both info/debugs.
>>Do you think there would be any overhead on the application?
>> I cannot use the existing logger which does a file logging so for lttng only I have created just a new logger without any handler. Should this be fine?
>>Also, I see the default channel created for the python logging in lttng "lttng_python_channel" . From the documentation, I see that we cannot create another channel for python logging.
I would want to modify some of the attribute for the default channel such as making event-loss-mode as "overwrite" and increasing the trace_file_count. How can I do it ? This is one of the necessary requirement for our application. Can you please guide on this ?
Regards,
Lakshmi
________________________________
From: Kienan Stewart <kstewart at efficios.com>
Sent: 06 September 2023 21:01
To: lttng-dev at lists.lttng.org <lttng-dev at lists.lttng.org>; Lakshmi Deverkonda <laksd at nvidia.com>
Subject: Re: [lttng-dev] LTTNG LIB UST Crash
External email: Use caution opening links or attachments
Hi Lakshmi,
On 2023-09-06 06:02, Lakshmi Deverkonda via lttng-dev wrote:
> Thanks for the reply. Issue is fixed after loading the tracing helpers.
>
> I have one query wrt to logging wrt lttng on python3 application. Is
> there any way I can avoid the file logging and only trace via lttng ?
>
In the example python application at
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flttng.org%2Fdocs%2Fv2.13%2F%23doc-python-application&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141743499%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HMryNCihtLBKA49TWfsxp4%2FkzkFJhZrlyocoAsR7w78%3D&reserved=0<https://lttng.org/docs/v2.13/#doc-python-application> the log messages
are not written to disk or to stderr.
I lack the details of your application to give you a more precise answer.
Hope this helps,
kienan
> Regards,
> Lakshmi
>
>
> ------------------------------------------------------------------------
> *From:* Kienan Stewart <kstewart at efficios.com>
> *Sent:* 05 September 2023 21:20
> *To:* Lakshmi Deverkonda <laksd at nvidia.com>
> *Subject:* Re: [lttng-dev] LTTNG LIB UST Crash
> External email: Use caution opening links or attachments
>
>
> Hi Lakshmi,
>
> could you please provide us with the system details and version
> information for LTTng tools and UST?
>
> The bug reporting guidelines which cover the type of information
> required to respond adequately questions can be found here:
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flttng.org%2Fcommunity%2F%23bug-reporting-guidelines&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141743499%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZU4mg%2BDNKMbtxCVA3kRuyCZAaj7yUH5bLz6p4oXpROA%3D&reserved=0<https://lttng.org/community/#bug-reporting-guidelines> <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flttng.org%2Fcommunity%2F%23bug-reporting-guidelines&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=x0QzE9thuFtUFdNKd2qg0Fo4XSYqeTB4vbEBl88dGxE%3D&reserved=0<https://lttng.org/community/#bug-reporting-guidelines>>
>
> Given that you are instrumenting a user space application, do you have a
> minimal reproducer of the crash including the details of how the
> application is invoked that you would be able to share?
>
> Some types of user space applications required tracing helpers loaded
> via LD_PRELOAD. More information can be found here
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flttng.org%2Fdocs%2Fv2.13%2F%23doc-prebuilt-ust-helpers&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WpDm%2FpMZMb3EukOw9NF9L2GiMZpWeOAq3It8H8p%2BNSI%3D&reserved=0<https://lttng.org/docs/v2.13/#doc-prebuilt-ust-helpers> <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flttng.org%2Fdocs%2Fv2.13%2F%23doc-prebuilt-ust-helpers&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WpDm%2FpMZMb3EukOw9NF9L2GiMZpWeOAq3It8H8p%2BNSI%3D&reserved=0<https://lttng.org/docs/v2.13/#doc-prebuilt-ust-helpers>>
>
> If you're unable to share code or other log files due to company policy,
> or require responses within a guaranteed time frame, EfficiOS offers
> commercial support services:
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.efficios.com%2Fservices%2F&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=92syXIQdFYIdm7jBG%2BEc%2FNFcSBujENDvSRG%2BaeyPCMs%3D&reserved=0<https://www.efficios.com/services/> <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.efficios.com%2Fservices%2F&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=92syXIQdFYIdm7jBG%2BEc%2FNFcSBujENDvSRG%2BaeyPCMs%3D&reserved=0<https://www.efficios.com/services/>>
>
> thanks,
> kienan
>
> p.s. Sorry for forgetting to CC you in my earlier reply to the list!
>
> On 2023-09-05 02:30, Lakshmi Deverkonda via lttng-dev wrote:
>> Hi All,
>>
>> I am observing lttng crash while trying to interface LTTNG for one of my
>> python3 application.
>> I just tried the following things,
>>
>> Added "import lttngust " in the code.
>>
>> # lttng create clagd
>> Session clagd created.
>> Traces will be written in /root/lttng-traces/clagd-20230905-062210
>>
>> # lttng enable-event --python clagd
>> #lttng start
>>
>> #service clagd start
>> *
>> *
>> *cumulus-core: Running cl-support for core files
>> "clagd-ust.95410.1693895062.core"*
>>
>> #0 0x00007f134fb938eb in raise () from /lib/x86_64-linux-gnu/libc.so.6
>> #1 0x00007f134fb7e535 in abort () from /lib/x86_64-linux-gnu/libc.so.6
>> #2 0x00007f134fb7e40f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
>> #3 0x00007f134fb8c1a2 in __assert_fail () from
>> /lib/x86_64-linux-gnu/libc.so.6
>> #4 0x00007f134f1a9677 in lttng_ust_add_fd_to_tracker () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #5 0x00007f134f1bdcf4 in lttng_ust_elf_create () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #6 0x00007f134f1bf8de in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #7 0x00007f134fc8f957 in dl_iterate_phdr () from
>> /lib/x86_64-linux-gnu/libc.so.6
>> #8 0x00007f134f1bff6b in lttng_ust_dl_update () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #9 0x00007f134f1c061a in do_lttng_ust_statedump () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #10 0x00007f134f1b5ca9 in lttng_handle_pending_statedump () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #11 0x00007f134f1ab6d1 in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #12 0x00007f134f1ad7eb in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #13 0x00007f134ff0dfa3 in start_thread () from
>> /lib/x86_64-linux-gnu/libpthread.so.0
>> #14 0x00007f134fc5506f in clone () from /lib/x86_64-linux-gnu/libc.so.6
>>
>>
>> When I stop the lttng session, I see another core
>>
>> #0 0x00007fad951988eb in raise () from /lib/x86_64-linux-gnu/libc.so.6
>> [Current thread is 1 (Thread 0x7fad9331f700 (LWP 2221103))]
>> (gdb) bt
>> #0 0x00007fad951988eb in raise () from /lib/x86_64-linux-gnu/libc.so.6
>> #1 0x00007fad95183535 in abort () from /lib/x86_64-linux-gnu/libc.so.6
>> #2 0x00007fad9518340f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
>> #3 0x00007fad951911a2 in __assert_fail () from
>> /lib/x86_64-linux-gnu/libc.so.6
>> #4 0x00007fad947e8d9f in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #5 0x00007fad947e98e3 in shm_object_table_destroy () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #6 0x00007fad947e4d9a in channel_destroy () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #7 0x00007fad947ba6b5 in lttng_session_destroy () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #8 0x00007fad947b47c6 in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #9 0x00007fad947b4bac in lttng_ust_objd_unref () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #10 0x00007fad947b4bac in lttng_ust_objd_unref () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #11 0x00007fad947b4bac in lttng_ust_objd_unref () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #12 0x00007fad947b5304 in lttng_ust_objd_table_owner_cleanup () from
>> /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #13 0x00007fad947b2b75 in ?? () from /lib/x86_64-linux-gnu/liblttng-ust.so.0
>> #14 0x00007fad95512fa3 in start_thread () from
>> /lib/x86_64-linux-gnu/libpthread.so.0
>> #15 0x00007fad9525a06f in clone () from /lib/x86_64-linux-gnu/libc.so.6
>>
>>
>> Can you please help here if I'm missing something. This is a critical
>> task item for us but are currently stuck with multiple lttng crashes.
>>
>> Regards,
>> Lakshmi
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev at lists.lttng.org
>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lttng.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Flttng-dev&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BaJ6W4wzDuPk2BuBxWO6bEptWW1NpA2oWZwEOGIDpRY%3D&reserved=0<https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev> <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lttng.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Flttng-dev&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BaJ6W4wzDuPk2BuBxWO6bEptWW1NpA2oWZwEOGIDpRY%3D&reserved=0<https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lttng.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Flttng-dev&data=05%7C01%7Claksd%40nvidia.com%7C5dec50116ea24aef578508dbaeee6437%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638296111141899697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BaJ6W4wzDuPk2BuBxWO6bEptWW1NpA2oWZwEOGIDpRY%3D&reserved=0<https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20230907/0c5ad6a2/attachment-0001.htm>
More information about the lttng-dev
mailing list