GNU bug report logs -
#28172
26.0.50; division by zero in x_draw_underwave
Previous Next
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.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#28172: 26.0.50; division by zero in x_draw_underwave
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 28172 <at> debbugs.gnu.org.
--
28172: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28172
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Fixed in commit 76fbe2f4541b11af8bcb0b5e57bb155b796b8d8e
[Message part 3 (message/rfc822, inline)]
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
This bug report was last modified 7 years and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.