From xemacs-m  Mon Jan 20 01:08:08 1997
Received: from dres.elam.org (dres@cola173.scsn.net [206.25.247.173])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id BAA15058 for <xemacs-beta@xemacs.org>; Mon, 20 Jan 1997 01:07:59 -0600 (CST)
Received: (from dres@localhost)
          by dres.elam.org (8.8.4/8.8.4)
	  id CAA23010; Mon, 20 Jan 1997 02:04:35 -0500
To: xemacs-beta@xemacs.org
Subject: two repeatable crashes
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
From: James LewisMoss <dres@scsn.net>
Date: 20 Jan 1997 02:04:34 -0500
Message-ID: <hhvi8sltdp.fsf@dres.elam.org>
Lines: 306
X-Mailer: Gnus v5.2.40/XEmacs 20.0

I've got two repeatable crashes with a Debian 1.2/unstable Linux
2.0.28, libc 5.4.17 machine.  backtraces below.

-------ONE
load up the file attached below.  I tested and this was the smallest
file that I could get to exhibit the behavior.  Anything smaller
wouldn't work.  ANything larger would.

Then after loading the file make sure is in m4 mode, then do M-x
m4-m4-buffer. and here is the crash:


#0  0x402896a9 in __kill ()
#1  0x402591bd in gsignal ()
#2  0x80fe097 in signal_simple_internal_error (
    reason=0x81d73c2 "Internal error: lstream not open", obj=407219968)
    at lstream.c:286
#3  0x80fe1bb in Lstream_flush_out (lstr=0x845af00) at lstream.c:319
#4  0x80fe36d in Lstream_flush (lstr=0x845af00) at lstream.c:393
#5  0x811174d in send_process (proc=407216128, relocatable=406775296, 
    nonrelocatable=0x0, start=1, len=18229) at process.c:1854
#6  0x8111e2a in Fprocess_send_region (process=943420668, start=1, end=18230)
    at process.c:1982
#7  0x80936fd in primitive_funcall (fn=0x8111de0 <Fprocess_send_region>, 
    nargs=3, args=0xbfffed10) at eval.c:3459
#8  0x80938e8 in funcall_subr (subr=0x81ffc4c, args=0xbfffed10) at eval.c:3482
#9  0x8092e50 in funcall_recording_as (recorded_as=405739548, nargs=4, 
    args=0xbfffed0c) at eval.c:3174
#10 0x8092f43 in Ffuncall (nargs=4, args=0xbfffed0c) at eval.c:3218
#11 0x8062b66 in Fbyte_code (bytestr=943420644, vector=1212437056, maxdepth=5)
    at bytecode.c:418
#12 0x8093ce7 in funcall_lambda (fun=407302148, nargs=0, arg_vector=0xbfffee44)
    at eval.c:3592
#13 0x8092efe in funcall_recording_as (recorded_as=407302148, nargs=1, 
    args=0xbfffee40) at eval.c:3190
#14 0x8092f43 in Ffuncall (nargs=1, args=0xbfffee40) at eval.c:3218
#15 0x80945eb in apply1 (fn=407302148, arg=405635076) at eval.c:3908
#16 0x8064d76 in Fcall_interactively (function=406934252, 
    record_flag=405635100, keys=405635076) at callint.c:394
#17 0x8091c39 in Fcommand_execute (cmd=406934252, record=405635100, 
    keys=405635076) at eval.c:2595
#18 0x80936fd in primitive_funcall (fn=0x8091ac0 <Fcommand_execute>, nargs=3, 
    args=0xbfffef64) at eval.c:3459
#19 0x80938e8 in funcall_subr (subr=0x81fbc88, args=0xbfffef64) at eval.c:3482
#20 0x8092e50 in funcall_recording_as (recorded_as=405719716, nargs=3, 
    args=0xbffff15c) at eval.c:3174
#21 0x8092f43 in Ffuncall (nargs=3, args=0xbffff15c) at eval.c:3218
#22 0x8062b66 in Fbyte_code (bytestr=941717900, vector=1210153488, maxdepth=10)
    at bytecode.c:418
#23 0x8093ce7 in funcall_lambda (fun=404847408, nargs=1, arg_vector=0xbffff290)
    at eval.c:3592
#24 0x8092efe in funcall_recording_as (recorded_as=406175140, nargs=2, 
    args=0xbffff28c) at eval.c:3190
#25 0x8092f43 in Ffuncall (nargs=2, args=0xbffff28c) at eval.c:3218
#26 0x8065c0a in Fcall_interactively (function=406175140, 
    record_flag=405635076, keys=405635076) at callint.c:934
#27 0x8091c39 in Fcommand_execute (cmd=406175140, record=405635076, 
    keys=405635076) at eval.c:2595
#28 0x80a5742 in execute_command_event (command_builder=0x8319ec0, 
    event=407304312) at event-stream.c:3502
#29 0x80a68df in Fdispatch_event (event=407304312) at event-stream.c:3840
#30 0x806bd67 in Fcommand_loop_1 () at cmdloop.c:540
#31 0x806ba53 in command_loop_1 (dummy=405635076) at cmdloop.c:460
#32 0x80906c6 in condition_case_1 (handlers=405635172, 
    bfun=0x806b9e0 <command_loop_1>, barg=405635076, 
    hfun=0x806ad00 <cmd_error>, harg=405635076) at eval.c:1648
#33 0x806ade0 in command_loop_3 () at cmdloop.c:222
#34 0x806ae08 in command_loop_2 (dummy=405635076) at cmdloop.c:233
#35 0x8090289 in internal_catch (tag=405712652, 
    func=0x806ae00 <command_loop_2>, arg=405635076, threw=0x0) at eval.c:1325
#36 0x806b212 in initial_command_loop (load_me=405635076) at cmdloop.c:271
#37 0x80885d3 in main_1 (argc=3, argv=0xbffff578, envp=0xbffff588)
    at emacs.c:1452
#38 0x8088d26 in main (argc=3, argv=0xbffff578, envp=0xbffff588)
    at emacs.c:1803
#39 0x804f4ab in _start ()

----------file which causes this.

#
# Some mini-icons for the title bar, menus
#

# User might not want mini-icons

define(`MiniIcon',mini-$1.xpm)
define(`RegularIcon',$1.xpm)

ifdef(`MINI_ICONS',`define(`MiniTitleIcon',
`ifelse($1,`',`',`%MiniIcon($1)%')')',
`define(MiniTitleIcon)')

#HAVE_TITLE_ICONS gets set for Fvwm95
# Hopefully fvwm2 will integrate title icons sometime soon

ifdef(`HAVE_TITLE_ICONS',`define(`SetTitleIcon',`ifelse($2,`',`',`Style "$1" TitleIcon MiniTitleIcon($2)
')')',
`define(`SetTitleIcon')')

ifdef(`HAVE_TITLEICONS',`
Style "*"         TitleIcon "mini-x2.xpm"
Style "*xterm*"   TitleIcon "mini-term.xpm"
Style "IDL*"      TitleIcon "mini-zoom.xpm"
')

define(`SetCurrentMenu',`define(`CURRENT_ADD_TO_MENU',$1)')
SetCurrentMenu(`UndefinedLM')

define(`AddNewMenuAndButtonBar',`
ifdef(`PROVIDE_TEAROFF_BUTTON_BAR',`
*$1`'Buttons`'BUTTON_BAR_ROWS_OR_COLS 1
*$1`'ButtonsFore WINFORE_COLOR
*$1`'ButtonsBack WINBACK_COLOR
AddToMenu $1 "$1 Button Bar`'MiniTitleIcon(modules)" Module FvwmButtons $1`'Buttons
')
ifdef(`PROVIDE_TEAROFF_BIG_BUTTON_BAR',`
*$1`'BigButtons`'BUTTON_BAR_ROWS_OR_COLS 2
*$1`'BigButtonsFore WINFORE_COLOR
*$1`'BigButtonsBack WINBACK_COLOR
*$1`'BigButtonsPadding 0 0
*$1`'BigButtonsFont ifdef(`BUTTON_BARS_FONT',`BUTTON_BARS_FONT',`None')
AddToMenu $1 "$1 Big Button Bar`'MiniTitleIcon(modules)" Module FvwmButtons $1`'BigButtons
')
#At least give it a title
ifdef(`PROVIDE_TEAROFF_BIG_BUTTON_BAR',`',ifdef(`PROVIDE_TEAROFF_BUTTON_BAR',`',`
AddToMenu $1 $1 Title'))
AddToMenu $1 "" Nop
SetCurrentMenu($1)
')

# DefineProgram <menu-app-type> <program-label> <miniicon> <bigicon>
# <command-name> (only gets added if <command-name> is an executable
# program on the current system) Be cautious of using quotes in
# command-name, or elsewhere, as single quote can mess up m4, and
# double quotes can mess up the button bar as they interact with the
# quotes around FvwmButton's Action keyword parameter Consider,
# instead, backslash-escaping all spaces in an argument.  (See
# StartNonInteractiveProgramInRxvt definition, below.

changequote([[,]])
define([[Quoted]],[['$1']])
changequote(`,')

# Since we don't want the button's labels to have &'s, we need a macro
# to remove them.
define(`NoAmpersands',`translit(`$*',`&',`')')

define(`DefineProgram',`IfProgramExists(ProgramName($5),`
#FIX: not quite right
#ifelse(eval($# != 5),`0',errprint(`Not 5 args to DefineProgram for $5
#'))dnl
SetTitleIcon($2,$3)dnl
AddToMenu $1 "$2`'MiniTitleIcon($3)" Exec $5
ifdef(`PROVIDE_TEAROFF_BUTTON_BAR',`
ifelse($3,,,*$1`'Buttons(Icon MiniIcon($3), Action Quoted(`Exec "ProgramName($5)" $5')))
')
ifdef(`PROVIDE_TEAROFF_BIG_BUTTON_BAR',`
ifelse($4,,*$1`'BigButtons(Title "NoAmpersands($2)", Action Quoted(`Exec "ProgramName($5)" $5')),
`*$1`'BigButtons(Icon RegularIcon($4), Action Quoted(`Exec "ProgramName($5)" $5'))')
')
ifdef(`USE_ICONS',`
ifelse($4,,,`Style "ProgramName($5)" Icon RegularIcon($4)')')
')')

# MenuAndButtonEntry <menu>  <label> <miniicon> <bigicon> <command-name>
#                       1        2         3       4          5
# Be cautious of using quotes in command-name, or elsewhere, as single
# quote can mess up m4, and double quotes can mess up the button bar
# as they interact with the quotes around FvwmButton's Action keyword parameter
define(`MenuAndButtonEntry',`
AddToMenu $1 "$2`'MiniTitleIcon($3)" $5
ifdef(`PROVIDE_TEAROFF_BUTTON_BAR',`
ifelse($3,,,*$1`'Buttons(Icon MiniIcon($3), Action "$5"))
')
ifdef(`PROVIDE_TEAROFF_BIG_BUTTON_BAR',`
ifelse($4,,*$1`'BigButtons(Title "NoAmpersands($2)", Action "$5"),`
*$1`'BigButtons(Icon RegularIcon($4), Action "$5")')
')')

# MenuSeparator <menu>
define(`MenuSeparator',`AddToMenu $1 "" Nop')

define(`DefineProgramLM',`DefineProgram(CURRENT_ADD_TO_MENU,$@)')
define(`MenuAndButtonEntryLM',`MenuAndButtonEntry(CURRENT_ADD_TO_MENU,$@)')
define(`MenuSeparatorLM',`MenuSeparator(CURRENT_ADD_TO_MENU,$@)')

# Note: Use SetCurrentMenu(<menu name>) to make the *LM commands use
# <menu name> as the menu to add to

###########################################################################
#
# Include all the other support files
#

# Note: .fvwm2rc.buttons, .fvwm2rc.init and .fvwm2rc.defines
# are included in the main body of this file, above.

# Title button decorations and bindings
TraceForErrors(`Including_buttons...')
readFile(`buttons')

# Various complex functions
TraceForErrors(`Including_complex functions...')
readFile(`functions')

# Various mouse bindings
TraceForErrors(`Including_mouse bindings...')
readFile(`mouse')

# Various key bindings
TraceForErrors(`Including_key bindings...')
readFile(`keys')

# Creation of the menus
TraceForErrors(`Including_menus...')
readFile(`menus')

# Module settings
TraceForErrors(`Including_modules...')
readFile(`modules')

# User initialization
TraceForErrors(`Including_init...')
readFile(`init')


#divert(-1)
#undivert

###########################################################################
# Local Variables:
# rm-trailing-spaces: t
# page-delimiter: "^#####"
# End:
TraceForErrors(`Done')

--------TWO
Load this line:
(autoload 'gcl "ilisp" "Inferior GNU Common LISP." t)

then do M-x gcl: once the gcl buufer is up type '(bye)' in that buffer
and here's the backtrace.


#0  0x40289c08 in write ()
#1  0x8154d76 in sys_write_1 (fildes=11, buf=0x846cf00, nbyte=1, allow_quit=0)
    at sysdep.c:2858
#2  0x8154e06 in sys_write (fildes=11, buf=0x846cf00, nbyte=1) at sysdep.c:2882
#3  0x80ff34f in filedesc_writer (stream=0x82f6e00, 
    data=0x846cf00 "\nbye)and (load \"/usr/local/src/apps/editors/emacs/xemacs-20.0-b90/lisp/ilisp/cl-ilisp.gcl.o\" :if-does-not-exist nil) t)\n", ' ' <repeats 13 times>, "(and (load \"/usr/local/src/apps/editors/emacs/xemacs-20.0-b90/lisp/"..., size=1) at lstream.c:1009
#4  0x80fe2ce in Lstream_flush_out (lstr=0x82f6e00) at lstream.c:363
#5  0x80fe36d in Lstream_flush (lstr=0x82f6e00) at lstream.c:393
#6  0x811186d in send_process (proc=406326784, relocatable=942730408, 
    nonrelocatable=0x0, start=0, len=1) at process.c:1877
#7  0x8111ea9 in Fprocess_send_string (process=406326784, string=942730408, 
    from=405635076, to=405635076) at process.c:2008
#8  0x8093721 in primitive_funcall (fn=0x8111e40 <Fprocess_send_string>, 
    nargs=4, args=0xbfffeae0) at eval.c:3460
#9  0x80938e8 in funcall_subr (subr=0x81ffc64, args=0xbfffeae0) at eval.c:3482
#10 0x8092e50 in funcall_recording_as (recorded_as=405739572, nargs=3, 
    args=0xbfffeb88) at eval.c:3174
#11 0x8092f43 in Ffuncall (nargs=3, args=0xbfffeb88) at eval.c:3218
#12 0x8062b66 in Fbyte_code (bytestr=942730288, vector=1212542784, maxdepth=3)
    at bytecode.c:418
#13 0x8093ce7 in funcall_lambda (fun=407213444, nargs=2, arg_vector=0xbfffedbc)
    at eval.c:3592
#14 0x8092efe in funcall_recording_as (recorded_as=407215596, nargs=3, 
    args=0xbfffedb8) at eval.c:3190
#15 0x8092f43 in Ffuncall (nargs=3, args=0xbfffedb8) at eval.c:3218
#16 0x8062b66 in Fbyte_code (bytestr=942580448, vector=1212507520, maxdepth=5)
    at bytecode.c:418
#17 0x8093ce7 in funcall_lambda (fun=407261188, nargs=2, arg_vector=0xbffff168)
    at eval.c:3592
#18 0x8092efe in funcall_recording_as (recorded_as=407238948, nargs=3, 
    args=0xbffff164) at eval.c:3190
#19 0x8092f43 in Ffuncall (nargs=3, args=0xbffff164) at eval.c:3218
#20 0x8062b66 in Fbyte_code (bytestr=944401504, vector=1212786432, maxdepth=4)
    at bytecode.c:418
#21 0x8093ce7 in funcall_lambda (fun=407490212, nargs=0, arg_vector=0xbffff298)
    at eval.c:3592
#22 0x8092efe in funcall_recording_as (recorded_as=407490212, nargs=1, 
    args=0xbffff294) at eval.c:3190
#23 0x8092f43 in Ffuncall (nargs=1, args=0xbffff294) at eval.c:3218
#24 0x80945eb in apply1 (fn=407490212, arg=405635076) at eval.c:3908
#25 0x8064d76 in Fcall_interactively (function=407331132, 
    record_flag=405635076, keys=405635076) at callint.c:394
#26 0x8091c39 in Fcommand_execute (cmd=407331132, record=405635076, 
    keys=405635076) at eval.c:2595
#27 0x80a5742 in execute_command_event (command_builder=0x8319ec0, 
    event=406990196) at event-stream.c:3502
#28 0x80a68df in Fdispatch_event (event=406990196) at event-stream.c:3840
#29 0x806bd67 in Fcommand_loop_1 () at cmdloop.c:540
#30 0x806ba53 in command_loop_1 (dummy=405635076) at cmdloop.c:460
#31 0x80906c6 in condition_case_1 (handlers=405635172, 
    bfun=0x806b9e0 <command_loop_1>, barg=405635076, 
    hfun=0x806ad00 <cmd_error>, harg=405635076) at eval.c:1648
#32 0x806ade0 in command_loop_3 () at cmdloop.c:222
#33 0x806ae08 in command_loop_2 (dummy=405635076) at cmdloop.c:233
#34 0x8090289 in internal_catch (tag=405712652, 
    func=0x806ae00 <command_loop_2>, arg=405635076, threw=0x0) at eval.c:1325
#35 0x806b212 in initial_command_loop (load_me=405635076) at cmdloop.c:271
#36 0x80885d3 in main_1 (argc=3, argv=0xbffff578, envp=0xbffff588)
    at emacs.c:1452
#37 0x8088d26 in main (argc=3, argv=0xbffff578, envp=0xbffff588)
    at emacs.c:1803
#38 0x804f4ab in _start ()

