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

Test causes segfault #52

Open
xTrayambak opened this issue Dec 9, 2024 · 0 comments
Open

Test causes segfault #52

xTrayambak opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
codegen bug A bug in the IR emitter

Comments

@xTrayambak
Copy link
Collaborator

xTrayambak commented Dec 9, 2024

This is the test in Test262: test262/test/language/expressions/await/for-await-of-interleaved.js

Expected Result

Bali gracefully exits by throwing a SyntaxError since it doesn't support the features this file uses

Current Output

$ balde run test262/test/language/expressions/await/for-await-of-interleaved.js
Traceback (most recent call last)
/home/tray/Documents/Projects/bali/src/balde.nim(239) balde
/home/tray/Documents/Projects/bali/src/balde.nim(231) main
/home/tray/Documents/Projects/bali/src/balde.nim(143) baldeRun
/home/tray/Documents/Projects/bali/src/balde.nim(124) execFile
/home/tray/Documents/Projects/bali/src/bali/runtime/interpreter.nim(868) run
/home/tray/Documents/Projects/bali/src/bali/runtime/interpreter.nim(737) generateIRForScope
/home/tray/Documents/Projects/bali/src/bali/runtime/interpreter.nim(591) generateIR
/home/tray/Documents/Projects/bali/src/bali/runtime/interpreter.nim(138) expand
/home/tray/Documents/Projects/bali/src/bali/runtime/interpreter.nim(253) generateIR
/home/tray/Documents/Projects/bali/src/bali/runtime/types.nim(129) markInternal
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(173) hash
/nix/store/q1h9yk91b6qp41hjdqhfrn7qvw8n6ri1-nim-unwrapped-2.2.0/nim/lib/pure/hashes.nim(716) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
(1874 calls omitted) ...
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(192) hash
/home/tray/Documents/Projects/bali/src/bali/grammar/statement.nim(189) hash
/home/tray/Documents/Projects/bali/src/bali/internal/sugar.nim(21) &
/nix/store/q1h9yk91b6qp41hjdqhfrn7qvw8n6ri1-nim-unwrapped-2.2.0/nim/lib/pure/options.nim(380) unsafeGet
/nix/store/q1h9yk91b6qp41hjdqhfrn7qvw8n6ri1-nim-unwrapped-2.2.0/nim/lib/pure/options.nim isSome
Error: call depth limit reached in a debug build (2000 function calls). You can change it with -d:nimCallDepthLimit=<int> but really try to avoid deep recursions instead.

and a segfault in release builds.

@xTrayambak xTrayambak self-assigned this Dec 9, 2024
@xTrayambak xTrayambak added the codegen bug A bug in the IR emitter label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen bug A bug in the IR emitter
Projects
None yet
Development

No branches or pull requests

1 participant