-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
emacs: fdsan: attempted to close file descriptor 2, expected to be unowned, actually owned by FILE* 0xb6c8800c #6592
Comments
For emacs I get this minimum program for reproducing the crash:
Could someone on stock android 11 compile ( (I have only tested on lineageos) |
The issue here is probably that stderr is not closed through the file descriptor obtained from fdopen. Changing to
works. I have proposed a patch on the emacs mailing list. |
@Grimler91 I tested your first suggestion on a stock pixel 3a and didn't get the fdsan error. Apologies, I realized after the fact that it's running android 10. |
@daraul thanks, on android 10 the default error level is "warn-once", so |
Fixed in |
Problem description
When exiting emacs on android 11 a fdsan error is thrown.
Steps to reproduce
Run
emacs
and then exit.Expected behavior
Emacs should close without triggering a file descriptor sanitizer error.
Additional information
gdb backtrace from debug build shows:
And this is the termux-info of the test device:
(I am also seeing a
FORTIFY: %n not allowed on Android
error that I have not been able to find the origin of yet)The text was updated successfully, but these errors were encountered: