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

More incomplete stack traces [2] #853

Open
dpapavas opened this issue Aug 16, 2022 · 2 comments
Open

More incomplete stack traces [2] #853

dpapavas opened this issue Aug 16, 2022 · 2 comments

Comments

@dpapavas
Copy link
Contributor

This may be related, or the same as, #835. I notice that running the following code

(let ((a (+ 1 "a")))
  (display a)
  (newline))

the resulting exception does have correct source location information set, but the stack frame is missing the relevant frame. I get:

$ chibi-scheme -xchibi -T test.scm
ERROR on line 1 of file test.scm: invalid type, expected Number: "a"
  called from <anonymous> on line 1268 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 800 of file /usr/local/share/chibi/init-7.scm

On the other hand, if the error is inside the let body, e.g.

(let ((a 1))
  (display (+ 1 "a"))
  (newline))

the stack frame is complete:

$ chibi-scheme -xchibi -T test.scm
ERROR on line 1 of file test.scm: invalid type, expected Number: "a"
  called from <anonymous> on line 1 of file test.scm
  called from <anonymous> on line 1268 of file /usr/local/share/chibi/init-7.scm
  called from <anonymous> on line 800 of file /usr/local/share/chibi/init-7.scm
@ashinn
Copy link
Owner

ashinn commented Aug 17, 2022

Will take a look. Note your title is also "incoplete" :)

@dpapavas dpapavas changed the title More incoplete stack traces [2] More incomplete stack traces [2] Aug 18, 2022
@dpapavas
Copy link
Contributor Author

Note your title is also "incoplete" :)

😆 Noted and corrected.

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