[BusyBox] make menuconfig issue

Andrew Dennison andrew.dennison at motec.com.au
Tue Jan 21 22:04:03 UTC 2003


I've grabbed the development version of busybox via cvs as it seems to have
a few nice things that aren't present in the stable version. However on my
system (RH7.0 with some updates) "make menuconfig" crashes with a
Segmentation fault when scrolling the menus, but only in menus that have a
separator ("---"). This only happens if I scroll down far enough for the
item below the separator to be displayed, then scroll back up.

Anyone else had a problem with this? The uClibc-0.9.16 menuconfig works ok
for me on the same box. Steps to reproduce this are below.

Andrew

# make menuconfig

This works ok:
On the top level config menu, scroll down (using cursors or +) until the
separator is displayed (see below) then scroll back up. No problem.

  ? ?             System Logging Utilities  --->
  ? ?             Text Utilities  --->
  ? ?             Linux System Utilities  --->
  ? ?             Debugging Options  --->
  ? ?             ---

This Seg faults:
scroll down until the separator and ONE MORE item are displayed (see below)
then scroll back up. Crashes on the key press that would move the cursor
onto "Networking Utilities" and hence should cause the menu items to scroll.

  ? ?             Networking Utilities  --->
  ? ?             Process Utilities  --->
  ? ?             Another Bourne-like Shell  --->
  ? ?             Shell Utilities  --->
  ? ?             System Logging Utilities  --->
  ? ?             Text Utilities  --->
  ? ?             Linux System Utilities  --->
  ? ?             Debugging Options  --->
  ? ?             ---
  ? ?             Load an Alternate Configuration File

I added a -g to HOSTCFLAGS in Rules.mak and GDB says the following about the
core dump - the important bit is that items points to 0xffffffff.

Core was generated by `./scripts/config/mconf sysdeps/linux/Config.in'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x804c035 in dialog_menu (title=0x80a7af8 "l\005`",
    prompt=0xffffffff <Address 0xffffffff out of bounds>, height=0,
    width=134904872, menu_height=-1, current=0x0, item_no=134905176,
    items=0xffffffff) at menubox.c:314
314                         print_item (menu, items[scroll * 2]->name, 0,
FALSE,





More information about the busybox mailing list