Package: tcsh
Version: 6.14.00-7
Severity: important

tcsh crashes with an Arithmetic exception.

I build a debug version, and generated a core dump. Here is the relevant
part:

Program terminated with signal 8, Arithmetic exception.
#0  print_by_column (dir=0x80b3c94, items=0x81670bc, count=46, 
no_file_suffix=1) at tw.parse.c:2071
2071        columns = TermH / maxwidth;         /* PWP: terminal size change */
(gdb) bt
#0  print_by_column (dir=0x80b3c94, items=0x81670bc, count=46, 
no_file_suffix=1) at tw.parse.c:2071
#1  0x0806f24a in t_search (word=0xbf876e34, wp=0xbf876e34, command=LIST, 
max_word_length=8192, looking=4095, list_max=1, pat=0x80b3c94, suf=0) at 
tw.parse.c:1394
#2  0x08070405 in tenematch (inputline=0x80b4580, num_read=0, command=LIST) at 
tw.parse.c:404
#3  0x0807e931 in Inputl () at ed.inputl.c:432
#4  0x08060519 in readc (wanteof=0) at sh.lex.c:1792
#5  0x08062713 in lex (hp=0x80c45fc) at sh.lex.c:173
#6  0x0804ab75 in process (catch=1) at sh.c:2097
#7  0x0804d31f in main (argc=0, argv=0xbf8a0284) at sh.c:1362
(gdb) print maxwidth
$1 = 0
(gdb) print TermH
$2 = 105
(gdb) print no_file_suffix
$9 = 1


Looking at the code for this, I can only imagine that somehow
NLSStringWidth is returning -1 - which actually does not make sense,
since maxwidth is set to 0 at the start of the function, and max should
never return lower then that.

Interestingly I have some files in the directory that contain non-ascii
characters. ls just prints them with ?

        -Ariel


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages tcsh depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand

tcsh recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to