From xemacs-m  Mon Mar 31 10:07:01 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 KAA20774
	for <xemacs-beta@xemacs.org>; Mon, 31 Mar 1997 10:07:00 -0600 (CST)
Received: (qmail 27278 invoked by uid 501); 31 Mar 1997 16:06:58 -0000
To: xemacs-beta@xemacs.org
Subject: Failed assertion when trying to use egg/wnn (xemacs-20.1-b10)
From: Steve Dunham <dunham@dunham.tcimet.net>
Date: 31 Mar 1997 11:06:37 -0500
Message-ID: <m2bu80f3ku.fsf@dunham.tcimet.net>
Lines: 65
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)


I'm trying to figure out how to use Wnn with xemacs and it is crashing 
when it tries to contact the server.  I do the following:

 M-x load-library RET egg-wnn RET
 M-x set-wnn-host-name RET dunham.tcimet.net RET  (also tried localhost)
 Options/Language Environment/Japanese
 C-x C-b foo RET
 C-\ watashinonamaehanoharadesu. <space>

When I hit space, it tries to open the server and crashes with a
failed assertion. (C and Lisp backtraces follow.)

Lisp backtrace follows:

  wnn-server-open("dunham.tcimet.net" "dunham")
  # bind (hostname)
  byte-code(..." [hostlist hostname wnn-server-open loginname wnn-server-type jserver wnn-host-name cserver cwnn-host-name kserver kwnn-host-name throw succ egg:error wnn-server-get-msg] 4)
  # (catch succ ...)
  # bind (hostlist loginname)
  open-wnn-if-disconnected()
  EGG:open-wnn()
  # (unwind-protect ...)
  # bind (finished rev end start)
  henkan-region-internal(#<marker at 2 in foo> #<marker at 16 in foo>)
  henkan-fence-region()
  #<compiled-function (from "egg.elc") nil "...(15)" [egg:*input-mode* henkan-fence-region ?\ ] 1 nil nil>()
  call-interactively(henkan-fence-region-or-single-space)
  # (condition-case ... . error)
  # (catch top-level ...)


Here is the gdb backtrace:

Program terminated with signal 6, IOT trap/Abort.

#0  0x4024db09 in __kill ()
#1  0x808e15d in fatal_error_signal (sig=6) at emacs.c:201
#2  0xbfffe784 in ?? ()
#3  0x4021d5c5 in gsignal ()
#4  0x8146036 in alarm (howlong=5) at signal.c:333
#5  0x81d29d1 in cd_open_in ()
#6  0x81d2fe0 in js_open_lang ()
#7  0x81d7678 in jl_connect_lang ()
#8  0x81d7947 in jl_open_lang ()
#9  0x81b5e39 in Fwnn_open (hname=945295688, lname=945501532)
    at /opt/src/xemacs-20.1-b10/src/./mule-wnnfns.c:361
#10 0x8094fa9 in primitive_funcall (fn=0x81b5cb0 <Fwnn_open>, nargs=2, 
    args=0xbfffec60) at eval.c:3462



328     {
329       struct itimerval old_it, new_it;
330
331       /* If alarm() gets called when polling isn't disabled, it can mess
332          up the periodic timer. */
333       assert (async_timer_suppress_count > 0);   <-- HERE
334
335       new_it.it_value.tv_sec = howlong;
336       new_it.it_value.tv_usec = 0;
337       new_it.it_interval.tv_sec = 0;

(gdb) p async_timer_suppress_count
$2 = 0

