On Thu, 19 May 2005, Simon Kågström wrote:

zile crashes with a segmentation fault when I start it in GDB in emacs.
It seems like zile lacks some checks for certain terminals. The bug with
emacs occurs in term_termcap.c:135 (term_refresh), where tgoto() returns NULL, 
but that
return value is never checked.

Thanks for this. If tgoto doesn't return a string, there's not much point in Zile continuing, so what I anticipate doing is wrapping tgoto so that its return value is checked, and if NULL, then Zile exits with a fatal error. Does this seem reasonable? If Zile can't do cursor positioning, there doesn't seem to be much point continuing.


The other obvious alternative, which might arguably be useful for debugging, as you were trying to, would be to have an empty string returned in this case, which will obviously result in the display being incorrect, which could be confusing...

Reply via email to