From xemacs-m  Tue Sep 16 20:47:16 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 UAA20496
	for <xemacs-beta@xemacs.org>; Tue, 16 Sep 1997 20:47:15 -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 SAA29215; Tue, 16 Sep 1997 18:46:46 -0700 (PDT)
Received: (from drich@localhost) by sandman (SMI-8.6/8.6.12) id SAA20231; Tue, 16 Sep 1997 18:46:23 -0700
From: Dan Rich <drich@cisco.com>
Message-Id: <199709170146.SAA20231@sandman>
Subject: Re: gnuclient works? (and a gnuclient induced core dump!)
To: mrb@Eng.Sun.COM
Date: Tue, 16 Sep 1997 18:46:23 -0700 (PDT)
Cc: hniksic@srce.hr, drich@cisco.com, xemacs-beta@xemacs.org
In-Reply-To: <199709162150.OAA03313@xemacs.eng.sun.com> from "Martin Buchholz" at Sep 16, 97 02:50:40 pm
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> >>>>> "Hrvoje" == Hrvoje Niksic <hniksic@srce.hr> writes:
> 
> OK. Dan, could you try this completely untested patch?

Well, I could, but it will still crash. :-)

Here's the backtrace and stack:

Lisp backtrace follows:
 
  # (condition-case ... . error)
  # (unwind-protect ...)
  make-device(tty "/dev/pts/6" (terminal-type "xterm" controlling-process 19204))
  # bind (controlling-process terminal-type tty)
  make-tty-device("/dev/pts/6" "xterm" 19204)
  apply(make-tty-device ("/dev/pts/6" "xterm" 19204))
  # bind (dest-frame new-frame old-device-num quick view flags list type)
  gnuserv-edit-files((tty "/dev/pts/6" "xterm" 19204) nil)
  eval((gnuserv-edit-files (quote (tty "/dev/pts/6" "xterm" 19204)) (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 19052 state:run> "5 (gnuserv-edit-files '(tty \"/dev/pts/6\" \"xterm\" 19204) '())")
  # (condition-case ... . error)
  # bind (inhibit-quit)
  next-command-event()
  byte-code("@  BC#EeFGH                " [add-timeout startup-message-timeout #<compiled-function (from "startup.elc") (ignore) "...(10)" [nil ... ...] 3> nil timeout startup-splash-frame sit-for 0 next-command-event unread-command-event] 4)
  # (catch timeout ...)
  # (unwind-protect ...)
  # bind (timeout)
  command-line-1()
  # bind (command-line-args-left)
  command-line()
  # (unwind-protect ...)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)
 
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=0x695108 "[2~", len=3)
    at insdel.c:369
#6  0x4b1e4 in make_string (contents=0x695103 "\eO\200", length=3)
    at alloc.c:2124
#7  0x4b2e8 in build_string (str=0x695103 "\eO\200") at alloc.c:2149
#8  0xd8d3c in term_get_fkeys_1 (function_key_map=274155904)
    at redisplay-tty.c:1427
#9  0x8f218 in condition_case_1 (handlers=3509248, 
    bfun=0xd8d04 <term_get_fkeys_1>, barg=274155904, 
    hfun=0xd8cfc <term_get_fkeys_error>, harg=1345933316) at eval.c:1682
#10 0xd8cf4 in term_get_fkeys (keymap=274155904, address=0xefffa5dc)
    at redisplay-tty.c:1405
#11 0xd8bfc in init_tty_for_redisplay (d=0x661d00, terminal_type=0x364000 "")
    at redisplay-tty.c:1273
#12 0xd1458 in tty_init_device (d=0x661d00, props=543154620) at device-tty.c:94
#13 0x7c7a4 in Fmake_device (type=-268456224, connection=811959320, 
    props=543154620) at device.c:586
#14 0x92630 in primitive_funcall (fn=0x7c4b0 <Fmake_device>, nargs=3, 
    args=0xefffb234) at eval.c:3441
#15 0x92820 in funcall_subr (subr=0x28b0e4, args=0xefffb234) at eval.c:3464
#16 0x91bcc in funcall_recording_as (recorded_as=271102180, nargs=3, 
    args=0xefffb230) at eval.c:3161
#17 0x91ce4 in Ffuncall (nargs=4, args=0xefffb230) 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=0xefffb504)
    at eval.c:3568
#20 0x91c90 in funcall_recording_as (recorded_as=271265384, nargs=3, 
    args=0xefffb500) at eval.c:3177
#21 0x91ce4 in Ffuncall (nargs=4, args=0xefffb500) at eval.c:3201
#22 0x9257c in Fapply (nargs=4, args=0xefffbe4c) at eval.c:3412
#23 0x91b3c in funcall_recording_as (recorded_as=271106964, nargs=2, 
    args=0xefffbe48) at eval.c:3144
#24 0x91ce4 in Ffuncall (nargs=3, args=0xefffbe48) at eval.c:3201
#25 0x5df6c in Fbyte_code (bytestr=809659896, vector=1079141376, maxdepth=64)
    at bytecode.c:417
#26 0x92cd4 in funcall_lambda (fun=274097188, nargs=2, arg_vector=0xefffc000)
    at eval.c:3568
#27 0x9290c in apply_lambda (fun=274097188, numargs=2, 
    unevalled_args=1345933316) at eval.c:3496
#28 0x91858 in Feval (form=543154476) at eval.c:3055
#29 0x92604 in primitive_funcall (fn=0x90ffc <Feval>, nargs=1, args=0xefffc52c)
    at eval.c:3439
#30 0x92820 in funcall_subr (subr=0x28c334, args=0xefffc52c) at eval.c:3464
#31 0x91bcc in funcall_recording_as (recorded_as=271106868, nargs=1, 
    args=0xefffc528) at eval.c:3161
#32 0x91ce4 in Ffuncall (nargs=2, args=0xefffc528) at eval.c:3201
#33 0x5df6c in Fbyte_code (bytestr=809658888, vector=1080141440, maxdepth=8)
    at bytecode.c:417
#34 0x92630 in primitive_funcall (fn=0x5d828 <Fbyte_code>, nargs=3, 
    args=0xefffc7c8) at eval.c:3441
#35 0x92820 in funcall_subr (subr=0x289b48, args=0xefffc7c8) at eval.c:3464
#36 0x91774 in Feval (form=541304532) at eval.c:3033
#37 0x8f218 in condition_case_1 (handlers=3509248, bfun=0x90ffc <Feval>, 
    barg=541304532, hfun=0x8f288 <run_condition_case_handlers>, 
    harg=1348586756) at eval.c:1682
#38 0x8f3f8 in Fcondition_case_3 (bodyform=541304532, var=1348586756, 
    handlers=541301156) at eval.c:1745
#39 0x5e430 in Fbyte_code (bytestr=809658684, vector=1079545472, maxdepth=29)
    at bytecode.c:577
#40 0x92cd4 in funcall_lambda (fun=274097028, nargs=2, arg_vector=0xefffce34)
    at eval.c:3568
#41 0x91c90 in funcall_recording_as (recorded_as=274097028, nargs=2, 
    args=0xefffce30) at eval.c:3177
#42 0x91ce4 in Ffuncall (nargs=3, args=0xefffce30) at eval.c:3201
#43 0x9376c in call2 (fn=1348586736, arg0=274349184, arg1=811959272)
    at eval.c:3925
#44 0x94910 in catch_them_squirmers_call2 (cons=543154428) at eval.c:4457
#45 0x8f218 in condition_case_1 (handlers=3509248, 
    bfun=0x9484c <catch_them_squirmers_call2>, barg=543154428, 
    hfun=0x93db0 <caught_a_squirmer>, harg=272181888) at eval.c:1682
#46 0x94c8c in call2_trapping_errors (
    warning_string=0x25e350 "Error in process filter", function=1348586736, 
    object1=274349184, object2=811959272) at eval.c:4521
#47 0x16201c in read_process_output (proc=274349184) at process.c:1700
#48 0xe30d8 in execute_internal_event (event=274843344) at event-stream.c:2853
#49 0xe1918 in Fnext_command_event (event=274843344, prompt=1345933316)
    at event-stream.c:2289
#50 0x92618 in primitive_funcall (fn=0xe17a4 <Fnext_command_event>, nargs=2, 
    args=0xefffd780) at eval.c:3440
#51 0x92820 in funcall_subr (subr=0x28dfa4, args=0xefffd780) at eval.c:3464
#52 0x91bb8 in funcall_recording_as (recorded_as=271114148, nargs=0, 
    args=0xefffd958) at eval.c:3158
#53 0x91ce4 in Ffuncall (nargs=1, args=0xefffd958) at eval.c:3201
#54 0x5df6c in Fbyte_code (bytestr=808316856, vector=1076752368, maxdepth=18)
    at bytecode.c:417
#55 0x92630 in primitive_funcall (fn=0x5d828 <Fbyte_code>, nargs=3, 
    args=0xefffdbf8) at eval.c:3441
#56 0x92820 in funcall_subr (subr=0x289b48, args=0xefffdbf8) at eval.c:3464
#57 0x91774 in Feval (form=539881384) at eval.c:3033
#58 0x8ed70 in internal_catch (tag=1346027476, func=0x90ffc <Feval>, 
    arg=539881384, threw=0x0) at eval.c:1359
#59 0x5e3ec in Fbyte_code (bytestr=808316112, vector=1076751948, maxdepth=37)
    at bytecode.c:567
#60 0x92cd4 in funcall_lambda (fun=271446096, nargs=0, arg_vector=0xefffe744)
    at eval.c:3568
#61 0x91c90 in funcall_recording_as (recorded_as=271446096, nargs=0, 
    args=0xefffe740) at eval.c:3177
#62 0x91ce4 in Ffuncall (nargs=1, args=0xefffe740) at eval.c:3201
#63 0x5df6c in Fbyte_code (bytestr=808313804, vector=1076749440, maxdepth=94)
    at bytecode.c:417
#64 0x92cd4 in funcall_lambda (fun=271443276, nargs=0, arg_vector=0xefffeb74)
    at eval.c:3568
#65 0x91c90 in funcall_recording_as (recorded_as=271443276, nargs=0, 
    args=0xefffeb70) at eval.c:3177
#66 0x91ce4 in Ffuncall (nargs=1, args=0xefffeb70) at eval.c:3201
#67 0x5df6c in Fbyte_code (bytestr=808312232, vector=1076747796, maxdepth=62)
    at bytecode.c:417
#68 0x92cd4 in funcall_lambda (fun=271441760, nargs=0, arg_vector=0xefffed20)
    at eval.c:3568
#69 0x9290c in apply_lambda (fun=271441760, numargs=0, 
    unevalled_args=1345933316) at eval.c:3496
#70 0x91858 in Feval (form=541356572) at eval.c:3055
#71 0x8f218 in condition_case_1 (handlers=3509248, bfun=0x90ffc <Feval>, 
    barg=541356572, hfun=0x6be78 <cmd_error>, harg=1345933316) at eval.c:1682
#72 0x6bf04 in top_level_1 (dummy=1345933316) at cmdloop.c:192
#73 0x8ed70 in internal_catch (tag=1346010492, func=0x6becc <top_level_1>, 
    arg=1345933316, threw=0x0) at eval.c:1359
#74 0x6c010 in initial_command_loop (load_me=442060) at cmdloop.c:271
#75 0x8bb70 in xemacs_20_3_b20_sparc_sun_solaris2_5_1 (argc=1, 
    argv=0xeffff384, envp=0xeffff38c) at emacs.c:1471
#76 0x8c324 in main (argc=0, argv=0xeffff384, envp=0xeffff38c) at emacs.c:1822
(gdb) 

.

