Without any env vars set, I get this:
wasm trap: out of bounds memory access
wasm backtrace:
0: 0x4f3d - <unknown>!opa_value_length
1: 0x2528 - <unknown>!opa_json_writer_emit_set_literal
2: 0x22c7 - <unknown>!opa_json_writer_emit_value
3: 0x27bc - <unknown>!opa_json_writer_write
4: 0x28f8 - <unknown>!opa_value_dump
5: 0x791 - <unknown>!opa_eval
note: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information
Setting WASMTIME_BACKTRACE_DETAILS=1, I get the same message without the note:
wasm trap: out of bounds memory access
wasm backtrace:
0: 0x4f3d - <unknown>!opa_value_length
1: 0x2528 - <unknown>!opa_json_writer_emit_set_literal
2: 0x22c7 - <unknown>!opa_json_writer_emit_value
3: 0x27bc - <unknown>!opa_json_writer_write
4: 0x28f8 - <unknown>!opa_value_dump
5: 0x791 - <unknown>!opa_eval
Another nitpick is the comment on Message,
|
// Message returns the name in the module this export type is exporting |
|
func (t *Trap) Message() string { |
doesn't seem quite correct 🤔
Without any env vars set, I get this:
Setting
WASMTIME_BACKTRACE_DETAILS=1, I get the same message without the note:Another nitpick is the comment on
Message,wasmtime-go/trap.go
Lines 48 to 49 in ef5be5d
doesn't seem quite correct 🤔