From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Murray Newsgroups: gmane.emacs.bugs Subject: bug#10159: 24.0.91; Segfault with auto-complete package [SEC=UNCLASSIFIED] Date: Fri, 20 Jan 2012 15:12:01 +1030 Message-ID: <4F18F099.3050103@dsto.defence.gov.au> References: <4ED7A6AF.7080603@cs.ucla.edu> <4ED864CE.2050209@dsto.defence.gov.au> <4EDDAC7C.7070502@dsto.defence.gov.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327034581 25349 80.91.229.12 (20 Jan 2012 04:43:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 04:43:01 +0000 (UTC) Cc: 10159@debbugs.gnu.org, eggert@cs.ucla.edu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 05:42:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ro6JR-0007ql-64 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2012 05:42:53 +0100 Original-Received: from localhost ([::1]:36349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6JQ-0007dS-CB for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2012 23:42:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6JM-0007dN-OT for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:42:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro6JL-0002le-Jb for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:42:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6JL-0002la-I1 for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:42:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ro6KY-0000b0-6W for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex Murray Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2012 04:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 10159-submit@debbugs.gnu.org id=B10159.13270346022227 (code B ref 10159); Fri, 20 Jan 2012 04:44:02 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 20 Jan 2012 04:43:22 +0000 Original-Received: from localhost ([127.0.0.1]:35937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro6Ju-0000Zr-EQ for submit@debbugs.gnu.org; Thu, 19 Jan 2012 23:43:22 -0500 Original-Received: from digger1.defence.gov.au ([203.5.217.4]:62490) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro6Jq-0000Zb-AR for 10159@debbugs.gnu.org; Thu, 19 Jan 2012 23:43:21 -0500 Original-Received: from ednmsw520.dsto.defence.gov.au (ednmsw520.dsto.defence.gov.au [131.185.68.60]) by digger1.defence.gov.au (DSTO/DSTO) with ESMTP id q0K4ZhAw009156 for <10159@debbugs.gnu.org>; Fri, 20 Jan 2012 15:05:43 +1030 (CST) Original-Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw520.dsto.defence.gov.au (Clearswift SMTPRS 5.4.0) with ESMTP id ; Fri, 20 Jan 2012 15:11:58 +1030 Original-Received: from [131.185.59.69] ([131.185.59.69]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.4675); Fri, 20 Jan 2012 15:11:57 +1030 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 In-Reply-To: x-protective-marking: VER=2005.6, NS=gov.au, SEC=UNCLASSIFIED, ORIGIN=alex.murray@dsto.defence.gov.au X-OriginalArrivalTime: 20 Jan 2012 04:41:57.0883 (UTC) FILETIME=[D7ACD4B0:01CCD72D] X-TM-AS-Product-Ver: SMEX-10.0.0.1412-6.800.1017-18656.004 X-TM-AS-Result: No--15.919700-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:55864 Archived-At: UNCLASSIFIED On 06/12/11 17:01, Eli Zaretskii wrote: >> Date: Tue, 06 Dec 2011 16:17:40 +1030 >> From: Alex Murray >> Cc: 10159@debbugs.gnu.org >> >> Okay have managed to reproduce the crash without any optimizations and >> am including the first few stack frames in line - see attached for the >> entire gdb backtrace full output >> >> #0 0x0000000000687832 in composition_compute_stop_pos >> (cmp_it=0x7fffffff9018, >> charpos=74, bytepos=86, endpos=100, string=44875745) at >> composite.c:1073 >> elt = 44875745 >> ridx = 0 >> start = 0 >> end = 21769088 >> c = 11542528 >> prop = 12818946 >> val = 390 >> MAX_NEWLINE_DISTANCE = 500 > > Very strange. `string' seems to be a Lisp string (because this was > called from next_element_from_string), which is consistent with > `start' being zero. But why does `c' have such a preposterous value, > and why is `elt' identical to `string'? In any case, the immediate > cause of the crash is probably the bogus value of `val'. > > Please show the other important info: > > . What does "M-x emacs-version RET" display? This is important to > correlate the line numbers in the backtrace with source files in > the Emacs repository. > > . What did GDB display when Emacs crashed? That would be the text > just before you typed the "bt full" command, the most important > information there is the fatal signal that caused the crash. > > In addition, can you please show the output of the following GDB > commands? (You will need to type "source /path/to/.gdbinit" command > before these, as some of these commands are defined in src/.gdbinit in > the Emacs tree. If you don't have that file in the snapshot > distribution you downloaded, you can find it here: > > http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/src/.gdbinit > > There's a "download" link on that page to download the file.) > > Here are the GDB commands to use: > > (gdb) p string > (gdb) xtype > > If the last command says `string' is a Lisp_String object, please type > yet another command immediately after "xtype": > > (gdb) xstring > > Thanks. Okay I finally caught another crash - see below for answers to your questions Eli: emacs-version: GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.0) of 2012-01-19 on charichuelo, modified by Debian GDB Output: Program received signal SIGSEGV, Segmentation fault. 0x00000000005d3059 in composition_compute_stop_pos (cmp_it=0x7fffffff6b08, charpos=66, bytepos=70, endpos=, string=37140672) at composite.c:1073 1073 elt = XCAR (val); (gdb) p string $1 = 37140672 (gdb) xtype Lisp_Int0 (gdb) xstring $2 = (struct Lisp_String *) 0x236b8c0 ' ' Hope this helps?? Cheers Alex IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.