Opened 8 years ago

Closed 8 years ago

#53661 closed defect (duplicate)

clang-4.0 @4.0-r292772_1: sanitizers try to load dylib from wrong paths (same problem for 3.9)

Reported by: hmijail (Horacio Mijail Antón Quiles) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: larryv (Lawrence Velázquez)
Port: clang-4.0 clang-3.9

Description

$ clang-mp-4.0 -fsanitize=address is_defined.c  
$ ./a.out
dyld: Library not loaded: /opt/local/libexec/llvm-4.0/lib/libclang_rt.asan_osx_dynamic.dylib
  Referenced from: /Users/mija/programming/./a.out
  Reason: image not found
Abort trap: 6

$ clang-mp-3.9 -fsanitize=address is_defined.c
$ ./a.out
dyld: Library not loaded: /opt/local/libexec/llvm-3.9/lib/libclang_rt.asan_osx_dynamic.dylib
  Referenced from: /Users/mija/programming/./a.out
  Reason: image not found
Abort trap: 6

$ locate libclang_rt.asan_osx_dynamic.dylib
(...)
/opt/local/libexec/llvm-3.9/lib/clang/3.9.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
/opt/local/libexec/llvm-4.0/lib/clang/4.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib

Change History (3)

comment:1 Changed 8 years ago by hmijail (Horacio Mijail Antón Quiles)

Version of clang-3.9 @3.9.1_3

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Cc: jeremyhu removed
Owner: set to jeremyhu
Port: clang-4.0 , clang-3.9clang-4.0 clang-3.9
Status: newassigned

comment:3 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.