Bug 277654

Summary: lang/ldc: crashes when ports tree has been built by clang 18
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 276104    

Description Dimitry Andric freebsd_committer freebsd_triage 2024-03-12 18:41:02 UTC
During the exp-run for clang 18 (see bug 276104), one of the failing ports was lang/ldc. This seems to crash during a bootstrap phase, where the prebuilt ldc2 binary that links against the devel/llvm15 port gets some sort of memory corruption:

https://pkg-status.freebsd.org/gohan04/data/mainamd64PR276104-default-foo/2024-02-02_20h56m00s/logs/errors/ldc-1.35.0.log

I reported this at https://github.com/ldc-developers/ldc/issues/4593 since I have very little clue about how ldc works, but from the valgrind traces I can see that it is involved in corruption of a llvm SmallSet object.

I am making a bug here so it can be tracked in the FreeBSD bugzilla instance, and I can link it to the exp-run bug.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-03-20 22:22:54 UTC
This was caused by a subtle ABI change in libc++ which I caused myself... Fixed with https://github.com/DimitryAndric/freebsd-src/commit/4c0e8f6304c493bbf5f1a0dc2677400faaa884dc.