Open philrz opened 5 days ago
This is happening because tableio.Writer and textio.Writer use a single arena with types from two zed.Contexts. (They create the second context for expr.NewFlattener. csvio.Writer and zeekio.Writer use NewFlattener in the same way but don't seem to be affected by this bug, presumably because they never create values in the arena using types created by the flattener's zed.Context.)
Some ways to fix this:
Repro is with Zed commit ce9626e.
This issue was reported in a community Slack thread. I confirmed that it started failing at commit ce9626e, which is associated with the arrival of the Arena changes in #5118.
No panic at the prior commit.