i thought :colorscheme only worked for vim -g :)

oh well, here's a reproducible bug:

start vim, type :colorscheme ron (or whatever you like from
/lib/vim/vimfiles/color/), hit 'i', try to type some text. crash log
attached.
parr% vim
vim 383: suicide: sys: trap: fault read addr=0x4 pc=0x0014181e
parr% acid 383
/proc/383/text:386 plan 9 executable

/sys/lib/acid/port
/sys/lib/acid/386
acid: lstk()
_string(f=0x1b2c18,s=0x17a2bd,r=0x171e52,len=0x1,dst=0x1b0ec0,op=0xb,bg=0x0,src=0x0,pt=0x15c,clipr=0x15c,sp=0x0,bgp=0x0,.ret=0x179890)+0x1c7
 /sys/src/libdraw/string.c:102
        sptr=0xdfffeab0
        rptr=0x0
        sf=0x0
        cbuf=0x34
        wid=0x9
        subfontname=0x0
        n=0x1
stringnbg(dst=0x1b0ec0,.ret=0x179890,pt=0x15c,src=0x0,sp=0x0,f=0x1b2c18,s=0x17a2bc,len=0x1,bg=0x0,bgp=0x0)+0x95
 /sys/src/libdraw/stringbg.c:20
write_str(len=0x1,p=0x17a2bc)+0x121 /tmp/vim/vim71/src/os_plan9.c:563
        nbytes=0x1
        n=0x1
        m=0x1
mch_write(len=0x1,p=0x17a2bc)+0x41 /tmp/vim/vim71/src/os_plan9.c:591
ui_write(s=0x17a2b8,len=0x5)+0x66 /tmp/vim/vim71/src/ui.c:54
        tofree=0x0
out_flush()+0x29 /tmp/vim/vim71/src/term.c:2584
inchar(wait_time=0xffffffff,buf=0x17b124,maxlen=0xe8,tb_change_cnt=0x21)+0x243 
/tmp/vim/vim71/src/getchar.c:2814
        len=0x0
        retesc=0x0
        script_char=0x1a5938
        dum=0x40000
vgetorpeek(advance=0x1)+0x4cc /tmp/vim/vim71/src/getchar.c:2689
        mp_match_len=0x0
        timedout=0x0
        mapdepth=0x0
        mode_deleted=0x0
        local_State=0x10
        keylen=0x0
        c=0x1a0fd0
        mp=0x0
        max_mlen=0x0
        c1=0x0
        mp2=0x0
        mp_match=0x0
        mlen=0x1
        save_vgetc_busy=0x1a5938
        tabuf=0x7e
        s=0x3e7
        i=0x0
        new_wcol=0x1
        new_wrow=0x0
        col=0x2
        old_wcol=0x2
        old_wrow=0x1
        vcol=0x0
        ptr=0x1
        wait_tb_len=0x0
vgetc()+0x7e /tmp/vim/vim71/src/getchar.c:1540
        save_allow_keys=0xa5a9d
        c2=0x0
        n=0x0
        buf=0xa5eda00
        i=0x1a5938
        c=0xa5ec7
safe_vgetc()+0x8 /tmp/vim/vim71/src/getchar.c:1737
edit(cmdchar=0x69,startln=0x0,count=0x1)+0x401 /tmp/vim/vim71/src/edit.c:708
        c=0x74
        did_backspace=0x0
        line_is_white=0x0
        old_topline=0x1
        old_topfill=0x0
        inserted_space=0x0
        replaceState=0x50
        nomove=0x0
        ptr=0x1b7f08
        mincol=0x0
        lastc=0x74
invoke_edit(repl=0x0,cmd=0x69,startln=0x0,cap=0xdfffee28)+0x45 
/tmp/vim/vim71/src/normal.c:8726
        restart_edit_save=0x0
nv_edit(cap=0xdfffee28)+0xee /tmp/vim/vim71/src/normal.c:8699
        save_State=0xa
normal_cmd(oap=0xdfffee80,toplevel=0x1)+0x711 /tmp/vim/vim71/src/normal.c:1136
        ctrl_w=0x0
        old_col=0x0
        ca=0xdfffee80
        mapped_len=0x0
        c=0x69
        need_flushbuf=0x0
        idx=0x6a
        repl=0x17d5ce
        lit=0x12320f
        langmap_active=0x0
        cp=0x0
        lang=0x48
        towait=0x1231c2
        old_pos=0x1
        save_State=0x0
        kmsg=0x17d5ce
main_loop(cmdwin=0x0,noexmode=0x0)+0x13c /tmp/vim/vim71/src/main.c:992
        oa=0x0
        p=0x46028
main(argc=0x1,argv=0xdfffefbc)+0x6c9 /tmp/vim/vim71/src/main.c:941
        fname=0x0
        params=0x1
        wp=0x17ce44
_main+0x26 /sys/src/ape/lib/ap/386/main9.s:12
acid: 

Reply via email to