-
Notifications
You must be signed in to change notification settings - Fork 118
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
Another partial string issue #2381
Comments
I'm not able to reproduce the crash after hundreds of attempts on each of the queries. Can anyone else? |
@Garklein, could you please post the result of $ scryer-prolog -v Thank you a lot! |
From |
Build the latest version, still able to reproduce. |
Full backtrace:
|
$ scryer-prolog -v
I don't get the crash but see different answers in doing start,halt,start,halt,start as you can see above. Another result:
|
Alternative formulation:
This version seems deterministic. |
Version (on Ubuntu, compiled using "cargo build --release"): https://github.com/mthom/scryer-prolog/tree/aab656775069ea24dff79ef7db8cda81bdd38e1b
Or, without the crash, but again unexpected:
|
thanks, I can consistently make it crash now. |
It doesn't crash on my system (Arch Linux) using that same commit and running on release mode, but the output change indeed |
$ scryer-prolog -v
|
|
Thank you, fixed in my view. |
Works now! Thank you @mthom! |
This query yields odd results:
G="AA", G=[_|Gs], G_=['A'|Gs], write(G_), nth0(1,G_,C), char_code(C,N), write(N).
Sometimes, it crashes:
Other times, the second character of
G_
is a random letter or byte:The results are unpredictable, and only seem to change when I restart the repl. Because of this, I think that uninitialized memory is somehow being read.
The text was updated successfully, but these errors were encountered: