Bug 1824307

Summary: AM_INIT_AUTOMAKE() produces a configure script that segfaults on 32-bit OSes
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: automakeAssignee: Patrik Novotný <panovotn>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, codonell, fweimer, jakub, jjanco, karsten, kasal, law, ncoghlan, panovotn, praiskup, shlomif
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-15 19:24:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Minimal reproducer none

Description Stephen Gallagher 2020-04-15 19:13:48 UTC
Created attachment 1679156 [details]
Minimal reproducer

Description of problem:
It was reported that the_silver_searcher was failing to build on Rawhide (on i686 and armv7hl). I took a look and found a minimal case to cause the segfault (really just including AM_INIT_AUTOMAKE() into a configure.ac). See the attached tarball.


Version-Release number of selected component (if applicable):
glibc-2.31.9000-8.fc33.i686
gcc-10.0.1-0.11.fc33.i686
binutils-2.34-2.fc33.i686
automake-1.16.1-14.fc32.noarch
autoconf-2.69-33.fc33.noarch


How reproducible:
Every time

Steps to Reproduce:
1. Load up a 32-bit Fedora Rawhide/33 VM or container (I used `mock -r fedora-33-i686 shell`)
2. Extract the attached minimal.tar.gz into an empty directory
3. Run `autoreconf -if && ./configure`

Actual results:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
Segmentation fault (core dumped)


Expected results:
The configure script should pass on 32-bit systems just as it does on 64-bit systems.

Additional info:
I suspect this issue is actually in gcc or binutils, but since it appears related to AM_INIT_AUTOMAKE(), I'm filing it for automake initially.

Comment 1 Stephen Gallagher 2020-04-15 19:18:07 UTC
I forgot to note: this works fine on 32-bit Fedora 32 builds, so this is something coming from Rawhide.

Comment 2 Adam Williamson 2020-04-15 19:21:34 UTC
This is probably the same thing being discussed on devel@ in the thread "buildroot problems on rawhide i386, armv7hl ??", right? If so, Florian already asked for the build to be untagged, so this should be fixed:

https://pagure.io/releng/issue/9405

Comment 3 Stephen Gallagher 2020-04-15 19:24:53 UTC
It looks like this is probably a dupe of 1822468

*** This bug has been marked as a duplicate of bug 1822468 ***