From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.devel Subject: Re: Emacs 25.1.1 coredumps if company-mode pops up in a magit commit buffer window Date: Thu, 9 Mar 2017 18:12:42 -0300 Message-ID: References: <83r326fmvc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113b7206ab8cb8054a52b4f1 X-Trace: blaine.gmane.org 1489094010 22092 195.159.176.226 (9 Mar 2017 21:13:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 21:13:30 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 09 22:13:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm5N8-0004gD-U8 for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 22:13:19 +0100 Original-Received: from localhost ([::1]:36312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm5NE-0004ij-Sm for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 16:13:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm5Mf-0004ic-5d for emacs-devel@gnu.org; Thu, 09 Mar 2017 16:12:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm5Md-0001Wh-EV for emacs-devel@gnu.org; Thu, 09 Mar 2017 16:12:49 -0500 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:35815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm5Ma-0001VD-RQ; Thu, 09 Mar 2017 16:12:44 -0500 Original-Received: by mail-oi0-x233.google.com with SMTP id 62so42838212oih.2; Thu, 09 Mar 2017 13:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rWGl9NkrWkL0YC5QbjH6ydo/6V/4eyUuMCq/JexFi/4=; b=c4G5wPUJtEwxWTAXPMrIpggQ2PhT9b2qGYiO1IHLFQLto+rJNIC5ANtQAmftQ0zZz0 1yCOuq0tDXBoK2oBOYln/oEzD0/bfeUvUdVj6SjPvX4WHcwQva+LjMWSwbU8P1JKFvJ3 4GNvf3gDYmJyVlRbGFdQits4L22pxsVC+Vkfm4+PTRlkzd7EA44TeDrzFWQKvfdncThS xum+D7Y7WD/zWzozd40S7NZpdLpcWZRpgUYLKDy45AZipmp6g3q/WV4x8fS27VCt0n+b XvbV2ORQztWfxjQK0veyPrZtVph+4RJODbUaUCQ8X51ggY8TAHEZxylvF7bQdi3HDlAM RHxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rWGl9NkrWkL0YC5QbjH6ydo/6V/4eyUuMCq/JexFi/4=; b=kBI7anMj+2TpjdOv9n08I0nskGxuu7XUGwne0ihlqqkdH9P68PTa5pWzKnXo6mSTkp 4S8awJE/85jAdR0Q3/vb2esd1Org4hbdIN+JkVJdV+vHEFUDu0QLRmzwmqWz5SuSnRLn yYHmmkX/ttiiOxMngIsBZZNjK6u4sZd0hPtmSviRKUJZEBrcQVWjZgD/e2K7EXJgAImX lMFVxOxAR6e21hebnjEY8KF8wzyKUgvdPkuVDdwMvjH8LHgpB5r9MobpEOo8o7qHRZTu SW818ZYPrnAwIooN/hVxcGx1g4B21KPAPyKiblVtbOUEtcCEe6She+HtlAWLTxUDnYQW y1dg== X-Gm-Message-State: AMke39l1O5Qi89gDQ16NI+87GkxPRHomYP74AVH/PuLCTVmhpt8e8eItsCctuZMndTfRGHVnJ51NhfVUb+DiCg== X-Received: by 10.202.3.197 with SMTP id 188mr8264132oid.31.1489093962466; Thu, 09 Mar 2017 13:12:42 -0800 (PST) Original-Received: by 10.157.37.247 with HTTP; Thu, 9 Mar 2017 13:12:42 -0800 (PST) In-Reply-To: <83r326fmvc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212865 Archived-At: --001a113b7206ab8cb8054a52b4f1 Content-Type: text/plain; charset=UTF-8 Hi Eli, I've further investigated the issue and found that this only happens if this minor mode: https://github.com/ninrod/vim-empty-lines-mode is activated in conjunction with `with-editor-mode`. the vim-empty-lines-mode provides an emulation of the vim's empty lines indicator and uses an overlay. Yes I can try to do that. Filipe On Thu, Mar 9, 2017 at 1:14 PM, Eli Zaretskii wrote: > > From: Filipe Silva > > Date: Wed, 8 Mar 2017 18:06:40 -0300 > > > > Hi. Everytime open a magit buffer to commit write a commit message and > company mode pops up with a > > completion menu, emacs 25.1.1 core dumps on me. > > > > This is the line I used: > > > > gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" > /usr/local/bin/emacs core.2466 > coredump.txt > > > > My emacs version: GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ > Version 3.14.13) of 2017-02-22 > > > > Here's the coredump. > > [...] > > Thread 1 (Thread 0x7f4036acda00 (LWP 2466)): > > #0 0x00007f403154b23b in raise () from /lib64/libpthread.so.0 > > No symbol table info available. > > #1 0x00000000004e6361 in terminate_due_to_signal (sig=sig@entry=6, > > backtrace_limit=backtrace_limit@entry=40) at emacs.c:381 > > No locals. > > #2 0x00000000004fe503 in emacs_abort () at sysdep.c:2247 > > No locals. > > #3 0x00000000004a55f5 in bidi_paragraph_init (dir=, > bidi_it=bidi_it@entry=0x7ffd828deab0, > > no_default_p=no_default_p@entry=false) at bidi.c:1674 > > bytepos = 266 > > string_p = > > pstartbyte = > > begbyte = > > end = 266 > > #4 0x000000000043fe4a in set_iterator_to_next (it=it@entry > =0x7ffd828de110, > > reseat_p=reseat_p@entry=false) at xdisp.c:7426 > > prev_scan_dir = 1 > > #5 0x000000000043f4ce in forward_to_next_line_start (it=it@entry > =0x7ffd828de110, > > skipped_p=skipped_p@entry=0x7ffd828dc42f, bidi_it_prev=bidi_it_prev@entry=0x7ffd828dc430) > at > > xdisp.c:6224 > > old_selective = > > newline_found_p = false > > n = > > #6 0x000000000043f6aa in reseat_at_next_visible_line_start (it=it@entry > =0x7ffd828de110, > > on_newline_p=on_newline_p@entry=false) at xdisp.c:6431 > > It's hard to understand how this happens: your build is an optimized > one, so many important values are not accessible to the debugger. The > stuff that is shown seems to present a contradicting picture: > character position 266 is EOB, but it also has a newline character > there, which AFAIU cannot happen. > > Can you prepare a recipe for reproducing this, from "emacs -Q", > loading all the necessary Lisp packages, and then showing the commands > you need to invoke to get Emacs to abort like this? > > Thanks. > --001a113b7206ab8cb8054a52b4f1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eli,=C2=A0
=

I'v= e further investigated the issue and found that this only happens if this m= inor mode: https= ://github.com/ninrod/vim-empty-lines-mode
is activated in conjunction with `with-editor-mode`.=C2=A0

the vim-empty= -lines-mode provides an emulation of the vim's empty lines indicator an= d uses an overlay.=C2=A0

Yes I can try to do that.=C2=A0

Filipe


On Thu, Mar 9, 2017 at 1:14 PM, Eli Zaretskii <eliz@gnu.org>= wrote:
> From: Filipe Silva <filipe.silva@gmail.com>
> Date: Wed, 8 Mar 2017 18:06:40 -0300
>
> Hi. Everytime open a magit buffer to commit write a commit message and= company mode pops up with a
> completion menu, emacs 25.1.1 core dumps on me.
>
> This is the line I used:
>
> gdb --batch --quiet -ex "thread apply all bt full" -ex "= ;quit" /usr/local/bin/emacs core.2466 > coredump.txt
>
> My emacs version: GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Ver= sion 3.14.13) of 2017-02-22
>
> Here's the coredump.
> [...]
> Thread 1 (Thread 0x7f4036acda00 (LWP 2466)): > #0 0x00007f403154b23b in raise () from /lib64/libpthread.so.0
> No symbol table info available.
> #1 0x00000000004e6361 in terminate_due_to_signal (sig=3Dsig@entry=3D6,=
> backtrace_limit=3Dbacktrace_limit@entry=3D40) at emacs.c:381
> No locals.
> #2 0x00000000004fe503 in emacs_abort () at sysdep.c:2247
> No locals.
> #3 0x00000000004a55f5 in bidi_paragraph_init (dir=3D<optimized out&= gt;, bidi_it=3Dbidi_it@entry=3D0x7ffd828deab0,
> no_default_p=3Dno_default_p@entry=3Dfalse) at bidi.c:1674
> bytepos =3D 266
> string_p =3D <optimized out>
> pstartbyte =3D <optimized out>
> begbyte =3D <optimized out>
> end =3D 266
> #4 0x000000000043fe4a in set_iterator_to_next (it=3Dit@entry=3D0x7ffd8= 28de110,
> reseat_p=3Dreseat_p@entry=3Dfalse) at xdisp.c:7426
> prev_scan_dir =3D 1
> #5 0x000000000043f4ce in forward_to_next_line_start (it=3Dit@entry=3D0= x7ffd828de110,
> skipped_p=3Dskipped_p@entry=3D0x7ffd828dc42f, bidi_it_prev=3Dbidi= _it_prev@entry=3D0x7ffd828dc430) at
> xdisp.c:6224
> old_selective =3D <optimized out>
> newline_found_p =3D false
> n =3D <optimized out>
> #6 0x000000000043f6aa in reseat_at_next_visible_line_start (it=3D= it@entry=3D0x7ffd828de110,
> on_newline_p=3Don_newline_p@entry=3Dfalse) at xdisp.c:6431

It's hard to understand how this happens: your build is an = optimized
one, so many important values are not accessible to the debugger.=C2=A0 The=
stuff that is shown seems to present a contradicting picture:
character position 266 is EOB, but it also has a newline character
there, which AFAIU cannot happen.

Can you prepare a recipe for reproducing this, from "emacs -Q", loading all the necessary Lisp packages, and then showing the commands
you need to invoke to get Emacs to abort like this?

Thanks.

--001a113b7206ab8cb8054a52b4f1--