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

cargo test fails with SIGSEGV #5

Open
loyd opened this issue Feb 26, 2023 · 0 comments
Open

cargo test fails with SIGSEGV #5

loyd opened this issue Feb 26, 2023 · 0 comments

Comments

@loyd
Copy link

loyd commented Feb 26, 2023

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 loyd mentioned this issue Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant