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

[K-Bug] Setting subject in debugging #1015

Open
1 of 6 tasks
celine-celine opened this issue Mar 13, 2024 · 1 comment
Open
1 of 6 tasks

[K-Bug] Setting subject in debugging #1015

celine-celine opened this issue Mar 13, 2024 · 1 comment
Labels

Comments

@celine-celine
Copy link

What component is the issue in?

llvm-backend

Which command

  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch

What K Version?

v6.1.98

Operating System

Linux

K Definitions (If Possible)

module LESSON-19-A
imports INT
rule I => I +Int 1
requires I <Int 100
endmodule

Steps to Reproduce

While going through lesson 1.19 in k tutorial, after running the kompile lesson-19-a.k --enable-llvm-debug and krun -cPGM=0 --debugger, it returns the following result as:

Temporary breakpoint 1 at 0x839e0
Starting program: /home/scarlett/k-tutorial/lesson-02-a-kompiled/interpreter /tmp/.krun-2024-03-13-21-49-58-HgvcekYO99/tmp.in.z6w0rpZ0Er -1 /tmp/.krun-2024-03-13-21-49-58-HgvcekYO99/result.kore
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Temporary breakpoint 1, 0x00005555555d79e0 in main ()
0x00005555555b9530 in k_step (subject=#Bottom) at /home/scarlett/k-tutorial/lesson-02-a.k:287
287     rule I => I +Int 1

Expected Results

According to the tutorial, subject here should be instead of #Bottom, however, it cannot be found either in the tutorial or in 'help k' about how to change subject.

@Baltoli
Copy link
Contributor

Baltoli commented Mar 13, 2024

Hi @celine-celine; thanks for your interest in K! The GDB support for K is currently broken; it's tricky code to maintain and test reliably, but fixing it is very much on our agenda. I'm going to triage this issue to the correct place to make sure that it gets logged alongside related issues.

For the time being, you can safely skip the GDB lesson and move on to the rest of the tutorial. Please let us know if there are any other issues you experience!

@Baltoli Baltoli transferred this issue from runtimeverification/k Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants