Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Another crash
- X-seq: zsh-workers 1839
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Another crash
- Date: Tue, 30 Jul 1996 18:16:50 +0200
I hope I´m not going to be in the habit of sending messages saying I
did something slightly different with zsh and it crashed immediately,
but... I did something slightly different with zsh and it crashed
immediately.
I was logging in via a Windows terminal (not the preferred way)
because I´d been using FTP from a floppy, and as soon as I started
3.0-pre4 it died. (Luckily the standard installed shell is still an
old one or you wouldn´t be getting this.)
The backtrace should it was dying in zle_misc.c at a mod when the
right hand side variable was zero. This patch fixes that. (This is
on IRIX, maybe other systems don´t have this feature.) Perhaps
someone can trace why columns is zero and do something about that;
debugging on this wretched terminal is a bit difficult. `stty size´
just gives unknown mode messages, and $COLUMNS looks healthy. Maybe
the fact I was starting it from an older version was significant.
*** Src/zle_misc.c.mod Tue Jul 30 17:54:25 1996
--- Src/zle_misc.c Tue Jul 30 17:55:12 1996
***************
*** 835,841 ****
if (wp) {
*wp = bp - bl0 - lensb;
if (pmpt != rpmpt) {
! *wp %= columns;
if (*wp == columns - 1) {
addbufspc(1);
*wp = 0;
--- 835,842 ----
if (wp) {
*wp = bp - bl0 - lensb;
if (pmpt != rpmpt) {
! if (columns)
! *wp %= columns;
if (*wp == columns - 1) {
addbufspc(1);
*wp = 0;
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author