The Samba-Bugzilla – Attachment 17633 Details for
Bug 15228
Crashes on wrapper exit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix (for socket_wrapper)
patch-socket_wrapper.patch (text/plain), 790 bytes, created by
Samuel Thibault
on 2022-11-08 00:49:26 UTC
(
hide
)
Description:
proposed fix (for socket_wrapper)
Filename:
MIME Type:
Creator:
Samuel Thibault
Created:
2022-11-08 00:49:26 UTC
Size:
790 bytes
patch
obsolete
>swrap: Avoid dclose(RTLD_NEXT) > >In case the libc was not found and RTLD_NEXT is used instead, we should not >dlclose it, otherwise mayhem happens. > >Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > >diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c >index ec8321f..cc9e17d 100644 >--- a/src/socket_wrapper.c >+++ b/src/socket_wrapper.c >@@ -7831,10 +7831,18 @@ void swrap_destructor(void) > > SAFE_FREE(sockets); > >- if (swrap.libc.handle != NULL) { >+ if (swrap.libc.handle != NULL >+#ifdef RTLD_NEXT >+ && swrap.libc.handle != RTLD_NEXT >+#endif >+ ) { > dlclose(swrap.libc.handle); > } >- if (swrap.libc.socket_handle) { >+ if (swrap.libc.socket_handle >+#ifdef RTLD_NEXT >+ && swrap.libc.socket_handle != RTLD_NEXT >+#endif >+ ) { > dlclose(swrap.libc.socket_handle); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15228
:
17632
| 17633 |
17634
|
17635
|
17636