model-writtenrun 5463 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut reported PL/Tcl crashes on macOS because hash_search resolved to the system library instead of PostgreSQL, and found that removing explicit -lc linkage fixed the problem #1.
- Thomas Munro and Tom Lane could not reproduce the crash on their installations; Thomas investigated the conflicting system symbol, while Tom suggested moving -bundle_loader ahead of library options #2 #3.
- Peter isolated the failure to his GCC 11 configuration and reported that reordering -bundle_loader and -lc did not help; Thomas still could not reproduce it with MacPorts GCC 11 #4 #6 #7 #5.
- Tom supported removing -lc and testing the result through the buildfarm, reasoning that the historical workaround might no longer be necessary; he successfully tested its removal with his oldest Tcl installation #8.
- Peter established that his GCC 10 build worked while GCC 11 and 12 failed, showed differences in their underlying linker invocations, and concluded that explicit -lc linkage was too fragile to retain #9.
- Peter submitted the one-line removal for master initially, with the intention of observing whether problems arose #10.
- Peter committed the attached code unchanged as 41a2b56ae8, adding the diagnosis and historical rationale to the commit message, and confirmed completion in #11; no backport or further patch was recorded.