From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Monsanto Newsgroups: gmane.emacs.bugs Subject: bug#10159: auto-complete causes crash in emacs HEAD Date: Sat, 22 Sep 2012 07:12:45 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1348312475 8894 80.91.229.3 (22 Sep 2012 11:14:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 11:14:35 +0000 (UTC) To: 10159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 13:14:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TFNfP-0005PS-RS for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 13:14:36 +0200 Original-Received: from localhost ([::1]:54234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNfL-0007G7-8d for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 07:14:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNfE-0007Ey-Pu for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:14:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFNfA-0002Qw-D6 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:14:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNfA-0002Qp-8T for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:14:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFNgo-0008Q3-6C for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Monsanto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 11:16: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134831253231841 (code B ref -1); Sat, 22 Sep 2012 11:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2012 11:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:48155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFNgG-0008Ch-7x for submit@debbugs.gnu.org; Sat, 22 Sep 2012 07:15:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34365) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFNgA-00085C-Dt for submit@debbugs.gnu.org; Sat, 22 Sep 2012 07:15:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFNeS-0002MJ-6D for submit@debbugs.gnu.org; Sat, 22 Sep 2012 07:13:40 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:35573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNeS-0002ME-3J for submit@debbugs.gnu.org; Sat, 22 Sep 2012 07:13:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNeN-0007E4-OE for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:13:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFNeJ-0002Kg-AP for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:13:31 -0400 Original-Received: from mail-vc0-f169.google.com ([209.85.220.169]:44985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFNeJ-0002Kb-6O for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:13:27 -0400 Original-Received: by vcbfl17 with SMTP id fl17so5349876vcb.0 for ; Sat, 22 Sep 2012 04:13:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=3G/jPccmWJG75hg1ILzXopAp3nEJ/qxaMlQVGUopFOU=; b=NY7LVMKTsI5iBL1GGlgv9kJCsAIYCV1afv6sSntDNSNVWDa1DxkVPXma1ZhWWOTs9m Pd0prgyYOjnXBtg+Nzfw/Wl8S8/M2Deo104dkdDfiP2M8lGwFrLcVrr6W5NBFIq96Vch pUgNuwZWpPS5VwOKClKgvbFKTRUh301kU0tT74Ci7BqsYdA4tJu/dsNVICoETHmqSwit /WUgDHemyw2R0CH913+8AL82YrYDlQ+jvZIADWIAfcbZh5lDaeSZVMAd3hJrbULlcn53 KPZ+/945N4Z6MopCYJPqOq0gedhTT014IjQ8SnKYVP2vtPcZmBJafV2VdDt4ukzI/Lg1 2jYQ== Original-Received: by 10.58.89.168 with SMTP id bp8mr4694441veb.20.1348312406278; Sat, 22 Sep 2012 04:13:26 -0700 (PDT) Original-Received: by 10.220.235.132 with HTTP; Sat, 22 Sep 2012 04:12:45 -0700 (PDT) In-Reply-To: X-Gm-Message-State: ALoCoQkNRGvWvCndxeWnI0FrCx+Pb7gDXVfLyEETCCkjYluaHYEyaHYBh8qH5zb4GAgEOoR8vJ/j X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:64731 Archived-At: Sorry, there should not be a space in "def ". "def" is what will do it. Christopher Monsanto chris@monsan.to -- http://monsan.to/ On Sat, Sep 22, 2012 at 7:11 AM, Christopher Monsanto wrote: > I'm one of the auto-complete maintainers. AC is a really popular > package, and for me at least, this bug makes Emacs near-unusable. > Fixing this bug is my top priority as far as FOSS stuff goes, so any > help from those who know the C source would be appreciated. > > I can reproduce this pretty much every time with optimizations > disabled, using the attached init-ac.el. Before running this test, > make sure you have auto-complete installed: execute > > (require 'package) > (add-to-list 'package-archives > '("melpa" . "http://melpa.milkbox.net/packages/") t) > (package-initialize) > > and then M-x package-install auto-complete. > > Now, exit that emacs, and use gdb -ex run --args emacs -Q --load > init-ac.el and type "def " as fast as you can. It should crash with > SIGSEGV. > > Starting program: /usr/local/bin/emacs -Q --load init-ac.el > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7fffee19d700 (LWP 3987)] > [New Thread 0x7fffec92b700 (LWP 3988)] > > Program received signal SIGSEGV, Segmentation fault. > 0x00000000004da993 in char_table_ref (table=12919621, c=4194433) at > chartab.c:234 > 234 if (SUB_CHAR_TABLE_P (val)) > > Attached is the result of bt full in gdb.txt. I left GDB open in case > I should run some more commands. > > And here is output from report-emacs-bug: > > In GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) > of 2012-09-22 on linuxpimpbox > Windowing system distributor `The X.Org Foundation', version 11.0.11103000 > Configured using: > `configure 'CFLAGS=-g'' > > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Emacs-Lisp > > Minor modes in effect: > global-auto-complete-mode: t > auto-complete-mode: t > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > > M-x r e p o r t > - e m a c s - b u g > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml > easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums > mm-util mail-prsvr mail-utils advice help-fns advice-preload > auto-complete-config auto-complete edmacro kmacro cl-macs gv popup cl > cl-lib auto-complete-autoloads popup-autoloads package time-date tooltip > ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd > fontset image regexp-opt fringe tabulated-list newcomment lisp-mode > register page menu-bar rfn-eshadow timer select scroll-bar mouse > jit-lock font-lock syntax facemenu font-core frame cham georgian > utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean > japanese hebrew greek romanian slovak czech european ethiopic indian > cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev > minibuffer loaddefs button faces cus-face macroexp files text-properties > overlay sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote make-network-process dbusbind > dynamic-setting system-font-setting font-render-setting move-toolbar gtk > x-toolkit x multi-tty emacs) > > > Christopher Monsanto > chris@monsan.to -- http://monsan.to/