Anyway, before I was so rudely interrupted by the "Save Changes"
button...

The commands I used are these:
[~]% ls .history
-rw-r--r-- 1 4392 Sep  1 15:07 .history
[~]% md5sum .history
d720baeeae451f88070ad3014055f0a9  .history
[~]% bash -c 'LANG=en_US.UTF-8 strace -o /tmp/tcsh.out2 tcsh'

Some interesting seeming exerpts of the trace file:
close(6)                                = 0
open("/home/ota/.history", O_RDONLY|O_LARGEFILE) = 0
dup(0)                                  = 1
dup(1)                                  = 2
dup(2)                                  = 3
dup(3)                                  = 4
dup(4)                                  = 5
dup(5)                                  = 6
close(5)                                = 0
close(4)                                = 0
close(3)                                = 0
close(2)                                = 0
close(1)                                = 0
close(0)                                = 0
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe65898) = -1 ENOTTY (Inappropriate i
octl for device)
rt_sigprocmask(SIG_SETMASK, NULL, [INT], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
read(6, "#+83336638\nfg\n#+1183336673\ncmake"..., 4096) = 4096
...
read(6, "04x396\\ DivX661\\ 120fps\\).avi -s"..., 170) = 170
...
alarm(0)                                = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [INT], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
read(6, "\254\25413\350\251\261\\ \343\200\214\343\201\212\343", 16) = 16
read(6, "\201\204\343\201\227\343", 6)  = 6
read(6, "\201", 1)                      = 1
read(6, "\204", 1)                      = 1
read(6, "\346", 1)                      = 1
read(6, "\227", 1)                      = 1
read(6, "\245", 1)                      = 1
read(6, "\343", 1)                      = 1
read(6, "\200", 1)                      = 1
read(6, "\215", 1)                      = 1
read(6, "\\", 1)                        = 1
read(6, " ", 1)                         = 1
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

Notice that it reads bytes in shrinking numbers from the .history file:
4096 bytes, then 170, 16, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 !!BOOM!!

Odd.  Anyway my tcsh and other versions are:
% tcsh --version
tcsh 6.14.00 (Astron) 2005-03-25 (i486-intel-linux) options 
wide,nls,dl,al,kan,rh,nd,color,filec
[~]% uname -a
Linux alohomora 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 
GNU/Linux
[~]% cat /etc/issue
Ubuntu 7.04 \n \l
[~]% apt-cache show tcsh|grep deb
Filename: pool/universe/t/tcsh/tcsh_6.14.00-7_i386.deb

HtH,
Ted

-- 
tcsh segmentation fault
https://bugs.launchpad.net/bugs/86683
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to