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

Segmentation fault #4

Open
jhanani2907 opened this issue Dec 18, 2019 · 0 comments
Open

Segmentation fault #4

jhanani2907 opened this issue Dec 18, 2019 · 0 comments

Comments

@jhanani2907
Copy link

I ran clang-6.0 in ubuntu 18.04. I am getting segmentation fault when I run this command. Could someone please help me?
Command:
clang-6.0 -Xclang -load -Xclang ../Spindle/Spindle/libSpindlePass.so -O2 -c test_loop_out_of_bound.c -o testloop.o
Output:
Begin: test_loop_out_of_bound.c
Function 0: main
Function 1: llvm.lifetime.start.p0i8
Function 2: sprintf
Function 3: llvm.lifetime.end.p0i8
Base: %1 = alloca [1000 x i32], align 16
inst: %9 = load i32, i32* %8, align 4, !tbaa !2
%1 = alloca [1000 x i32], align 16base
load inst ptr: %8 = getelementptr inbounds [1000 x i32], [1000 x i32]* %1, i64 0, i64 %7
Instrumenting for main
Writing static trace
End
clang-6.0: error: unable to execute command: Segmentation fault (core dumped)
clang-6.0: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/tjtron/Downloads/Spindle-master/test/../../clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04/bin
clang-6.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-6.0: error: unable to execute command: Segmentation fault (core dumped)
clang-6.0: note: diagnostic msg: Error generating preprocessed source(s).

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

1 participant