cnpryer / huak

My experimental Python package manager.
https://cnpryer.github.io/huak/
MIT License
615 stars 37 forks source link

(v0.0.8-alpha2) Stack overflow in ops::fix::tests::fix #895

Open riking opened 6 months ago

riking commented 6 months ago

https://asan.saethlin.dev/ub?crate=huak&version=0.0.8-alpha.2

Please check if this crash report is still relevant! I saw no mentions of a stack overflow in your issue tracker.

test ops::build::tests::build ... The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /tmp/.tmpwaEKyv/mock-project/.venv/bin/python3

FAILED
test ops::clean::tests::clean ... ok
test ops::fix::tests::fix ... AddressSanitizer:DEADLYSIGNAL
=================================================================
==14788==ERROR: AddressSanitizer: stack-overflow on address 0x7f96992f6cd8 (pc 0x55bdf3324ff5 bp 0x7f96992f7130 sp 0x7f96992f6ce0 T14)
    #0 0x55bdf3324ff5 in std::sys::unix::fs::try_statx::h8deb56d473e0c100 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:156
...
    #6 0x55bdf0700192 in std::path::Path::exists::h116d327dbbf4ee61 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/path.rs:2862:9
    #7 0x55bdf07dd6a5 in huak::env::venv::Venv::create::h9cacbce05d3c715a /build/src/huak/env/venv.rs:160:12
    #8 0x55bdf07df536 in huak::env::venv::Venv::exec_module::h0e34c8b6cba8647c /build/src/huak/env/venv.rs:246:9
    #9 0x55bdf07e2b46 in huak::env::venv::Venv::install_package::hfd0da46029abf19b /build/src/huak/env/venv.rs:297:9
    #10 0x55bdf07dfb90 in huak::env::venv::Venv::exec_module::h0e34c8b6cba8647c /build/src/huak/env/venv.rs:258:13
...
    #245 0x55bdf07e2b46 in huak::env::venv::Venv::install_package::hfd0da46029abf19b /build/src/huak/env/venv.rs:297:9
    #246 0x55bdf07dfb90 in huak::env::venv::Venv::exec_module::h0e34c8b6cba8647c /build/src/huak/env/venv.rs:258:13
SUMMARY: AddressSanitizer: stack-overflow /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:156 in std::sys::unix::fs::try_statx::h8deb56d473e0c100
==14788==ABORTING
riking commented 6 months ago

Also, consider releasing a new alpha3 version of your crate to benefit from crater-alikes checking the current version of your code :slightly_smiling_face:

cnpryer commented 6 months ago

Hi! Thanks for the report!

If I can find some time I plan to update a bit of the project and then set up a new release pipeline.

Sorry for the inconvenience! Note this is my personal experiment and you should consider trying out projects with more support like rye.

I do appreciate you trying out Huak! It's a sandbox I can use to experiment with ideas. Feedback is welcome :)