unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63283: Emacs crash within fontset
@ 2023-05-04 19:04 Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-05-05  3:19 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-05-05  4:37 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-05-04 19:04 UTC (permalink / raw)
  To: 63283


[-- 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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-05-09  5:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-04 19:04 bug#63283: Emacs crash within fontset Seppo Ronkainen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-05  3:19 ` 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

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).