Crash in string-match (take 2)

Adam Sjøgren asjo at koldfront.dk
Sat Nov 14 06:25:45 EST 2009


  Hi.


I tried reporting this crash yesterday via M-x report-xemacs-bug and
today via gmane.org, neither seem to have gone through - I guess the
problem is the control chars in my bugreport, so I will elide them this
time and refer to this URL instead:

 * http://koldfront.dk/misc/xemacs/string-match-crash.txt

                                 o o o

While entering a newsgroup in Gnus, I got a crash in gnus-util.el -
gnus-extract-address-components - where it goes "(string-match (concat
"[ \t]*<" (regexp-quote address) ">") from)".

This line reproduces the problem:

  (string-match "[ 	]*<ELIDED" "ELIDED")

The crash I get from evaluating that line is:

  Fatal error: assertion failed, file regex.c, line 6357, ABORT()

  Fatal error (6).

  Your files have been auto-saved.
  Use `M-x recover-session' to recover them.

  Your version of XEmacs was distributed with a PROBLEMS file that may describe
  your crash, and with luck a workaround.  Please check it first, but do report
  the crash anyway.

  Please report this bug by invoking M-x report-emacs-bug, or by selecting
  `Send Bug Report' from the Help menu.  If that won't work, send ordinary
  email to `xemacs-beta at xemacs.org'.  *MAKE SURE* to include this entire
  output from this crash, especially including the Lisp backtrace, as well as
  the XEmacs configuration from M-x describe-installation (or equivalently,
  the file `Installation' in the top of the build tree).

  *Please* try *hard* to obtain a C stack backtrace; without it, we are unlikely
  to be able to analyze the problem.  Locate the core file produced as a result
  of this crash (often called `core' or `core.<process-id>', and located in
  the directory in which you started XEmacs or your home directory), and type

    gdb /usr/bin/xemacs core

  then type `where' at the debugger prompt.  No GDB on your system?  You may
  have DBX, or XDB, or SDB.  (Ask your system administrator if you need help.)
  If no core file was produced, enable them (often with `ulimit -c unlimited')
  in case of future recurrance of the crash.

  Lisp backtrace follows:

    # (unwind-protect ...)
    # (unwind-protect ...)
    # (unwind-protect ...)
    # (unwind-protect ...)
    # (unwind-protect ...)
    # (unwind-protect ...)
    # (unwind-protect ...)
    string-match("[ 	]*<ELIDED" "ELIDED")
    eval((string-match "[ 	]*<ELIDED" "ELIDED"))
    # (unwind-protect ...)
    # (unwind-protect ...)
    # bind (expr)
    eval-interactive((string-match "[ 	]*<ELIDED" "ELIDED"))
    # bind (standard-output opoint ignore-quotes eval-last-sexp-arg-internal)
    eval-last-sexp(nil)
    # bind (command-debug-status)
    call-interactively(eval-last-sexp)
    # (condition-case ... . error)
    # (catch top-level ...)

  Aborted (core dumped)
  $ gdb /usr/bin/xemacs core
  GNU gdb (GDB) 7.0-debian
  Copyright (C) 2009 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "x86_64-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /usr/bin/xemacs...(no debugging symbols found)...done.

  warning: Can't read pathname for load map: Input/output error.
  Reading symbols from /usr/lib/libXft.so.2...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXft.so.2
  Reading symbols from /usr/lib/libXaw.so.7...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXaw.so.7
  Reading symbols from /usr/lib/libtiff.so.4...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libtiff.so.4
  Reading symbols from /usr/lib/libpng12.so.0...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libpng12.so.0
  Reading symbols from /usr/lib/libjpeg.so.62...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libjpeg.so.62
  Reading symbols from /usr/lib/libgif.so.4...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libgif.so.4
  Reading symbols from /usr/lib/libcompface.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libcompface.so.1
  Reading symbols from /usr/lib/libXpm.so.4...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXpm.so.4
  Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libfontconfig.so.1
  Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXrender.so.1
  Reading symbols from /usr/lib/libXmu.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXmu.so.6
  Reading symbols from /usr/lib/libXt.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXt.so.6
  Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXext.so.6
  Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libX11.so.6
  Reading symbols from /usr/lib/libSM.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libSM.so.6
  Reading symbols from /usr/lib/libICE.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libICE.so.6
  Reading symbols from /usr/lib/libdb-4.8.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libdb-4.8.so
  Reading symbols from /usr/lib/libgpm.so.2...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libgpm.so.2
  Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
  Loaded symbols for /lib/libncurses.so.5
  Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/libm.so.6
  Reading symbols from /lib/libutil.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libutil.so.1
  Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/libc.so.6
  Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libdl.so.2
  Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libfreetype.so.6
  Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libz.so.1
  Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libexpat.so.1
  Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXau.so.6
  Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libxcb.so.1
  Reading symbols from /lib/libuuid.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libuuid.so.1
  Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
  Loaded symbols for /lib/libpthread.so.0
  Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib64/ld-linux-x86-64.so.2
  Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXdmcp.so.6
  Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libnss_files.so.2
  Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libnss_compat.so.2
  Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libnsl.so.1
  Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libnss_nis.so.2
  Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXcursor.so.1
  Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libXfixes.so.3
  Core was generated by `xemacs -no-init-file -vanilla'.
  Program terminated with signal 6, Aborted.
  #0  0x00007feaa8a2c207 in kill () from /lib/libc.so.6
  (gdb) where
  #0  0x00007feaa8a2c207 in kill () from /lib/libc.so.6
  #1  0x00000000004927a7 in fatal_error_signal ()
  #2  <signal handler called>
  #3  0x00007feaa8a2bf25 in raise () from /lib/libc.so.6
  #4  0x00007feaa8a2ed60 in abort () from /lib/libc.so.6
  #5  0x0000000000492507 in assert_failed ()
  #6  0x000000000056b65c in ?? ()
  #7  0x0000000000570b3e in sys_re_search_2 ()
  #8  0x00000000005715e1 in sys_re_search ()
  #9  0x000000000057a45f in ?? ()
  #10 0x000000000049d41b in Feval ()
  #11 0x000000000049e0db in Ffuncall ()
  #12 0x000000000046d570 in execute_optimized_program ()
  #13 0x000000000049b0f1 in ?? ()
  #14 0x000000000049df05 in Ffuncall ()
  #15 0x000000000046d570 in execute_optimized_program ()
  #16 0x000000000049b0f1 in ?? ()
  #17 0x000000000049df05 in Ffuncall ()
  #18 0x0000000000470895 in Fcall_interactively ()
  #19 0x00000000004a0466 in Fcommand_execute ()
  #20 0x00000000004aaaa6 in ?? ()
  #21 0x00000000004ad339 in Fdispatch_event ()
  #22 0x0000000000477d1f in Fcommand_loop_1 ()
  #23 0x0000000000477deb in ?? ()
  #24 0x0000000000499351 in condition_case_1 ()
  #25 0x0000000000477ef0 in ?? ()
  #26 0x00000000004982b9 in internal_catch ()
  #27 0x00000000004781a0 in initial_command_loop ()
  #28 0x0000000000493c4e in xemacs_21_5_b29_x86_64_pc_linux ()
  #29 0x0000000000494749 in main ()
  (gdb) quit

I am using:

  XEmacs 21.5  (beta29) "garbanzo" ff037e1dc33c+ [Lucid]
    (x86_64-pc-linux, Mule) of Thu Nov 12 2009 on topper

  No Gnus v0.11

(built from Mercurial, CVS), on a Debian unstable amd64 machine.

I can reproduce the crash in XEmacs built from Mercurial on August 19
2009 as well, so it is probably not that new a thing.

It doesn't crash my XEmacs 21.4.22 (from Debian), though.


  Best regards,

    Adam

-- 
 "I think there are enough frivolous lawsuits in this         Adam Sjøgren
  country without people fighting over pop songs."       asjo at koldfront.dk



More information about the XEmacs-Beta mailing list