Bug 27473 - it's report error when using uftrace from binutils2.35.1
Summary: it's report error when using uftrace from binutils2.35.1
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.35
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-26 08:06 UTC by wangmy@cn.fujitsu.com
Modified: 2022-06-22 06:29 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangmy@cn.fujitsu.com 2021-02-26 08:06:16 UTC
It's report error when using uftrace from binutils-2.35.1.

Is there any import changes from 2.35.1?

Here shows the problem while running uftrace on an ARM64el target board.(x86_64 and ARM32el are OK)

[test 1]

root #  uftrace -a --force --no-pager ls
WARN: child terminated by signal: 7: Bus error
WARN: cannot open record data: /tmp/uftrace-live-r70C7c: No data available

[test2]

test.sh:
test="uftrace_report" 
test_cpp="test.cpp" 
touch $test_cpp
cat >> $test_cpp <<EOF
#include <cstdio>
class A {
public:
        A() {printf("A is created\n");}
        ~A() {printf("A is destroyed\n");}
};
int main() {
        A a;
        return 0;
}
EOF
g++ -pg $test_cpp

uftrace record a.out

uftrace report a.out

rm -f $test_cpp a.out
rm -rf uftrace.data

root # sh test.sh
WARN: child terminated by signal: 7: Bus error
WARN: cannot open record data: uftrace.data: No data available
Comment 1 Alan Modra 2021-02-26 10:31:36 UTC
uftrace is not part of binutils