With this configuration, vi works fine:

CONFIG_VI=y
CONFIG_FEATURE_VI_MAX_LEN=1024
CONFIG_FEATURE_VI_COLON=y
CONFIG_FEATURE_VI_YANKMARK=y
CONFIG_FEATURE_VI_SEARCH=y
CONFIG_FEATURE_VI_USE_SIGNALS=y
CONFIG_FEATURE_VI_DOT_CMD=y
# CONFIG_FEATURE_VI_READONLY is not set
# CONFIG_FEATURE_VI_SETOPTS is not set
# CONFIG_FEATURE_VI_SET is not set
CONFIG_FEATURE_VI_WIN_RESIZE=y
CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y
# CONFIG_FEATURE_ALLOW_EXEC is not set

# strace -f -s256 -p 647
Process 647 attached - interrupt to quit
read(0, "i", 1023)                      = 1
alarm(3)                                = 0
poll([{fd=0, events=POLLIN}], 1, 0)     = 0
ioctl(0, TIOCGWINSZ, {ws_row=84, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
write(1, "\r\33[84;1HI a 1/1 100%\33[0K\33[1;1H", 30) = 30
alarm(0)                                = 3


If I change:

CONFIG_FEATURE_VI_MAX_LEN=2048

I get a segfault when I start editing a new file, after I push the 'i'
key.

# strace -f -s256 -p648
Process 648 attached - interrupt to quit
read(0, "i", 2047)                      = 1
alarm(3)                                = 0
vi (pid 648) segfaults for page address 00000000 at pc 355a07d4
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 648 detached


Can anyone else reproduce?


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to