1. Phix:getd_all_keys on empty dictionary causes a crash
- Posted by euphoric (admin) May 28, 2020
- 1139 views
I think I have this right.
Minimum code to produce crash:
include dict.e integer d = new_dict() ?getd_all_keys(d)
That crashes for me.
Pete, is that a bug, or am I doing something wrong?
2. Re: Phix:getd_all_keys on empty dictionary causes a crash
- Posted by rneu May 28, 2020
- 1130 views
.
3. Re: Phix:getd_all_keys on empty dictionary causes a crash
- Posted by petelomax May 28, 2020
- 1110 views
euphoric said...
That crashes for me.
Works fine for me here, I get {} as expected.
4. Re: Phix:getd_all_keys on empty dictionary causes a crash
- Posted by _tom (admin) May 28, 2020
- 1110 views
include dict.e integer d = new_dict() ? getd_all_keys(d) /* Version 0.8.1 (64 bit Linux) Copyright Pete Lomax 2006..2016 ------------------------------------------------------------- /usr/local/bin/builtins/dict.e:315 in function traverser() index 0 out of bounds, reading sequence length 0 res = {} node = 0 partial = 0 pkey = 0 tid = 2 rev = 0 tt = {} key = <novalue> data = <novalue> left = <novalue> right = <novalue> c = <novalue> Global & Local Variables */
be well,
_tom
5. Re: Phix:getd_all_keys on empty dictionary causes a crash
- Posted by euphoric (admin) May 28, 2020
- 1098 views
petelomax said...
euphoric said...
That crashes for me.
Works fine for me here, I get {} as expected.
Looks like _tom is getting the error as well.
Are you using a version of Phix that we don't have?