On 2/6/25, 10:47 AM, "Michael Jeanson" <mjean...@debian.org> wrote:

>On Thu, 19 Dec 2024 23:47:27 +0000 Yong Wang <yongw...@nvidia.com> wrote:
>> Package: lttng-tools
>> Version: 2.13.9-1
>> Severity: normal
>>
>> The image we tested is based on bookworm, during system shutdown,
>> when closing the applications and lttng, we observed lttng consumer
>> randomly crashes with below log message:
>> lttng-consumerd: consumer.c:1638: lttng_consumer_on_read_subbuffer_mmap: 
>> Assertion `stream->net_seq_idx != (uint64_t) -1ULL || stream->trace_chunk' 
>> failed.
>>
>> After checking the core dump files, we examined the out_fd of stream is -1 
>> inside lttng_consumer_on_read_subbuffer_mmap().
>>
>> (gdb) bt
>> #0 0x00007fed75855e3c in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> #1 0x00007fed75806fb2 in raise () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> #2 0x00007fed757f1472 in abort () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> #3 0x00007fed757f1395 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> #4 0x00007fed757ffeb2 in __assert_fail () from 
>> /usr/lib/x86_64-linux-gnu/libc.so.6
>> #5 0x000055796fb8accd in lttng_consumer_on_read_subbuffer_mmap 
>> (stream=0x7fed5c04a5a0, buffer=0x7fed667faff0, padding=3006) at 
>> ./src/common/consumer/consumer.c:1638
>> #6 0x000055796fb9b5e7 in consumer_stream_consume_mmap (ctx=0x5f9, 
>> stream=0x7fed5c04a5a0, subbuffer=0x7fed667faff0) at 
>> ./src/common/consumer/consumer-stream.c:171
>> #7 0x000055796fb95d31 in lttng_consumer_read_subbuffer 
>> (stream=0x7fed5c04a5a0, ctx=0x557970657fb0, locked_by_caller=<optimized 
>> out>) at ./src/common/consumer/consumer.c:3435
>> #8 0x000055796fb8f1ac in consumer_thread_data_poll (data=0x557970657fb0) at 
>> ./src/common/consumer/consumer.c:2742
>> #9 0x00007fed75854144 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> #10 0x00007fed758d47dc in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
>> (gdb) up 5
>> #5 0x000055796fb8accd in lttng_consumer_on_read_subbuffer_mmap 
>> (stream=0x7fed5c04a5a0, buffer=0x7fed667faff0, padding=3006) at 
>> ./src/common/consumer/consumer.c:1638
>> 1638 ./src/common/consumer/consumer.c: No such file or directory.
>> (gdb) p stream->out_fd
>> $2 = -1
>>
>>
>> This behavior looks similar to the known reported issue : 
>> https://bugs.lttng.org/issues/1372,
>> that fix has been merged in master.
>>
>> Is there any plan to backport the fix solution to lttng-tools 2.13.9-1
>> for bookworm?
>>
>> Thank you!
>> Yong
>Hi,
>
>
>I will prepare an update for bookworm.
>
>
>Thanks,
>Michael
>

Hi Michael

Thanks for following up on this.  It's been a while since last update. That I'd 
like to check back in to see if such update is ready for bookworm? Or when do 
you think we can expect that to be available?

Thank you,
Yong




Reply via email to