Bug 105

Summary: menuconfig segfaults on tinyx if wchar is not selected
Product: buildroot Reporter: Frank Hoeflich <frankhoeflich>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: critical CC: buildroot, frankhoeflich, jacmet, jim-bz
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: PC Target: Any
Build: 02.2009

Description Frank Hoeflich 2009-02-13 02:40:06 UTC
To reproduce:

1. Get a fresh 02.2009 buildroot.
2. make menuconfig
3. Navigate to Graphic Libraries and applications
4. Navigate to X Window System server
5. Select tinyx.  Boom.

My screenshot with error message from Kconfig is attached.  The message is:

/bin/sh: line 4: 16472 Segmentation fault      KCONFIG_AUTOCONFIG=package/config/buildroot-config/auto.conf KCONFIG_AUTOHEADER=package/config/buildroot-config/autoconf.h package/config/mconf Config.in

If you select wchar in Toolchain between steps 2 and 3, tinyx is selected normally.
Comment 1 Frank Hoeflich 2009-02-13 02:58:21 UTC
Forget the screenshot - 75kb limit. :-@(
Comment 2 Peter Korsgaard 2009-02-13 09:14:37 UTC
It seems like Kconfig doesn't like comment entries in choice selections. The comments were added to make it clear why you can't select xorg/tinyx, but you are ofcourse not supposed to be able to select those comments.

It seems to me that the easiest fix (besides reporting upstream, the bug exists in the latest kernel as well) is to move the comments outside the choice / endchoice
Comment 3 Peter Korsgaard 2009-02-13 09:18:44 UTC
Workaround committed as r25316
Comment 4 Peter Korsgaard 2009-05-04 10:00:25 UTC
*** Bug 313 has been marked as a duplicate of this bug. ***