From xemacs-m  Mon Apr 14 23:46:05 1997
Received: from dunham.tcimet.net (qmailr@dunham.tcimet.net [198.109.161.223])
	by xemacs.org (8.8.5/8.8.5) with SMTP id XAA20017
	for <xemacs-beta@xemacs.org>; Mon, 14 Apr 1997 23:46:05 -0500 (CDT)
Received: (qmail 16102 invoked by uid 501); 15 Apr 1997 04:46:04 -0000
To: -=-TSUTOMU NAKAMURA-=- <tsutomu@rs.kyoto.omronsoft.co.jp>
Cc: xemacs-beta@xemacs.org
Subject: Re: bug report(xemacs-20.1 + Mule + Wnn crashes)
References: <9704140220.AA02100@hrs102.rs.kyoto.omronsoft.co.jp>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Steve Dunham <dunham@dunham.tcimet.net>
Date: 15 Apr 1997 00:45:43 -0400
In-Reply-To: -=-TSUTOMU NAKAMURA-=-'s message of Mon, 14 Apr 1997 11:14:33 +0900
Message-ID: <m2pvvwhp10.fsf@dunham.tcimet.net>
Lines: 59
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)

-=-TSUTOMU NAKAMURA-=- <tsutomu@rs.kyoto.omronsoft.co.jp> writes:

> In XEmacs 20.1 [Lucid] (i586-unknown-linux, Mule) of Sat Apr 12 1997 on sting

> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:

> 
> (1) xemacs (RET)

> ---------------------- .emacs ----------------------------------------
> (require 'egg)
> (load-library "egg-wnn")
> (setq wnn-server-type 'jserver)
> (set-jserver-host-name "localhost")
> ----------------------------------------------------------------------

> (2) C-\(toggle-egg-mode)
> (3) a -> "a(Japanese hirakana)"
> (4) SPC -> starts Japanese convertion
> (5) mule-wnnfns.c:321:Fwnn_open
> (6) js.c:(libwnn.a):alarm()
> (7) signal.c:333:alarm()
>  Wnn4 library uses alarm().  alarm() is defined in signal.c, and
> assert() terminates program.

I recently discovered this problem too. I just removed the alarm stuff
from Wnn. After that everything worked fine.  There is a unified diff
below for WNN.


If you don't have the sources to WNN, you can use my copy of the
library (in Linux ELF format):

 ftp://dunham.tcimet.net/pub/libwnn.a


Steve
dunham@cps.msu.edu


--- Xsi.orig/Wnn/jlib/js.c      Thu Aug 18 21:30:29 1994
+++ Xsi/Wnn/jlib/js.c   Thu Apr  3 23:53:25 1997
@@ -290,15 +290,7 @@
        return -1 ;
     }
 
-    if (timeout != 0 && timeout > 0) {
-       signal(SIGALRM, connect_timeout);
-       alarm(timeout);
-    }
     ret = connect(sd, (caddr_t)&saddr_in, sizeof(saddr_in));
-    if (timeout != 0 && timeout > 0) {
-       alarm(0);
-       signal(SIGALRM, SIG_IGN);
-    }
     if (ret == ERROR) {
 #if DEBUG
        xerror("jslib:Can't connect Inet socket.\n");

