[Pkg-zsh-devel] Bug#753906: zsh: segfaults on long command line, such as echo {1..1234567}

Vincent Lefevre vincent at vinc17.net
Sat Jul 5 23:50:58 UTC 2014


Package: zsh
Version: 5.0.5-4
Severity: important

zsh segfaults on long command line, such as echo {1..1234567}

An example:

$ zsh -c 'echo `seq 1 1234567` > /dev/null'
zsh: segmentation fault (core dumped)  zsh -c 'echo `seq 1 1234567` > /dev/null'

Other shells don't have such a problem:

$ dash -c 'echo `seq 1 1234567` | wc'
      1 1234567 8765432
$ ksh93 -c 'echo `seq 1 1234567` | wc'
      1 1234567 8765432
$ mksh -c 'echo `seq 1 1234567` | wc'
      1 1234567 8765432
$ bash -c 'echo `seq 1 1234567` | wc'
      1 1234567 8765432
$ posh -c 'echo `seq 1 1234567` | wc'
      1 1234567 8765432

I've reported the bug in zsh-workers:

  http://www.zsh.org/mla/workers/2014/msg00626.html

but Bart Schaefer couldn't reproduce the crash.

-- Package-specific info:
*** Packages which depend, recommend, suggest or enhance a zsh package and hence may provide code meant to be sourced in .zshrc ***

*** Packages which provide vendor completions ***
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  pulseaudio     5.0-2        amd64        PulseAudio sound server

*** Packages which provide vendor functions ***
dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh depends on:
ii  libc6       2.19-4
ii  libcap2     1:2.22-1.2
ii  libtinfo5   5.9+20140118-1
ii  zsh-common  5.0.5-4

Versions of packages zsh recommends:
ii  libncursesw5  5.9+20140118-1
ii  libpcre3      1:8.31-5

Versions of packages zsh suggests:
ii  zsh-doc  5.0.5-4

-- no debconf information



More information about the Pkg-zsh-devel mailing list