Red Hat Bugzilla – Bug 1557346
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
Last modified: 2018-10-30 03:51:11 EDT
Description of problem: When compiling the latest corosync on RHEL7.4 it crashes at link time with collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped Version-Release number of selected component (if applicable): binutils-2.27-27.base.el7.x86_64 libgcc-4.8.5-28.el7.x86_64 gcc-c++-4.8.5-28.el7.x86_64 gccxml-0.9.0-0.27.20150423.git3afa8ba.el7.x86_64 gcc-4.8.5-28.el7.x86_64 gcc-gfortran-4.8.5-28.el7.x86_64 glibc-devel-2.17-222.el7.x86_64 glibc-common-2.17-222.el7.x86_64 glibc-2.17-222.el7.x86_64 glibc-headers-2.17-222.el7.x86_64 How reproducible: Every time Steps to Reproduce: 1. Checkout & build libqb $ git clone https://github.com/ClusterLabs/libqb.git $ sh autogen.sh && ./configure && make && make install 2. Checkout & build kronosnet $ git clone https://github.com/kronosnet/kronosnet.git $ sh autogen.sh && ./configure --disable-compress-all && make && make install 3. Checkout and build corosync $ git clone https://github.com/corosync/corosync $ sh autogen.sh && ./configure && make && make install Actual results: Compilation terminates with ... Making all in exec make[2]: Entering directory `/home/christine/dev/corosync/exec' CC corosync-main.o CCLD corosync collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped /usr/bin/ld: warning: /usr/lib64/libqb.so contains output sections; did you forget -T? make[2]: *** [corosync] Error 1 make[2]: Leaving directory `/home/christine/dev/corosync/exec' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/christine/dev/corosync' make: *** [all] Error 2 Expected results: Compilation should complete successfully Additional info: I'm pretty certain this is down to the symbol fiddling going in in libqb, but I don't think it should segfault the linker :)
I should probably point out that binutils-2.27-22.base.el7 also has the problem but binutils-2.25.1-32.base.el7_4.2.x86_64 works.
Created attachment 1409832 [details] Proposed patch
Created attachment 1409833 [details] Patch to spec file
Hi Christine, Thanks for reporting this bug. I have uploaded a patch that fixes the problem, and an update to the binutils.spec file so that the new patch will be included in a build. But unfortunately the RHEL 7.5 binutils - which are the ones affected by this bug - are now being prepared for release. So it is too late to get this patch in. It could be released as a z-stream update once the release is officially out, but I am not sure how critical this problem is for you. If you are able to use the RHEL-7.4 linker to build corosync, then is a fix for RHEL-7.5 important to you ? Cheers Nick
Hi Nick, Thanks for the quick response. We don't need this in RHEL7.5 fortunately because the section fiddling that's going on in libqb isn't included in that release - it does affect upstream and potentially RHEL7.6 though so a Zstream release would be very helpful.
Fixed in: binutils-2.27-28.base.el7
Verified with build binutils-2.27-34.base.el7 using the provided steps.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:3032