NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/59751 CVS commit: src/libexec/ld.elf_so



The following reply was made to PR lib/59751; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59751 CVS commit: src/libexec/ld.elf_so
Date: Tue, 21 Jul 2026 04:05:06 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Jul 21 04:05:06 UTC 2026
 
 Modified Files:
 	src/libexec/ld.elf_so: search.c
 
 Log Message:
 ld.elf_so: Fix one more mistake in handling _rtld_load_object.
 
 This can return NULL (meaning object not found or something went wrong
 with the object) or OBJ_ERR (meaning the object has DF_1_NOOPEN set or
 the caller passed RTLD_NOLOAD to dlopen() and the object was not
 already loaded) or a valid object.
 
 I reviewed all paths out of _rtld_load_object to make sure they
 gracefully handle all three cases (NULL, OBJ_ERR, valid object), and
 this assertion was the only path that didn't.
 
 Fixes buggy assertion added for:
 
 PR lib/59751: dlclose is not MT-safe depending on the libraries
 unloaded
 
 May fix:
 
 PR bin/60472: ld.elf_so(1) changes cause a segmentation fault in
 dlopen(3)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 src/libexec/ld.elf_so/search.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 



Home | Main Index | Thread Index | Old Index