GNU bug report logs - #28172
26.0.50; division by zero in x_draw_underwave

Previous Next

Package: emacs;

Reported by: Yuri D'Elia <wavexx <at> thregr.org>

Date: Mon, 21 Aug 2017 14:10:01 UTC

Severity: normal

Found in version 26.0.50

Done: Yuri D'Elia <wavexx <at> thregr.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28172 in the body.
You can then email your comments to 28172 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#28172; Package emacs. (Mon, 21 Aug 2017 14:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuri D'Elia <wavexx <at> thregr.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 21 Aug 2017 14:10:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuri D'Elia <wavexx <at> thregr.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; division by zero in x_draw_underwave
Date: Mon, 21 Aug 2017 16:09:00 +0200
Emacs 26 (lucid, from master) here, I get a division by zero when
activating flyspell underlining, happening at:

Thread 1 "emacs" received signal SIGFPE, Arithmetic exception.
0x00000000005181a3 in x_draw_underwave (s=0x7fffffffbe20) at xterm.c:3541
3541	  x1 = x0 - (x0 % dx);
(gdb) where
#0  0x00000000005181a3 in x_draw_underwave (s=0x7fffffffbe20) at xterm.c:3541
#1  0x0000000000518877 in x_draw_glyph_string (s=0x7fffffffbe20) at xterm.c:3685
#2 0x00000000004805d4 in draw_glyphs (w=0x148dc30 <bss_sbrk_buffer+8070032>,
x=233, row=0x2eda080, area=TEXT_AREA, start=7, end=26, hl=DRAW_NORMAL_TEXT,
overlaps=0) at xdisp.c:26595
(gdb) p dx
$1 = 0

I guess this was introduced in the recent HiDPI support for wave
underlines. Let me know if you need additional details about the monitor
configuration (laptop with an external display).


In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2017-08-21 built on eab17048nb
Repository revision: 807b67faa403a2c2f65666c28f74ea1989451ad1
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description:	Debian GNU/Linux unstable (sid)

Configured using:
 'configure --with-x-toolkit=lucid --with-modules --without-gsettings
 CC=gcc 'CFLAGS=-O3 -march=native -pipe ' LDFLAGS='

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL LIBSELINUX GNUTLS
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11
MODULES LIBSYSTEMD

Important settings:
  value of $LC_COLLATE: C
  value of $LC_TIME: en_DK.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix




Reply sent to Yuri D'Elia <wavexx <at> thregr.org>:
You have taken responsibility. (Mon, 21 Aug 2017 17:30:02 GMT) Full text and rfc822 format available.

Notification sent to Yuri D'Elia <wavexx <at> thregr.org>:
bug acknowledged by developer. (Mon, 21 Aug 2017 17:30:03 GMT) Full text and rfc822 format available.

Message #10 received at 28172-done <at> debbugs.gnu.org (full text, mbox):

From: Yuri D'Elia <wavexx <at> thregr.org>
To: 28172-done <at> debbugs.gnu.org
Subject: Fixed
Date: Mon, 21 Aug 2017 19:29:54 +0200
Fixed in commit 76fbe2f4541b11af8bcb0b5e57bb155b796b8d8e




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Sep 2017 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 268 days ago.

Previous Next


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