21.4.19 with gcc 4.1

Ville Skyttä scop at xemacs.org
Wed Apr 5 16:27:22 EDT 2006


On Wed, 2006-04-05 at 11:48 -0600, Jerry James wrote:

> I don't know about it being because you are on a Mac.  I've tried
> reproducing Ville's problem, too, and I just can't seem to trigger it.
> On the other hand, I'm compiling vanilla 21.4.19, and the Fedora package
> has a number of patches I haven't looked at.  I'll have to try building
> the actual RPM with -fstack-protector and see if I can trigger it.

A somewhat minimal reproducer for one of the reported crashes (also with
vanilla 21.4.19) is this in init.el:

  (require 'un-define)
  (set-default-coding-systems 'utf-8)
  (set-coding-priority-list '(utf-8))
  (set-coding-category-system 'utf-8 'utf-8)

...LANG=en_US.UTF-8 and XEmacs built with:

  export CFLAGS="-O2 -g -fstack-protector"
  ./configure --pdump --with-mule --without-wnn

And to trigger the crash, M-x manual-entry RET netstat RET

Installation and gdb and lisp backtraces for the crash attached.
-------------- next part --------------
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1".

Core was generated by `./src/xemacs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib64/libcanna.so.1...done.
Loaded symbols for /usr/lib64/libcanna.so.1
Reading symbols from /usr/lib64/libRKC.so.1...done.
Loaded symbols for /usr/lib64/libRKC.so.1
Reading symbols from /usr/lib64/libXaw.so.7...done.
Loaded symbols for /usr/lib64/libXaw.so.7
Reading symbols from /usr/lib64/libtiff.so.3...done.
Loaded symbols for /usr/lib64/libtiff.so.3
Reading symbols from /usr/lib64/libpng12.so.0...done.
Loaded symbols for /usr/lib64/libpng12.so.0
Reading symbols from /usr/lib64/libjpeg.so.62...done.
Loaded symbols for /usr/lib64/libjpeg.so.62
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /usr/lib64/libXpm.so.4...done.
Loaded symbols for /usr/lib64/libXpm.so.4
Reading symbols from /usr/lib64/libXmu.so.6...done.
Loaded symbols for /usr/lib64/libXmu.so.6
Reading symbols from /usr/lib64/libXt.so.6...done.
Loaded symbols for /usr/lib64/libXt.so.6
Reading symbols from /usr/lib64/libXext.so.6...done.
Loaded symbols for /usr/lib64/libXext.so.6
Reading symbols from /usr/lib64/libX11.so.6...done.
Loaded symbols for /usr/lib64/libX11.so.6
Reading symbols from /usr/lib64/libSM.so.6...done.
Loaded symbols for /usr/lib64/libSM.so.6
Reading symbols from /usr/lib64/libICE.so.6...done.
Loaded symbols for /usr/lib64/libICE.so.6
Reading symbols from /usr/lib64/libgpm.so.1...done.
Loaded symbols for /usr/lib64/libgpm.so.1
Reading symbols from /usr/lib64/libncurses.so.5...done.
Loaded symbols for /usr/lib64/libncurses.so.5
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libutil.so.1...done.
Loaded symbols for /lib64/libutil.so.1
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libXau.so.6...done.
Loaded symbols for /usr/lib64/libXau.so.6
Reading symbols from /usr/lib64/libXdmcp.so.6...done.
Loaded symbols for /usr/lib64/libXdmcp.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/lib64/libXcursor.so.1...done.
Loaded symbols for /usr/lib64/libXcursor.so.1
Reading symbols from /usr/lib64/libXrender.so.1...done.
Loaded symbols for /usr/lib64/libXrender.so.1
Reading symbols from /usr/lib64/libXfixes.so.3...done.
Loaded symbols for /usr/lib64/libXfixes.so.3
#0  0x000000329212fbe7 in kill () from /lib64/libc.so.6
(gdb) bt
#0  0x000000329212fbe7 in kill () from /lib64/libc.so.6
#1  0x0000000000473e7e in fatal_error_signal (sig=11) at emacs.c:642
#2  <signal handler called>
#3  0x00000000005346d4 in sys_re_search_2 (bufp=0x7ff670, str1=0x0, size1=0, 
    str2=0x46ea14 "I\017?E at 1??30H?\004I\215\034\024?35fff\220ff\220M\205?H\211??205?f\220u-H\203?020H\203;", size2=53, startpos=2528756, 
    range=4647446, regs=0x0, stop=53) at regex.c:4262
#4  0x00000000005349c3 in sys_re_search (bufp=) at regex.c:3991
#5  0x0000000000536c0c in fast_string_match (regexp=) at search.c:501
#6  0x0000000000560ef6 in x_font_spec_matches_charset (d=) at objects-x.c:930
#7  0x000000000056112d in x_find_charset_font (device=21358864, 
    font=46912498400112, charset=46912498891384) at objects-x.c:959
#8  0x000000000050f32f in font_instantiate (specifier=) at objects.c:756
#9  0x000000000047905b in call_with_suspended_errors_1 (opaque_arg=)
    at eval.c:2112
#10 0x0000000000475b8e in internal_catch (tag=) at eval.c:1318
#11 0x0000000000478d83 in call_with_suspended_errors (
    fun=0x50f0a0 <font_instantiate>, retval=46912496290280, 
    class=46912496754128, errb=) at eval.c:2205
#12 0x000000000053f52f in specifier_instance_from_inst_list (
    specifier=46912499136056, matchspec=46912498891384, domain=23424400, 
    inst_list=22992248, errb=ERROR_ME_NOT, no_quit=) at specifier.c:2510
#13 0x000000000053f830 in specifier_instance (specifier=46912499136056, 
    matchspec=46912498891384, domain=23424400, errb=ERROR_ME_NOT, no_quit=1, 
    no_fallback=0, depth=3) at specifier.c:2625
#14 0x000000000053fe46 in specifier_instance_no_quit (specifier=)
    at specifier.c:2657
#15 0x00000000004c4158 in face_property_matching_instance (face=26831504, 
    property=46912496737376, charset=46912498891384, domain=23424400, 
    errb=ERROR_ME_NOT, no_fallback=0, depth=1) at faces.c:563
#16 0x00000000004c4470 in ensure_face_cachel_contains_charset (
    cachel=0x2767a30, domain=23424400, charset=46912498891384) at faces.c:1091
#17 0x00000000004c4380 in ensure_face_cachel_contains_charset (
    cachel=0x2767f80, domain=23424400, charset=46912498891384) at faces.c:1058
#18 0x0000000000519398 in add_emchar_rune_1 (data=0x7ffffffddc50, 
    no_contribute_to_line_height=0) at redisplay.c:984
#19 0x000000000052194e in generate_display_line (w=0x1656d90, dl=0x279cbd0, 
    bounds=) at redisplay.c:2524
#20 0x0000000000522806 in regenerate_window (w=0x1656d90, start_pos=)
    at redisplay.c:5367
#21 0x00000000005259f6 in redisplay_window (window=23424400, skip_selected=)
    at redisplay.c:6301
#22 0x0000000000526975 in redisplay_frame (f=0x1656b20, preemption_check=)
    at redisplay.c:6595
#23 0x0000000000526e86 in redisplay_device (d=0x145e910, automatic=)
    at redisplay.c:6679
#24 0x000000000052735a in redisplay () at redisplay.c:6766
#25 0x00000000004b4e9a in Fsit_for (seconds=) at event-stream.c:2807
#26 0x0000000000476e57 in Ffuncall (nargs=) at eval.c:3536
#27 0x0000000000452628 in execute_optimized_program (program=)
    at bytecode.c:748
#28 0x0000000000454568 in funcall_compiled_function (fun=46912498751904, 
    nargs=1, args=0x7ffffffde308) at bytecode.c:519
#29 0x0000000000476d74 in Ffuncall (nargs=) at eval.c:3572
#30 0x0000000000455562 in Fcall_interactively (function=46912496510624, 
    record_flag=46912496754128, keys=1) at callint.c:941
#31 0x000000000047b827 in Fcommand_execute (cmd=46912496510624, 
    record_flag=46912496754128, keys=46912496754128) at eval.c:2974
#32 0x00000000004b51a8 in execute_command_event (command_builder=0x158bbe0, 
    event=21699968) at event-stream.c:3924
#33 0x00000000004b5832 in Fdispatch_event (event=21699968)
    at event-stream.c:4258
#34 0x000000000045c2cd in Fcommand_loop_1 () at cmdloop.c:583
#35 0x00000000004791d6 in condition_case_1 (handlers=) at eval.c:1652
#36 0x000000000045c500 in command_loop_2 (dummy=) at cmdloop.c:256
#37 0x0000000000475b8e in internal_catch (tag=) at eval.c:1318
#38 0x000000000045c89c in initial_command_loop (load_me=) at cmdloop.c:305
#39 0x0000000000472e2c in xemacs_21_4_19_x86_64_unknown_linux (argc=1, 
    argv=0x7ffffffdeb18, envp=) at emacs.c:2460
#40 0x0000000000473b5a in main (argc=) at emacs.c:2829
(gdb) 
-------------- next part --------------
uname -a: Linux viper.local 2.6.16-1.2080_FC5 #1 SMP Tue Mar 28 03:38:47 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

./configure  '--pdump' '--with-mule' '--without-wnn'


XEmacs 21.4.19 "Constant Variable" configured for `x86_64-unknown-linux'.


Compilation / Installation:
  Source code location:              /home/scop/cvs/xemacs/xemacs-21.4
  Installation prefix:               /usr/local
  Operating system description file: `s/linux.h'
  Not using any machine description file
  Compiler:                          gcc -O2 -g -fstack-protector
  Compiler version:                  gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
  Compiler specs file:               specs.
  Relocating allocator for buffers:  no
  GNU version of malloc:             yes
    - Using Doug Lea's new malloc from the GNU C Library.
  libc:                              glibc-2.4-4
glibc-2.4-4

Window System:
  Compiling in support for the X window system:
    - X Windows headers location:                 
    - X Windows libraries location:               /usr/lib64
    - Handling WM_COMMAND properly.
  Compiling in support for the Athena widget set:
    - Athena headers location:                    X11/Xaw
    - Athena library to link:                     Xaw
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Athena dialog boxes.

TTY:
  Compiling in support for ncurses.
  Compiling in support for GPM (General Purpose Mouse).

Images:
  Compiling in support for GIF  images (builtin).
  Compiling in support for XPM  images.
  Compiling in support for PNG  images.
  Compiling in support for JPEG images.
  Compiling in support for TIFF images.
  Compiling in support for X-Face message headers.

Sound:
  Compiling in support for sound (native).

Databases:

Internationalization:
  Compiling in support for Mule (multi-lingual Emacs).
  Compiling in support for XIM (X11R5+ I18N input method).
    - Using raw Xlib to provide XIM support.
  Compiling in support for Canna on Mule.

Mail:
  Compiling in support for "dot-locking" mail spool file locking method.

Other Features:
  Inhibiting IPv6 canonicalization at startup.
  Compiling in support for dynamic shared object modules.
  Using the new portable dumper.

-------------- next part --------------
Lisp backtrace follows:

  # (unwind-protect ...)
  # (catch #<INTERNAL OBJECT (XEmacs bug?) (opaque-ptr, adr=0x804230) 0x8369b0> ...)
  # (unwind-protect ...)
  # bind (inhibit-quit)
  # (unwind-protect ...)
  sit-for(1)
  # bind (_execute_command_keys_ _execute_command_name_ prefix-arg)
  execute-extended-command(nil)
  # bind (command-debug-status)
  call-interactively(execute-extended-command)
  # (condition-case ... . error)
  # (catch top-level ...)
Segmentation fault (core dumped)


More information about the XEmacs-Beta mailing list