From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34256: 27.0.50; Crash on draw_glyphs() Date: Wed, 30 Jan 2019 20:55:21 +0200 Message-ID: <83bm3y0ycm.fsf@gnu.org> References: <83pnse15pb.fsf@gnu.org> <83k1im142z.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="127334"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34256@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 30 19:57:00 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gov2h-000X0f-V7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 19:57:00 +0100 Original-Received: from localhost ([127.0.0.1]:42805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gov2h-0002uy-0x for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 13:56:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gov1o-0002UM-DX for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 13:56:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gov1m-0007PK-Gc for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 13:56:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gov1m-0007Ou-47 for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gov1l-000381-Un for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 13:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jan 2019 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34256 X-GNU-PR-Package: emacs Original-Received: via spool by 34256-submit@debbugs.gnu.org id=B34256.154887454211999 (code B ref 34256); Wed, 30 Jan 2019 18:56:01 +0000 Original-Received: (at 34256) by debbugs.gnu.org; 30 Jan 2019 18:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:51919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gov1R-00037T-M5 for submit@debbugs.gnu.org; Wed, 30 Jan 2019 13:55:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gov1Q-00037F-Bu for 34256@debbugs.gnu.org; Wed, 30 Jan 2019 13:55:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gov1K-0006vX-LT; Wed, 30 Jan 2019 13:55:34 -0500 Original-Received: from [176.228.60.248] (port=3590 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gov1J-0001eM-Ok; Wed, 30 Jan 2019 13:55:34 -0500 In-reply-to: (message from Kaushal Modi on Wed, 30 Jan 2019 13:22:01 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:154898 Archived-At: > From: Kaushal Modi > Date: Wed, 30 Jan 2019 13:22:01 -0500 > Cc: 34256@debbugs.gnu.org > > - I cannot reproduce the crash in an emacs -Q session using the same Org file, or even using my full > unaltered config (except for commenting out desktop loading). > > But now I have this detailed backtrace; hopefully it helps you spot the problem: > > xdisp.c:26154: Emacs fatal error: assertion failed: s->img > > Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, > backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:370 > 370 { > (gdb) bt > #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at > emacs.c:370 > #1 0x00000000005a1622 in die (msg=msg@entry=0x67dc2c "s->img", file=file@entry=0x67dbaa "xdisp.c", > line=line@entry=26154) at alloc.c:7453 > #2 0x00000000004378fe in fill_image_glyph_string (s=s@entry=0x7fffffff7aa0) at xdisp.c:26154 > #3 0x00000000004708cf in draw_glyphs (w=w@entry=0x13fa4e0, x=44, row=0x234ba50, > area=area@entry=TEXT_AREA, start=, start@entry=0, end=end@entry=6, > hl=DRAW_NORMAL_TEXT, overlaps=0) > at xdisp.c:26841 This says Emacs was trying to display an image, but what image is that? Where did it come from? And could it be that the new native image scaling is the reason for this (i.e., was the image supposed to be resized)? Hmm, but you built with ImageMagick, which AFAIU means the native resizing code should not be invoked... > - The Org file/buffer seen when this crash happens displays inline images. Please show the relevant parts of the file anyway. Also, in this callstack frame: #2 0x00000000004378fe in fill_image_glyph_string (s=s@entry=0x7fffffff7aa0) at xdisp.c:26154 please show the full contents of s->first_glyph. Like this: (gdb) frame 2 (gdb) p *s->first_glyph