mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] __libc_exit_fini forgets to do pthread_mutex_unlock
@ 2025-07-02  2:28 rebecca.zhang.cn
  2025-07-02  4:30 ` Markus Wichmann
  0 siblings, 1 reply; 7+ messages in thread
From: rebecca.zhang.cn @ 2025-07-02  2:28 UTC (permalink / raw)
  To: musl; +Cc: rebecca.zhang.cn, wenbin.deng.cn

From: Rebecca Zhang <rebecca.zhang.cn@windriver.com>

This commit fixes the issue that __libc_exit_fini only do
pthread_mutex_lock, but forget to do pthread_mutex_unlock.
---
 ldso/dynlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ldso/dynlink.c b/ldso/dynlink.c
index ceca3c9..7885675 100644
--- a/ldso/dynlink.c
+++ b/ldso/dynlink.c
@@ -1492,6 +1492,7 @@ void __libc_exit_fini()
 			fpaddr(p, dyn[DT_FINI])();
 #endif
 	}
+	pthread_mutex_unlock(&init_fini_lock);
 }
 
 void __ldso_atfork(int who)
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-03  1:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02  2:28 [PATCH] __libc_exit_fini forgets to do pthread_mutex_unlock rebecca.zhang.cn
2025-07-02  4:30 ` Markus Wichmann
2025-07-02  6:06   ` [musl] " Zhang, Huilin (Rebecca) (CN)
2025-07-02  6:20     ` Deng, Wenbin (CN)
2025-07-02 14:18     ` Rich Felker
2025-07-02 14:33   ` Rich Felker
2025-07-03  1:44     ` Zhang, Huilin (Rebecca) (CN)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).