Skip to content
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

A bug report of Segmentation fault (core dumped) #1

Open
x0v0l opened this issue Mar 11, 2024 · 1 comment
Open

A bug report of Segmentation fault (core dumped) #1

x0v0l opened this issue Mar 11, 2024 · 1 comment

Comments

@x0v0l
Copy link

x0v0l commented Mar 11, 2024

Hey guys~ a Segmentation fault appeared when I applied TyPM on Linux kernel bc files. File names of all bc files of linux source code (Linux 6.6.12) are in bclist.txt. All things seemed fine when processing files and building call graph, but at last, the program got stuck for a long time and finally core dumped. Is it a bug of TyPM or simply a lack-of-memory issue? Because there are more than 500G memory available in the server environment where TyPM works, I think maybe it's a bug. The crash backtrace and the screenshot are attached below.

backtrace:

#0 0x000055eb8c0a3424 PrintStackTraceSignalHandler(void*) (./kanalyzer+0x1b7424)
#1 0x000055eb8c0a0cc4 SignalHandler(int) (./kanalyzer+0x1b4cc4)
#2 0x00007f0757ac5420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#3 0x00007f07575e0441 /build/glibc-BHL3KM/glibc-2.31/string/../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40:0
#4 0x000055eb8bf66fa3 getFileName[abi:cxx11](llvm::DILocation*, llvm::DISubprogram*) (./kanalyzer+0x7afa3)
#5 0x000055eb8bf67f34 printSourceCodeInfo(llvm::Value*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) (./kanalyzer+0x7bf34)
#6 0x000055eb8bfef55b TyPM::resolveFunctionTargets() /g.linux/type_analysis/typm/src/lib/TyPM.cc:1142:3
#7 0x000055eb8bfb3092 CallGraphPass::doModulePass(llvm::Module*) /g.linux/type_analysis/typm/src/lib/CallGraph.cc:541:10
#8 0x000055eb8bf9c7c4 IterativeModulePass::run(std::vector<std::pair<llvm::Module*, llvm::StringRef>, std::allocator<std::pair<llvm::Module*, llvm::StringRef> > >&) /g.linux/type_analysis/typm/src/lib/Analyzer.cc:90:9
#9 0x000055eb8bf9d364 main /g.linux/type_analysis/typm/src/lib/Analyzer.cc:189:9
#10 0x00007f0757549083 __libc_start_main /build/glibc-BHL3KM/glibc-2.31/csu/../csu/libc-start.c:342:3
#11 0x000055eb8bf66c8e _start (./kanalyzer+0x7ac8e)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./kanalyzer @/g.linux/analyzer-llx-new/build/lib/6.6.12/bclist.txt
Segmentation fault (core dumped)

TyPM crashed

@clingfei
Copy link

clingfei commented May 7, 2024

I meet a similar segmentation fault, have you fixed it?

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

No branches or pull requests

2 participants