Package: joe
Version: 3.1_0.2
Tags: patch

Joe segfaults on startup on Itanium. Even before reading joerc, so this is not the same as #252934 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252934>.
The problem is that joe uses malloc in many source files, but does not include stdlib.h, where malloc is defined (grep malloc *.c worked for me). Therefore, int return value of malloc is assumed, but, on Itanium, pointer does not fit into integer, so it doesn't work.


The solution is to put "#include<stdlib.h>" into all source files which use malloc. It should not break any other platform as this is the standard place for the header.

When this bug is fixed, joe still segfaults on startup, but after reading joerc - and that is because of missing include "#include<term.h>" in termcap.c, which is reported in #252934 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252934>.

After fixing even this, joe starts up correctly and presumably works ok. Could you please check more systematically if there are any more missing includes that could make joe crash while editing ?

Tomas



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



Reply via email to