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: Mon, 23 Jan 2012 09:18:34 +1030 Message-ID: <4F1C9242.6050504@dsto.defence.gov.au> 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> <837h0m4rru.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327272541 16474 80.91.229.12 (22 Jan 2012 22:49:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2012 22:49: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 Sun Jan 22 23:48:56 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 1Rp6DX-0000wR-LZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jan 2012 23:48:55 +0100 Original-Received: from localhost ([::1]:59290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp6DX-00036c-3M for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jan 2012 17:48:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp6DU-00036W-N0 for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2012 17:48:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rp6DS-0005OJ-TP for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2012 17:48:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp6DS-0005OF-Qb for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2012 17:48:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rp6Dd-0001dw-J2 for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2012 17:49:01 -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: Sun, 22 Jan 2012 22:49:01 +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.13272725306288 (code B ref 10159); Sun, 22 Jan 2012 22:49:01 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 22 Jan 2012 22:48:50 +0000 Original-Received: from localhost ([127.0.0.1]:40290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rp6DR-0001dK-RV for submit@debbugs.gnu.org; Sun, 22 Jan 2012 17:48:50 -0500 Original-Received: from digger1.defence.gov.au ([203.5.217.4]:64732) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rp6DN-0001cq-NQ for 10159@debbugs.gnu.org; Sun, 22 Jan 2012 17:48:48 -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 q0MMg8SC014692 for <10159@debbugs.gnu.org>; Mon, 23 Jan 2012 09:12:09 +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 ; Mon, 23 Jan 2012 09:18:27 +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); Mon, 23 Jan 2012 09:18:27 +1030 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 In-Reply-To: <837h0m4rru.fsf@gnu.org> x-protective-marking: VER=2005.6, NS=gov.au, SEC=UNCLASSIFIED, ORIGIN=alex.murray@dsto.defence.gov.au X-OriginalArrivalTime: 22 Jan 2012 22:48:27.0253 (UTC) FILETIME=[F464CA50:01CCD957] X-TM-AS-Product-Ver: SMEX-10.0.0.1412-6.800.1017-18662.002 X-TM-AS-Result: No--26.299800-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:55922 Archived-At: *UNCLASSIFIED* On Fri 20 Jan 2012 20:31:09 CST, Eli Zaretskii wrote: > >> >> 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? (gdb) p val $3 = 390 (gdb) xtype Lisp_Cons (gdb) p c $4 = 14159872 gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 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.