-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault with uftrace dump --flame-graph #1928
Comments
Thanks for the report. It's strange that Can you please upload the the full backtrace from GDB? Also you can try |
In the URL https://files.fm/u/cs3pkm6h27 is the uftrace.data of the run. I don't know if they can be used on different computers. |
Thanks, I can reproduce the problem. FYI uftrace is designed to be able to analyze data from different machine and even from a different architecture. I'll take a look at the bug. |
Keep up the good work, and thank you very much for all the information! |
Hmm.. sometimes kernel trace data contains related tasks and it makes get_task_handle() returning NULL. This would fix the problem but I need to take a look if there are more to fix. diff --git a/cmds/dump.c b/cmds/dump.c
index 75a81373..2ad53eb1 100644
--- a/cmds/dump.c
+++ b/cmds/dump.c
@@ -1152,6 +1152,8 @@ static void dump_flame_kernel_rstack(struct uftrace_dump_ops *ops,
tid = kernel->tids[cpu];
task = get_task_handle(kernel->handle, tid);
+ if (task == NULL)
+ return;
graph = graph_get_task(task, sizeof(*graph));
|
I also see the report output is invalid. I think there's a mismatch of ENTRY and EXIT. Probably with sched in/out..
|
Merged 7791257. |
Thanks! I will test it and report back if there are any issues! |
Hi,
I am trying to run
uftrace dump --flame-graph
with a small test that I have. Although record, report and graph commands work fine, the flamegraph option throws a segmentation fault.I am attaching the uftrace.data that are generated from the execution.
(Edit)
I cannot attach uftrace.data since they are 28 MB and github has a limit of 25 MB for attachments.
From a small investigation with gdb I found that uftrace crashes here:
Also, here is the
uftrace info
output:The text was updated successfully, but these errors were encountered: