Skip to content

Android segfaults for API level <18 #9700

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

Closed
sanxiyn opened this issue Oct 3, 2013 · 4 comments
Closed

Android segfaults for API level <18 #9700

sanxiyn opened this issue Oct 3, 2013 · 4 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-android Operating system: Android

Comments

@sanxiyn
Copy link
Member

sanxiyn commented Oct 3, 2013

See #9120 for details. Probably related to how the logging system is initialized from the crate map using a weak symbol.

@alexcrichton
Copy link
Member

I think that #9593 will start to hide the problem because it'll start handling when the symbol is NULL, but this is still a problem in that the reason it's NULL to begin with needs to be investigated.

@sanxiyn
Copy link
Member Author

sanxiyn commented Oct 5, 2013

I have posted a question to android-ndk regarding Android and weak symbol.

@flaper87
Copy link
Contributor

Triage bump. @alexcrichton @sanxiyn Do you know if this is still happening? Based on the gate, it doesn't look like but I don't have a good way to prove it.

@sanxiyn re weak symbols, some work started here #12556 by adding support for linkage flavors

@alexcrichton
Copy link
Member

This does indeed appear to be working now, our android bot is definitely running tests with logging and crate maps. This has likely been fixed in the meantime.

Closing, but if this still reproduces, feel free to reopen!

flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 21, 2022
…ox, r=flip1995

Update `from_raw_with_void_ptr` to support types other than `Box`

This PR updates the `from_raw_with_void_ptr` lint, which covered
`Box::from_raw`, to also cover the `from_raw` static method of the
`Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types.

It also improves the description and error messages of this lint.

---

changelog: [`from_raw_with_void_ptr`]: Now works with the `Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-android Operating system: Android
Projects
None yet
Development

No branches or pull requests

3 participants