-
Notifications
You must be signed in to change notification settings - Fork 32
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
stack overflow during consult/1 #329
Comments
Hi! Thank you for reporting! I managed to reproduce the error with a shorter code: $ cat test.pl
:- ['test.pl'].
$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog v1.2.1
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?- ['test.pl'].
runtime: goroutine stack exceeds 1000000000-byte limit
... You can avoid this bug by stopping consulting I'll fix it later- it should have result in either an exception or ignoring recursive file load. So, let's keep this issue opened until the fix is ready. |
Ok, my bad, I copy pasted the command line It shouldn't loop for ensure_loaded/1 but it traits or not. |
I don't know exactly where it happens, but it happens:
Possibly it does loop somewhere? Or there is a memory leak,
like something gets allocated but not deallocated? Even worse
the memory leak is in some go system utility?
I don't know, the stack trace also shows Lexer and Parser,
I have only copied the first few lines.
The test folder was this one:
tests.zip
The text was updated successfully, but these errors were encountered: