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: Fri, 18 Dec 2015 07:31:57 +0530 Message-ID: <22131.26901.985486.906926@gargle.gargle.HOWL> References: <22123.38123.366644.729826@gargle.gargle.HOWL> <838u506r1z.fsf@gnu.org> 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 1450404150 26597 80.91.229.3 (18 Dec 2015 02:02:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 02:02:30 +0000 (UTC) Cc: Sujith Manoharan To: 22148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 18 03:02:14 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 1a9kN1-0002Nt-5s for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Dec 2015 03:02:11 +0100 Original-Received: from localhost ([::1]:58033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9kN0-0006bw-K1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Dec 2015 21:02:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9kMx-0006bp-1M for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2015 21:02:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9kMs-0007ma-UO for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2015 21:02:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9kMs-0007mW-Qd for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2015 21:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9kMs-00080B-4i for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2015 21:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sujith Manoharan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2015 02:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22148-submit@debbugs.gnu.org id=B22148.145040409330713 (code B ref 22148); Fri, 18 Dec 2015 02:02:02 +0000 Original-Received: (at 22148) by debbugs.gnu.org; 18 Dec 2015 02:01:33 +0000 Original-Received: from localhost ([127.0.0.1]:54888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9kMO-0007zI-Ns for submit@debbugs.gnu.org; Thu, 17 Dec 2015 21:01:32 -0500 Original-Received: from s72.web-hosting.com ([198.187.29.22]:45683) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9kMM-0007z4-LV for 22148@debbugs.gnu.org; Thu, 17 Dec 2015 21:01:31 -0500 Original-Received: from [117.199.128.29] (port=43900 helo=main-lnx.msujith.org) by server72.web-hosting.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a9kMG-003fE4-AG; Thu, 17 Dec 2015 21:01:24 -0500 In-Reply-To: <838u506r1z.fsf@gnu.org> X-Mailer: VM 8.2.0b under 25.0.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 - debbugs.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-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:110098 Archived-At: Sorry for the delay, I did not get any email from debbugs for new messages in the bug. I checked the spam folder too. > Is it possible for you to send that .org file (off-list), so I could > try debugging this on my system? It's this file: http://msujith.net/dir/unravel.org > We'd appreciate if you could switch to tracking the emacs-25 branch > instead. I've done that - and there doesn't seem to be any crash now. Will update if any crash happens. > > 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); > > What are the values of the following variables: > > temp_charset_work > temp_charset_work->table > temp_charset_work->table.encoder > > Also, is it possible to reproduce this in an unoptimized build? I'll run the master branch and see if I can reproduce this again and check the values of the charset variables. > > (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 > > Do you have any idea where in that file is that character whose > codepoint is 173? Seems like it could be at buffer position 6 or near > that. If that's true, can you tell what character is there? It is a normal character ('E'), nothing special. Thanks for looking into this issue.