[OpenAFS-devel] GROUP_AT issues with openafs 1.6.20.2 on linux 4.11 (Fedora 26 Alpha)

Joe Gorse jhgorse@gmail.com
Wed, 26 Apr 2017 22:40:37 -0400


--001a11c0054c009263054e1ce39c
Content-Type: text/plain; charset=UTF-8

Per the gerrit for the GROUP_AT fix
<https://gerrit.openafs.org/#/c/12478/2/acinclude.m4>, we check for gid in
struct group_info then define GROUP_AT as

#ifdef STRUCT_GROUP_INFO_HAS_GID
/* compat macro for Linux 4.9 */
#define GROUP_AT(gi,x)  ((gi)->gid[x])
#endif

In the config.log line 8632 we check for it and get a segfault:
configure:11205: checking for gid in struct group_info
make -C /usr/src/kernels/4.11.0-0.rc7.git0.1.fc26.x86_64 M=/home/randy
/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir modules KBUILD_VERBOSE=1
make: Entering directory '/usr/src/kernels/4.11.0-0.rc7.git0.1.fc26.x86_64'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 "  ERROR: Kernel configuration is invalid."; \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf
are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to
fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/.tmp_versions
; rm -f /home/randy/rpmbuild/BUILD/openafs-1.6.20.2
/conftest.dir/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/home/randy/rpmbuild/BUILD/openafs-1.6.
20.2/conftest.dir
  gcc -Wp,-MD,/home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/.conftest.o.d
 -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I./arch/x86/
include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated
 -I./include -I./arch/x86/include/uapi -I./include/uapi
-I./include/generated/uapi
-include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security -std=gnu89
-fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=
1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3
-mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel
-funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
-DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1
-DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=
1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks
-Wno-frame-address -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO
-Wframe-larger-than=2048 -fstack-protector-strong
-Wno-unused-but-set-variable -Wno-unused-const-variable
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-fvar-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fconserve-stack -Werror=implicit-int -Werror=strict-prototypes
-Werror=date-time -Werror=incompatible-pointer-types  -DMODULE
 -DKBUILD_BASENAME='"conftest"'  -DKBUILD_MODNAME='"conftest"' -c -o
/home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/conftest.o
/home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/conftest.c
make: Leaving directory '/usr/src/kernels/4.11.0-0.rc7.git0.1.fc26.x86_64'
/home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/conftest.c: In
function 'conftest':
/home/randy/rpmbuild/BUILD/openafs-1.6.20.2/conftest.dir/conftest.c:48:8:
internal compiler *error: Segmentation fault*
 struct group_info _test; printk("%x\n", &_test.gid);
        ^~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc1n5yQ0.out file, please attach this
to your bugreport.
make[1]: *** [scripts/Makefile.build:301: /home/randy/rpmbuild/
BUILD/openafs-1.6.20.2/conftest.dir/conftest.o] Error 1
make: *** [Makefile:1496: _module_/home/randy/rpmbuild/BUILD/openafs-1.6.
20.2/conftest.dir] Error 2
configure: failed using Makefile:
| EXTRA_CFLAGS +=
|
| obj-m += conftest.o
configure: and program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenAFS"
| #define PACKAGE_TARNAME "openafs"
| #define PACKAGE_VERSION "1.6.20.2"
| #define PACKAGE_STRING "OpenAFS 1.6.20.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "openafs"
| #define VERSION "1.6.20.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define ENDIANESS_IN_SYS_PARAM_H 1
| #define PRINTF_TAKES_Z_LEN 1
| #define ENABLE_REDHAT_BUILDSYS 1
| #define HAVE_LINUX_INODE_OPERATIONS_RENAME_TAKES_FLAGS 1
| #define HAVE_LINUX_CRED_H 1
| #define HAVE_LINUX_COMPLETION_H 1
| #define HAVE_LINUX_EXPORTFS_H 1
| #define HAVE_LINUX_FREEZER_H 1
| #define HAVE_LINUX_KEY_TYPE_H 1
| #define HAVE_LINUX_SEMAPHORE_H 1
| #define HAVE_LINUX_SEQ_FILE_H 1
| #define HAVE_LINUX_SCHED_SIGNAL_H 1
| #define HAVE_LINUX_KUID_T 1
| #define STRUCT_ADDRESS_SPACE_OPERATIONS_HAS_WRITE_BEGIN 1
| #define STRUCT_BACKING_DEV_INFO_HAS_NAME 1
| #define STRUCT_CRED_HAS_SESSION_KEYRING 1
| #define STRUCT_DENTRY_HAS_D_U_D_ALIAS 1
| #define STRUCT_DENTRY_OPERATIONS_HAS_D_AUTOMOUNT 1
| /* end confdefs.h */
| #include <linux/module.h>
| #include <linux/cred.h>
|
| void conftest(void)
| {
| struct group_info _test; printk("%x\n", &_test.gid);
| }
|
| MODULE_LICENSE("http://www.openafs.org/dl/license10.html");
configure:11305: result: no

1) It may be worth submitting the bug report to RedHat per the directions
and the preprocessor tmp file above.

2) You can play around with the conftest output above and try to get the
test to not segfault.

3) If you wanted to just try something, I'd imagine rolling gcc back might
change the segfault outcome we are seeing here. You were using
gcc (GCC) 7.0.1 20170309 (Red Hat 7.0.1-0.12)
and they did this patch 4 months ago, so it was probably on the gcc 6.3
line.

Cheers,
Joe

--001a11c0054c009263054e1ce39c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Per the <a href=3D"https://gerrit.openafs.org/#/c/12478/2/=
acinclude.m4">gerrit for the GROUP_AT fix</a>, we check for gid in struct g=
roup_info then define GROUP_AT as<div><div></div><br><div><div class=3D"gma=
il-hljs gmail-cpp" style=3D"display:block;overflow-x:auto;padding:0.5em;col=
or:rgb(51,51,51);background:rgb(248,248,248);font-family:monospace"><div><s=
pan class=3D"gmail-hljs-meta" style=3D"color:rgb(31,113,153)">#<span class=
=3D"gmail-hljs-meta-keyword" style=3D"font-weight:bold">ifdef</span> STRUCT=
_GROUP_INFO_HAS_GID</span></div><div><span class=3D"gmail-hljs-meta" style=
=3D"color:rgb(31,113,153)"><span class=3D"gmail-hljs-comment" style=3D"colo=
r:rgb(136,136,136)">/* compat macro for Linux 4.9 */</span></span></div><di=
v><span class=3D"gmail-hljs-meta" style=3D"color:rgb(31,113,153)">#<span cl=
ass=3D"gmail-hljs-meta-keyword" style=3D"font-weight:bold">define</span> GR=
OUP_AT(gi,x) =C2=A0((gi)-&gt;gid[x])</span></div><div><span class=3D"gmail-=
hljs-meta" style=3D"color:rgb(31,113,153)">#<span class=3D"gmail-hljs-meta-=
keyword" style=3D"font-weight:bold">endif</span></span></div></div></div><b=
r><div></div></div><div>In the config.log line 8632 we check for it and get=
 a segfault:</div><div><div><div class=3D"gmail-hljs gmail-ruby" style=3D"d=
isplay:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);background-i=
mage:initial;background-position:initial;background-size:initial;background=
-repeat:initial;background-origin:initial;background-clip:initial;font-fami=
ly:monospace"><div style=3D"background-color:rgb(248,248,248)"><span class=
=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">configure:</span><spa=
n class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">11205</span>: ch=
ecking <span class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">for</s=
pan> gid <span class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">in</=
span> struct group_info</div><div style=3D"background-color:rgb(248,248,248=
)">make -C /usr/src/kernels/<span class=3D"gmail-hljs-number" style=3D"colo=
r:rgb(136,0,0)">4.11</span>.<span class=3D"gmail-hljs-number" style=3D"colo=
r:rgb(136,0,0)">0</span>-<span class=3D"gmail-hljs-number" style=3D"color:r=
gb(136,0,0)">0</span>.rc7.git<span class=3D"gmail-hljs-number" style=3D"col=
or:rgb(136,0,0)">0</span>.<span class=3D"gmail-hljs-number" style=3D"color:=
rgb(136,0,0)">1</span>.fc26.x86_64 M=3D<span class=3D"gmail-hljs-regexp" st=
yle=3D"color:rgb(188,96,96)">/home/randy</span><span class=3D"gmail-hljs-re=
gexp" style=3D"color:rgb(188,96,96)">/rpmbuild/</span>BUILD/openafs-<span c=
lass=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1.6</span>.<span cl=
ass=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">20.2</span>/conftest=
.dir modules KBUILD_VERBOSE=3D<span class=3D"gmail-hljs-number" style=3D"co=
lor:rgb(136,0,0)">1</span></div><div style=3D"background-color:rgb(248,248,=
248)"><span class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">make=
:</span> Entering directory <span class=3D"gmail-hljs-string" style=3D"colo=
r:rgb(136,0,0)">&#39;/usr/src/kernels/4.11.0-0.rc7.git0.1.fc26.x86_64&#39;<=
/span></div><div style=3D"background-color:rgb(248,248,248)">test -e <span =
class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">include</span>/gene=
rated/autoconf.h -a -e <span class=3D"gmail-hljs-keyword" style=3D"font-wei=
ght:bold">include</span>/config/auto.conf <span class=3D"gmail-hljs-params"=
>||</span> (<span class=3D"gmail-Apple-tab-span" style=3D"white-space:pre">=
		</span>\</div><div style=3D"background-color:rgb(248,248,248)">echo &gt;&=
amp;<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">2</span>=
;<span class=3D"gmail-Apple-tab-span" style=3D"white-space:pre">							</sp=
an>\</div><div style=3D"background-color:rgb(248,248,248)">echo &gt;&amp;<s=
pan class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">2</span> <span=
 class=3D"gmail-hljs-string" style=3D"color:rgb(136,0,0)">&quot; =C2=A0ERRO=
R: Kernel configuration is invalid.&quot;</span>;<span class=3D"gmail-Apple=
-tab-span" style=3D"white-space:pre">		</span>\</div><div style=3D"backgrou=
nd-color:rgb(248,248,248)">echo &gt;&amp;<span class=3D"gmail-hljs-number" =
style=3D"color:rgb(136,0,0)">2</span> <span class=3D"gmail-hljs-string" sty=
le=3D"color:rgb(136,0,0)">&quot; =C2=A0 =C2=A0 =C2=A0 =C2=A0 include/genera=
ted/autoconf.h or include/config/auto.conf are missing.&quot;</span>;\</div=
><div style=3D"background-color:rgb(248,248,248)">echo &gt;&amp;<span class=
=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">2</span> <span class=3D=
"gmail-hljs-string" style=3D"color:rgb(136,0,0)">&quot; =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 Run &#39;make oldconfig &amp;&amp; make prepare&#39; on kernel s=
rc to fix it.&quot;</span>;<span class=3D"gmail-Apple-tab-span" style=3D"wh=
ite-space:pre">	</span>\</div><div style=3D"background-color:rgb(248,248,24=
8)">echo &gt;&amp;<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,=
0,0)">2</span> ;<span class=3D"gmail-Apple-tab-span" style=3D"white-space:p=
re">							</span>\</div><div style=3D"background-color:rgb(248,248,248)">/=
bin/<span class=3D"gmail-hljs-literal" style=3D"color:rgb(120,169,96)">fals=
e</span>)</div><div style=3D"background-color:rgb(248,248,248)">mkdir -p /h=
ome/randy/rpmbuild/BUILD/openafs-<span class=3D"gmail-hljs-number" style=3D=
"color:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" style=3D"=
color:rgb(136,0,0)">20.2</span>/conftest.dir/.tmp_versions ; rm -f /home/ra=
ndy/rpmbuild/BUILD/openafs-<span class=3D"gmail-hljs-number" style=3D"color=
:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" style=3D"color:=
rgb(136,0,0)">20.2</span>/conftest.dir/.tmp_versions/*</div><div style=3D"b=
ackground-color:rgb(248,248,248)">make -f ./scripts/Makefile.build obj=3D<s=
pan class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">/home/randy<=
/span><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">/rpm=
build/</span>BUILD/openafs-<span class=3D"gmail-hljs-number" style=3D"color=
:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" style=3D"color:=
rgb(136,0,0)">20.2</span>/conftest.dir</div><div style=3D"background-color:=
rgb(248,248,248)">=C2=A0 gcc -Wp,-MD,<span class=3D"gmail-hljs-regexp" styl=
e=3D"color:rgb(188,96,96)">/home/randy</span><span class=3D"gmail-hljs-rege=
xp" style=3D"color:rgb(188,96,96)">/rpmbuild/</span>BUILD/openafs-<span cla=
ss=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1.6</span>.<span clas=
s=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">20.2</span>/conftest.d=
ir/.conftest.o.d =C2=A0-nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/=
<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">7</span>/<sp=
an class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">include</span> -=
I./arch/x86/<span class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">i=
nclude</span> -I./arch/x86/<span class=3D"gmail-hljs-keyword" style=3D"font=
-weight:bold">include</span>/generated/uapi -I./arch/x86/<span class=3D"gma=
il-hljs-keyword" style=3D"font-weight:bold">include</span>/generated =C2=A0=
-I./<span class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">include</=
span> -I./arch/x86/<span class=3D"gmail-hljs-keyword" style=3D"font-weight:=
bold">include</span>/uapi -I./<span class=3D"gmail-hljs-keyword" style=3D"f=
ont-weight:bold">include</span>/uapi -I./<span class=3D"gmail-hljs-keyword"=
 style=3D"font-weight:bold">include</span>/generated/uapi -<span class=3D"g=
mail-hljs-keyword" style=3D"font-weight:bold">include</span> ./<span class=
=3D"gmail-hljs-keyword" style=3D"font-weight:bold">include</span>/linux/kco=
nfig.h -D__KERNEL_<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,=
0,0)">_</span> -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict=
-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-sec=
urity -std=3Dgnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-<span class=3D=
"gmail-hljs-number" style=3D"color:rgb(136,0,0)">3</span>dnow -mno-avx -m64=
 -falign-jumps=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0=
,0)">1</span> -falign-loops=3D<span class=3D"gmail-hljs-number" style=3D"co=
lor:rgb(136,0,0)">1</span> -mno-<span class=3D"gmail-hljs-number" style=3D"=
color:rgb(136,0,0)">80387</span> -mno-fp-ret-<span class=3D"gmail-hljs-keyw=
ord" style=3D"font-weight:bold">in</span>-<span class=3D"gmail-hljs-number"=
 style=3D"color:rgb(136,0,0)">387</span> -mpreferred-stack-boundary=3D<span=
 class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">3</span> -mskip-r=
ax-setup -mtune=3Dgeneric -mno-red-zone -mcmodel=3Dkernel -funit-at-a-time =
-DCONFIG_AS_CFI=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,=
0,0)">1</span> -DCONFIG_AS_CFI_SIGNAL_FRAME=3D<span class=3D"gmail-hljs-num=
ber" style=3D"color:rgb(136,0,0)">1</span> -DCONFIG_AS_CFI_SECTIONS=3D<span=
 class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1</span> -DCONFIG=
_AS_FXSAVEQ=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)=
">1</span> -DCONFIG_AS_SSSE3=3D<span class=3D"gmail-hljs-number" style=3D"c=
olor:rgb(136,0,0)">1</span> -DCONFIG_AS_CRC32=3D<span class=3D"gmail-hljs-n=
umber" style=3D"color:rgb(136,0,0)">1</span> -DCONFIG_AS_AVX=3D<span class=
=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1</span> -DCONFIG_AS_AV=
X2=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1</span=
> -DCONFIG_AS_AVX512=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb=
(136,0,0)">1</span> -DCONFIG_AS_SHA1_NI=3D<span class=3D"gmail-hljs-number"=
 style=3D"color:rgb(136,0,0)">1</span> -DCONFIG_AS_SHA256_NI=3D<span class=
=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1</span> -pipe -Wno-sig=
n-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -=
Wno-frame-address -O2 --param=3Dallow-store-data-races=3D<span class=3D"gma=
il-hljs-number" style=3D"color:rgb(136,0,0)">0</span> -DCC_HAVE_ASM_GOTO -W=
frame-larger-than=3D<span class=3D"gmail-hljs-number" style=3D"color:rgb(13=
6,0,0)">2048</span> -fstack-protector-strong -Wno-unused-but-set-variable -=
Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-cal=
ls -fvar-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclarati=
on-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack =
-Werror=3Dimplicit-int -Werror=3Dstrict-prototypes -Werror=3Ddate-time -Wer=
ror=3Dincompatible-pointer-types =C2=A0-DMODULE =C2=A0-DKBUILD_BASENAME=3D<=
span class=3D"gmail-hljs-string" style=3D"color:rgb(136,0,0)">&#39;&quot;co=
nftest&quot;&#39;</span> =C2=A0-DKBUILD_MODNAME=3D<span class=3D"gmail-hljs=
-string" style=3D"color:rgb(136,0,0)">&#39;&quot;conftest&quot;&#39;</span>=
 -c -o /home/randy/rpmbuild/BUILD/openafs-<span class=3D"gmail-hljs-number"=
 style=3D"color:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" =
style=3D"color:rgb(136,0,0)">20.2</span>/conftest.dir/conftest.o /home/rand=
y/rpmbuild/BUILD/openafs-<span class=3D"gmail-hljs-number" style=3D"color:r=
gb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" style=3D"color:rg=
b(136,0,0)">20.2</span>/conftest.dir/conftest.<span class=3D"gmail-hljs-sym=
bol" style=3D"color:rgb(188,96,96)">c</span></div><div style=3D"background-=
color:rgb(248,248,248)"><span class=3D"gmail-hljs-symbol" style=3D"color:rg=
b(188,96,96)">make:</span> Leaving directory <span class=3D"gmail-hljs-stri=
ng" style=3D"color:rgb(136,0,0)">&#39;/usr/src/kernels/4.11.0-0.rc7.git0.1.=
fc26.x86_64&#39;</span></div><div style=3D"background-color:rgb(248,248,248=
)">/home/randy/rpmbuild/BUILD/openafs-<span class=3D"gmail-hljs-number" sty=
le=3D"color:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-hljs-number" styl=
e=3D"color:rgb(136,0,0)">20.2</span>/conftest.dir/conftest.<span class=3D"g=
mail-hljs-symbol" style=3D"color:rgb(188,96,96)">c:</span> In function <spa=
n class=3D"gmail-hljs-string" style=3D"color:rgb(136,0,0)">&#39;conftest&#3=
9;</span><span class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">:=
</span></div><div><span class=3D"gmail-hljs-symbol" style=3D"background-col=
or:rgb(248,248,248);color:rgb(188,96,96)">/home/randy/rpmbuild/BUILD/openaf=
s-</span><span class=3D"gmail-hljs-number" style=3D"background-color:rgb(24=
8,248,248);color:rgb(136,0,0)">1.6</span><span style=3D"background-color:rg=
b(248,248,248)">.</span><span class=3D"gmail-hljs-number" style=3D"backgrou=
nd-color:rgb(248,248,248);color:rgb(136,0,0)">20.2</span><span style=3D"bac=
kground-color:rgb(248,248,248)">/conftest.dir/conftest.</span><span class=
=3D"gmail-hljs-symbol" style=3D"background-color:rgb(248,248,248);color:rgb=
(188,96,96)">c:</span><span class=3D"gmail-hljs-number" style=3D"background=
-color:rgb(248,248,248);color:rgb(136,0,0)">48</span><span class=3D"gmail-h=
ljs-symbol" style=3D"background-color:rgb(248,248,248);color:rgb(188,96,96)=
">:</span><span class=3D"gmail-hljs-number" style=3D"background-color:rgb(2=
48,248,248);color:rgb(136,0,0)">8</span><span style=3D"background-color:rgb=
(248,248,248)">: internal compiler </span><b><span class=3D"gmail-hljs-symb=
ol" style=3D"background-color:rgb(248,248,248);color:rgb(188,96,96)">error:=
</span> <span style=3D"background-color:rgb(255,153,0)">Segmentation fault<=
/span></b></div><div style=3D"background-color:rgb(248,248,248)">=C2=A0stru=
ct group_info _test; printk(<span class=3D"gmail-hljs-string" style=3D"colo=
r:rgb(136,0,0)">&quot;%x\n&quot;</span>, &amp;_test.gid);</div><div style=
=3D"background-color:rgb(248,248,248)">=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~=
~~</div><div style=3D"background-color:rgb(248,248,248)">Please submit a fu=
ll bug report,</div><div style=3D"background-color:rgb(248,248,248)">with p=
reprocessed source <span class=3D"gmail-hljs-keyword" style=3D"font-weight:=
bold">if</span> appropriate.</div><div style=3D"background-color:rgb(248,24=
8,248)">See &lt;<span class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96=
,96)">http:</span>/<span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188=
,96,96)">/<a href=3D"http://bugzilla.redhat.com/bugzilla">bugzilla.redhat.c=
om/bugzilla</a></span>&gt; <span class=3D"gmail-hljs-keyword" style=3D"font=
-weight:bold">for</span> instructions.</div><div style=3D"background-color:=
rgb(248,248,248)">Preprocessed source stored into /tmp/cc1n5yQ<span class=
=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">0</span>.out file, plea=
se attach this to your bugreport.</div><div style=3D"background-color:rgb(2=
48,248,248)">make[<span class=3D"gmail-hljs-number" style=3D"color:rgb(136,=
0,0)">1</span>]: *** [scripts/Makefile.<span class=3D"gmail-hljs-symbol" st=
yle=3D"color:rgb(188,96,96)">build:</span><span class=3D"gmail-hljs-number"=
 style=3D"color:rgb(136,0,0)">301</span>: <span class=3D"gmail-hljs-regexp"=
 style=3D"color:rgb(188,96,96)">/home/randy</span><span class=3D"gmail-hljs=
-regexp" style=3D"color:rgb(188,96,96)">/rpmbuild/</span>BUILD/openafs-<spa=
n class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">1.6</span>.<span=
 class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">20.2</span>/conft=
est.dir/conftest.o] Error <span class=3D"gmail-hljs-number" style=3D"color:=
rgb(136,0,0)">1</span></div><div style=3D"background-color:rgb(248,248,248)=
"><span class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">make:</s=
pan> *** [<span class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">=
Makefile:</span><span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,=
0)">1496</span>: _module<span class=3D"gmail-hljs-number" style=3D"color:rg=
b(136,0,0)">_</span>/home/randy/rpmbuild/BUILD/openafs-<span class=3D"gmail=
-hljs-number" style=3D"color:rgb(136,0,0)">1.6</span>.<span class=3D"gmail-=
hljs-number" style=3D"color:rgb(136,0,0)">20.2</span>/conftest.dir] Error <=
span class=3D"gmail-hljs-number" style=3D"color:rgb(136,0,0)">2</span></div=
><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs=
-symbol" style=3D"color:rgb(188,96,96)">configure:</span> failed using <spa=
n class=3D"gmail-hljs-symbol" style=3D"color:rgb(188,96,96)">Makefile:</spa=
n></div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gma=
il-hljs-params">| EXTRA_CFLAGS +=3D =C2=A0</span></div><div style=3D"backgr=
ound-color:rgb(248,248,248)"><span class=3D"gmail-hljs-params">|</span>=C2=
=A0</div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gm=
ail-hljs-params">| obj-m +=3D conftest.o</span></div><div style=3D"backgrou=
nd-color:rgb(248,248,248)"><span class=3D"gmail-hljs-params">configure: <sp=
an class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">and</span> progr=
am was:</span></div><div style=3D"background-color:rgb(248,248,248)"><span =
class=3D"gmail-hljs-params">|</span> /* confdefs.h *<span class=3D"gmail-hl=
js-regexp" style=3D"color:rgb(188,96,96)">/</span></div><div style=3D"backg=
round-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"co=
lor:rgb(188,96,96)">| #define PACKAGE_NAME &quot;OpenAFS&quot;</span></div>=
<div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-=
regexp" style=3D"color:rgb(188,96,96)">| #define PACKAGE_TARNAME &quot;open=
afs&quot;</span></div><div style=3D"background-color:rgb(248,248,248)"><spa=
n class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define PACK=
AGE_VERSION &quot;1.6.20.2&quot;</span></div><div style=3D"background-color=
:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188=
,96,96)">| #define PACKAGE_STRING &quot;OpenAFS 1.6.20.2&quot;</span></div>=
<div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-=
regexp" style=3D"color:rgb(188,96,96)">| #define PACKAGE_BUGREPORT &quot;&q=
uot;</span></div><div style=3D"background-color:rgb(248,248,248)"><span cla=
ss=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define PACKAGE &=
quot;openafs&quot;</span></div><div style=3D"background-color:rgb(248,248,2=
48)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #de=
fine VERSION &quot;1.6.20.2&quot;</span></div><div style=3D"background-colo=
r:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(18=
8,96,96)">| #define STDC_HEADERS 1</span></div><div style=3D"background-col=
or:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(1=
88,96,96)">| #define HAVE_SYS_TYPES_H 1</span></div><div style=3D"backgroun=
d-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:=
rgb(188,96,96)">| #define HAVE_SYS_STAT_H 1</span></div><div style=3D"backg=
round-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"co=
lor:rgb(188,96,96)">| #define HAVE_STDLIB_H 1</span></div><div style=3D"bac=
kground-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"=
color:rgb(188,96,96)">| #define HAVE_STRING_H 1</span></div><div style=3D"b=
ackground-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=
=3D"color:rgb(188,96,96)">| #define HAVE_MEMORY_H 1</span></div><div style=
=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" st=
yle=3D"color:rgb(188,96,96)">| #define HAVE_STRINGS_H 1</span></div><div st=
yle=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp"=
 style=3D"color:rgb(188,96,96)">| #define HAVE_INTTYPES_H 1</span></div><di=
v style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-reg=
exp" style=3D"color:rgb(188,96,96)">| #define HAVE_STDINT_H 1</span></div><=
div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-r=
egexp" style=3D"color:rgb(188,96,96)">| #define HAVE_UNISTD_H 1</span></div=
><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs=
-regexp" style=3D"color:rgb(188,96,96)">| #define __EXTENSIONS__ 1</span></=
div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-h=
ljs-regexp" style=3D"color:rgb(188,96,96)">| #define _ALL_SOURCE 1</span></=
div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-h=
ljs-regexp" style=3D"color:rgb(188,96,96)">| #define _GNU_SOURCE 1</span></=
div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-h=
ljs-regexp" style=3D"color:rgb(188,96,96)">| #define _POSIX_PTHREAD_SEMANTI=
CS 1</span></div><div style=3D"background-color:rgb(248,248,248)"><span cla=
ss=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define _TANDEM_S=
OURCE 1</span></div><div style=3D"background-color:rgb(248,248,248)"><span =
class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define ENDIAN=
ESS_IN_SYS_PARAM_H 1</span></div><div style=3D"background-color:rgb(248,248=
,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #=
define PRINTF_TAKES_Z_LEN 1</span></div><div style=3D"background-color:rgb(=
248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,9=
6)">| #define ENABLE_REDHAT_BUILDSYS 1</span></div><div style=3D"background=
-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:r=
gb(188,96,96)">| #define HAVE_LINUX_INODE_OPERATIONS_RENAME_TAKES_FLAGS 1</=
span></div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"=
gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define HAVE_LINUX_CRED=
_H 1</span></div><div style=3D"background-color:rgb(248,248,248)"><span cla=
ss=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define HAVE_LINU=
X_COMPLETION_H 1</span></div><div style=3D"background-color:rgb(248,248,248=
)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #defi=
ne HAVE_LINUX_EXPORTFS_H 1</span></div><div style=3D"background-color:rgb(2=
48,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96=
)">| #define HAVE_LINUX_FREEZER_H 1</span></div><div style=3D"background-co=
lor:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(=
188,96,96)">| #define HAVE_LINUX_KEY_TYPE_H 1</span></div><div style=3D"bac=
kground-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"=
color:rgb(188,96,96)">| #define HAVE_LINUX_SEMAPHORE_H 1</span></div><div s=
tyle=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp=
" style=3D"color:rgb(188,96,96)">| #define HAVE_LINUX_SEQ_FILE_H 1</span></=
div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-h=
ljs-regexp" style=3D"color:rgb(188,96,96)">| #define HAVE_LINUX_SCHED_SIGNA=
L_H 1</span></div><div style=3D"background-color:rgb(248,248,248)"><span cl=
ass=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define HAVE_LIN=
UX_KUID_T 1</span></div><div style=3D"background-color:rgb(248,248,248)"><s=
pan class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define ST=
RUCT_ADDRESS_SPACE_OPERATIONS_HAS_WRITE_BEGIN 1</span></div><div style=3D"b=
ackground-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=
=3D"color:rgb(188,96,96)">| #define STRUCT_BACKING_DEV_INFO_HAS_NAME 1</spa=
n></div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gma=
il-hljs-regexp" style=3D"color:rgb(188,96,96)">| #define STRUCT_CRED_HAS_SE=
SSION_KEYRING 1</span></div><div style=3D"background-color:rgb(248,248,248)=
"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">| #defin=
e STRUCT_DENTRY_HAS_D_U_D_ALIAS 1</span></div><div style=3D"background-colo=
r:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" style=3D"color:rgb(18=
8,96,96)">| #define STRUCT_DENTRY_OPERATIONS_HAS_D_AUTOMOUNT 1</span></div>=
<div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-=
regexp" style=3D"color:rgb(188,96,96)">| /</span>* <span class=3D"gmail-hlj=
s-keyword" style=3D"font-weight:bold">end</span> confdefs.h *<span class=3D=
"gmail-hljs-regexp" style=3D"color:rgb(188,96,96)">/</span></div><div style=
=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-regexp" st=
yle=3D"color:rgb(188,96,96)">| #include &lt;linux/module</span>.h&gt;</div>=
<div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-=
params">| #<span class=3D"gmail-hljs-keyword" style=3D"font-weight:bold">in=
clude</span> &lt;linux/cred.h&gt;</span></div><div style=3D"background-colo=
r:rgb(248,248,248)"><span class=3D"gmail-hljs-params">|</span>=C2=A0</div><=
div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-p=
arams">| void conftest(void)</span></div><div style=3D"background-color:rgb=
(248,248,248)"><span class=3D"gmail-hljs-params">|</span> {</div><div style=
=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-hljs-params">| =
struct group_info _test; printk(&quot;%x\n&quot;, &amp;_test.gid);</span></=
div><div style=3D"background-color:rgb(248,248,248)"><span class=3D"gmail-h=
ljs-params">|</span> }</div><div style=3D"background-color:rgb(248,248,248)=
"><span class=3D"gmail-hljs-params">|=C2=A0</span></div><div style=3D"backg=
round-color:rgb(248,248,248)"><span class=3D"gmail-hljs-params">|</span> MO=
DULE_LICENSE(<span class=3D"gmail-hljs-string" style=3D"color:rgb(136,0,0)"=
>&quot;<a href=3D"http://www.openafs.org/dl/license10.html">http://www.open=
afs.org/dl/license10.html</a>&quot;</span>);</div><div style=3D"background-=
color:rgb(248,248,248)"><span class=3D"gmail-hljs-symbol" style=3D"color:rg=
b(188,96,96)">configure:</span><span class=3D"gmail-hljs-number" style=3D"c=
olor:rgb(136,0,0)">11305</span>: <span class=3D"gmail-hljs-symbol" style=3D=
"color:rgb(188,96,96)">result:</span> no</div></div></div><br><div></div></=
div><div>1) It may be worth submitting the bug report to RedHat per the dir=
ections and the preprocessor tmp file above.</div><div><br></div><div>2) Yo=
u can play around with the conftest output above and try to get the test to=
 not segfault.</div><div><br></div><div>3) If you wanted to just try someth=
ing, I&#39;d imagine rolling gcc back might change the segfault outcome we =
are seeing here. You were using</div><div>gcc (GCC) 7.0.1 20170309 (Red Hat=
 7.0.1-0.12)<br></div><div>and they did this patch 4 months ago, so it was =
probably on the gcc 6.3 line.</div><div><br></div><div>Cheers,</div><div>Jo=
e</div></div>

--001a11c0054c009263054e1ce39c--