Skip to content
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

Zeek segfaults on redef with invalid record #594

Open
0xxon opened this issue Sep 24, 2019 · 0 comments

Comments

@0xxon
Copy link
Member

commented Sep 24, 2019

The following code seg-faults, after printing an error message. The former is ok, the latter not ideal.

The error message output is also a bit misleading.

type a: record {
  b: count;
  c: count;
} ;

const testtable: table[string] of a = table() &redef;

redef testtable += {
 ["a"] = [1, 2]
};

Output:

internal error in ./test.zeek, line 9: missing aggregate in ListExpr::InitVal (1, 2)
Abort trap: 6

This might have a similar cause as #570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.