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

Dynamic_trace.gz generated error while running make run-trace? (from docker) #49

Open
LittleRainbow13 opened this issue Nov 9, 2023 · 0 comments

Comments

@LittleRainbow13
Copy link

I encountered the following error while executing the instruction:
What is generated is a corrupted dynamic_trace.gz file.
root@ab9c3ac9d6e6:/workspace/LLVM-Tracer/playground# make run-trace
/workspace/LLVM-Tracer/bin/get-labeled-stmts test1.cc --
-I/usr/local/lib/clang/6.0.0/include -I/workspace/LLVM-Tracer/playground/ \

"/usr/local/bin/clang-6.0" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "test1.cc" "-static-define" "-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-dwarf-column-info" "-debug-info-kind=limited" "-dwarf-version=4" "-debugger-tuning=gdb" "-momit-leaf-frame-pointer" "-coverage-notes-file" "/workspace/LLVM-Tracer/playground/test1.gcno" "-resource-dir" "/usr/local/lib/clang/6.0.0" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/x86_64-linux-gnu/c++/7.5.0" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/x86_64-linux-gnu/c++/7.5.0" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/backward" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/local/lib/clang/6.0.0/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-O1" "-fdeprecated-macro" "-fdebug-compilation-dir" "/workspace/LLVM-Tracer/playground" "-ferror-limit" "19" "-fmessage-length" "0" "-fno-unroll-loops" "-fno-builtin" "-fno-inline" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-o" "test1.llvm" "-x" "c++" "test1.cc"
opt -S -load=/workspace/LLVM-Tracer/lib/full_trace.so -fulltrace -labelmapwriter test1.llvm -o test1-opt.llvm
llvm-link -o full.llvm test1-opt.llvm /workspace/LLVM-Tracer/lib/trace_logger.llvm
llc -O0 -disable-fp-elim -filetype=asm -o full.s full.llvm
g++ -no-pie -O0 -fno-inline -o test1-instrumented full.s -lm -lz -pthread
./test1-instrumented
dynamic_trace.gz: Starting to log at inst = 0.
0 1 2 3 dynamic_trace.gz: Stopping logging at inst 164.
test1-instrumented: /workspace/LLVM-Tracer/profile-func/trace_logger.cpp:132: logging_status log_or_not(bool, bool, int, char *): Assertion `false && "Returning from within a toplevel function before it was called!"' failed.
Makefile.tracer:20: recipe for target 'run-trace' failed
make: *** [run-trace] Aborted (core dumped)

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