From xemacs-m  Tue Sep 16 13:21:36 1997
Received: from hubbub.cisco.com (mailgate-sj-1.cisco.com [198.92.30.31])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA13412
	for <xemacs-beta@xemacs.org>; Tue, 16 Sep 1997 13:21:32 -0500 (CDT)
Received: from sandman (sandman.cisco.com [171.70.19.29]) by hubbub.cisco.com (8.8.4-Cisco.1/CISCO.GATE.1.1) with ESMTP id LAA23104; Tue, 16 Sep 1997 11:21:05 -0700 (PDT)
Received: (from drich@localhost) by sandman (SMI-8.6/8.6.12) id LAA00367; Tue, 16 Sep 1997 11:20:43 -0700
From: Dan Rich <drich@cisco.com>
Message-Id: <199709161820.LAA00367@sandman>
Subject: Re: gnuclient works? (and a gnuclient induced core dump!)
To: hniksic@srce.hr (Hrvoje Niksic)
Date: Tue, 16 Sep 1997 11:20:43 -0700 (PDT)
Cc: xemacs-beta@xemacs.org
In-Reply-To: <kigvi01l4b2.fsf@jagor.srce.hr> from "Hrvoje Niksic" at Sep 16, 97 04:30:09 pm
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> Neal Becker <neal@ctd.comsat.com> writes:
> 
> > Ah.  Thanks for the help.  It works iff the xterm that runs gnuclient
> > is not the same xterm from which xemacs was started.
> 
> It's a known bug.  I guess I should write it down somewhere.

I was running into a similar problem yesterday though, I couldn't get 
gnuclient to connect.  I was using 'gnuclient -nw' from a telnet window
on my boat anchor^h^h^h^h^h^h^h^h^h^h^h PC, and it just sat there without
ever updating my screen.  When I tried it now (from an xterm on the same
system as my XEmacs process), it dumped core!

Here's the lisp backtrace:
Lisp backtrace follows:
 
  # (condition-case ... . error)
  # (unwind-protect ...)
  make-device(tty "/dev/pts/4" (terminal-type "xterm" controlling-process 29361))
  # bind (controlling-process terminal-type tty)
  make-tty-device("/dev/pts/4" "xterm" 29361)
  apply(make-tty-device ("/dev/pts/4" "xterm" 29361))
  # bind (dest-frame new-frame old-device-num quick view flags list type)
  gnuserv-edit-files((tty "/dev/pts/4" "xterm" 29361) nil)
  eval((gnuserv-edit-files (quote (tty "/dev/pts/4" "xterm" 29361)) (quote nil)))
  byte-code("@A\n
                 A\"@!" [eval read-from-string gnuserv-string header] 4)
  # (condition-case ... . ((error (byte-code "@B
 
                                                \EF
                                                   @
                                                    A\"" ... 3)) (quit (byte-code "@B
 
     \EFGE\"" ... 3))))
  # bind (header string proc)
  gnuserv-process-filter(#<process "gnuserv" pid 6376 state:run> "5 (gnuserv-edit-files '(tty \"/dev/pts/4\" \"xterm\" 29361) '())")
  # (condition-case ... . error)
  # bind (inhibit-quit)
  # (condition-case ... . error)
  # (catch top-level ...)


And the stack trace:

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (sparc-sun-solaris2.5.1), 
Copyright 1996 Free Software Foundation, Inc...
 
warning: core file may not match specified executable file.
Core was generated by `/usr/local/beta/bin/xemacs'.
Program terminated with signal 6, Aborted.
Reading symbols from /opt/local/lib/libXm.so.0.81...done.
Reading symbols from /usr/openwin/lib/libXpm.so.4.10...done.
Reading symbols from /usr/dt/lib/libDtSvc.so.1...done.
Reading symbols from /usr/openwin/lib/libtt.so.2...done.
Reading symbols from /usr/openwin/lib/libXmu.so.4...done.
Reading symbols from /usr/openwin/lib/libXt.so.4...done.
Reading symbols from /usr/openwin/lib/libXext.so.0...done.
Reading symbols from /usr/openwin/lib/libX11.so.4...done.
Reading symbols from /usr/openwin/lib/libSM.so.6.0...done.
Reading symbols from /usr/openwin/lib/libICE.so.6.3...done.
Reading symbols from /opt/gnu/lib/libncurses.so.3.0...done.
Reading symbols from /usr/lib/libkvm.so.1...done.
Reading symbols from /usr/lib/libkstat.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libelf.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/dt/lib/libXm.so.3...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
#0  0xef0740d8 in kill ()
(gdb) where
#0  0xef0740d8 in kill ()
#1  0x8a900 in fatal_error_signal (sig=6) at emacs.c:217
#2  <signal handler called>
#3  0xef0740d8 in kill ()
#4  0x8cafc in assert_failed (file=0x2563c0 "insdel.c", line=369, 
    expr=0x2563e8 "ptr == end") at emacs.c:2209
#5  0x131dec in bytecount_to_charcount (ptr=0x15fc508 "[2~", len=3)
    at insdel.c:369
#6  0x4b1e4 in make_string (contents=0x15fc503 "\eO\200", length=3)
    at alloc.c:2124
#7  0x4b2e8 in build_string (str=0x15fc503 "\eO\200") at alloc.c:2149
#8  0xd8d3c in term_get_fkeys_1 (function_key_map=286977472)
    at redisplay-tty.c:1427
#9  0x8f218 in condition_case_1 (handlers=3509248, 
    bfun=0xd8d04 <term_get_fkeys_1>, barg=286977472, 
    hfun=0xd8cfc <term_get_fkeys_error>, harg=1345933316) at eval.c:1682
#10 0xd8cf4 in term_get_fkeys (keymap=286977472, address=0xefffbd34)
    at redisplay-tty.c:1405
#11 0xd8bfc in init_tty_for_redisplay (d=0x161eb00, terminal_type=0x364000 "")
    at redisplay-tty.c:1273
#12 0xd1458 in tty_init_device (d=0x161eb00, props=559211212)
    at device-tty.c:94
#13 0x7c7a4 in Fmake_device (type=-268450248, connection=818192628, 
    props=559211212) at device.c:586
#14 0x92630 in primitive_funcall (fn=0x7c4b0 <Fmake_device>, nargs=3, 
    args=0xefffc98c) at eval.c:3441
#15 0x92820 in funcall_subr (subr=0x28b0e4, args=0xefffc98c) at eval.c:3464
#16 0x91bcc in funcall_recording_as (recorded_as=271102180, nargs=3, 
    args=0xefffc988) at eval.c:3161
#17 0x91ce4 in Ffuncall (nargs=4, args=0xefffc988) at eval.c:3201
#18 0x5df6c in Fbyte_code (bytestr=808136248, vector=1076571732, maxdepth=9)
    at bytecode.c:417
#19 0x92cd4 in funcall_lambda (fun=271265384, nargs=3, arg_vector=0xefffcc5c)
    at eval.c:3568
#20 0x91c90 in funcall_recording_as (recorded_as=271265384, nargs=3, 
    args=0xefffcc58) at eval.c:3177
#21 0x91ce4 in Ffuncall (nargs=4, args=0xefffcc58) at eval.c:3201
#22 0x9257c in Fapply (nargs=4, args=0xefffd5a4) at eval.c:3412
#23 0x91b3c in funcall_recording_as (recorded_as=271106964, nargs=2, 
    args=0xefffd5a0) at eval.c:3144
#24 0x91ce4 in Ffuncall (nargs=3, args=0xefffd5a0) at eval.c:3201
#25 0x5df6c in Fbyte_code (bytestr=809659944, vector=1077775360, maxdepth=64)
    at bytecode.c:417
#26 0x92cd4 in funcall_lambda (fun=274738212, nargs=2, arg_vector=0xefffd758)
    at eval.c:3568
#27 0x9290c in apply_lambda (fun=274738212, numargs=2, 
    unevalled_args=1345933316) at eval.c:3496
#28 0x91858 in Feval (form=559211012) at eval.c:3055
#29 0x92604 in primitive_funcall (fn=0x90ffc <Feval>, nargs=1, args=0xefffdc84)
    at eval.c:3439
#30 0x92820 in funcall_subr (subr=0x28c334, args=0xefffdc84) at eval.c:3464
#31 0x91bcc in funcall_recording_as (recorded_as=271106868, nargs=1, 
    args=0xefffdc80) at eval.c:3161
#32 0x91ce4 in Ffuncall (nargs=2, args=0xefffdc80) at eval.c:3201
#33 0x5df6c in Fbyte_code (bytestr=809658936, vector=1080035744, maxdepth=8)
    at bytecode.c:417
#34 0x92630 in primitive_funcall (fn=0x5d828 <Fbyte_code>, nargs=3, 
    args=0xefffdf20) at eval.c:3441
#35 0x92820 in funcall_subr (subr=0x289b48, args=0xefffdf20) at eval.c:3464
#36 0x91774 in Feval (form=541323836) at eval.c:3033
#37 0x8f218 in condition_case_1 (handlers=3509248, bfun=0x90ffc <Feval>, 
    barg=541323836, hfun=0x8f288 <run_condition_case_handlers>, 
    harg=1348179204) at eval.c:1682
#38 0x8f3f8 in Fcondition_case_3 (bodyform=541323836, var=1348179204, 
    handlers=541324172) at eval.c:1745
#39 0x5e430 in Fbyte_code (bytestr=809658732, vector=1080038016, maxdepth=29)
    at bytecode.c:577
#40 0x92cd4 in funcall_lambda (fun=274738052, nargs=2, arg_vector=0xefffe58c)
    at eval.c:3568
#41 0x91c90 in funcall_recording_as (recorded_as=274738052, nargs=2, 
    args=0xefffe588) at eval.c:3177
#42 0x91ce4 in Ffuncall (nargs=3, args=0xefffe588) at eval.c:3201
#43 0x9376c in call2 (fn=1348179184, arg0=274291840, arg1=818192412)
    at eval.c:3925
#44 0x94910 in catch_them_squirmers_call2 (cons=559210940) at eval.c:4457
#45 0x8f218 in condition_case_1 (handlers=3509248, 
    bfun=0x9484c <catch_them_squirmers_call2>, barg=559210940, 
    hfun=0x93db0 <caught_a_squirmer>, harg=272181824) at eval.c:1682
#46 0x94c8c in call2_trapping_errors (
    warning_string=0x25e350 "Error in process filter", function=1348179184, 
    object1=274291840, object2=818192412) at eval.c:4521
#47 0x16201c in read_process_output (proc=274291840) at process.c:1700
#48 0xe30d8 in execute_internal_event (event=292285928) at event-stream.c:2853
#49 0xe88ac in Fdispatch_event (event=292285928) at event-stream.c:4575
#50 0x6d138 in Fcommand_loop_1 () at cmdloop.c:560
#51 0x6cd90 in command_loop_1 (dummy=1345933316) at cmdloop.c:480
#52 0x8f218 in condition_case_1 (handlers=3509248, 
    bfun=0x6ccec <command_loop_1>, barg=1345933316, hfun=0x6be78 <cmd_error>, 
    harg=1345933316) at eval.c:1682
#53 0x6bf90 in command_loop_3 () at cmdloop.c:242
#54 0x6bfb8 in command_loop_2 (dummy=1345933316) at cmdloop.c:253
#55 0x8ed70 in internal_catch (tag=1346010492, func=0x6bfac <command_loop_2>, 
    arg=1345933316, threw=0x0) at eval.c:1359
#56 0x6c448 in initial_command_loop (load_me=442284) at cmdloop.c:291
#57 0x8bb70 in xemacs_20_3_b20_sparc_sun_solaris2_5_1 (argc=1, 
    argv=0xeffff344, envp=0xeffff34c) at emacs.c:1471
#58 0x8c324 in main (argc=0, argv=0xeffff344, envp=0xeffff34c) at emacs.c:1822

any ideas?


