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

Box::pin does lead to crash if "-Cprefer-dynamic" is set using nightly-2023-05-26 or newer #98

Open
dragonnn opened this issue Aug 2, 2023 · 2 comments

Comments

@dragonnn
Copy link

dragonnn commented Aug 2, 2023

I created a sample repo with does reproduce the problem under Linux
https://github.com/dragonnn/mimalloc-rust-box-pin-crash
If it uses nightly-2023-05-26 with is the first version that started crashing my bigger project where I use -Cprefer-dynamic to speed up linking time during development.
If the project uses nightly-2023-05-25 it works fine or if -Cprefer-dynamic is removed it also works fine.
I know -Cprefer-dynamic isn't something often used with rust, so I suspect it isn't high priority but still I decide to report it (it might be also a rust nightly bug, but I don't have the knowledge to find that out). Thanks for any feedback!
I am not sure but that might be somehow also connected to #96 ? But in this case it crashes with default-features = false too.
It crashes with:

realloc(): invalid pointer
fish: Job 1, 'cargo run' terminated by signal SIGABRT (Aborted)
@nathaniel-daniel
Copy link
Contributor

This is likely rust-lang/rust#114518, so I don't think anything can be done here about that.

@dragonnn
Copy link
Author

This is likely rust-lang/rust#114518, so I don't think anything can be done here about that.

Oh yeah, that looks like it. Thanks for the link! I follow that up, I think keeping it open as long the upstream issue isn't solved should be fine.

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