From xemacs-m  Mon Feb  3 18:07:02 1997
Received: from atreides.mindspring.com (atreides.mindspring.com [204.180.142.236])
	by xemacs.org (8.8.5/8.8.5) with SMTP id SAA25854
	for <xemacs-beta@xemacs.org>; Mon, 3 Feb 1997 18:06:57 -0600 (CST)
Received: (qmail 9738 invoked by uid 52477); 4 Feb 1997 00:06:54 -0000
Sender: sj@atreides.mindspring.com
To: xemacs-beta@xemacs.org
Subject: 20.0 --with-mule segfaults when viewing Japanese
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII
From: Sudish Joseph <sudish@mindspring.com>
Date: 03 Feb 1997 19:06:52 -0500
Message-ID: <yviasp3digdf.fsf@atreides.mindspring.com>
Lines: 257

I've been seeing segfaults whenever I visit a group in Gnus that has
Japanese in the body and/or headers.  This happens with both 20.0-b93
and the latest 20.0.  Other than this, 20.0-b93 ran fine for 3 days.
It's reproducable with optimisation turned off.


Configuration and backtrace follow,
-Sudish

#!/bin/sh
../configure  --verbose --with-mule=yes --with-gcc --with-gnu-make 
  --cflags='-g -m486 -malign-loops=4 -malign-jumps=4 -malign-functions=4' 
  --dynamic=yes --const-is-losing=no --with-xpm --with-toolbars=no 
  --with-gif --with-jpeg --with-xim=xlib --with-dialogs=athena --debug 
  --error-checking=none --use-union-type --rel-alloc --use-system-malloc 
  --with-database=berkdb,gnudbm 2>&1 | tee runconfig.out


Configured for `i686-unknown-linux2.0.28'.

  Where should the build process find the source code?    /a/src/xemacs-20.0
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/linux.h' and `m/intel386.h'
  What compiler should XEmacs be built with?              gcc -g -m486 -malign-loops=4 -malign-jumps=4 -malign-functions=4
  Should XEmacs use the GNU version of malloc?            no
  (User chose not to use GNU allocators.)
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for Berkeley DB.
  Compiling in support for GNU DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using raw Xlib to provide XIM support.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Athena dialog boxes.
  Using the union type for Lisp_Objects.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.


Here's the backtrace dumped before death.  However, an earlier
segfault provided a much simpler backtrace, so I dunno how useful this
is.  The one i saw earlier stopped at the condition-case--that segv
was triggered on group entry, this one was triggered on article
selection. 

Lisp backtrace follows:

  sit-for(0)
  gnus-summary-recenter()
  # bind (all-header article)
  gnus-summary-display-article(2959 nil)
  # (unwind-protect ...)
  # bind (article all-headers gnus-summary-display-article-function did article pseudo force all-headers)
  gnus-summary-select-article(nil nil pseudo)
  # bind (lines)
  gnus-summary-scroll-up(1)
  # bind (command-debug-status)
  call-interactively(gnus-summary-scroll-up)
  # (condition-case ... . error)
  # (catch top-level ...)


Finally:
#0  0x401e36a9 in __kill ()
#1  0x808cce4 in fatal_error_signal (sig=11)
    at /a/src/xemacs-20.0/src/emacs.c:194
#2  0xbfffdf08 in ?? ()
#3  0x81181c1 in create_text_block (w=0x8a22250, dl=0xbfffe16c,
    bi_start_pos=2724, start_col=0, prop=0xbfffe1ec, type=1)
    at /a/src/xemacs-20.0/src/redisplay.c:2109
#4  0x811430b in generate_display_line (w=0x8a22250, dl=0xbfffe16c, bounds=1,
    start_pos=2710, start_col=0, prop=0xbfffe1ec, type=1)
    at /a/src/xemacs-20.0/src/redisplay.c:734
#5  0x811dd3b in regenerate_window (w=0x8a22250, start_pos=2710, point=1,
    type=1) at /a/src/xemacs-20.0/src/redisplay.c:4264
#6  0x811fe93 in redisplay_window (window={s = {type_mark = 1,
        val = -123592112}, gu = {type = Lisp_Record, markbit = 0,
        val = 144843344}, i = -1977473791, v = 0x8a222501, cv = 0x8a222501},
    skip_selected=1) at /a/src/xemacs-20.0/src/redisplay.c:5165
#7  0x81201ed in redisplay_windows (window={s = {type_mark = 1,
        val = -123592112}, gu = {type = Lisp_Record, markbit = 0,
        val = 144843344}, i = -1977473791, v = 0x8a222501, cv = 0x8a222501},
    skip_selected=1) at /a/src/xemacs-20.0/src/redisplay.c:5265
#8  0x811f513 in redisplay_window (window={s = {type_mark = 1,
        val = -123619880}, gu = {type = Lisp_Record, markbit = 0,
        val = 144815576}, i = -1977918079, v = 0x8a1b5d81, cv = 0x8a1b5d81},
    skip_selected=1) at /a/src/xemacs-20.0/src/redisplay.c:4936
#9  0x81201ed in redisplay_windows (window={s = {type_mark = 1,
        val = -123619880}, gu = {type = Lisp_Record, markbit = 0,
        val = 144815576}, i = -1977918079, v = 0x8a1b5d81, cv = 0x8a1b5d81},
    skip_selected=1) at /a/src/xemacs-20.0/src/redisplay.c:5265
#10 0x81204eb in redisplay_frame (f=0x84185a8, preemption_check=0)
    at /a/src/xemacs-20.0/src/redisplay.c:5386
#11 0x812082b in redisplay_device (d=0x83d8fc8)
    at /a/src/xemacs-20.0/src/redisplay.c:5465
#12 0x8120d19 in redisplay_without_hooks ()
    at /a/src/xemacs-20.0/src/redisplay.c:5577
#13 0x8120f60 in redisplay () at /a/src/xemacs-20.0/src/redisplay.c:5644
#14 0x80a32e5 in Fsit_for (seconds={s = {type_mark = 0, val = 0}, gu = {
        type = Lisp_Int, markbit = 0, val = 0}, i = 0, v = 0x0, cv = 0x0},
    nodisplay={s = {type_mark = 1, val = -131202676}, gu = {
        type = Lisp_Record, markbit = 0, val = 137232780}, i = -2099242815,
      v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/event-stream.c:2652
#15 0x80958a5 in primitive_funcall (fn=0x80a3180 <Fsit_for>, nargs=2,
    args=0xbfffe408) at /a/src/xemacs-20.0/src/eval.c:3458
#16 0x8095c70 in funcall_subr (subr=0x81f8d90, args=0xbfffe408)
    at /a/src/xemacs-20.0/src/eval.c:3482
#17 0x8094cf1 in funcall_recording_as (recorded_as={s = {type_mark = 1,
        val = -131121252}, gu = {type = Lisp_Record, markbit = 0,
        val = 137314204}, i = -2097940031, v = 0x82f3f9c1, cv = 0x82f3f9c1},
    nargs=1, args=0xbfffe670) at /a/src/xemacs-20.0/src/eval.c:3171
#18 0x8094ecb in Ffuncall (nargs=2, args=0xbfffe670)
    at /a/src/xemacs-20.0/src/eval.c:3218
#19 0x8062537 in Fbyte_code (bytestr={s = {type_mark = 3, val = -126513752},
      gu = {type = Lisp_String, markbit = 0, val = 141921704},
      i = -2024220029, v = 0x8758da83, cv = 0x8758da83}, vector={s = {
        type_mark = 4, val = -127492104}, gu = {type = Lisp_Vector,
        markbit = 0, val = 140943352}, i = -2039873660, v = 0x8669ff84,
      cv = 0x8669ff84}, maxdepth={s = {type_mark = 0, val = 5}, gu = {
        type = Lisp_Int, markbit = 0, val = 5}, i = 80, v = 0x50, cv = 0x50})
    at /a/src/xemacs-20.0/src/bytecode.c:418
#20 0x80961cb in funcall_lambda (fun={s = {type_mark = 1, val = -126555324},
      gu = {type = Lisp_Record, markbit = 0, val = 141880132},
      i = -2024885183, v = 0x874eb441, cv = 0x874eb441}, nargs=0,
    arg_vector=0xbfffea5c) at /a/src/xemacs-20.0/src/eval.c:3592
#21 0x8094d54 in funcall_recording_as (recorded_as={s = {type_mark = 1,
        val = -126508004}, gu = {type = Lisp_Record, markbit = 0,
        val = 141927452}, i = -2024128063, v = 0x875a41c1, cv = 0x875a41c1},
    nargs=0, args=0xbfffea58) at /a/src/xemacs-20.0/src/eval.c:3177
#22 0x8094ecb in Ffuncall (nargs=1, args=0xbfffea58)
    at /a/src/xemacs-20.0/src/eval.c:3218
#23 0x8062537 in Fbyte_code (bytestr={s = {type_mark = 3, val = -126415028},
      gu = {type = Lisp_String, markbit = 0, val = 142020428},
      i = -2022640445, v = 0x8770f4c3, cv = 0x8770f4c3}, vector={s = {
        type_mark = 4, val = -126321992}, gu = {type = Lisp_Vector,
        markbit = 0, val = 142113464}, i = -2021151868, v = 0x8787ab84,
      cv = 0x8787ab84}, maxdepth={s = {type_mark = 0, val = 4}, gu = {
        type = Lisp_Int, markbit = 0, val = 4}, i = 64, v = 0x40, cv = 0x40})
    at /a/src/xemacs-20.0/src/bytecode.c:418
#24 0x80961cb in funcall_lambda (fun={s = {type_mark = 1, val = -125552508},
      gu = {type = Lisp_Record, markbit = 0, val = 142882948},
      i = -2008840127, v = 0x88438841, cv = 0x88438841}, nargs=2,
    arg_vector=0xbfffef90) at /a/src/xemacs-20.0/src/eval.c:3592
#25 0x8094d54 in funcall_recording_as (recorded_as={s = {type_mark = 1,
        val = -126368604}, gu = {type = Lisp_Record, markbit = 0,
        val = 142066852}, i = -2021897663, v = 0x877c4a41, cv = 0x877c4a41},
    nargs=2, args=0xbfffef8c) at /a/src/xemacs-20.0/src/eval.c:3177
#26 0x8094ecb in Ffuncall (nargs=3, args=0xbfffef8c)
    at /a/src/xemacs-20.0/src/eval.c:3218
#27 0x8062537 in Fbyte_code (bytestr={s = {type_mark = 3, val = -126414740},
      gu = {type = Lisp_String, markbit = 0, val = 142020716},
      i = -2022635837, v = 0x877106c3, cv = 0x877106c3}, vector={s = {
        type_mark = 4, val = -126321912}, gu = {type = Lisp_Vector,
        markbit = 0, val = 142113544}, i = -2021150588, v = 0x8787b084,
      cv = 0x8787b084}, maxdepth={s = {type_mark = 0, val = 5}, gu = {
        type = Lisp_Int, markbit = 0, val = 5}, i = 80, v = 0x50, cv = 0x50})
    at /a/src/xemacs-20.0/src/bytecode.c:418
#28 0x80961cb in funcall_lambda (fun={s = {type_mark = 1, val = -125552476},
      gu = {type = Lisp_Record, markbit = 0, val = 142882980},
      i = -2008839615, v = 0x88438a41, cv = 0x88438a41}, nargs=3,
    arg_vector=0xbffff3d4) at /a/src/xemacs-20.0/src/eval.c:3592
#29 0x8094d54 in funcall_recording_as (recorded_as={s = {type_mark = 1,
        val = -129013868}, gu = {type = Lisp_Record, markbit = 0,
        val = 139421588}, i = -2064221887, v = 0x84f67941, cv = 0x84f67941},
    nargs=3, args=0xbffff3d0) at /a/src/xemacs-20.0/src/eval.c:3177
#30 0x8094ecb in Ffuncall (nargs=4, args=0xbffff3d0)
    at /a/src/xemacs-20.0/src/eval.c:3218
#31 0x8062537 in Fbyte_code (bytestr={s = {type_mark = 3, val = -125880604},
      gu = {type = Lisp_String, markbit = 0, val = 142554852},
      i = -2014089661, v = 0x87f36e43, cv = 0x87f36e43}, vector={s = {
        type_mark = 4, val = -126312656}, gu = {type = Lisp_Vector,
        markbit = 0, val = 142122800}, i = -2021002492, v = 0x8789f304,
      cv = 0x8789f304}, maxdepth={s = {type_mark = 0, val = 4}, gu = {
        type = Lisp_Int, markbit = 0, val = 4}, i = 64, v = 0x40, cv = 0x40})
    at /a/src/xemacs-20.0/src/bytecode.c:418
#32 0x80961cb in funcall_lambda (fun={s = {type_mark = 1, val = -125552188},
      gu = {type = Lisp_Record, markbit = 0, val = 142883268},
      i = -2008835007, v = 0x88439c41, cv = 0x88439c41}, nargs=1,
    arg_vector=0xbffff6a8) at /a/src/xemacs-20.0/src/eval.c:3592
#33 0x8094d54 in funcall_recording_as (recorded_as={s = {type_mark = 1,
        val = -125655524}, gu = {type = Lisp_Record, markbit = 0,
        val = 142779932}, i = -2010488383, v = 0x882a61c1, cv = 0x882a61c1},
    nargs=1, args=0xbffff6a4) at /a/src/xemacs-20.0/src/eval.c:3177
#34 0x8094ecb in Ffuncall (nargs=2, args=0xbffff6a4)
    at /a/src/xemacs-20.0/src/eval.c:3218
#35 0x806874e in Fcall_interactively (function={s = {type_mark = 1,
        val = -125655524}, gu = {type = Lisp_Record, markbit = 0,
        val = 142779932}, i = -2010488383, v = 0x882a61c1, cv = 0x882a61c1},
    record_flag={s = {type_mark = 1, val = -131202676}, gu = {
        type = Lisp_Record, markbit = 0, val = 137232780}, i = -2099242815,
      v = 0x82e018c1, cv = 0x82e018c1}, keys={s = {type_mark = 1,
        val = -131202676}, gu = {type = Lisp_Record, markbit = 0,
        val = 137232780}, i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/callint.c:934
#36 0x809389c in Fcommand_execute (cmd={s = {type_mark = 1, val = -125655524},
      gu = {type = Lisp_Record, markbit = 0, val = 142779932},
      i = -2010488383, v = 0x882a61c1, cv = 0x882a61c1}, record={s = {
        type_mark = 1, val = -131202676}, gu = {type = Lisp_Record,
        markbit = 0, val = 137232780}, i = -2099242815, v = 0x82e018c1,
      cv = 0x82e018c1}, keys={s = {type_mark = 1, val = -131202676}, gu = {
        type = Lisp_Record, markbit = 0, val = 137232780}, i = -2099242815,
      v = 0x82e018c1, cv = 0x82e018c1}) at /a/src/xemacs-20.0/src/eval.c:2595
#37 0x80a4cde in execute_command_event (command_builder=0x83d88e8, event={s = {
        type_mark = 1, val = -128252868}, gu = {type = Lisp_Record,
        markbit = 0, val = 140182588}, i = -2052045887, v = 0x85b043c1,
      cv = 0x85b043c1}) at /a/src/xemacs-20.0/src/event-stream.c:3554
#38 0x80a53ad in Fdispatch_event (event={s = {type_mark = 1,
        val = -128252868}, gu = {type = Lisp_Record, markbit = 0,
        val = 140182588}, i = -2052045887, v = 0x85b043c1, cv = 0x85b043c1})
    at /a/src/xemacs-20.0/src/event-stream.c:3847
#39 0x8070971 in Fcommand_loop_1 () at /a/src/xemacs-20.0/src/cmdloop.c:540
#40 0x807072e in command_loop_1 (dummy={s = {type_mark = 1, val = -131202676},
      gu = {type = Lisp_Record, markbit = 0, val = 137232780},
      i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/cmdloop.c:460
#41 0x8091cfd in condition_case_1 (handlers={s = {type_mark = 1,
        val = -131202580}, gu = {type = Lisp_Record, markbit = 0,
        val = 137232876}, i = -2099241279, v = 0x82e01ec1, cv = 0x82e01ec1},
    bfun=0x8070710 <command_loop_1>, barg={s = {type_mark = 1,
        val = -131202676}, gu = {type = Lisp_Record, markbit = 0,
        val = 137232780}, i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1},
    hfun=0x806ff00 <cmd_error>, harg={s = {type_mark = 1, val = -131202676},
      gu = {type = Lisp_Record, markbit = 0, val = 137232780},
      i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/eval.c:1648
#42 0x807004f in command_loop_3 () at /a/src/xemacs-20.0/src/cmdloop.c:222
#43 0x807008c in command_loop_2 (dummy={s = {type_mark = 1, val = -131202676},
      gu = {type = Lisp_Record, markbit = 0, val = 137232780},
      i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/cmdloop.c:233
#44 0x809183d in internal_catch (tag={s = {type_mark = 1, val = -131128836},
      gu = {type = Lisp_Record, markbit = 0, val = 137306620},
      i = -2098061375, v = 0x82f21fc1, cv = 0x82f21fc1},
    func=0x8070080 <command_loop_2>, arg={s = {type_mark = 1,
        val = -131202676}, gu = {type = Lisp_Record, markbit = 0,
        val = 137232780}, i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1},
    threw=0x0) at /a/src/xemacs-20.0/src/eval.c:1325
#45 0x80702ce in initial_command_loop (load_me={s = {type_mark = 1,
        val = -131202676}, gu = {type = Lisp_Record, markbit = 0,
        val = 137232780}, i = -2099242815, v = 0x82e018c1, cv = 0x82e018c1})
    at /a/src/xemacs-20.0/src/cmdloop.c:271
#46 0x808de72 in main_1 (argc=1, argv=0xbffffa80, envp=0xbffffa88)
    at /a/src/xemacs-20.0/src/emacs.c:1452
#47 0x808eaad in main (argc=1, argv=0xbffffa80, envp=0xbffffa88)
    at /a/src/xemacs-20.0/src/emacs.c:1803
#48 0x804eabb in _start ()

