Tcl Source Code

View Ticket
Login
Ticket UUID: ad393071c2a78b67642364a6d8602b2012245acb
Title: Use different LD_LIBRARY_PATH_VAR on macOS
Type: Bug Version:
Submitter: anonymous Created on: 2023-01-05 22:13:58
Subsystem: None Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-05-20 18:42:18
Resolution: Fixed Closed By: dgp
    Closed on: 2025-05-20 18:42:18
Description:
In the file unix/configure, DYLD_LIBRARY_PATH is the value of LD_LIBRARY_PATH_VAR on macOS.
DYLD_FALLBACK_LIBRARY_PATH is a less intrusive option and is the one we chose for the MacPorts projects (see the ticket below).

See https://github.com/tcltk/tk/blob/5e7bcea28317ca7b25fe5cad6c4878ae6d048148/unix/configure#L5493
See also https://trac.macports.org/ticket/57594
User Comments: dgp added on 2025-05-20 18:42:18:
This looks like a false alarm.

dgp added on 2025-05-13 17:38:24:
After several rounds of builds, installs and tests of several
stages of Tcl 8.6.* development, I can no longer reproduce
that failure with that checkin.

I am still seeing multiple segfaults in test suite runs at various
stages of Tcl 8.6 builds.  Continuing to examine....

dgp added on 2025-05-13 16:55:36:
Starting with this change, the Tcl build from the tcl/unix directory
on a Sonoma 14.7.5 system suffers multiple segfaults in the test suite.
The first one is in test apply-10.1.

$ fossil status
...
checkout:     19fb0fc0b03902b28cfb2dd38c61357dd5b728da 2023-01-06 16:56:14 UTC
...
$ cd tcl/unix
$ ./configure
...
$ make test TESTFLAGS="-file apply.test -match apply-10.1 -verbose bpste"
...
apply.test
---- apply-10.1 start
Test file error: child killed: segmentation violation
...

jan.nijtmans added on 2023-01-16 22:54:38:

Fixed [19fb0fc0b03902b2|here]

Thanks for the report!