unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Seppo Ronkainen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 63283@debbugs.gnu.org
Subject: bug#63283: Emacs crash within fontset
Date: Thu, 04 May 2023 19:04:48 +0000	[thread overview]
Message-ID: <K4p_44K7v8wGZnsq-Hsci5Iv6H4BbyRjL3DrUXbmSAqAfkLMqyNCKMKaZS9--oMARVadfmIF7QFEOznabgO7LG7hsKUDc8WS5Txciy1UrKY=@protonmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 728 bytes --]

Honorable GNU developers !

For some reason the new Emacs 29.0.90 did not build at work the other day unless I provided configuration option --without-all (I plan to look into why later but that is not why I am writing this report now).

When I experimented with Emacs (29.0.90 --without-all) I noticed a crash defect that was easy to reproduce. It seemed to have with fonts to do. I have noticed the same problem both at work CentOS 7.9 and at home (currently on a raspberry pi 4) not that it matters but anyhow several machines / architectures. The problem seemed non-present when I built Emacs without configuration option --without-all

I attach details about my findings in an org file, hope it helps

Live long and prosper

[-- Attachment #1.2: Type: text/html, Size: 777 bytes --]

[-- Attachment #2: 20230504172048utc_emacs_crash_defect_report_to_gnu.org --]
[-- Type: application/octet-stream, Size: 2531 bytes --]



* 20230504172048utc Steps to reproduce

create a test file with some unicode character
#+begin_src emacs-lisp
  (with-temp-file (expand-file-name "~/examplefilewithunicodetext")
    (insert-char (char-from-name "LEFT WHITE CORNER BRACKET")))
#+end_src

~/examplefilewithunicodetext
#+begin_export
『
#+end_export


/home/user/.local/emacs-29.0.90_minimal/cons/src/config.h:131
#+begin_src c
/* Define to the options passed to configure. */
#define EMACS_CONFIG_OPTIONS "--prefix=/home/user/.local/emacs-29.0.90_minimal/inst --without-all"
#+end_src


run Emacs without configuration and after one second increase the font size a few times
#+begin_src sh
  PATH="/home/user/.local/emacs-29.0.90_minimal/inst/bin:${PATH}" gdb --ex run --args emacs -Q ~/examplefilewithunicodetext --eval "(run-at-time 1 '() (lambda() (dotimes (i 10) (text-scale-adjust 1))))"
#+end_src

expected behavior: emacs resizes the font

observed behavior: gdb reports emacs defect in fontset.c on line 555
src/fontset.c:549
#+begin_src c
/* 549 */ static Lisp_Object
/* 550 */ fontset_find_font (Lisp_Object fontset, int c, struct face /* *fa */ce,
/* 551 */                    int charset_id, bool fallback)
/* 552 */ {
/* 553 */   Lisp_Object vec, font_group;
/* 554 */   int i, charset_matched = 0, found_index;
/* 555 */   struct frame *f = (FRAMEP (FONTSET_FRAME (fontset))
/* 556 */                      ? XFRAME (FONTSET_FRAME (fontset))
/* 557 */                      : XFRAME (selected_frame));
#+end_src

#+begin_export
0x00000055557864c8 in fontset_find_font (fontset=fontset@entry=0x20, c=c@entry=12302, face=face@entry=0x5556519100, 
    charset_id=charset_id@entry=-1, fallback=fallback@entry=false) at fontset.c:555
555       struct frame *f = (FRAMEP (FONTSET_FRAME (fontset))
#+end_export





when I run a more recent Emacs 30 withoug specifying --without-all then no defect seem present
#+begin_export
--prefix=/home/user/.local/emacs-head-0d2fdf6e36d35e7ab64d8894e8d4c27b0cc06875/inst --with-gif=no --with-included-regex --with-jpeg=no --with-json=yes --with-mailutils=no --with-makeinfo=no --with-modules --with-rsvg=no --with-threads --with-tiff=no --with-xml2=yes --without-gpm --without-gsettings --without-imagemagick --without-javascript --without-sound
#+end_export

#+begin_src sh
  PATH="/home/user/.local/emacs-head-0d2fdf6e36d35e7ab64d8894e8d4c27b0cc06875/inst/bin:${PATH}" gdb --ex run --args emacs -Q ~/examplefilewithunicodetext --eval "(run-at-time 1 '() (lambda() (dotimes (i 10) (text-scale-adjust 1))))"
#+end_src



             reply	other threads:[~2023-05-04 19:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-04 19:04 Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-05-05  3:19 ` bug#63283: Emacs crash within fontset Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-05  4:37 ` Eli Zaretskii
     [not found]   ` <O0y0FC8UdwKgg50s40rJP5ahH61bZfOHqEE6soqVPHCOnUr0PvUNonc9GL2dmbHDWiwZBu_6Pc29DlpXNQE80C5vQJRrgGza-nVbU_OczfY=@protonmail.com>
2023-05-06 10:20     ` Eli Zaretskii
2023-05-06 19:12       ` Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-06 19:33         ` Eli Zaretskii
2023-05-06 22:36           ` Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-07  6:48             ` Eli Zaretskii
2023-05-08 21:22               ` Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-09  5:26                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='K4p_44K7v8wGZnsq-Hsci5Iv6H4BbyRjL3DrUXbmSAqAfkLMqyNCKMKaZS9--oMARVadfmIF7QFEOznabgO7LG7hsKUDc8WS5Txciy1UrKY=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=63283@debbugs.gnu.org \
    --cc=sodr80@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).