From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226 Description of problem: segmentation fault when resizing a kterm window on remote ia-32 host. This bug is not in xterm. only kterm. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Please execute the following command on ia32 (any hardware, any OS). ia32@user% xhost + ia32@user% ssh user@ia64 loggin ia64 remote phost ia64@user% export DISPLAY=ia32:0.0 ia64@user% kterm resize a kterm window, results in Segmentation fault. Actual Results: resize a kterm window, results in Segmentation fault. Expected Results: no segmentation fault. Additional info: solution: We have to describe #include <stdlib.h>, when using an calloc(). It solves with the following simple 2 lines patch. diff -urN kterm-6.2.0.org/screen.c kterm-6.2.0/screen.c --- kterm-6.2.0.org/screen.c Fri Jan 31 10:19:23 2003 +++ kterm-6.2.0/screen.c Fri Jan 31 10:20:36 2003 @@ -34,6 +34,7 @@ #include <stdio.h> #include <signal.h> +#include <stdlib.h> #if defined(SVR4) || defined(hpux) #include <termios.h> #else diff -urN kterm-6.2.0.org/scrollbar.c kterm-6.2.0/scrollbar.c --- kterm-6.2.0.org/scrollbar.c Fri Jan 31 10:19:26 2003 +++ kterm-6.2.0/scrollbar.c Fri Jan 31 10:20:44 2003 @@ -30,6 +30,7 @@ #include <stdio.h> #include <ctype.h> +#include <stdlib.h> #include <X11/Xatom.h> #include <X11/StringDefs.h>
Fixed in kterm-6.2.0-33