From: Alex Murray <alex.murray@dsto.defence.gov.au>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10159@debbugs.gnu.org, eggert@cs.ucla.edu
Subject: bug#10159: 24.0.91; Segfault with auto-complete package [SEC=UNCLASSIFIED]
Date: Mon, 23 Jan 2012 09:18:34 +1030 [thread overview]
Message-ID: <4F1C9242.6050504@dsto.defence.gov.au> (raw)
In-Reply-To: <837h0m4rru.fsf@gnu.org>
*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 <alex.murray@dsto.defence.gov.au>
>> 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)", ' ' <repeats 20 times>
>
>
> 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.
next prev parent reply other threads:[~2012-01-22 22:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 2:02 bug#10159: 24.0.91; Segfault with auto-complete package [SEC=UNCLASSIFIED] Alex Murray
2011-11-30 1:54 ` Alex Murray
2011-12-01 16:09 ` Paul Eggert
2011-12-02 5:40 ` Alex Murray
2011-12-06 5:47 ` Alex Murray
2011-12-06 6:31 ` Eli Zaretskii
2012-01-20 4:42 ` Alex Murray
2012-01-20 5:39 ` Alex Murray
2012-01-20 10:01 ` Eli Zaretskii
2012-01-22 22:48 ` Alex Murray [this message]
2012-01-23 0:04 ` Paul Eggert
2012-07-26 12:58 ` bug#10159: Segfault with auto-complete package Toon Claes
2012-07-26 15:58 ` Eli Zaretskii
[not found] ` <064f9be784bab3c1101f946e81dd5f90@tonotdo.com>
2012-07-27 6:57 ` Eli Zaretskii
2012-09-22 11:11 ` bug#10159: auto-complete causes crash in emacs HEAD Christopher Monsanto
2012-09-22 11:12 ` Christopher Monsanto
2012-09-22 11:58 ` Eli Zaretskii
2012-09-22 12:19 ` Christopher Monsanto
2012-09-22 12:40 ` Eli Zaretskii
2012-09-22 13:13 ` Christopher Monsanto
2013-02-14 8:52 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F1C9242.6050504@dsto.defence.gov.au \
--to=alex.murray@dsto.defence.gov.au \
--cc=10159@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.