[compiler-rt] 6959332 - [DIAG][msan] fix libc check string for dladdr1 call (#69359)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 07:16:25 PDT 2023


Author: Lei Huang
Date: 2023-10-19T10:16:20-04:00
New Revision: 6959332804579b0e9273c89ecb2d2cdbaa73d04d

URL: https://github.com/llvm/llvm-project/commit/6959332804579b0e9273c89ecb2d2cdbaa73d04d
DIFF: https://github.com/llvm/llvm-project/commit/6959332804579b0e9273c89ecb2d2cdbaa73d04d.diff

LOG: [DIAG][msan] fix libc check string for dladdr1 call (#69359)

The check for dladdr1 for shared libc is too strict. Depending on how the system is setup we sometimes pick up the none generic lib name with the version string in it.

Update check to for libc to account for version string.

Added: 
    

Modified: 
    compiler-rt/test/msan/dladdr1_test.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/msan/dladdr1_test.c b/compiler-rt/test/msan/dladdr1_test.c
index dc5f6fdf9f91728..534f5f9cc193a2f 100644
--- a/compiler-rt/test/msan/dladdr1_test.c
+++ b/compiler-rt/test/msan/dladdr1_test.c
@@ -60,7 +60,7 @@ int main(int argc, char *argv[]) {
       fflush(stdout);
       map_ptr = map_ptr->l_next;
     }
-    // CHECK: libc.so
+    // CHECK: libc{{[\-]*.*}}.so
     // CHECK: dladdr1_test
   }
 


        


More information about the llvm-commits mailing list