-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
whois: fdsan: attempted to close file descriptor #5980
Comments
Same as #5790, related to https://developer.android.com/about/versions/11/behavior-changes-all. |
[...]
fdsan: attempted to close file descriptor 3, expected to be unowned, actually owned by FILE* 0xb6c7b00c
Program received signal SIGABRT, Aborted.
0xb6b959e8 in fdsan_error(char const*, ...) () from /apex/com.android.runtime/lib/bionic/libc.so
(gdb) bt
#0 0xb6b959e8 in fdsan_error(char const*, ...) () from /apex/com.android.runtime/lib/bionic/libc.so
#1 0xb6b956fe in android_fdsan_close_with_tag () from /apex/com.android.runtime/lib/bionic/libc.so
#2 0xb6b95d6e in close () from /apex/com.android.runtime/lib/bionic/libc.so
#3 0x7f55866a in closeconn (fd=3) at /home/builder/.termux-build/inetutils/src/whois/whois.c:601
#4 0x7f55816a in main (argc=-1, argv=0xbefff50c) at /home/builder/.termux-build/inetutils/src/whois/whois.c:294
How the file descriptor is handled looks reasonable in the main function. Maybe the sanitizer does not like that the fd is obtained/replaced multiple times in a for loop in openconn. |
Fixed in |
Problem description
Steps to reproduce
Expected behavior
Additional information
The text was updated successfully, but these errors were encountered: