Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30723

DYLD_INSERT_LIBRARIES=asan gets stripped on macOS launch ?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.0
    • None
    • macOS 14.2.1 (AArch64)
      Qt Creator 13.0 as provided by Homebrew
    • macOS

    Description

      I am having the most mysterious bug: I'm trying to insert the path to ASAN by editing the run environment of my executable, by setting it in the view :

      DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib 

      Yet on launch (or even when I click the "Open a terminal" button in the run view to open a terminal with the environment), the env var is missing.

      Now, for the perplexing part of it :

      • This works:
      DYLD_INSERT_LIBRARIES=(some random dylib in my $HOME)
      • This works:
      FOO=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib 

      but the combination of the two gets removed ?

       

       

      This seems to be deep : if I export said variable from a terminal, and launch QtC from this terminal (through "/Applications/Qt Creator.app/Contents/MacOS/Qt Creator") I don't see th env var show up in the default environment of the apps (build or run)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes