You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iconvstrImpl() reads errno after Riconv_close(), which can change it #19755
When Riconv() fails with an error that iconvstrImpl() in src/cpp/r/RUtil.cpp doesn't handle (anything other than a substitutable EILSEQ/EINVAL or a resumable E2BIG), it calls Riconv_close(handle) and then builds the error from R_ERRNO. Closing the handle can change errno, so the reported error may describe the close rather than the failed conversion.
Fix
Save R_ERRNO right after Riconv() fails, before calling Riconv_close(), and build the error from the saved value.
Activity
read errno before cleanup; retry address_in_use by condition
free failed listeners on retry; report files in use; add news
pick error categories from the code's type (#19753)