Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

perf2bolt SEGFAULTs #75

Closed
uttampawar opened this issue Feb 14, 2020 · 0 comments
Closed

perf2bolt SEGFAULTs #75

uttampawar opened this issue Feb 14, 2020 · 0 comments

Comments

@uttampawar
Copy link

Hi,
I encountered yet another error while using perf2bolt tool. This tool causes SEGFAULT while processing perf.data,

Here is the error snippet,

$ perf2bolt -p ./perf.data -o perf.fdata /mnt/sdb1/a.out
perf2bolt: /mnt/sdb1/BOLT/paper/reproduce-bolt-cgo19/gcc/src/llvm/tools/llvm-bolt/src/RewriteInstance.cpp:2531: void llvm::bolt::RewriteInstance::disassembleFunctions(): Assertion `Section && "cannot get section for referenced address"' failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000555556b42e93 (perf2bolt+0x15eee93)
#1 0x0000555556b42f26 (perf2bolt+0x15eef26)
#2 0x0000555556b410fb (perf2bolt+0x15ed0fb)
#3 0x0000555556b426ff (perf2bolt+0x15ee6ff)
#4 0x00007ffff7bc8890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#5 0x00007ffff6879e97 gsignal /build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#6 0x00007ffff687b801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
#7 0x00007ffff686b39a __assert_fail_base /build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
#8 0x00007ffff686b412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
#9 0x00005555558acfd3 (perf2bolt+0x358fd3)
#10 0x00005555558a1541 (perf2bolt+0x34d541)
#11 0x00005555558a17e4 (perf2bolt+0x34d7e4)
#12 0x0000555555719a1a (perf2bolt+0x1c5a1a)
#13 0x00007ffff685cb97 __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#14 0x000055555571860a (perf2bolt+0x1c460a)
Stack dump:
0. Program arguments: perf2bolt -p ./perf.data -o perf.fdata /mnt/sdb1/a.out
Aborted (core dumped)

I'm trying to understand, what kind code would cause this (some kind of data in a code)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant