FreeBSD Bugzilla – Attachment 183939 Details for
Bug 220381
net/torsocks: sometimes crashes on 12.0-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Initialize libthr if cleanup handler is called.
1.patch (text/plain), 565 bytes, created by
Konstantin Belousov
on 2017-06-30 12:52:31 UTC
(
hide
)
Description:
Initialize libthr if cleanup handler is called.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2017-06-30 12:52:31 UTC
Size:
565 bytes
patch
obsolete
>diff --git a/lib/libthr/thread/thr_clean.c b/lib/libthr/thread/thr_clean.c >index 62e3db20a4e..058b00bcfe1 100644 >--- a/lib/libthr/thread/thr_clean.c >+++ b/lib/libthr/thread/thr_clean.c >@@ -50,9 +50,12 @@ void > __pthread_cleanup_push_imp(void (*routine)(void *), void *arg, > struct _pthread_cleanup_info *info) > { >- struct pthread *curthread = _get_curthread(); >+ struct pthread *curthread; > struct pthread_cleanup *newbuf; > >+ _thr_check_init(); >+ curthread = _get_curthread(); >+ > newbuf = (void *)info; > newbuf->routine = routine; > newbuf->routine_arg = arg;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220381
:
183939
|
183949