From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sujith Manoharan Newsgroups: gmane.emacs.bugs Subject: bug#22148: 25.1.50; Segmentation fault when saving file Date: Sat, 12 Dec 2015 09:00:51 +0530 Message-ID: <22123.38123.366644.729826@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1449891084 4526 80.91.229.3 (12 Dec 2015 03:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Dec 2015 03:31:24 +0000 (UTC) To: 22148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 12 04:31:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a7atq-0006cd-T5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Dec 2015 04:31:11 +0100 Original-Received: from localhost ([::1]:50383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7atq-0004NY-8f for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Dec 2015 22:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7atl-0004NR-Ab for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:31:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7ati-0002Iw-32 for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:31:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7ath-0002Ir-VD for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a7ath-0007UW-Lc for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sujith Manoharan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Dec 2015 03:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144989103828764 (code B ref -1); Sat, 12 Dec 2015 03:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Dec 2015 03:30:38 +0000 Original-Received: from localhost ([127.0.0.1]:35218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7atK-0007Tr-2Q for submit@debbugs.gnu.org; Fri, 11 Dec 2015 22:30:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42361) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7atI-0007Tf-Si for submit@debbugs.gnu.org; Fri, 11 Dec 2015 22:30:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7atB-0002Gj-Dr for submit@debbugs.gnu.org; Fri, 11 Dec 2015 22:30:31 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7atB-0002Gf-AI for submit@debbugs.gnu.org; Fri, 11 Dec 2015 22:30:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7at9-0004LH-8B for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:30:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7at5-0002GK-Ub for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:30:27 -0500 Original-Received: from s72.web-hosting.com ([198.187.29.22]:33775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7at5-0002GD-Ow for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:30:23 -0500 Original-Received: from [117.222.157.255] (port=48848 helo=main-lnx.msujith.org) by server72.web-hosting.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a7at1-000Zul-Df for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 22:30:20 -0500 X-Mailer: VM 8.2.0b under 25.1.50.1 (x86_64-unknown-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server72.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - msujith.org X-Get-Message-Sender-Via: server72.web-hosting.com: authenticated_id: sujith@msujith.org X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109878 Archived-At: Emacs crashes when saving a .org file. It happened a few times when I would just open it, change a line and save it. I got the backtrace once in gdb, I've attached it below. The crash doesn't happen consistently, sometimes opening a mbox crashes too. I am using the master branch. (gdb) r Starting program: /home/sujith/dev/emacs/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffe973f700 (LWP 1576)] Program received signal SIGSEGV, Segmentation fault. 0x000000000047c38b in encode_char (charset=charset@entry=0xb2fd88 , c=c@entry=173) at charset.c:1760 1760 code_index = GET_TEMP_CHARSET_WORK_ENCODER (c); (gdb) bt #0 0x000000000047c38b in encode_char (charset=charset@entry=0xb2fd88 , c=c@entry=173) at charset.c:1760 #1 0x000000000048772b in char_encodable_p (c=c@entry=173, attrs=) at coding.c:8941 #2 0x0000000000490088 in Ffind_coding_systems_region_internal (start=6, end=, exclude=) at coding.c:9039 #3 0x0000000000557952 in Ffuncall (nargs=3, args=args@entry=0x7fffffffd218) at eval.c:2657 #4 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9685013, maxdepth=, args_template=, nargs=nargs@entry=2, args=, args@entry=0x7fffffffd218) at bytecode.c:880 #5 0x00000000005574e4 in funcall_lambda (fun=9684980, nargs=nargs@entry=2, arg_vector=0x7fffffffd218, arg_vector@entry=0x7fffffffd3d8) at eval.c:2810 #6 0x000000000055778b in Ffuncall (nargs=3, args=args@entry=0x7fffffffd3d0) at eval.c:2711 #7 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9688781, maxdepth=, args_template=, nargs=nargs@entry=5, args=, args@entry=0x7fffffffd3d0) at bytecode.c:880 #8 0x00000000005574e4 in funcall_lambda (fun=9688748, nargs=nargs@entry=5, arg_vector=0x7fffffffd3d0, arg_vector@entry=0x7fffffffd598) at eval.c:2810 #9 0x000000000055778b in Ffuncall (nargs=nargs@entry=6, args=args@entry=0x7fffffffd590) at eval.c:2711 #10 0x000000000055929e in call5 (fn=, arg1=arg1@entry=6, arg2=arg2@entry=264430, arg3=arg3@entry=4067744, arg4=arg4@entry=0, arg5=arg5@entry=26114324) at eval.c:2543 #11 0x000000000051b427 in choose_write_coding_system (coding=0x7fffffffd7d0, lockname=26185700, visit=44256, append=0, filename=26114324, end=264430, start=6) at fileio.c:4595 #12 write_region (start=6, end=264430, filename=26114324, append=0, visit=44256, lockname=26185700, mustbenew=0, desc=-1) at fileio.c:4789 #13 0x000000000051b76f in Fwrite_region (start=, end=, filename=, append=, visit=, lockname=, mustbenew=0) at fileio.c:4669 #14 0x00000000005578e8 in Ffuncall (nargs=7, args=args@entry=0x7fffffffdb70) at eval.c:2683 #15 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9119981, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x7fffffffdb70) at bytecode.c:880 #16 0x00000000005574e4 in funcall_lambda (fun=9119948, nargs=nargs@entry=0, arg_vector=0x7fffffffdb70, arg_vector@entry=0x7fffffffdd30) at eval.c:2810 #17 0x000000000055778b in Ffuncall (nargs=1, args=args@entry=0x7fffffffdd28) at eval.c:2711 #18 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9119861, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x7fffffffdd28) at bytecode.c:880 #19 0x00000000005574e4 in funcall_lambda (fun=9119828, nargs=nargs@entry=0, arg_vector=0x7fffffffdd28, arg_vector@entry=0x7fffffffdec0) at eval.c:2810 #20 0x000000000055778b in Ffuncall (nargs=1, args=args@entry=0x7fffffffdeb8) at eval.c:2711 #21 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9119013, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffdeb8) at bytecode.c:880 #22 0x00000000005574e4 in funcall_lambda (fun=9118980, nargs=nargs@entry=1, arg_vector=0x7fffffffdeb8, arg_vector@entry=0x7fffffffe050) at eval.c:2810 #23 0x000000000055778b in Ffuncall (nargs=2, args=args@entry=0x7fffffffe048) at eval.c:2711 #24 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9117941, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffe048) at bytecode.c:880 #25 0x00000000005574e4 in funcall_lambda (fun=9117908, nargs=nargs@entry=1, arg_vector=0x7fffffffe048, arg_vector@entry=0x7fffffffe270) at eval.c:2810 #26 0x000000000055778b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffe268) at eval.c:2711 #27 0x000000000055338a in Ffuncall_interactively (nargs=2, args=0x7fffffffe268) at callint.c:248 #28 0x0000000000557879 in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fffffffe260) at eval.c:2630 #29 0x0000000000553d57 in Fcall_interactively (function=, record_flag=, keys=) at callint.c:836 #30 0x0000000000557952 in Ffuncall (nargs=4, args=args@entry=0x7fffffffe4b8) at eval.c:2657 #31 0x000000000058ad63 in exec_byte_code (bytestr=, vector=9567141, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffe4b8) at bytecode.c:880 #32 0x00000000005574e4 in funcall_lambda (fun=9567108, nargs=nargs@entry=1, arg_vector=0x7fffffffe4b8, arg_vector@entry=0x7fffffffe648) at eval.c:2810 #33 0x000000000055778b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffe640) at eval.c:2711 #34 0x0000000000557a5a in call1 (fn=fn@entry=14736, arg1=) at eval.c:2509 #35 0x00000000004f52d4 in command_loop_1 () at keyboard.c:1452 #36 0x0000000000555fb7 in internal_condition_case (bfun=bfun@entry=0x4f4f00 , handlers=handlers@entry=18912, hfun=hfun@entry=0x4ebaf0 ) at eval.c:1309 #37 0x00000000004e727c in command_loop_2 (ignore=ignore@entry=0) at keyboard.c:1086 #38 0x0000000000555eab in internal_catch (tag=tag@entry=45648, func=func@entry=0x4e7260 , arg=arg@entry=0) at eval.c:1073 #39 0x00000000004e7239 in command_loop () at keyboard.c:1065 #40 0x00000000004eb6db in recursive_edit_1 () at keyboard.c:671 #41 0x00000000004eba28 in Frecursive_edit () at keyboard.c:742 #42 0x000000000041620b in main (argc=1, argv=0x7fffffffe9f8) at emacs.c:1652 (gdb) q In GNU Emacs 25.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.28) of 2015-12-11 Repository revision: 6148555ee5a3d0139ae517803718b3e0357933c7 Windowing system distributor 'The X.Org Foundation', version 11.0.11800000 Configured using: 'configure --prefix=/usr --with-x-toolkit=gtk2 --without-gconf --without-gsettings --without-selinux --without-gnutls' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_IN.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-battery-mode: t display-time-mode: t iswitchb-mode: t savehist-mode: t save-place-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: 1 line-number-mode: t transient-mark-mode: t Recent messages: /home/sujith/mail/INBOX-gmail: Reading folder... done INBOX-gmail: 65 messages, 0 new, 0 unread, 0 deleted INBOX-gmail: Decoding MIME message... INBOX-gmail: Inlining text/html by emacs-w3m... INBOX-gmail: Decoding quoted-printable... done INBOX-gmail: Inlining text/html by emacs-w3m... done. INBOX-gmail: Decoding MIME message... done INBOX-gmail: 65 messages, 0 new, 0 unread, 0 deleted [2 times] Starting new Ispell process /usr/bin/aspell with default dictionary... Making completion list... [2 times] Load-path shadows: /home/sujith/.emacs.d/elpa/emms-20150519.736/tq hides /home/sujith/dev/emacs/lisp/emacs-lisp/tq Features: (shadow emacsbug message idna format-spec rfc822 mml mml-sec gmm-utils mailheader mailabbrev flyspell ispell vm-reply w3m-form w3m browse-url doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util vm-w3m u-vm-color vm-save tapestry vm-sort sendmail mail-utils vm-rfaddons vm-undo vm-virtual vm-summary-faces vm-pop utf7 vm-imap vm-thread vm-mime vm-toolbar vm-menu vm-window vm-folder vm-crypto vm-summary vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro mairix derived cus-edit cus-start cus-load wid-edit vm-autoloads vm-vars vm-version vm advice battery time dired-x dired edmacro kmacro xcscope ring server iswitchb savehist saveplace finder-inf info package epg-config url-handlers easy-mmode mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 cl ietf-drums url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode easymenu cl-loaddefs cl-lib mail-prsvr password-cache url-vars time-date mule-util pcase tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 256181 7551) (symbols 48 33012 0) (miscs 40 744 316) (strings 32 53467 9370) (string-bytes 1 1717823) (vectors 16 23377) (vector-slots 8 549170 10179) (floats 8 268 33) (intervals 56 1611 0) (buffers 976 16) (heap 1024 19875 918))