Segfault on dictionary update in do block

27 views
Skip to first unread message

Adam

unread,
Oct 30, 2019, 7:41:36 AM10/30/19
to Kona Users
{p[`a]:1;do[1;p[`b]:2];p}[]

Causes a core dump (for me at least) on the current codebase (on Ubuntu 18.04.2 LTS)

pahihu

unread,
Oct 30, 2019, 8:41:48 AM10/30/19
to Kona Users
Using https://github.com/pahihu/kona on macOS 10.13.6 gives me

  {p[`a]:1;do[1;p[`b]:2];p}[]
.((`a;1;)
  (`b;2;()))


pahihu

Adam

unread,
Oct 30, 2019, 9:57:22 AM10/30/19
to Kona Users
Ubuntu gives the same segfault on this fork too for me.

Adam

unread,
Oct 30, 2019, 10:19:04 AM10/30/19
to Kona Users
In either case, we're getting in to an unhappy loop on line 77 of km.c. We seem to be attemping to free an object that is has a 2-cycle in it.

Tom Szczesny

unread,
Oct 30, 2019, 6:29:27 PM10/30/19
to kona...@googlegroups.com
Hey Adam --

Thanks again.
The bug causing the segfault in Kona was introduced by the commit made on April 3, 2016 attempting to fix issue #423: 'value error' for any defined variable

--
You received this message because you are subscribed to the Google Groups "Kona Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kona-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kona-user/5b1a60ea-9516-4dbd-b2b1-473980b010f6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages