From xemacs-m  Tue May 13 10:14:21 1997
Received: from pitbull.aesop.de (pitbull.aesop.de [193.30.116.23])
	by xemacs.org (8.8.5/8.8.5) with SMTP id KAA19821
	for <xemacs-beta@xemacs.org>; Tue, 13 May 1997 10:13:56 -0500 (CDT)
Received: from pitbull (localhost [127.0.0.1]) by pitbull.aesop.de (8.6.9/8.6.9) with SMTP id RAA24798; Tue, 13 May 1997 17:14:25 +0200
Sender: michaelg@aesop.de
Message-ID: <33788551.41C6@aesop.de>
Date: Tue, 13 May 1997 17:14:25 +0200
From: Michael Guenther <mguenther@aesop.de>
Organization: AESOP GmbH
X-Mailer: Mozilla 3.0 (X11; I; AIX 1)
MIME-Version: 1.0
To: xemacs-beta@xemacs.org
CC: michaelg@igor.stuttgart.netsurf.de
Subject: 20.2b6 build sucess/failure on AIX 4.1.3
Content-Type: multipart/mixed; boundary="------------167E2781446B"

This is a multi-part message in MIME format.

--------------167E2781446B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

XEmacs compiled with GCC 2.7.2.1 or with the system compiler
appears to work, provided the GNU version of malloc is not used.

If GNU malloc is used, XEmacs crashes when you start it
with "xemacs -q -no-site-file" and do this:

1. Start VM by pressing the Mail button in the tool bar
2. Leave VM via the Quit button
3. Start VM again by pressing the Mail button

I attached the output of the crashing XEmacs and
a stack backtrace. Now, is this a GNU malloc bug or
is the system malloc only more robust?

-- Michael Guenther

--------------167E2781446B
Content-Type: text/plain; charset=us-ascii; name="Installation"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Installation"

./configure  '--with-mule' '--with-xim' '--with-canna' '--canna-includes=/usr/local/canna/include' '--canna-libraries=/usr/local/lib'


Configured for `powerpc-ibm-aix4.1.3.0'.

  Where should the build process find the source code?    /home/pitbull/michaelg/src/xemacs-20.2-b6
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/aix4-1.h' and `m/ibmrs6000.h'
  What compiler should XEmacs be built with?              gcc  -g -O 
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Compiling in support for XPM.
  Compiling in support for GIF image conversion.
  Compiling in support for DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using Motif to provide XIM support.
  Compiling in support for Canna on Mule.
  Compiling in support for CDE.
  Compiling in support for ToolTalk.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.


./configure  '--with-mule' '--with-xim' '--with-canna' '--canna-includes=/usr/local/canna/include' '--canna-libraries=/usr/local/lib' '--with-gcc=no' '--cflags=-O3 -qstrict' '--use-system-malloc'


Configured for `powerpc-ibm-aix4.1.3.0'.

  Where should the build process find the source code?    /home/pitbull/michaelg/src/xemacs-20.2-b6
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/aix4-1.h' and `m/ibmrs6000.h'
  What compiler should XEmacs be built with?              cc -O3 -qstrict
  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
  Compiling in support for XPM.
  Compiling in support for GIF image conversion.
  Compiling in support for DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using Motif to provide XIM support.
  Compiling in support for Canna on Mule.
  Compiling in support for CDE.
  Compiling in support for ToolTalk.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.


--------------167E2781446B
Content-Type: text/plain; charset=us-ascii; name="stack-backtrace"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="stack-backtrace"

Program terminated with signal 11, Segmentation fault.
#0  0x1009388c in malloc (size=0) at gmalloc.c:596
596               next->prev->next = next->next;
(gdb) where
#0  0x1009388c in malloc (size=0) at gmalloc.c:596
#1  0x10094820 in realloc (ptr=0x203d1e00, size=64) at gmalloc.c:1218
#2  0x10003230 in xrealloc (block=0x20404900, size=64) at alloc.c:397
#3  0x1003a67c in Lstream_adding (lstr=0x20201e00, num=43, force=0)
    at lstream.c:421
#4  0x1003a798 in Lstream_write_1 (lstr=0x20201e00, data=0x40, size=43)
    at lstream.c:454
#5  0x1003a904 in Lstream_write (lstr=0x20201e00, data=0x40, size=43)
    at lstream.c:509
#6  0x100362dc in output_string (function=270540288, nonreloc=0x0, 
    reloc=807383200, offset=0, len=43) at print.c:178
#7  0x10038178 in print_internal (obj=807383200, printcharfun=270540288, 
    escapeflag=538947744) at print.c:934
#8  0x1003702c in Fprin1 (object=807383200, stream=1344082504) at print.c:509
#9  0x10018264 in Fbacktrace (stream=1344082504, detailed=1343983640)
    at eval.c:4985
#10 0x100002f0 in fatal_error_signal (sig=11) at emacs.c:184
#11 <signal handler called>
#12 0x1009388c in malloc (size=1610616973) at gmalloc.c:596
#13 0x103072f8 in copy_scrollbar_values (val=0x203330c0, copy=0x2032c6c0)
    at lwlib.c:197
#14 0x10307678 in copy_widget_value_tree (val=0x203330c0, 
    change=STRUCTURAL_CHANGE) at lwlib.c:281
#15 0x1030765c in copy_widget_value_tree (val=0x20333e00, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#16 0x1030765c in copy_widget_value_tree (val=0x20333e40, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#17 0x10307644 in copy_widget_value_tree (val=0x20333ec0, 
    change=STRUCTURAL_CHANGE) at lwlib.c:275
#18 0x1030765c in copy_widget_value_tree (val=0x20333ac0, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#19 0x1030765c in copy_widget_value_tree (val=0x20333c80, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#20 0x1030765c in copy_widget_value_tree (val=0x2032c580, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#21 0x1030765c in copy_widget_value_tree (val=0x20333e80, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#22 0x1030765c in copy_widget_value_tree (val=0x2032c340, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#23 0x1030765c in copy_widget_value_tree (val=0x203d0700, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#24 0x1030765c in copy_widget_value_tree (val=0x20403980, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#25 0x1030765c in copy_widget_value_tree (val=0x2032c640, 
    change=STRUCTURAL_CHANGE) at lwlib.c:277
#26 0x10307644 in copy_widget_value_tree (val=0x20333580, 
    change=STRUCTURAL_CHANGE) at lwlib.c:275
#27 0x1030781c in allocate_widget_info (type=0x104b1cd8 "menubar", 
    name=0x104b1cd8 "menubar", id=65545, val=0x20333580, 
    pre_activate_cb=0x2016028c <__dbargs+42892>, 
    selection_cb=0x20160298 <__dbargs+42904>, post_activate_cb=0)
    at lwlib.c:315
#28 0x10308c90 in lw_register_widget (type=0x104b1cd8 "menubar", 
    name=0x104b1cd8 "menubar", id=65545, val=0x20333580, 
    pre_activate_cb=0x2016028c <__dbargs+42892>, 
    selection_cb=0x20160298 <__dbargs+42904>, post_activate_cb=0)
    at lwlib.c:888
#29 0x10308e38 in lw_create_widget (
    type=0x20404900 <Address 0x20404900 out of bounds>, name=0x40 "", 
    id=65545, val=0x8fa681c8, parent=0x2042f500, pop_up_p=29 '\035', 
    pre_activate_cb=0, selection_cb=0x81c00921 <bias+1638196265>, 
    post_activate_cb=0) at lwlib.c:927
---Type <return> to continue, or q <return> to quit---
#30 0x103e5a18 in set_frame_menubar (f=0x2042f300, deep_p=1, first_time_p=1)
    at menubar-x.c:556
#31 0x103e5af4 in x_initialize_frame_menubar (f=0x20404900) at menubar-x.c:582
#32 0x10303e04 in x_create_widgets (f=0x2042f300, lisp_window_id=1343983620, 
    parent=1343983620) at frame-x.c:1746
#33 0x103043e0 in x_init_frame_1 (f=0x2042f300, props=1343983620)
    at frame-x.c:1946
#34 0x10022154 in Fmake_frame (props=1343983620, device=270509312)
    at frame.c:424
#35 0x1001417c in primitive_funcall (fn=0x981aa81, nargs=64, args=0x20404900)
    at eval.c:3462
#36 0x10014414 in funcall_subr (subr=0x0, args=0x0) at eval.c:3486
#37 0x100136f8 in funcall_recording_as (recorded_as=541083904, nargs=1, 
    args=0x2ff1f9f4) at eval.c:3175
#38 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#39 0x10411608 in Fbyte_code (bytestr=807383128, vector=1077535040, 
    maxdepth=1344842532) at bytecode.c:418
#40 0x100148b8 in funcall_lambda (fun=270751332, nargs=2, 
    arg_vector=0x2ff1fbe4) at eval.c:3596
#41 0x100137b8 in funcall_recording_as (recorded_as=541083904, nargs=2, 
    args=0x2ff1fbe0) at eval.c:3194
#42 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#43 0x10014040 in Fapply (nargs=2, args=0x2ff1fe04) at eval.c:3434
#44 0x10013680 in funcall_recording_as (recorded_as=541083904, nargs=2, 
    args=0x2ff1fe00) at eval.c:3161
#45 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#46 0x10411608 in Fbyte_code (bytestr=807406796, vector=1077225600, 
    maxdepth=1346314016) at bytecode.c:418
#47 0x100148b8 in funcall_lambda (fun=270751396, nargs=2, 
    arg_vector=0x2ff1fff4) at eval.c:3596
#48 0x100137b8 in funcall_recording_as (recorded_as=541083904, nargs=2, 
    args=0x2ff1fff0) at eval.c:3194
#49 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#50 0x10014040 in Fapply (nargs=2, args=0x2ff20b84) at eval.c:3434
#51 0x10013680 in funcall_recording_as (recorded_as=541083904, nargs=2, 
    args=0x2ff20b80) at eval.c:3161
#52 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#53 0x10411608 in Fbyte_code (bytestr=807383200, vector=1076320256, 
    maxdepth=1345040828) at bytecode.c:418
#54 0x100141a8 in primitive_funcall (fn=0x981aa81, nargs=64, args=0x20404900)
    at eval.c:3463
#55 0x10014414 in funcall_subr (subr=0x0, args=0x0) at eval.c:3486
#56 0x100132e4 in Feval (form=538869220) at eval.c:3037
#57 0x1000fddc in internal_catch (tag=541083904, 
    func=0x20155d80 <__dbargs+640>, arg=538869220, threw=0x0) at eval.c:1334
#58 0x10411a80 in Fbyte_code (bytestr=807383296, vector=1076578752, 
    maxdepth=538869220) at bytecode.c:568
#59 0x100148b8 in funcall_lambda (fun=270749700, nargs=0, 
    arg_vector=0x2ff211e4) at eval.c:3596
#60 0x100137b8 in funcall_recording_as (recorded_as=541083904, nargs=0, 
    args=0x2ff211e0) at eval.c:3194
#61 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#62 0x10411608 in Fbyte_code (bytestr=806026740, vector=1074462236, 
    maxdepth=539552452) at bytecode.c:418
#63 0x100148b8 in funcall_lambda (fun=269155928, nargs=0, 
    arg_vector=0x2ff21414) at eval.c:3596
#64 0x100137b8 in funcall_recording_as (recorded_as=541083904, nargs=0, 
    args=0x2ff21410) at eval.c:3194
#65 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#66 0x100152ec in apply1 (fn=269155928, arg=541083904) at eval.c:3912
#67 0x103f53d4 in Fcall_interactively (function=1344726536, 
    record_flag=1343983620, keys=1343983620) at callint.c:394
---Type <return> to continue, or q <return> to quit---
#68 0x100141a8 in primitive_funcall (fn=0x981aa81, nargs=64, args=0x20404900)
    at eval.c:3463
#69 0x10014414 in funcall_subr (subr=0x0, args=0x0) at eval.c:3486
#70 0x100136f8 in funcall_recording_as (recorded_as=541083904, nargs=1, 
    args=0x2ff21768) at eval.c:3175
#71 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#72 0x10411608 in Fbyte_code (bytestr=805880664, vector=1074316240, 
    maxdepth=1344094432) at bytecode.c:418
#73 0x100148b8 in funcall_lambda (fun=269009984, nargs=1, 
    arg_vector=0x2ff2195c) at eval.c:3596
#74 0x100137b8 in funcall_recording_as (recorded_as=541083904, nargs=1, 
    args=0x2ff21958) at eval.c:3194
#75 0x10013850 in Ffuncall (nargs=0, args=0x0) at eval.c:3222
#76 0x103f6110 in Fcall_interactively (function=1345122020, 
    record_flag=1343983620, keys=1343983620) at callint.c:934
#77 0x10012470 in Fcommand_execute (cmd=1345122020, record=1343983620, 
    keys=1343983620) at eval.c:2603
#78 0x1014e848 in execute_command_event (command_builder=0x201ef580, 
    event=271882360) at event-stream.c:3596
#79 0x1014ef14 in Fdispatch_event (event=271882360) at event-stream.c:3889
#80 0x103f48a8 in Fcommand_loop_1 () at cmdloop.c:560
#81 0x103f4674 in command_loop_1 (dummy=541083904) at cmdloop.c:480
#82 0x100103fc in condition_case_1 (handlers=0, 
    bfun=0x20160634 <__dbargs+43828>, barg=1343983620, 
    hfun=0x20160628 <__dbargs+43816>, harg=1343983620) at eval.c:1657
#83 0x103f3edc in command_loop_3 () at cmdloop.c:242
#84 0x103f3f30 in command_loop_2 (dummy=541083904) at cmdloop.c:253
#85 0x1000fddc in internal_catch (tag=541083904, 
    func=0x2016064c <__dbargs+43852>, arg=1343983620, threw=0x0) at eval.c:1334
#86 0x103f418c in initial_command_loop (load_me=64) at cmdloop.c:291
#87 0x10001978 in xemacs_20_2_beta6 (argc=3, argv=0x2ff220dc, envp=0x0)
    at emacs.c:1461
#88 0x100022ec in main (argc=3, argv=0x2ff220dc, envp=0x2ff220ec)
    at emacs.c:1812
#89 0x100001f8 in __start ()


--------------167E2781446B
Content-Type: text/plain; charset=us-ascii; name="xemacs-output"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="xemacs-output"

Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.

Please report this bug by running the send-pr script included
with XEmacs, or selecting `Send Bug Report' from the help menu.
As a last resort send ordinary email to `crashes@xemacs.org'.
*MAKE SURE* to include as much configuration information as
possible; at the very least what OS and hardware you are running
on, and hopefully also what compiler and compiler options the
binary was compiled with, what options XEmacs was compiled with,
whether you are using a prebuilt binary from ftp.xemacs.org or
compiled XEmacs yourself for your system, etc.

If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started XEmacs, or maybe in your home
directory), and type

  gdb /home/pitbull/michaelg/src/xemacs-20.2-b6/src/xemacs core

then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB.  A similar procedure should work for all of
these.  Ask your system administrator if you need more help.)

Lisp backtrace follows:

  # bind (frame-being-created)
  make-frame(nil)
  # bind (params types)
  vm-goto-new-frame(primary-folder folder)
  apply(vm-goto-new-frame (primary-folder folder))
  # bind (w types)
  vm-goto-new-folder-frame-maybe(primary-folder folder)
  apply(vm-goto-new-folder-frame-maybe (primary-folder folder))
  # bind (full-startup folder-buffer first-time totals-blurb preserve-auto-save-
file)
  byte-code(Segmentation fault (core dumped)

--------------167E2781446B--

