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

Unit test fails with a SEGV fault #22

Open
jiangliu opened this issue Apr 22, 2022 · 2 comments
Open

Unit test fails with a SEGV fault #22

jiangliu opened this issue Apr 22, 2022 · 2 comments

Comments

@jiangliu
Copy link
Member

root@d277f7789829:/image# cargo test
Compiling image-rs v0.1.0 (/image)
Finished test [unoptimized + debuginfo] target(s) in 2m 59s
Running unittests (target/debug/deps/image_rs-873fc8095aed68ff)

running 9 tests
test config::tests::test_image_config ... ok
test decoder::tests::test_uncompressed_decode ... ok
test config::tests::test_image_config_from_file ... ok
test decoder::tests::test_zstd_decode ... ok
test decoder::tests::test_gzip_decode ... ok
test bundle::tests::test_bundle_create_config ... ok
test unpack::tests::test_unpack ... ok
test image::tests::test_pull_image ... FAILED
error: test failed, to rerun pass '--lib'

Caused by:
process didn't exit successfully: /image/target/debug/deps/image_rs-873fc8095aed68ff (signal: 11, SIGSEGV: invalid memory reference)

@jiangliu
Copy link
Member Author

After comment out all codes in image::tests::test_pull_image(), it still encounters segment fault:
root@d277f7789829:/image# cargo test
Compiling image-rs v0.1.0 (/image)
warning: unused import: super::*
--> src/image.rs:199:9
|
199 | use super::*;
| ^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: image-rs (lib test) generated 1 warning
Finished test [unoptimized + debuginfo] target(s) in 3m 01s
Running unittests (target/debug/deps/image_rs-873fc8095aed68ff)

running 9 tests
test config::tests::test_image_config ... ok
test decoder::tests::test_uncompressed_decode ... ok
test config::tests::test_image_config_from_file ... ok
test image::tests::test_pull_image ... ok
test decoder::tests::test_zstd_decode ... ok
test decoder::tests::test_gzip_decode ... ok
test unpack::tests::test_unpack ... ok
test bundle::tests::test_bundle_create_config ... ok
error: test failed, to rerun pass '--lib'

Caused by:
process didn't exit successfully: /image/target/debug/deps/image_rs-873fc8095aed68ff (signal: 11, SIGSEGV: invalid memory reference)

@ariel-adam
Copy link
Member

@jiangliu is this issue still relevant or can be closed?
If it's still relevant to what release do you think we should map it to (mid-November, end-December, mid-February etc...)?

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

2 participants