-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Debugger] llvm-kompile-testing
doesn't generate debug symbols correctly
#858
Comments
from @gtrepta, have we tried |
Let's look at the python script, maybe it has something to do with the path that's looking for. (from @dwightguth) |
@Robertorosmaninho will post his additional reproduction info then un-assign himself and we can pick this back up later. This issue is the main thing blocking further changes to the debugging infrastructure. |
I'm having issues reproducing this with the latest versions of LLVM Backend
K
Reproduction
Error:
|
Looks like something is out of date here @Robertorosmaninho; did you rebuild the pattern matching project? You shouldn't be seeing |
Indeed, but I've recompiled both with |
I can't reproduce this locally. Make sure you're definitely regenerating $ kompile --version
K version: v6.1.12-0-gfb08dee7c1
Build date: Tue Nov 14 15:34:46 GMT 2023
$ kompile simple.k --syntax-module SIMPLE --backend llvm --enable-llvm-debug
$ ag '(right|left)-assoc' simple-kompiled/definition.kore
$ The axiom in question in my file is:
|
Thanks for looking at it! I deleted my k-distribution and llvm-backend directory from K, did the checkout again, and recompiled! The error reported on the beginning of the issue is still happening even when we pass the full path of |
Hey @Baltoli, from my investigation: this line is never being executed so we're not compiling it with the debug flag appropriated. After manually setting this flag, I could move on to a new set of errors: llvm-kompile-testing /home/robertorosmaninho/rv/tests/issue_840/simple-kompiled/definition.kore main -g -o interpreter
gdb --args ./interpreter input -1 output
...
(gdb) k start
Temporary breakpoint 1 at 0x12dcd0
Starting program: /home/robertorosmaninho/rv/tests/issue_840/interpreter input -1 output
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Temporary breakpoint 1, 0x0000555555681cd0 in main ()
0x0000555555640fb0 in k_step (subject=Traceback (most recent call last):
File "<string>", line 392, in to_string
File "<string>", line 600, in append
gdb.MemoryError: Cannot access memory at address 0x5555af642089
<error reading variable: Cannot access memory at address 0x5555af642089>) at /home/robertorosmaninho/rv/tests/issue_840/simple.k:4
4 rule I => I +Int 1
(gdb) |
First properly fix the parsing of |
The error I mentioned here can be soulve by passing llvm-kompile-testing simple-kompiled/definition.kore main -g -O1 -o interpreter |
The
llvm-kompile-testing
doesn't generate the debug symbols for a k file as expected.git log | head -n 1 commit a859fb6d77a48220d9d8b9314371933e8204c1d3
Expected Behavior:
This behavior was achieved using an
interpreter
generated bykompile
.Actual Behavior
Steps to reproduce:
input
as:output
as:definition.kore
)interpreter
fromllvm-kompile-testing
:The text was updated successfully, but these errors were encountered: