Skip to contentSkip to conversation

SymSearch can cause make nconfig to segfault

DISCUSSION Vivien Gallinaro 3 participants 4 messages Nov 8, 2023 – Nov 10, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi all,

In make nconfig, when I perform a SymSearch (F8) for "x86", I get a segfault. It doesn't happen in make menuconfig (/ search).

It doesn't seem to be a simple matter of "too many results" as a SymSearch for "fs" does ok.

For a fresh 6.6 kernel :

$ cd linux-6.6
$ make mrproper
$ make nconfig 2>../blarb
(<F8> x86 <enter>)
$ reset
$ cat ../blarb

gives :

make[2]: *** [scripts/kconfig/Makefile:48: nconfig] Segmentation fault make[1]: *** [/home/username/linux-6.6/Makefile:697: nconfig] Error 2
make: *** [Makefile:234: __sub-make] Error 2

That's not very helpful, I know… looking up "x86" was not particularly useful either! (I was following a wiki referring to x86_sysfb. Before I realized it probably doesn't exist any more, I tried to widen the search, since I had just come across the deprecation of efi_vars in favor of efivar_fs, so to speak.) I hope some one can help the search fail gracefully.

Have a nice day,
VG

#1 lore raw
Quoted 10 lines · Vivien Gallinaro

Hi all,

In make nconfig, when I perform a SymSearch (F8) for "x86", I get a segfault. It doesn't happen in make menuconfig (/ search).

It doesn't seem to be a simple matter of "too many results" as a SymSearch for "fs" does ok.

Quoted 7 lines

For a fresh 6.6 kernel :

$ cd linux-6.6
$ make mrproper
$ make nconfig 2>../blarb
(<F8> x86 <enter>)
$ reset

I'm assuming "reset" here means you got put back into your shell and are resetting the terminal state.

Quoted 7 lines
$ cat ../blarb

gives :

make[2]: *** [scripts/kconfig/Makefile:48: nconfig] Segmentation fault make[1]: *** [/home/username/linux-6.6/Makefile:697: nconfig] Error 2
make: *** [Makefile:234: __sub-make] Error 2

I can not recreate this error on my machine unfortunately are you using the tar release?
What distro are you using?

Thanks,
Jesse Taube

Quoted 11 lines

That's not very helpful, I know… looking up "x86" was not particularly useful either! (I was following a wiki referring to x86_sysfb. Before I realized it probably doesn't exist any more, I tried to widen the search, since I had just come across the deprecation of efi_vars in favor of efivar_fs, so to speak.) I hope some one can help the search fail gracefully.

Have a nice day,
VG

#2 lore raw
Quoted 31 lines · Jesse T
Quoted 10 lines · Vivien Gallinaro

Hi all,

In make nconfig, when I perform a SymSearch (F8) for "x86", I get a segfault. It doesn't happen in make menuconfig (/ search).

It doesn't seem to be a simple matter of "too many results" as a SymSearch for "fs" does ok.

Quoted 7 lines

For a fresh 6.6 kernel :

$ cd linux-6.6
$ make mrproper
$ make nconfig 2>../blarb
(<F8> x86 <enter>)
$ reset

I'm assuming "reset" here means you got put back into your shell and are resetting the terminal state.

Quoted 7 lines
$ cat ../blarb

gives :

make[2]: *** [scripts/kconfig/Makefile:48: nconfig] Segmentation fault make[1]: *** [/home/username/linux-6.6/Makefile:697: nconfig] Error 2
make: *** [Makefile:234: __sub-make] Error 2

Quoted 17 lines

I can not recreate this error on my machine unfortunately are you using the tar release?
What distro are you using?

Thanks,
Jesse Taube

Quoted 11 lines

That's not very helpful, I know… looking up "x86" was not particularly useful either! (I was following a wiki referring to x86_sysfb. Before I realized it probably doesn't exist any more, I tried to widen the search, since I had just come across the deprecation of efi_vars in favor of efivar_fs, so to speak.) I hope some one can help the search fail gracefully.

Have a nice day,
VG

I also cannot recreate this issue.
FWIW.

More info needed.

Signature · 1 line
~Randy
#3 lore raw
Quoted 10 lines · Randy Dunlap
Quoted 9 lines · Jesse T
Quoted 7 lines · On 11/7/23 Vivien Gallinaro wrote:

For a fresh 6.6 kernel :

$ cd linux-6.6
$ make mrproper
$ make nconfig 2>../blarb
(<F8> x86 <enter>)
$ reset
Quoted 2 lines
Quoted 2 lines

I'm assuming "reset" here means you got put back into your shell and are resetting the terminal state.

Exactly.

Quoted 3 lines
Quoted 3 lines

I can not recreate this error on my machine unfortunately are you using the tar release?
What distro are you using?

Gentoo, but checking with the (then) stable 6.6 tarball.

Quoted 4 lines

I also cannot recreate this issue.
FWIW.

More info needed.

That was good news. I tried to investigate a little deeper with strace, gdb… a little too deep for me actually. Then I eventually remembered: even though my install is pretty fresh, I've been a bit sloppy on maintenance, leaving one stuff to the side to catter to another, a few times over. One global update later — meaning I only have /usr/src in a corny state, now — I don't get the segfault either. Sorry, pebkac.

Thanks for your time,
VG