)]}'
{
  "commit": "b5c0fcdadeed8803addf8d2aec6142fb9d8a5660",
  "tree": "76bdbe1be0096d8722f5b1f5ed003272b8dd8d00",
  "parents": [
    "6ff15f4b7176df9f704e34cab8e1c88438f34e1a"
  ],
  "author": {
    "name": "Andrew Haberlandt",
    "email": "ndrewh@users.noreply.github.com",
    "time": "Thu Nov 20 10:40:13 2025 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 20 10:40:13 2025 -0800"
  },
  "message": "[sanitizer_common] posix_spawn test should forward DYLD_LIBRARY_PATH (#168795)\n\nThis test explicitly sets the environment for a spawned process. Without\nDYLD_LIBRARY_PATH, the spawned process may use a ASAN runtime other than\nthe one that was used by the parent process That other runtime library\nmay not work at all, or may not be in the default search path. Either\ncase can cause the spawned process to die before it makes it to main,\nthus failing the test. The compiler-rt lit config sets the library path\nvariable\n[here](https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/lit.common.cfg.py#L84)\n(i.e. to ensure that just-built runtimes are used for tests, in the case\nof a standalone compiler-rt build), and that is currently used by the\nparent process but not the spawned ones.\n\nMy change only forwards the variable for Darwin (DYLD_LIBRARY_PATH), but\nwe **_ought_** to also forward the variable for other platforms.\nHowever, it\u0027s not clear that there\u0027s any good way to plumb this into the\ntest, since some platforms actually have multiple library path variables\nwhich would need to be forwarded (see: SunOS\n[here](https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/lit.common.cfg.py#L102)).\nI considered adding a substitution variable for the library path\nvariable, but that doesn\u0027t really work if there\u0027s multiple such\nvariables.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ea58b92af6097d0e3d3a72e27d2a51d775bd6bb9",
      "old_mode": 33188,
      "old_path": "compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c",
      "new_id": "1a66a6166dd1d5987785eb936359b0662491da88",
      "new_mode": 33188,
      "new_path": "compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c"
    }
  ]
}
