Skip to contentSkip to conversation

babeltrace cannot open the trace but Trace Compass can open

DISCUSSION Kim, Seongab via lttng-dev 1 participant 6 messages Jul 22, 2020 – Jul 23, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I have a trace which cannot be opened by babeltrace as below, but I can open it with Trace Compass.

skim@d54030999178:/mnt/ssd/work/skim/traces$ babeltrace2  ./kernel/
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:800 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Invalid constant unsigned integer.
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4357 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Unexpected unary expression for clock class's `offset` attribute.
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4532 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Cannot visit clock class's entry: ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4775 [auto-disc-source-ctf-fs] At line 41 in metadata stream: Cannot visit clock class: ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/DECODER [email protected]:337 [auto-disc-source-ctf-fs] Failed to visit AST node to create CTF IR objects: mdec-addr=0x22a0d90, ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/SRC.CTF.FS/META [email protected]:128 [auto-disc-source-ctf-fs] Cannot update metadata decoder's content.
07-22 07:49:20.122  5264  5264 E PLUGIN/SRC.CTF.FS [email protected]:1206 [auto-disc-source-ctf-fs] Cannot create trace for `/mnt/ssd/work/skim/traces/kernel`.
07-22 07:49:20.123  5264  5264 W LIB/GRAPH [email protected]:977 Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0, comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so", comp-input-port-count=0, comp-output-port-count=0
07-22 07:49:20.123  5264  5264 E CLI cmd_run_ctx_create_components_from_config_components@babeltrace2.c:2301 Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
07-22 07:49:20.123  5264  5264 E CLI [email protected]:2480 Cannot create components.

ERROR: [Babeltrace CLI] (babeltrace2.c:2480)
Cannot create components.
CAUSED BY [Babeltrace CLI] (babeltrace2.c:2301)
Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
CAUSED BY [libbabeltrace2] (graph.c:977)
Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0, comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so", comp-input-port-count=0, comp-output-port-count=0
CAUSED BY [auto-disc-source-ctf-fs: 'source.ctf.fs'] (fs.c:1206)
Cannot create trace for /mnt/ssd/work/skim/traces/kernel.

Could someone can advise me how to open the trace with babeltrace? I'm using below version.

skim@d54030999178:~/work/tmp$ babeltrace2 -V Babeltrace 2.0.4 "Amqui"

Amqui (/_mkwi_/) is a town in eastern Qu_bec, Canada, at the base of the Gasp_ peninsula in Bas-Saint-Laurent. Located at the confluence of the Humqui and Matap_dia Rivers, its proximity to woodlands makes it a great destination for outdoor activities such as camping, hiking, and mountain biking.

Best regards,
Seongab Kim

#1 lore raw

Thank you for the bug report.

Can I kindly ask you to create an official issue for this?

Go to <https://bugs.lttng.org/projects/babeltrace/issues/new>.

I'd also like you to attach the offending CTF trace so that I can analyze it if it doesn't contain sensitive data and is somewhat small. If it's not possible, do:

    $ babeltrace2 -o ctf-metadata /mnt/ssd/work/skim/traces/kernel |
grep -A10 '^clock {'

and copy the output to the Redmine issue's description.

BR,

Phil

Quoted 43 lines · Seongab via lttng-dev

Hi,

I have a trace which cannot be opened by babeltrace as below, but I can open it with Trace Compass.

skim@d54030999178:/mnt/ssd/work/skim/traces$ babeltrace2  ./kernel/
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:800 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Invalid constant unsigned integer.
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4357 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Unexpected unary expression for clock class's `offset` attribute.
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4532 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Cannot visit clock class's entry: ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/IR-VISITOR [email protected]:4775 [auto-disc-source-ctf-fs] At line 41 in metadata stream: Cannot visit clock class: ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/CTF/META/DECODER [email protected]:337 [auto-disc-source-ctf-fs] Failed to visit AST node to create CTF IR objects: mdec-addr=0x22a0d90, ret=-22
07-22 07:49:20.099  5264  5264 E PLUGIN/SRC.CTF.FS/META [email protected]:128 [auto-disc-source-ctf-fs] Cannot update metadata decoder's content.
07-22 07:49:20.122  5264  5264 E PLUGIN/SRC.CTF.FS [email protected]:1206 [auto-disc-source-ctf-fs] Cannot create trace for `/mnt/ssd/work/skim/traces/kernel`.
07-22 07:49:20.123  5264  5264 W LIB/GRAPH [email protected]:977 Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0, comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so", comp-input-port-count=0, comp-output-port-count=0
07-22 07:49:20.123  5264  5264 E CLI cmd_run_ctx_create_components_from_config_components@babeltrace2.c:2301 Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
07-22 07:49:20.123  5264  5264 E CLI [email protected]:2480 Cannot create components.

ERROR: [Babeltrace CLI] (babeltrace2.c:2480)
Cannot create components.
CAUSED BY [Babeltrace CLI] (babeltrace2.c:2301)
Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
CAUSED BY [libbabeltrace2] (graph.c:977)
Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0, comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so", comp-input-port-count=0, comp-output-port-count=0
CAUSED BY [auto-disc-source-ctf-fs: 'source.ctf.fs'] (fs.c:1206)
Cannot create trace for /mnt/ssd/work/skim/traces/kernel.

Could someone can advise me how to open the trace with babeltrace? I'm using below version.

skim@d54030999178:~/work/tmp$ babeltrace2 -V Babeltrace 2.0.4 "Amqui"

Amqui (/_mkwi_/) is a town in eastern Qu_bec, Canada, at the base of the Gasp_ peninsula in Bas-Saint-Laurent. Located at the confluence of the Humqui and Matap_dia Rivers, its proximity to woodlands makes it a great destination for outdoor activities such as camping, hiking, and mountain biking.

Best regards,
Seongab Kim

_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

#2 lore raw

Hello Phil,

Quoted 10 lines

-----Original Message-----
From: Philippe Proulx <[email protected]>
Sent: Wednesday, July 22, 2020 5:06 PM
To: Kim, Seongab <[email protected]>
Cc: [email protected]
Subject: [EXTERNAL] Re: [lttng-dev] babeltrace cannot open the trace but Trace Compass can open

Thank you for the bug report.

Quoted 8 lines

Can I kindly ask you to create an official issue for this?

Go to
<https://clicktime.symantec.com/38qgEsYhBTfCNnYpLPoAn647Vc?u=https%
3A%2F%2Fbugs.lttng.org%2Fprojects%2Fbabeltrace%2Fissues%2Fnew>.

I'd also like you to attach the offending CTF trace so that I can analyze it if it doesn't contain sensitive data and is somewhat small.

I created an account in Redmine, but I'm still waiting for the account activation mail. I tried to click the resend mail link two times without success. Also the trace is big (1.4 GB) and it contains sensitive data.

Quoted 6 lines

If it's not possible, do:

    $ babeltrace2 -o ctf-metadata /mnt/ssd/work/skim/traces/kernel | grep -
A10 '^clock {'

and copy the output to the Redmine issue's description.

Here is the result.

skim@d54030999178:~/ssd_work/traces$ babeltrace2 -o ctf-metadata ./kernel | grep -A10 '^clock {'
clock {
        name = "monotonic";
        uuid = "e00bcef2-1ef1-4f02-a241-8561834511fd";
        description = "Monotonic Clock";
        freq = 1000000000; /* Frequency, in Hz */
        /* clock value offset from Epoch is: offset * (1/freq) */
        offset = -48;
};
typealias integer {
        size = 27; align = 1; signed = false;
Quoted 4 lines

BR,

Phil

Best regards,
Seongab

#3 lore raw
Quoted 34 lines · Seongab

Hello Phil,

Quoted 10 lines

-----Original Message-----
From: Philippe Proulx <[email protected]>
Sent: Wednesday, July 22, 2020 5:06 PM
To: Kim, Seongab <[email protected]>
Cc: [email protected]
Subject: [EXTERNAL] Re: [lttng-dev] babeltrace cannot open the trace but Trace Compass can open

Thank you for the bug report.

Quoted 8 lines

Can I kindly ask you to create an official issue for this?

Go to
<https://clicktime.symantec.com/38qgEsYhBTfCNnYpLPoAn647Vc?u=https%
3A%2F%2Fbugs.lttng.org%2Fprojects%2Fbabeltrace%2Fissues%2Fnew>.

I'd also like you to attach the offending CTF trace so that I can analyze it if it doesn't contain sensitive data and is somewhat small.

I created an account in Redmine, but I'm still waiting for the account activation mail. I tried to click the resend mail link two times without success. Also the trace is big (1.4 GB) and it contains sensitive data.

Quoted 6 lines

If it's not possible, do:

    $ babeltrace2 -o ctf-metadata /mnt/ssd/work/skim/traces/kernel | grep -
A10 '^clock {'

and copy the output to the Redmine issue's description.

Here is the result.

Quoted 8 lines
skim@d54030999178:~/ssd_work/traces$ babeltrace2 -o ctf-metadata ./kernel | grep -A10 '^clock {'
clock {
        name = "monotonic";
        uuid = "e00bcef2-1ef1-4f02-a241-8561834511fd";
        description = "Monotonic Clock";
        freq = 1000000000; /* Frequency, in Hz */
        /* clock value offset from Epoch is: offset * (1/freq) */
        offset = -48;

Thanks, this is enough for us.

When your account gets activated, could you copy this into the new issue's description?

This way you can receive notifications when the issue gets updated.

Thank you,

Phil

Quoted 12 lines

};

typealias integer {
        size = 27; align = 1; signed = false;
Quoted 4 lines

BR,

Phil

Best regards,
Seongab

#4 lore raw
Quoted 2 lines

When your account gets activated, could you copy this into the new issue's description?

I manually activated it. You should be good to go.

Quoted 7 lines

This way you can receive notifications when the issue gets updated.

Thank you,

Phil

#5 lore raw
In reply to Philippe Proulx via lttng-dev

Hello Phil,

Quoted 19 lines

-----Original Message-----
From: Philippe Proulx <[email protected]>
Sent: Thursday, July 23, 2020 4:00 PM
To: Kim, Seongab <[email protected]>
Cc: [email protected]
Subject: Re: [EXTERNAL] Re: [lttng-dev] babeltrace cannot open the trace but Trace Compass can open

Quoted 3 lines

Here is the result.

skim@d54030999178:~/ssd_work/traces$ babeltrace2 -o ctf-

metadata ./kernel | grep -A10 '^clock {'

Quoted 7 lines
clock {
        name = "monotonic";
        uuid = "e00bcef2-1ef1-4f02-a241-8561834511fd";
        description = "Monotonic Clock";
        freq = 1000000000; /* Frequency, in Hz */
        /* clock value offset from Epoch is: offset * (1/freq) */
        offset = -48;
Quoted 7 lines

Thanks, this is enough for us.

When your account gets activated, could you copy this into the new issue's description?

This way you can receive notifications when the issue gets updated.

FYI, I have created an issue, https://bugs.lttng.org/issues/1277.

Best regards,
Seongab