deflect icon indicating copy to clipboard operation
deflect copied to clipboard

`cargo test` fails with `SIGSEGV`

Open loyd opened this issue 1 year ago • 0 comments

I'm running cargo test on the latest commit (b7c60ce) and get SIGSEGV:

running 27 tests
test braced_struct ... FAILED
test boxed_dyn ... FAILED
test boxed_slice ... FAILED
test phantom_data ... FAILED
test primitive::bool ... FAILED
error: test failed, to rerun pass `--test reflect`

Caused by:
  process didn't exit successfully: `/home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e` (signal: 11, SIGSEGV: invalid memory reference)

Core dump under gdb:

sudo coredumpctl gdb /home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e
...
       Message: Process 110573 (reflect-ebdf27e) of user 42 dumped core.

                Module /home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e without build-id.
                Module /home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e
                Module /home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e without build-id.
                Stack trace of thread 110585:
                #0  0x00005583bf74b04d n/a (/home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e + 0x50304d)
                #1  0x00005583bf74ac20 n/a (/home/workspace/forks/deflect/target/debug/deps/reflect-ebdf27e1e296980e + 0x502c20)
                ELF object binary architecture: AMD x86-64

Sys info:

Linux loydbook 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux

With --release it produces errors (as expected) and with debug = true again SIGSEGV.

Any ideas?

loyd avatar Feb 26 '23 04:02 loyd