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

Re: Bug#249627: Alias + LC_CTYPE + function => segmentation fault



I can't reproduce this myself.  Does gdb tell you anything?

On Tue, May 18, 2004 at 05:22:57PM +0200, Nicolas George wrote:
> Package: zsh
> Version: 4.2.0-10
> 
> With no config file at all (/etc/zsh removed and HOME=/tmp/empty), I get
> that:
> 
> ssecem% alias frobnicate="LC_CTYPE=en_US.UTF-8"
> ssecem% alias date="frobnicate date"
> ssecem% function date { command date; echo done }
> ssecem% date
> Tue May 18 17:08:42 CEST 2004
> done
> ssecem% date
> zsh: segmentation fault  HOME=/tmp/empty zsh
> 
> (Yes, I do have a real-world case where the bug appears.)
> 
> If I try to type "setopt" before all that to see enabled options (which
> are interactive, monitor, shinstdin and zle), the second date succeeds,
> but a third one sends zsh in an infinite loop eating all CPU.
> 
> 
> Here are details about my configuration:
> 
> debconf		1.4.25
> passwd		1:4.0.3-28
> libc6		2.3.2.ds1-12
> libcap1		1:1.10-14
> libncurses5	5.4-3
> 
> /usr/bin/zsh:
>                 libcap.so.1 => /lib/libcap.so.1 (0x40025000)
>         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x40029000)
>         libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0x4002d000)
>         libncurses.so.5 => /lib/libncurses.so.5 (0x40042000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x40081000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x400a4000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> Linux ssecem 2.6.5 #2 Wed Apr 14 23:36:02 CEST 2004 i686 GNU/Linux




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