GNU bug report logs - #36166
27.0.50; Crash visiting HELLO when fringe-mode is disabled

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Robert Pluim <rpluim@HIDDEN>; dated Tue, 11 Jun 2019 08:17:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 36166 <at> debbugs.gnu.org:


Received: (at 36166) by debbugs.gnu.org; 11 Jun 2019 14:27:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 11 10:27:13 2019
Received: from localhost ([127.0.0.1]:59912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hahk1-00049S-7G
	for submit <at> debbugs.gnu.org; Tue, 11 Jun 2019 10:27:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59415)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hahjv-00049A-VC
 for 36166 <at> debbugs.gnu.org; Tue, 11 Jun 2019 10:27:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47072)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hahjp-0001gZ-5A; Tue, 11 Jun 2019 10:27:01 -0400
Received: from [176.228.60.248] (port=2853 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hahjm-0001Dd-UA; Tue, 11 Jun 2019 10:27:00 -0400
Date: Tue, 11 Jun 2019 17:26:57 +0300
Message-Id: <83ftog9ozy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
In-reply-to: <m2k1dsy1tu.fsf@HIDDEN> (message from Robert Pluim on Tue, 11
 Jun 2019 10:15:57 +0200)
Subject: Re: bug#36166: 27.0.50;
 Crash visiting HELLO when fringe-mode is disabled
References: <m2k1dsy1tu.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36166
Cc: 36166 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Date: Tue, 11 Jun 2019 10:15:57 +0200
> 
> 
> HOME=/tmp src/emacs /tmp/HELLO
> 
> where /tmp/.emacs.d/init.el contains:
> 
> (custom-set-variables
> '(fringe-mode 0 nil (fringe))
>  )
> 
> and /tmp/HELLO is etc/HELLO with all the non-ASCII removed except for
> the line in Maldivian. I donʼt have a font that can display Maldivian.
> 
> gdb:
> 
> Thread 3 received signal SIGSEGV, Segmentation fault.
> ns_compute_glyph_string_overhangs (s=0x7ffeefbfc7e0) at nsterm.m:2941
> 2941	      if (EQ (font->driver->type, Qns))
> (gdb) bt
> #0  ns_compute_glyph_string_overhangs (s=0x7ffeefbfc7e0) at nsterm.m:2941
> #1  0x0000000100039d74 in draw_glyphs (w=<optimized out>, x=562, row=0x1050c5b00, area=TEXT_AREA, start=0, end=50,
>     hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:27050

This appears to be NS-specific: the NS version of the
compute_glyph_string_overhangs method is very different from the X and
w32 versions, and lacks some safety devices.  (I did try the recipe on
w32, and didn't see any crashes.)

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36166; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Jun 2019 08:16:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 11 04:16:07 2019
Received: from localhost ([127.0.0.1]:57979 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1habws-0000rA-OK
	for submit <at> debbugs.gnu.org; Tue, 11 Jun 2019 04:16:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:50344)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1habwp-0000r0-SU
 for submit <at> debbugs.gnu.org; Tue, 11 Jun 2019 04:16:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47885)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <rpluim@HIDDEN>) id 1habwo-0003fj-MX
 for bug-gnu-emacs@HIDDEN; Tue, 11 Jun 2019 04:16:03 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rpluim@HIDDEN>) id 1habwn-0004m9-Ij
 for bug-gnu-emacs@HIDDEN; Tue, 11 Jun 2019 04:16:02 -0400
Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:37865)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <rpluim@HIDDEN>) id 1habwn-0004lC-CS
 for bug-gnu-emacs@HIDDEN; Tue, 11 Jun 2019 04:16:01 -0400
Received: by mail-ed1-x529.google.com with SMTP id w13so18730778eds.4
 for <bug-gnu-emacs@HIDDEN>; Tue, 11 Jun 2019 01:16:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=YpFw77uRc+1629QoOUgovnKXn65yvqA0GLdwW1HmdsM=;
 b=mSch+yhPds6J5iSWMjiPICUr8ETlndi9ntzzbBxNQlTVxLH2dstctkCn61OZnVq89f
 Oz3wOm5+f3xByD8SCoNNOH8lHfQtBBqicYlclKuykZgvPVJ0+LTmL/xVHqoY/mTDH5ug
 0YbDL9d2dOHhnDwDFZKGcjSBDeHmtCi9PMT82qAZcxTrt0FAgCuXpxHto/mdhzkBhqqI
 AJW5VrJAh+vUWFbc4rsl2NRyDkbDs9y/gnD1+jj/N8072HH+i20ogwLtfAMTiNxh1Hv3
 o2oN1Z7326tvZpeUTDbUM3BJHt2F86yN6/aYx2N1IsITyYJbAwjYBsE7Y4ljzfIa1GUj
 K0uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=YpFw77uRc+1629QoOUgovnKXn65yvqA0GLdwW1HmdsM=;
 b=RLriOQ6/dnHCcgRELV7dokz4L516sw5iSu7EAFDPSo+mSiRlxEvw7VLv7rujbFBfP2
 +XFZTKYI8q6t8mpWq4xiMVUPWhIN3fylXNdKDncBVqmLZipnRIuqDS1bSX5gOOqOEFvM
 tLG+JkO4WcNsaCbqm8kAOovrzP3mCqkuSiNSfqebq9TjeXy2X5ZrzlvWrZm1bew+oNyX
 DHHJM8/PlYlewxb0qCmxhbaDLqHceQ6tDYUcDE82ZV+etKxBcBIPcblCjTueC0iL0L6i
 KGdfxqLWETXxJzzcwfCl6Lhk9tW7KX+x0HMfYlbKJ7YK7xrza6FPy8P4CUg6+2e3Njdj
 KxYQ==
X-Gm-Message-State: APjAAAXmS5+AAILnuh9zm8LGG1uFxUNK0UZsiH7+JouGq8TlF5eAgP/z
 uzwm9b5tqZ77IYSaq0OQfbpfNvLZyng=
X-Google-Smtp-Source: APXvYqzGEfqgE03E26bwChI5HlCsO5MBFE9YMyoQLg2pWqnhqsXn5HAeC6shyLcXZ6kGNqZFl0LCpw==
X-Received: by 2002:a17:906:3e97:: with SMTP id
 a23mr50703474ejj.233.1560240959321; 
 Tue, 11 Jun 2019 01:15:59 -0700 (PDT)
Received: from rpluim-mac ([149.5.228.1])
 by smtp.gmail.com with ESMTPSA id l45sm2765553edc.93.2019.06.11.01.15.57
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Tue, 11 Jun 2019 01:15:58 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Crash visiting HELLO when fringe-mode is disabled
X-Debbugs-No-Ack: yes
Date: Tue, 11 Jun 2019 10:15:57 +0200
Message-ID: <m2k1dsy1tu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::529
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


HOME=3D/tmp src/emacs /tmp/HELLO

where /tmp/.emacs.d/init.el contains:

(custom-set-variables
'(fringe-mode 0 nil (fringe))
 )

and /tmp/HELLO is etc/HELLO with all the non-ASCII removed except for
the line in Maldivian. I don=CA=BCt have a font that can display Maldivian.

gdb:

Thread 3 received signal SIGSEGV, Segmentation fault.
ns_compute_glyph_string_overhangs (s=3D0x7ffeefbfc7e0) at nsterm.m:2941
2941	      if (EQ (font->driver->type, Qns))
(gdb) bt
#0  ns_compute_glyph_string_overhangs (s=3D0x7ffeefbfc7e0) at nsterm.m:2941
#1  0x0000000100039d74 in draw_glyphs (w=3D<optimized out>, x=3D562, row=3D=
0x1050c5b00, area=3DTEXT_AREA, start=3D0, end=3D50,
    hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:27050
#2  0x0000000100038e52 in gui_write_glyphs (w=3D0x105090610, updated_row=3D=
0x0, start=3D<optimized out>,
    updated_area=3D<optimized out>, len=3D<optimized out>) at xdisp.c:29207
#3  0x000000010000a38a in update_text_area (w=3D<optimized out>, updated_ro=
w=3D<optimized out>, vpos=3D<optimized out>)
    at dispnew.c:3701
#4  update_window_line (w=3D0x105090610, vpos=3D<optimized out>, mouse_face=
_overwritten_p=3D0x7ffeefbfd8b7) at dispnew.c:3944
#5  0x0000000100004e2e in update_window (w=3D<optimized out>, force_p=3D<op=
timized out>) at dispnew.c:3482
#6  0x0000000100004394 in update_window_tree (w=3D0x7ffeefbfc7e0, force_p=
=3D<optimized out>) at dispnew.c:3220
#7  0x0000000100004378 in update_window_tree (w=3D0x7ffeefbfc7e0, force_p=
=3D<optimized out>) at dispnew.c:3218
#8  0x00000001000041d9 in update_frame (f=3D0x10508ee35, force_p=3D<optimiz=
ed out>, inhibit_hairy_id_p=3D224) at dispnew.c:3109
#9  0x0000000100028d66 in redisplay_internal () at xdisp.c:14541

'font' is NULL, so the crash is not surprising.

emacs-26 as of 4904fb352c14539e1c6927e8c893abb037bca8a0 crashes the
same way.

In GNU Emacs 27.0.50 (build 43, x86_64-apple-darwin18.6.0, NS appkit-1671.5=
0 Version 10.14.5 (Build 18F132))
 of 2019-06-10 built on rpluim-mac
Repository revision: cdd994b2feeb248d1e02892739c6d6b4d2c5bbdb
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.5

Recent messages:
Annotating...
Redisplaying annotation...done (Spanned from 10247.3 to 5.3 days old)
Annotating... done
Mark saved where search started
Type "q" to restore previous buffer.
Creating customization buffer...
Creating customization items...done
Resetting customization items...done
Creating customization setup...done
ad-handle-definition: `report-emacs-bug' got redefined

Configured using:
 'configure -C'

Configured features:
NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS
JSON PDUMPER LCMS2 GMP




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36166; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 11 Jun 2019 14:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.