From xemacs-m  Sun Jan 12 21:50:07 1997
Received: from dres.elam.org (dres@cola58.scsn.net [206.25.247.58])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id VAA02929 for <xemacs-beta@xemacs.org>; Sun, 12 Jan 1997 21:50:00 -0600 (CST)
Received: (from dres@localhost)
          by dres.elam.org (8.8.4/8.8.4)
	  id WAA04231; Sun, 12 Jan 1997 22:46:44 -0500
To: xemacs-beta@xemacs.org
Subject: core dump linux 2.0.27 xemacs 20.0b90
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
From: James LewisMoss <dres@scsn.net>
Date: 12 Jan 1997 22:46:44 -0500
Message-ID: <hhsp46me3f.fsf@dres.elam.org>
Lines: 210
X-Mailer: Gnus v5.2.40/XEmacs 20.0

backtrace is minimalist.  didn't compile with debugging.  If you need
more info I'll recompile and repreat.  This is a repeatable coredump.

jim

comes from having a bad def of m4-program pointing to /usr/local/bin/m4
rather than /usr/bin/m4.  When that is fixed no crash.


Lisp backtrace follows:

  process-send-region("m4process" 1 20348)
  #<compiled-function (from "m4-mode.elc") nil "...(21)" [start-process "m4process" "*m4 output*" m4-program "-e" process-send-region process-send-eof switch-to-buffer] 5 ("/usr/local/lib/xemacs-20.0-b90/lisp/modes/m4-mode.elc" . 2451) nil>()
  call-interactively(m4-m4-buffer)
  command-execute(m4-m4-buffer t)
  # bind (prefix-arg)
  execute-extended-command(nil)
  # bind (command-debug-status)
  call-interactively(execute-extended-command)
  # (condition-case ... . error)
  # (catch top-level ...)
IOT trap/Abort (core dumped)

#0  0x402896a9 in __kill ()
#1  0x80847c9 in fatal_error_signal ()
#2  0xbfffe858 in ?? ()
#3  0x402591bd in gsignal ()
#4  0x80f6b77 in signal_simple_internal_error ()
#5  0x80f6c9b in Lstream_flush_out ()
#6  0x80f6e3d in Lstream_flush ()
#7  0x810935d in send_process ()
#8  0x8109a39 in Fprocess_send_region ()
#9  0x808fe9d in primitive_funcall ()
#10 0x8090088 in funcall_subr ()
#11 0x808f680 in funcall_recording_as ()
#12 0x808f763 in Ffuncall ()
#13 0x8061ac6 in Fbyte_code ()
#14 0x8090478 in funcall_lambda ()
#15 0x808f71e in funcall_recording_as ()
#16 0x808f763 in Ffuncall ()
#17 0x8090cbb in apply1 ()
#18 0x8063b30 in Fcall_interactively ()
#19 0x808e59c in Fcommand_execute ()
#20 0x808fe9d in primitive_funcall ()
#21 0x8090088 in funcall_subr ()
#22 0x808f680 in funcall_recording_as ()
#23 0x808f763 in Ffuncall ()
#24 0x8061ac6 in Fbyte_code ()
#25 0x8090478 in funcall_lambda ()
#26 0x808f71e in funcall_recording_as ()
#27 0x808f763 in Ffuncall ()
#28 0x806492c in Fcall_interactively ()
#29 0x808e59c in Fcommand_execute ()
#30 0x80a16d2 in execute_command_event ()
#31 0x80a283b in Fdispatch_event ()
#32 0x806a2a3 in Fcommand_loop_1 ()
#33 0x8069f93 in command_loop_1 ()
#34 0x808d1b6 in condition_case_1 ()
#35 0x8069330 in command_loop_3 ()
#36 0x8069358 in command_loop_2 ()
#37 0x808cda9 in internal_catch ()
#38 0x8069762 in initial_command_loop ()
#39 0x8085555 in main_1 ()
#40 0x8085c56 in main ()
#41 0x804f4ab in _start ()

-------------
This is the file fragment that did it.  I cut it down to the point where
anything smaller didn't do it.  (For infos sake this is one of the m4
files for 'TheNextGeneration' desktop for fvwm95 distributed with RedHat 4.0)

---------

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')
-----------------


-- 
@James LewisMoss                 | moss@cs.sc.edu | Blessed Be!
@    http://www.cs.sc.edu/~moss  | dres@scsn.net  | Linux is cool!
@"Argue for your limitations and sure enough, they're yours." Bach

