Bug?

24 views
Skip to first unread message

John

unread,
Feb 16, 2022, 3:37:06 PM2/16/22
to Kona Users
Hello,
 
I'm new to this so I thought that I was doing something pretty stupid; but now that I have broken it down to the most basic case that I can find I wonder if I might have found a bug?
 
Can you see anything wrong with this snippet?
 
s:{+/!x}
test:{s[x]+s[x]}
test 5
 
I ask because it appears to crash k.exe. I have checked with a few other executables from the download page and it appears to crash anything after mid-2019 (the last executable that I could find which does not crash has _k = 2019-02-24).
 
Weirdly, if I call the first function from global scope before calling it from function scope it does not crash:
 
s:{+/!x}
test:{s[x]+s[x]}
s 1
test 5
 
If I've misunderstood anything any explanation would be greatly appreciated.
 
Thanks, John.

douglas mennella

unread,
Feb 18, 2022, 5:03:11 AM2/18/22
to Kona Users
FWIW, this works on TryItOnline which has an older build of kona, so it would seem that this is a regression.  I'm not sure when the tio build is from, maybe two years ago?

If you have some time you might try tracking down when it last worked with git bisect.  (I should do that with the bugs I reported...)

In any event, it's probably best to report the bug at the github repository.  Be sure to mention that it seemed to work in an older version.
Reply all
Reply to author
Forward
0 new messages