Skip to content

JSON output panics on plain none #7314

Description

@philrz

Repro is with super commit ed44054.

$ super -version &&
  echo none | super -j -

Version: v0.3.0-393-ged44054eb

panic: unsupported id=30
goroutine 1 [running]:
github.com/brimdata/super/sio/jsonio.(*Writer).writePrimitive(0x17c745aa64b0, {{0xf609728, 0xf8abc00}, 0x0, 0x0})
	/Users/phil/work/super/sio/jsonio/writer.go:242 +0x554
github.com/brimdata/super/sio/jsonio.(*Writer).writeAny(0x17c745aa64b0, 0x0, {{0xf609728?, 0xf8abc00?}, 0x0?, 0x17c745734360?})
	/Users/phil/work/super/sio/jsonio/writer.go:76 +0x2fa
github.com/brimdata/super/sio/jsonio.(*Writer).Write(0x17c745aa64b0, {{0xf609728?, 0xf8abc00?}, 0x0?, 0x17c745853820?})
	/Users/phil/work/super/sio/jsonio/writer.go:64 +0x35
github.com/brimdata/super/sbuf.WriteVec({0xf604b38, 0x17c745aa64b0}, {0xf615348?, 0x17c7458040a0?})
	/Users/phil/work/super/sbuf/materialize.go:121 +0x7b
github.com/brimdata/super/sio/jsonio.(*Writer).Push(0xda3b300?, {0xf615348?, 0x17c7458040a0?})
	/Users/phil/work/super/sio/jsonio/writer.go:58 +0x2d
github.com/brimdata/super/sio/anyio.(*defuser).Push(0x17c745b8d200, {0xf615348?, 0x17c7458040a0?})
	/Users/phil/work/super/sio/anyio/writer.go:95 +0x127
github.com/brimdata/super/vector/vio.CopyMux(0x17c745853c68, {0x589ab860, 0x17c7458b1ad0})
	/Users/phil/work/super/vector/vio/io.go:112 +0xa4
github.com/brimdata/super/cmd/super/root.(*Command).Run(0x17c74550a400, {0x17c7456987a0, 0x1, 0x1})
	/Users/phil/work/super/cmd/super/root/command.go:108 +0xbbb
github.com/brimdata/super/pkg/charm.path.run({0x17c74569c570, 0x1, 0x1}, {0x17c7456987a0, 0x1, 0x0?})
	/Users/phil/work/super/pkg/charm/path.go:11 +0x7b
github.com/brimdata/super/pkg/charm.(*Spec).Exec(0xf826190, {0x17c745698790, 0x2, 0x2})
	/Users/phil/work/super/pkg/charm/charm.go:74 +0x1fa
main.main()
	/Users/phil/work/super/cmd/super/main.go:40 +0x5b

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions