Package: tcsh
Version: 6.17.02-4
Severity: normal

tcsh(1) segfaults when prompt includes %j and there are more than 10 jobs.

Example:
> set prompt="%M %j %#"
> sleep 90s &     [repeated 10 times]
                  
On the 10th invocation, tcsh segfaults, as shown by dmesg:

[329726.521173] tcsh[26771]: segfault at 7fff0e0df000 ip 000000000043f58a sp 
00007fff0e0dd930 error 6 in tcsh[400000+58000]

The segfault can also be provoked by setting the prompt variable to include %j 
when there are already 10 or more jobs.

Problem also occurs on tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-unknown-linux) 
(tested on Ubuntu 10.10). 

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcsh depends on:
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand

tcsh recommends no packages.

tcsh suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to