Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

COMPLETE_IN_WORD dumps core if built-in functions match



Please consider this:

  aglaia:~/wrk/zsh/zsh-2.6-beta10/Src> gdb ./zsh   
[blurb]
  (gdb) set args -f
  (gdb) r
  Starting program: /u/home/kaefer/wrk/zsh/zsh-2.6-beta10/Src/./zsh -f
  aglaia:~/wrk/zsh/zsh-2.6-beta10/Src> setopt autolist completeinword 
  aglaia:~/wrk/zsh/zsh-2.6-beta10/Src> rt
                                        ^
[cursor position is here, and completion requested]

  Program received signal SIGSEGV, Segmentation fault.
  0x804ed39 in addmatch (s=0x8059424 "epeat", t=0x8059424 "epeat")
      at zle_tricky.c:1524
  1524                *e = '\0';
  (gdb)

The obvious way around (at least for GCC) is to recompile with
-fwritable-strings.
Can anyone more proficient in zle_tricky.c hackery comment on this?
-- 
Thorsten Meinecke
<kaefer@xxxxxxxxxxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author