unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alex Murray <alex.murray@dsto.defence.gov.au>
Cc: 10159@debbugs.gnu.org, eggert@cs.ucla.edu
Subject: bug#10159: 24.0.91; Segfault with auto-complete package [SEC=UNCLASSIFIED]
Date: Fri, 20 Jan 2012 12:01:09 +0200	[thread overview]
Message-ID: <837h0m4rru.fsf@gnu.org> (raw)
In-Reply-To: <4F18FE0E.2030906@dsto.defence.gov.au>

> 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?





  reply	other threads:[~2012-01-20 10:01 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 [this message]
2012-01-22 22:48               ` Alex Murray
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837h0m4rru.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10159@debbugs.gnu.org \
    --cc=alex.murray@dsto.defence.gov.au \
    --cc=eggert@cs.ucla.edu \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).