From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10159: 24.0.91; Segfault with auto-complete package [SEC=UNCLASSIFIED] Date: Fri, 20 Jan 2012 12:01:09 +0200 Message-ID: <837h0m4rru.fsf@gnu.org> References: <4ED7A6AF.7080603@cs.ucla.edu> <4ED864CE.2050209@dsto.defence.gov.au> <4EDDAC7C.7070502@dsto.defence.gov.au> <4F18F099.3050103@dsto.defence.gov.au> <4F18FE0E.2030906@dsto.defence.gov.au> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1327053723 11912 80.91.229.12 (20 Jan 2012 10:02:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 10:02:03 +0000 (UTC) Cc: 10159@debbugs.gnu.org, eggert@cs.ucla.edu To: Alex Murray Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 11:01:58 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 1RoBID-00007J-GL for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2012 11:01:57 +0100 Original-Received: from localhost ([::1]:46831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoBIC-0000az-Jk for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2012 05:01:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoBI6-0000Zc-R5 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 05:01:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoBI2-0002Eb-E3 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 05:01:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoBI2-0002EU-2K for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 05:01:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RoBJG-00010H-6W for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 05:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2012 10:03: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.13270537583821 (code B ref 10159); Fri, 20 Jan 2012 10:03:02 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 20 Jan 2012 10:02:38 +0000 Original-Received: from localhost ([127.0.0.1]:36250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoBIn-0000zU-IY for submit@debbugs.gnu.org; Fri, 20 Jan 2012 05:02:37 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64267) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoBIi-0000zE-1C for 10159@debbugs.gnu.org; Fri, 20 Jan 2012 05:02:32 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LY300B00D4Z6800@a-mtaout22.012.net.il> for 10159@debbugs.gnu.org; Fri, 20 Jan 2012 12:01:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.115.9]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LY300AE9D5WGE90@a-mtaout22.012.net.il>; Fri, 20 Jan 2012 12:01:09 +0200 (IST) In-reply-to: <4F18FE0E.2030906@dsto.defence.gov.au> X-012-Sender: halo1@inter.net.il 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:55871 Archived-At: > Date: Fri, 20 Jan 2012 16:09:26 +1030 > From: Alex Murray > CC: eggert@cs.ucla.edu, 10159@debbugs.gnu.org > > One more - this time with full debugging symbols and bt full log attached :) > > I'll try and keep the gdb session alive for a while if you need anything > further > > Program received signal SIGSEGV, Segmentation fault. > 0x00000000006863ea in composition_compute_stop_pos > (cmp_it=0x7fffffff9058, charpos=101, bytepos=118, endpos=116, > string=32972417) at composite.c:1073 > 1073 elt = XCAR (val); > (gdb) p string > $1 = 32972417 > (gdb) xtype > Lisp_String > (gdb) xstring > $2 = (struct Lisp_String *) 0x1f71e80 > " Arglist: (X)", ' ' Thanks. Please show the output of these GDB commands: (gdb) p val (gdb) xtype (gdb) p c The truth is you already posted information that lets me deduce the results, but what I see just doesn't make sense: val is shown to have the value of 390, which could only be an Emacs integer, and yet the test in the for loop: for (ridx = 0; CONSP (val); val = XCDR (val), ridx++) should have exited the loop when it sees val that is not a cons cell. So I don't understand how come it didn't exit, and tried to extract the car of something that isn't a cons cell. The value of c also looks bogus, and the values of charpos (101) and endpos (116) seem to be inconsistent with the length of `string', which is shown as " Arglist: (X)" (13 characters) plus 20 blanks, for a total of 33 characters. If someone who is reading this has ideas how this could happen, I'm all ears. Btw, Alex: what version of GCC did you use to compile Emacs?