Created attachment 227439 [details] audio/calf-lv2 dumps core during poudriere build During a poudriere build include audio/pulseeffects the ackage audio/calf-lvl2 is included. The build of this package results in a core dump when a program called calfmakerdf is invoked. We are talking about cals-lv2-0.90.3_3 here. The poudriere build log file is included Here are some excerpts from /var/log/messages: Aug 26 07:37:08 arwen syslogd: kernel boot file is /boot/kernel/kernel Aug 26 07:37:08 arwen kernel: ---<<BOOT>>--- Aug 26 07:37:08 arwen kernel: Copyright (c) 1992-2020 The FreeBSD Project. Aug 26 07:37:08 arwen kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Aug 26 07:37:08 arwen kernel: The Regents of the University of California. All rights reserved. Aug 26 07:37:08 arwen kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Aug 26 07:37:08 arwen kernel: FreeBSD 12.2-RELEASE-p7 GENERIC amd64 Aug 26 07:37:08 arwen kernel: FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Aug 26 07:37:08 arwen kernel: VT(vga): resolution 640x480 Aug 26 07:37:08 arwen kernel: CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz (2660.05-MHz K8-class CPU) Aug 26 07:37:08 arwen kernel: Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2 Aug 26 07:37:08 arwen kernel: Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Aug 26 07:37:08 arwen kernel: Features2=0x29ee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AESNI> Aug 26 07:37:08 arwen kernel: AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> Aug 26 07:37:08 arwen kernel: AMD Features2=0x1<LAHF> Aug 26 07:37:08 arwen kernel: VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID Aug 26 07:37:08 arwen kernel: TSC: P-state invariant, performance statistics Aug 26 07:37:08 arwen kernel: real memory = 94491377664 (90114 MB) Aug 26 07:37:08 arwen kernel: avail memory = 91946979328 (87687 MB) Aug 26 07:37:08 arwen kernel: Event timer "LAPIC" quality 600 Aug 26 07:37:08 arwen kernel: ACPI APIC Table: <HPQOEM TYLSBURG> Aug 26 07:37:08 arwen kernel: FreeBSD/SMP: Multiprocessor System Detected: 24 CPUs Aug 26 07:37:08 arwen kernel: FreeBSD/SMP: 2 package(s) x 6 core(s) x 2 hardware threads Aug 26 07:37:08 arwen kernel: random: unblocking device. ********snip************ Aug 26 07:59:51 arwen kernel: pid 87587 (calfmakerdf), jid 5, uid 0: exited on signal 11 (core dumped) Aug 26 08:07:45 *********snip*********
Created attachment 230064 [details] Preliminary build fix using clang some commits after release I had this patch in my local ports repo since summer, always wondered why this segfault only happens to me... What the patch does: * Fetch from github, some commits after the release 0.90.3 * With that, clang build is fixed, ditch GCC * Some build patching due to library change * Builds and the lv2 plugins work for me Unfortunately, I don't have the time now to polish this patch, maybe next week. Interesting, I have a very similar CPU configuration - 2 x Xeon X5675.
This was never assigned to me due to some Bugzilla issues.
Committed with changes. Thank you for the patch!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=866b394fc61c77414454f8e70e896b27fec08539 commit 866b394fc61c77414454f8e70e896b27fec08539 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-12-12 21:37:08 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-12-12 21:52:39 +0000 audio/calf-lv2: Unbreak by updating to the intermediate commit fixing clang compilation: 0.90.3 -> 0.90.3.20210427 gcc-compiled libcalf.so was crashing due to mix of gcc- and base-provided libc++.so and libstdc++.so PR: 258051 Original patch submitted by: Florian Walpen <dev@submerge.ch> audio/calf-lv2/Makefile | 25 ++++++----- audio/calf-lv2/distinfo | 6 +-- audio/calf-lv2/files/patch-configure.ac | 13 +----- audio/calf-lv2/files/patch-src_Makefile.am | 70 ++++++------------------------ audio/calf-lv2/pkg-plist | 1 + 5 files changed, 33 insertions(+), 82 deletions(-)
A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d885cb58c8cd40dede134a3bc729606cf132cde2 commit d885cb58c8cd40dede134a3bc729606cf132cde2 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-12-12 21:37:08 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-12-12 22:06:09 +0000 audio/calf-lv2: Unbreak by updating to the intermediate commit fixing clang compilation: 0.90.3 -> 0.90.3.20210427 gcc-compiled libcalf.so was crashing due to mix of gcc- and base-provided libc++.so and libstdc++.so PR: 258051 Original patch submitted by: Florian Walpen <dev@submerge.ch> (cherry picked from commit 866b394fc61c77414454f8e70e896b27fec08539) audio/calf-lv2/Makefile | 26 ++++++----- audio/calf-lv2/distinfo | 6 +-- audio/calf-lv2/files/patch-configure.ac | 13 +----- audio/calf-lv2/files/patch-src_Makefile.am | 70 ++++++------------------------ audio/calf-lv2/pkg-plist | 1 + 5 files changed, 33 insertions(+), 83 deletions(-)