GNU bug report logs - #55068
29.0.50; crashes when trying to set default font

Previous Next

Package: emacs;

Reported by: Gregor Zattler <telegraph <at> gmx.net>

Date: Fri, 22 Apr 2022 18:39:02 UTC

Severity: normal

Tags: confirmed

Found in version 29.0.50

To reply to this bug, email your comments to 55068 AT debbugs.gnu.org.

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#55068; Package emacs. (Fri, 22 Apr 2022 18:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gregor Zattler <telegraph <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Apr 2022 18:39:02 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; crashes when trying to set default font
Date: Fri, 22 Apr 2022 20:38:40 +0200
Dear emacs developers, emacs (Lucid) crashes when I try to
set the default font, see below.  All infos in this bug
report describea newly build emacs.  I send this bug report
with another build.

Receipt:

1. Start emacs -Q
2. click "Option" in menu bar
3. click "Set default Font" in drop down  menu
4. hoover over  "More Fonts" on context menu
5. click "by Family"
6. emacs crashes



0 (master=) grfz <at> no:~/src/emacs/src$ gdb ./emacs
[...]
Reading symbols from ./emacs...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
TERM = screen-256color-bce-s
Breakpoint 1 at 0x1fbf3d: file emacs.c, line 420.
Breakpoint 2 at 0x1bf667: file xterm.c, line 19987.
(gdb) run -Q
Starting program: /home/grfz/src/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef807700 (LWP 350876)]
[New Thread 0x7fffeefe8700 (LWP 350877)]
[New Thread 0x7fffee7e7700 (LWP 350878)]
[Detaching after vfork from child process 352257]
[Detaching after vfork from child process 352260]

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
x_menu_show (f=0x555556143800, x=301, y=458, menuflags=0, title=XIL(0x7ffff02d86ec), error_name=0x7fffffffc078) at xmenu.c:1816
1816      specpdl_ref specpdl_count = SPECPDL_INDEX ();
(gdb) bt full
#0  x_menu_show (f=0x555556143800, x=301, y=458, menuflags=0, title=XIL(0x7ffff02d86ec), error_name=0x7fffffffc078) at xmenu.c:1816
        i = 21845
        wv = 0x0
        save_wv = 0x0
        first_wv = 0x0
        prev_wv = 0x0
        submenu_stack = 0x7fffff83cff0
        subprefix_stack = 0x7fffff07e0b0
        submenu_depth = 0
        specpdl_count = {
          bytes = 1
        }
        first_pane = 85
#1  0x0000555555650996 in x_popup_menu_1 (position=XIL(0x5555569a88f3), menu=XIL(0x5555569bed53)) at menu.c:1402
        keymap = XIL(0)
        tem = XIL(0)
        tem2 = XIL(0)
        xpos = 301
        ypos = 458
        title = XIL(0x7ffff02d86ec)
        error_name = 0x0
        selection = XIL(0)
        f = 0x555556143800
        x = make_fixnum(301)
        y = make_fixnum(458)
        window = XIL(0x555556143805)
        menuflags = 0
        specpdl_count = {
          bytes = 384
        }
#2  0x0000555555650a29 in Fx_popup_menu (position=XIL(0x5555569a88f3), menu=XIL(0x5555569bed53)) at menu.c:1466
#3  0x000055555584a19e in funcall_subr (subr=0x555555e6d960 <Sx_popup_menu>, numargs=2, args=0x7fffef835110) at eval.c:2913
        argbuf =
          {XIL(0x7fffffffc1b0), make_fixnum(23456248935332), XIL(0x7fffffffc1a0), XIL(0x1155e6d965), XIL(0x555555e6d965), XIL(0x7fffffffc1c0), XIL(0x5555558ac8ff), XIL(0x555555e6d965)}
        a = 0x7fffef835110
        fun = XIL(0x5555558ac0dd)
#4  0x00005555558ae2ee in exec_byte_code (fun=XIL(0x7ffff0291405), args_template=513, nargs=1, args=0x7fffef835218) at bytecode.c:809
        call_nargs = 2
        call_fun = XIL(0x555555e6d965)
        count1 = {
          bytes = 352
        }
        template = make_fixnum(513)
        val = XIL(0x5555586f0994)
        call_args = 0x7fffef835110
        original_fun = XIL(0x2aaa9a357638)
        bytecode = XIL(0x7ffff02914a4)
        op = 2
        type = CATCHER
        targets =
          {0x5555558b2882 <exec_byte_code+22044>, 0x5555558b28b0 <exec_byte_code+22090>, 0x5555558b28b2 <exec_byte_code+22092>, 0x5555558b28b4 <exec_byte_code+22094>, 0x5555558b28b6 <exec_byte_code+22096>, 0x5555558b28b6 <exec_byte_code+22096>, 0x5555558b2933 <exec_byte_code+22221>, 0x5555558b29c2 <exec_byte_code+22364>, 0x5555558ad7f8 <exec_byte_code+1426>, 0x5555558ad7fa <exec_byte_code+1428>, 0x5555558ad7fc <exec_byte_code+1430>, 0x5555558ad7fe <exec_byte_code+1432>, 0x5555558ad800 <exec_byte_code+1434>, 0x5555558ad800 <exec_byte_code+1434>, 0x5555558ad809 <exec_byte_code+1443>, 0x5555558ad7b5 <exec_byte_code+1359>, 0x5555558add04 <exec_byte_code+2718>, 0x5555558add06 <exec_byte_code+2720>, 0x5555558add08 <exec_byte_code+2722>, 0x5555558add0a <exec_byte_code+2724>, 0x5555558add0c <exec_byte_code+2726>, 0x5555558add0c <exec_byte_code+2726>, 0x5555558add56 <exec_byte_code+2800>, 0x5555558add15 <exec_byte_code+2735>, 0x5555558adfae <exec_byte_code+3400>, 0x5555558adfb0 <exec_byte_code+3402>, 0x5555558adfb2 <exec_byte_code+3404>, 0x5555558adfb4 <exec_byte_code+3406>, 0x5555558adfb6 <exec_byte_code+3408>, 0x5555558adfb6 <exec_byte_code+3408>, 0x5555558adf4d <exec_byte_code+3303>, 0x5555558adf6d <exec_byte_code+3335>, 0x5555558ae094 <exec_byte_code+3630>, 0x5555558ae096 <exec_byte_code+3632>, 0x5555558ae098 <exec_byte_code+3634>, 0x5555558ae09a <exec_byte_code+3636>, 0x5555558ae09c <exec_byte_code+3638>, 0x5555558ae09c <exec_byte_code+3638>, 0x5555558ae033 <exec_byte_code+3533>, 0x5555558ae053 <exec_byte_code+3565>, 0x5555558ae446 <exec_byte_code+4576>, 0x5555558ae448 <exec_byte_code+4578>, 0x5555558ae44a <exec_byte_code+4580>, 0x5555558ae44c <exec_byte_code+4582>, 0x5555558ae44e <exec_byte_code+4584>, 0x5555558ae44e <exec_byte_code+4584>, 0x5555558ae3e5 <exec_byte_code+4479>, 0x5555558ae405 <exec_byte_code+4511>, 0x5555558aee25 <exec_byte_code+7103>, 0x5555558aec45 <exec_byte_code+6623>, 0x5555558aec39 <exec_byte_code+6611>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558af0ca <exec_byte_code+7780>, 0x5555558af21f <exec_byte_code+8121>, 0x5555558af2a0 <exec_byte_code+8250>, 0x5555558af322 <exec_byte_code+8380>, 0x5555558af3a3 <exec_byte_code+8509>, 0x5555558adafb <exec_byte_code+2197>, 0x5555558adba2 <exec_byte_code+2364>, 0x5555558af441 <exec_byte_code+8667>, 0x5555558ada1a <exec_byte_code+1972>, 0x5555558adc22 <exec_byte_code+2492>, 0x5555558af4cb <exec_byte_code+8805>, 0x5555558af54b <exec_byte_code+8933>, 0x5555558af5a5 <exec_byte_code+9023>, 0x5555558af625 <exec_byte_code+9151>, 0x5555558af6a3 <exec_byte_code+9277>, 0x5555558af7ce <exec_byte_code+9576>, 0x5555558af828 <exec_byte_code+9666>, 0x5555558af97e <exec_byte_code+10008>, 0x5555558afb02 <exec_byte_code+10396>, 0x5555558afb5c <exec_byte_code+10486>, 0x5555558afbb6 <exec_byte_code+10576>, 0x5555558afc36 <exec_byte_code+10704>, 0x5555558afcb6 <exec_byte_code+10832>, 0x5555558afd36 <exec_byte_code+10960>, 0x5555558afdd9 <exec_byte_code+11123>, 0x5555558afe40 <exec_byte_code+11226>, 0x5555558afea7 <exec_byte_code+11329>, 0x5555558affad <exec_byte_code+11591>, 0x5555558b00b9 <exec_byte_code+11859>, 0x5555558b01c5 <exec_byte_code+12127>, 0x5555558b02c5 <exec_byte_code+12383>, 0x5555558b03d5 <exec_byte_code+12655>, 0x5555558b04e5 <exec_byte_code+12927>, 0x5555558b05f5 <exec_byte_code+13199>, 0x5555558b0705 <exec_byte_code+13471>, 0x5555558b088d <exec_byte_code+13863>, 0x5555558b099d <exec_byte_code+14135>, 0x5555558b0b2e <exec_byte_code+14536>, 0x5555558b0c15 <exec_byte_code+14767>, 0x5555558b0cfc <exec_byte_code+14998>, 0x5555558b11ed <exec_byte_code+16263>, 0x5555558aea74 <exec_byte_code+6158>, 0x5555558b125d <exec_byte_code+16375>, 0x5555558b12b7 <exec_byte_code+16465>, 0x5555558b13b5 <exec_byte_code+16719>, 0x5555558b1425 <exec_byte_code+16831>, 0x5555558b1495 <exec_byte_code+16943>, 0x5555558b14ef <exec_byte_code+17033>, 0x5555558b1547 <exec_byte_code+17121>, 0x5555558b159f <exec_byte_code+17209>, 0x5555558b15ff <exec_byte_code+17305>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b1669 <exec_byte_code+17411>, 0x5555558b16c1 <exec_byte_code+17499>, 0x5555558b1719 <exec_byte_code+17587>, 0x5555558b1771 <exec_byte_code+17675>, 0x5555558b17c9 <exec_byte_code+17763>, 0x5555558b1821 <exec_byte_code+17851>, 0x5555558aea74 <exec_byte_code+6158>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b187b <exec_byte_code+17941>, 0x5555558b18e2 <exec_byte_code+18044>, 0x5555558b193c <exec_byte_code+18134>, 0x5555558b1996 <exec_byte_code+18224>, 0x5555558b1a16 <exec_byte_code+18352>, 0x5555558b1a96 <exec_byte_code+18480>, 0x5555558b1af0 <exec_byte_code+18570>, 0x5555558b1b4a <exec_byte_code+18660>, 0x5555558b1bca <exec_byte_code+18788>, 0x5555558b1c4a <exec_byte_code+18916>, 0x5555558b1cca <exec_byte_code+19044>, 0x5555558b1d22 <exec_byte_code+19132>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558ae98b <exec_byte_code+5925>, 0x5555558ae4c6 <exec_byte_code+4704>, 0x5555558ad964 <exec_byte_code+1790>, 0x5555558ae5a4 <exec_byte_code+4926>, 0x5555558ae64c <exec_byte_code+5094>, 0x5555558ae6f1 <exec_byte_code+5259>, 0x5555558ae796 <exec_byte_code+5424>, 0x5555558ae945 <exec_byte_code+5855>, 0x5555558adee5 <exec_byte_code+3199>, 0x5555558aea31 <exec_byte_code+6091>, 0x5555558aeab7 <exec_byte_code+6225>, 0x5555558aeb5a <exec_byte_code+6388>, 0x5555558aebaf <exec_byte_code+6473>, 0x5555558aee7d <exec_byte_code+7191>, 0x5555558aef0c <exec_byte_code+7334>, 0x5555558aefaf <exec_byte_code+7497>, 0x5555558af024 <exec_byte_code+7614>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b1d7c <exec_byte_code+19222>, 0x5555558b1e1f <exec_byte_code+19385>, 0x5555558b1e79 <exec_byte_code+19475>, 0x5555558b1ed3 <exec_byte_code+19565>, 0x5555558b1f2d <exec_byte_code+19655>, 0x5555558b1f87 <exec_byte_code+19745>, 0x5555558b2007 <exec_byte_code+19873>, 0x5555558b2087 <exec_byte_code+20001>, 0x5555558b2107 <exec_byte_code+20129>, 0x5555558b2187 <exec_byte_code+20257>, 0x5555558b22f1 <exec_byte_code+20619>, 0x5555558b2371 <exec_byte_code+20747>, 0x5555558b23f1 <exec_byte_code+20875>, 0x5555558b244b <exec_byte_code+20965>, 0x5555558b2558 <exec_byte_code+21234>, 0x5555558b2665 <exec_byte_code+21503>, 0x5555558b26bf <exec_byte_code+21593>, 0x5555558b2719 <exec_byte_code+21683>, 0x5555558b0eb6 <exec_byte_code+15440>, 0x5555558b1076 <exec_byte_code+15888>, 0x5555558b2780 <exec_byte_code+21786>, 0x5555558b2801 <exec_byte_code+21915>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558af72f <exec_byte_code+9417>, 0x5555558aff0e <exec_byte_code+11432>, 0x5555558b1316 <exec_byte_code+16560>, 0x5555558b2a78 <exec_byte_code+22546>, 0x5555558b2b08 <exec_byte_code+22690>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2bc1 <exec_byte_code+22875>, 0x5555558b2c72 <exec_byte_code+23052>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2de5 <exec_byte_code+23423> <repeats 64 times>}
        quitcounter = 115 's'
        bc = 0x555555e69750 <main_thread+496>
        top = 0x7fffef835108
        pc = 0x7ffff0a5d5f3 "@\207\207"
        bytestr = XIL(0x7ffff02914a4)
        vector = XIL(0x7ffff0291445)
        maxdepth = make_fixnum(10)
        const_length = 7
        bytestr_length = 29
        vectorp = 0x7ffff04d0670
        max_stack = 10
        frame_base = 0x7fffef835240
        fp = 0x7fffef835290
        bytestr_data = 0x7ffff0a5d5bc "\302 \204\t"
        rest = false
        mandatory = 1
        nonrest = 2
        pushedargs = 1
        result = XIL(0x555556084254)
#5  0x000055555584a52d in fetch_and_exec_byte_code (fun=XIL(0x7ffff04d0575), args_template=0, nargs=0, args=0x7fffffffcb50) at eval.c:2960
#6  0x000055555584a9bc in funcall_lambda (fun=XIL(0x7ffff04d0575), nargs=0, arg_vector=0x7fffffffcb50) at eval.c:3032
        val = XIL(0x2aaa9a5bc880)
        syms_left = make_fixnum(0)
        next = make_fixnum(23456248823624)
        lexenv = XIL(0x7fffffffc730)
        count = {
          bytes = 320
        }
        i = 119995696320
        optional = false
        rest = false
        previous_rest = false
#7  0x0000555555849c9e in funcall_general (fun=XIL(0x7ffff04d0575), numargs=0, args=0x7fffffffcb50) at eval.c:2823
        original_fun = XIL(0x2aaa9a5bc880)
#8  0x0000555555849f29 in Ffuncall (nargs=1, args=0x7fffffffcb48) at eval.c:2873
        count = {
          bytes = 288
        }
        val = make_fixnum(23456248819845)
#9  0x000055555583cf42 in Ffuncall_interactively (nargs=1, args=0x7fffffffcb48) at callint.c:260
        speccount = {
          bytes = 256
        }
#10 0x000055555584a3a5 in funcall_subr (subr=0x555555e80c20 <Sfuncall_interactively>, numargs=1, args=0x7fffffffcb48) at eval.c:2938
        fun = make_fixnum(23456248823645)
#11 0x0000555555849c52 in funcall_general (fun=XIL(0x555555e80c25), numargs=1, args=0x7fffffffcb48) at eval.c:2819
        original_fun = XIL(0x7b30)
#12 0x0000555555849f29 in Ffuncall (nargs=2, args=0x7fffffffcb40) at eval.c:2873
        count = {
          bytes = 224
        }
        val = make_fixnum(23456248823808)
#13 0x0000555555848d5d in Fapply (nargs=3, args=0x7fffffffcb40) at eval.c:2503
        i = 140737488341424
        funcall_nargs = 93825002485616
        funcall_args = 0x0
        spread_arg = XIL(0)
        fun = XIL(0x7b30)
        sa_avail = 16384
        sa_count = {
          bytes = 224
        }
        numargs = 0
        retval = XIL(0x55555583b9d7)
#14 0x000055555583d3d6 in Fcall_interactively (function=XIL(0x2aaa9a5bc880), record_flag=XIL(0), keys=XIL(0x7ffff0962d25)) at callint.c:353
        funval = XIL(0x7ffff04d0575)
        events = 6
        input = XIL(0)
        speccount = {
          bytes = 192
        }
        arg_from_tty = false
        key_count = 3
        record_then_fail = false
        save_this_command = XIL(0x2aaa9a5bc880)
        save_this_original_command = XIL(0x2aaa9a5bc880)
        save_real_this_command = XIL(0x2aaa9a5bc880)
        save_last_command = XIL(0x2aaa9a5bc880)
        prefix_arg = XIL(0)
        enable = XIL(0)
        up_event = XIL(0)
        form = XIL(0x5555569a8b23)
        specs = XIL(0)
        sa_avail = 140737488341648
        sa_count = {
          bytes = 140737488341600
        }
        string_len = 0
        string = 0x55555581b103 <XSYMBOL+100> "\353\030H\213E\370H\211\307\350\353\376\377\377H\213@\bH\211\307\350(\377\377\377\311\303UH\211\345H\203\354 H\211}\350H\215\025\016\213o"
        string_end = 0x0
        next_event = 140737488341680
        nargs = 140737488341696
        args = 0x0
        visargs = 0x555555f13c40 <lispsym>
        varies = 0x7fffffffcb00 " \313\377\377\377\177"
        tem = 0x555555f13c40 <lispsym> "\230\001"
        val = XIL(0x60)
#15 0x000055555584a1cd in funcall_subr (subr=0x555555e80c80 <Scall_interactively>, numargs=3, args=0x7fffef835070) at eval.c:2915
        argbuf =
          {XIL(0x7fffffffcc10), make_fixnum(23456248935332), XIL(0x7fffffffcc00), XIL(0x1155e80c85), XIL(0x555555e80c85), XIL(0x7fffffffcc20), XIL(0x5555558ac8ff), XIL(0x555555e80c85)}
        a = 0x7fffef835070
        fun = XIL(0x5555558ac0dd)
#16 0x00005555558ae2ee in exec_byte_code (fun=XIL(0x7ffff025eedd), args_template=1025, nargs=1, args=0x7fffffffd260) at bytecode.c:809
        call_nargs = 3
        call_fun = XIL(0x555555e80c85)
        count1 = {
          bytes = 160
        }
        template = XIL(0)
        val = XIL(0)
        call_args = 0x7fffef835070
        original_fun = XIL(0x2aaa9a313c38)
        bytecode = XIL(0x555555e7b7c5)
        op = 3
        type = CATCHER
        targets =
          {0x5555558b2882 <exec_byte_code+22044>, 0x5555558b28b0 <exec_byte_code+22090>, 0x5555558b28b2 <exec_byte_code+22092>, 0x5555558b28b4 <exec_byte_code+22094>, 0x5555558b28b6 <exec_byte_code+22096>, 0x5555558b28b6 <exec_byte_code+22096>, 0x5555558b2933 <exec_byte_code+22221>, 0x5555558b29c2 <exec_byte_code+22364>, 0x5555558ad7f8 <exec_byte_code+1426>, 0x5555558ad7fa <exec_byte_code+1428>, 0x5555558ad7fc <exec_byte_code+1430>, 0x5555558ad7fe <exec_byte_code+1432>, 0x5555558ad800 <exec_byte_code+1434>, 0x5555558ad800 <exec_byte_code+1434>, 0x5555558ad809 <exec_byte_code+1443>, 0x5555558ad7b5 <exec_byte_code+1359>, 0x5555558add04 <exec_byte_code+2718>, 0x5555558add06 <exec_byte_code+2720>, 0x5555558add08 <exec_byte_code+2722>, 0x5555558add0a <exec_byte_code+2724>, 0x5555558add0c <exec_byte_code+2726>, 0x5555558add0c <exec_byte_code+2726>, 0x5555558add56 <exec_byte_code+2800>, 0x5555558add15 <exec_byte_code+2735>, 0x5555558adfae <exec_byte_code+3400>, 0x5555558adfb0 <exec_byte_code+3402>, 0x5555558adfb2 <exec_byte_code+3404>, 0x5555558adfb4 <exec_byte_code+3406>, 0x5555558adfb6 <exec_byte_code+3408>, 0x5555558adfb6 <exec_byte_code+3408>, 0x5555558adf4d <exec_byte_code+3303>, 0x5555558adf6d <exec_byte_code+3335>, 0x5555558ae094 <exec_byte_code+3630>, 0x5555558ae096 <exec_byte_code+3632>, 0x5555558ae098 <exec_byte_code+3634>, 0x5555558ae09a <exec_byte_code+3636>, 0x5555558ae09c <exec_byte_code+3638>, 0x5555558ae09c <exec_byte_code+3638>, 0x5555558ae033 <exec_byte_code+3533>, 0x5555558ae053 <exec_byte_code+3565>, 0x5555558ae446 <exec_byte_code+4576>, 0x5555558ae448 <exec_byte_code+4578>, 0x5555558ae44a <exec_byte_code+4580>, 0x5555558ae44c <exec_byte_code+4582>, 0x5555558ae44e <exec_byte_code+4584>, 0x5555558ae44e <exec_byte_code+4584>, 0x5555558ae3e5 <exec_byte_code+4479>, 0x5555558ae405 <exec_byte_code+4511>, 0x5555558aee25 <exec_byte_code+7103>, 0x5555558aec45 <exec_byte_code+6623>, 0x5555558aec39 <exec_byte_code+6611>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558af0ca <exec_byte_code+7780>, 0x5555558af21f <exec_byte_code+8121>, 0x5555558af2a0 <exec_byte_code+8250>, 0x5555558af322 <exec_byte_code+8380>, 0x5555558af3a3 <exec_byte_code+8509>, 0x5555558adafb <exec_byte_code+2197>, 0x5555558adba2 <exec_byte_code+2364>, 0x5555558af441 <exec_byte_code+8667>, 0x5555558ada1a <exec_byte_code+1972>, 0x5555558adc22 <exec_byte_code+2492>, 0x5555558af4cb <exec_byte_code+8805>, 0x5555558af54b <exec_byte_code+8933>, 0x5555558af5a5 <exec_byte_code+9023>, 0x5555558af625 <exec_byte_code+9151>, 0x5555558af6a3 <exec_byte_code+9277>, 0x5555558af7ce <exec_byte_code+9576>, 0x5555558af828 <exec_byte_code+9666>, 0x5555558af97e <exec_byte_code+10008>, 0x5555558afb02 <exec_byte_code+10396>, 0x5555558afb5c <exec_byte_code+10486>, 0x5555558afbb6 <exec_byte_code+10576>, 0x5555558afc36 <exec_byte_code+10704>, 0x5555558afcb6 <exec_byte_code+10832>, 0x5555558afd36 <exec_byte_code+10960>, 0x5555558afdd9 <exec_byte_code+11123>, 0x5555558afe40 <exec_byte_code+11226>, 0x5555558afea7 <exec_byte_code+11329>, 0x5555558affad <exec_byte_code+11591>, 0x5555558b00b9 <exec_byte_code+11859>, 0x5555558b01c5 <exec_byte_code+12127>, 0x5555558b02c5 <exec_byte_code+12383>, 0x5555558b03d5 <exec_byte_code+12655>, 0x5555558b04e5 <exec_byte_code+12927>, 0x5555558b05f5 <exec_byte_code+13199>, 0x5555558b0705 <exec_byte_code+13471>, 0x5555558b088d <exec_byte_code+13863>, 0x5555558b099d <exec_byte_code+14135>, 0x5555558b0b2e <exec_byte_code+14536>, 0x5555558b0c15 <exec_byte_code+14767>, 0x5555558b0cfc <exec_byte_code+14998>, 0x5555558b11ed <exec_byte_code+16263>, 0x5555558aea74 <exec_byte_code+6158>, 0x5555558b125d <exec_byte_code+16375>, 0x5555558b12b7 <exec_byte_code+16465>, 0x5555558b13b5 <exec_byte_code+16719>, 0x5555558b1425 <exec_byte_code+16831>, 0x5555558b1495 <exec_byte_code+16943>, 0x5555558b14ef <exec_byte_code+17033>, 0x5555558b1547 <exec_byte_code+17121>, 0x5555558b159f <exec_byte_code+17209>, 0x5555558b15ff <exec_byte_code+17305>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b1669 <exec_byte_code+17411>, 0x5555558b16c1 <exec_byte_code+17499>, 0x5555558b1719 <exec_byte_code+17587>, 0x5555558b1771 <exec_byte_code+17675>, 0x5555558b17c9 <exec_byte_code+17763>, 0x5555558b1821 <exec_byte_code+17851>, 0x5555558aea74 <exec_byte_code+6158>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b187b <exec_byte_code+17941>, 0x5555558b18e2 <exec_byte_code+18044>, 0x5555558b193c <exec_byte_code+18134>, 0x5555558b1996 <exec_byte_code+18224>, 0x5555558b1a16 <exec_byte_code+18352>, 0x5555558b1a96 <exec_byte_code+18480>, 0x5555558b1af0 <exec_byte_code+18570>, 0x5555558b1b4a <exec_byte_code+18660>, 0x5555558b1bca <exec_byte_code+18788>, 0x5555558b1c4a <exec_byte_code+18916>, 0x5555558b1cca <exec_byte_code+19044>, 0x5555558b1d22 <exec_byte_code+19132>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558ae98b <exec_byte_code+5925>, 0x5555558ae4c6 <exec_byte_code+4704>, 0x5555558ad964 <exec_byte_code+1790>, 0x5555558ae5a4 <exec_byte_code+4926>, 0x5555558ae64c <exec_byte_code+5094>, 0x5555558ae6f1 <exec_byte_code+5259>, 0x5555558ae796 <exec_byte_code+5424>, 0x5555558ae945 <exec_byte_code+5855>, 0x5555558adee5 <exec_byte_code+3199>, 0x5555558aea31 <exec_byte_code+6091>, 0x5555558aeab7 <exec_byte_code+6225>, 0x5555558aeb5a <exec_byte_code+6388>, 0x5555558aebaf <exec_byte_code+6473>, 0x5555558aee7d <exec_byte_code+7191>, 0x5555558aef0c <exec_byte_code+7334>, 0x5555558aefaf <exec_byte_code+7497>, 0x5555558af024 <exec_byte_code+7614>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b1d7c <exec_byte_code+19222>, 0x5555558b1e1f <exec_byte_code+19385>, 0x5555558b1e79 <exec_byte_code+19475>, 0x5555558b1ed3 <exec_byte_code+19565>, 0x5555558b1f2d <exec_byte_code+19655>, 0x5555558b1f87 <exec_byte_code+19745>, 0x5555558b2007 <exec_byte_code+19873>, 0x5555558b2087 <exec_byte_code+20001>, 0x5555558b2107 <exec_byte_code+20129>, 0x5555558b2187 <exec_byte_code+20257>, 0x5555558b22f1 <exec_byte_code+20619>, 0x5555558b2371 <exec_byte_code+20747>, 0x5555558b23f1 <exec_byte_code+20875>, 0x5555558b244b <exec_byte_code+20965>, 0x5555558b2558 <exec_byte_code+21234>, 0x5555558b2665 <exec_byte_code+21503>, 0x5555558b26bf <exec_byte_code+21593>, 0x5555558b2719 <exec_byte_code+21683>, 0x5555558b0eb6 <exec_byte_code+15440>, 0x5555558b1076 <exec_byte_code+15888>, 0x5555558b2780 <exec_byte_code+21786>, 0x5555558b2801 <exec_byte_code+21915>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558af72f <exec_byte_code+9417>, 0x5555558aff0e <exec_byte_code+11432>, 0x5555558b1316 <exec_byte_code+16560>, 0x5555558b2a78 <exec_byte_code+22546>, 0x5555558b2b08 <exec_byte_code+22690>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2bc1 <exec_byte_code+22875>, 0x5555558b2c72 <exec_byte_code+23052>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2882 <exec_byte_code+22044>, 0x5555558b2de5 <exec_byte_code+23423> <repeats 64 times>}
        quitcounter = 1 '\001'
        bc = 0x555555e69750 <main_thread+496>
        top = 0x7fffef835068
        pc = 0x7ffff09c211f "\006\a9\203\260"
        bytestr = XIL(0x7ffff025f764)
        vector = XIL(0x7ffff025ef1d)
        maxdepth = make_fixnum(14)
        const_length = 26
        bytestr_length = 179
        vectorp = 0x7ffff025ef20
        max_stack = 14
        frame_base = 0x7fffef835030
        fp = 0x7fffef8350a0
        bytestr_data = 0x7ffff09c2096 "\304\020\211?\205\023"
        rest = false
        mandatory = 1
        nonrest = 4
        pushedargs = 1
        result = XIL(0x55555581d943)
#17 0x000055555584a52d in fetch_and_exec_byte_code (fun=XIL(0x7ffff025eedd), args_template=1025, nargs=1, args=0x7fffffffd258) at eval.c:2960
#18 0x000055555584a9bc in funcall_lambda (fun=XIL(0x7ffff025eedd), nargs=1, arg_vector=0x7fffffffd258) at eval.c:3032
        val = XIL(0x4980)
        syms_left = make_fixnum(1025)
        next = make_fixnum(23456248823624)
        lexenv = XIL(0x7fffffffd190)
        count = {
          bytes = 160
        }
        i = 117406008768
        optional = false
        rest = false
        previous_rest = false
#19 0x0000555555849c9e in funcall_general (fun=XIL(0x7ffff025eedd), numargs=1, args=0x7fffffffd258) at eval.c:2823
        original_fun = XIL(0x4980)
#20 0x0000555555849f29 in Ffuncall (nargs=2, args=0x7fffffffd250) at eval.c:2873
        count = {
          bytes = 128
        }
        val = make_fixnum(23456248582844)
#21 0x0000555555755c34 in call1 (fn=XIL(0x4980), arg1=XIL(0x2aaa9a5bc880)) at lisp.h:3218
#22 0x0000555555759509 in command_loop_1 () at keyboard.c:1514
        scount = {
          bytes = 96
        }
        cmd = XIL(0x2aaa9a5bc880)
        keybuf =
          {XIL(0x5555569a88f3), XIL(0x2aaa9a6ce990), XIL(0x2aaa9a5bc880), XIL(0), XIL(0), XIL(0x555555f13c40), XIL(0x7fffffffd300), XIL(0x55555583fcc9), XIL(0x30), XIL(0), XIL(0x7fffffffd330), make_fixnum(23456248823624), make_fixnum(0), XIL(0x555555f13c40), XIL(0), XIL(0), XIL(0x7fffffffd350), XIL(0x60), XIL(0x7fffffffd350), XIL(0x555555e69560), XIL(0x7fffffffd390), XIL(0x555555845e40), XIL(0x100000060), XIL(0x90), XIL(0x7fffffffd300), XIL(0x5555560691a0), XIL(0x7fffffffd3c0), make_fixnum(0), XIL(0x7fffffffd3c0), XIL(0x555555845d2f)}
        i = 3
        prev_modiff = 16
        prev_buffer = 0x7ffff020e708
        already_adjusted = false
#23 0x00005555558458e6 in internal_condition_case (bfun=0x555555758c25 <command_loop_1>, handlers=XIL(0x90), hfun=0x55555575805f <cmd_error>) at eval.c:1450
        val = XIL(0x7fffffffd420)
        c = 0x5555560691a0
#24 0x000055555575880e in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1142
        val = make_fixnum(0)
#25 0x0000555555844ab7 in internal_catch (tag=XIL(0xf450), func=0x5555557587e7 <command_loop_2>, arg=XIL(0x90)) at eval.c:1180
        val = make_fixnum(23456248582865)
        c = 0x555555f6b600
#26 0x00005555557587a3 in command_loop () at keyboard.c:1120
#27 0x0000555555757b22 in recursive_edit_1 () at keyboard.c:729
        count = {
          bytes = 32
        }
        val = XIL(0x55555584bf20)
#28 0x0000555555757d3f in Frecursive_edit () at keyboard.c:812
        count = {
          bytes = 0
        }
        buffer = XIL(0)
#29 0x0000555555753345 in main (argc=2, argv=0x7fffffffd738) at emacs.c:2474
        stack_bottom_variable = 0x7ffff5fe03c0
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        dump_mode = 0x0
        skip_args = 0
        temacs = 0x0
        attempt_load_pdump = true
        rlim = {
          rlim_cur = 10022912,
          rlim_max = 18446744073709551615
        }
        lc_all = 0x7fffffffee1b ""
        sockfd = -1
        module_assertions = false
Cannot access memory at address 0x7fffff07e02f
(gdb) xbacktrace
Cannot access memory at address 0x7fffff07e02f
(gdb)



Configured using:
 'configure -C --prefix=/usr/local/stow/emacs-snapshot
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/29.0/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29.0/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=yes --without-gconf --with-mailutils --build
 x86_64-linux-gnu --infodir=/usr/local/share/info:/usr/share/info
 --with-json --with-file-notification=yes --with-cairo --with-x=yes
 --with-x-toolkit=lucid --without-toolkit-scroll-bars
 --enable-checking=yes,glyphs --enable-check-lisp-object-type
 --with-native-compilation 'CFLAGS=-g3 -O0
 -ffile-prefix-map=/home/grfz/src/emacs=. -fstack-protector-strong
 -Wformat -Werror=format-security ''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LC_ALL: 
  value of $LC_COLLATE: de_DE.utf8
  value of $LC_CTYPE: de_DE.utf8
  value of $LC_MESSAGES: POSIX
  value of $LC_MONETARY: de_DE.utf8
  value of $LC_NUMERIC: de_DE.utf8
  value of $LC_TIME: de_DE.utf8
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date comp
comp-cstr warnings rx cl-seq cl-macs cl-extra help-mode seq gv subr-x
byte-opt cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl
tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice
simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help
abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face
macroexp files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 70361 8461)
 (symbols 48 7467 1)
 (strings 32 21008 3854)
 (string-bytes 1 669651)
 (vectors 16 15130)
 (vector-slots 8 227932 13413)
 (floats 8 27 28)
 (intervals 56 275 0)
 (buffers 992 11))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Sat, 23 Apr 2022 10:44:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Sat, 23 Apr 2022 18:43:32 +0800
Gregor Zattler <telegraph <at> gmx.net> writes:

> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> x_menu_show (f=0x555556143800, x=301, y=458, menuflags=0, title=XIL(0x7ffff02d86ec), error_name=0x7fffffffc078) at xmenu.c:1816
> 1816      specpdl_ref specpdl_count = SPECPDL_INDEX ();

I don't see how SPECPDL_INDEX can actually segfault like this.  Please
show a backtrace with Emacs built with checking and without
optimizations, as detailed in etc/DEBUG.

The output of (mouse-generate-font-menu) run on your system would also
be helpful.

Thanks in advance.




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 23 Apr 2022 12:52:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Sun, 24 Apr 2022 10:35:01 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Sun, 24 Apr 2022 12:34:27 +0200
[Message part 1 (text/plain, inline)]
Hi Po,
* Po Lu <luangruo <at> yahoo.com> [2022-04-23; 18:43]:
> Gregor Zattler <telegraph <at> gmx.net> writes:
>
>> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>> x_menu_show (f=0x555556143800, x=301, y=458, menuflags=0, title=XIL(0x7ffff02d86ec), error_name=0x7fffffffc078) at xmenu.c:1816
>> 1816      specpdl_ref specpdl_count = SPECPDL_INDEX ();
>
> I don't see how SPECPDL_INDEX can actually segfault like this.  Please
> show a backtrace with Emacs built with checking and without
> optimizations, as detailed in etc/DEBUG.

I read this file and tried to follow it.  At the end of the
bug report there is info on how this instance of Emacs was
configured for building.  Isn't

Configured using:
 'configure -C --prefix=/usr/local/stow/emacs-snapshot
[...]
 --enable-checking=yes,glyphs --enable-check-lisp-object-type
 --with-native-compilation 'CFLAGS=-g3 -O0
[...]

the right result?  Should I disable native compilation?

> The output of (mouse-generate-font-menu) run on your system would also
> be helpful.

Sure.  I learned about the C-0 prefix key for C-x C-e to
show unabbreviated output.  I also learned about
so-long-mode, but this line is too long.  I therefore attach
the output as a xz compressed file, because displaying it in
Emacs bogs Emacs down.

Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-
[mouse-generate-font-menu.output.eld.xz (application/x-xz, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Sun, 24 Apr 2022 10:54:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Sun, 24 Apr 2022 18:52:46 +0800
Gregor Zattler <telegraph <at> gmx.net> writes:

> I read this file and tried to follow it.  At the end of the
> bug report there is info on how this instance of Emacs was
> configured for building.  Isn't
>
> Configured using:
>  'configure -C --prefix=/usr/local/stow/emacs-snapshot
> [...]
>  --enable-checking=yes,glyphs --enable-check-lisp-object-type
>  --with-native-compilation 'CFLAGS=-g3 -O0
> [...]
>
> the right result?  Should I disable native compilation?

That should work, yes, thanks.

> Sure.  I learned about the C-0 prefix key for C-x C-e to
> show unabbreviated output.  I also learned about
> so-long-mode, but this line is too long.  I therefore attach
> the output as a xz compressed file, because displaying it in
> Emacs bogs Emacs down.

Thanks.  Unfortunately, I still can't reproduce the crash.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Sun, 24 Apr 2022 21:35:02 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Sun, 24 Apr 2022 23:34:40 +0200
Hi Po,
* Po Lu <luangruo <at> yahoo.com> [24. Apr. 2022]:
> Gregor Zattler <telegraph <at> gmx.net> writes:
>> I read this file and tried to follow it.  At the end of the
>> bug report there is info on how this instance of Emacs was
>> configured for building.  Isn't
>>
>> Configured using:
>>  'configure -C --prefix=/usr/local/stow/emacs-snapshot
>> [...]
>>  --enable-checking=yes,glyphs --enable-check-lisp-object-type
>>  --with-native-compilation 'CFLAGS=-g3 -O0
>> [...]
>>
>> the right result?  Should I disable native compilation?
> 
> That should work, yes, thanks.

OK, I disabled native compilation and configured again to
this result:


Configured for 'x86_64-pc-linux-gnu'.

Where should the build process find the source code?    .
What compiler should emacs be built with?               gcc -g3 -O0  -ffile-prefix-map=/home/grfz/src/emacs=. -fstack-protector-strong -Wformat -Werror=format-security
Should Emacs use the GNU version of malloc?             no
(The GNU allocators don't work with this system configuration.)
Should Emacs use a relocating allocator for buffers?    no
Should Emacs use mmap(2) for buffer allocation?         no
What window system should Emacs use?                    x11
What toolkit should Emacs use?                          LUCID
Where do we find X Windows header files?                Standard dirs
Where do we find X Windows libraries?                   Standard dirs
Does Emacs use -lXaw3d?                                 yes
Does Emacs use -lXpm?                                   yes
Does Emacs use -ljpeg?                                  yes
Does Emacs use -ltiff?                                  yes
Does Emacs use a gif library?                           yes -lgif
Does Emacs use a png library?                           yes -lpng16 -lz
Does Emacs use -lrsvg-2?                                yes
Does Emacs use -lwebp?                                  no
Does Emacs use -lsqlite3?                               no
Does Emacs use cairo?                                   yes
Does Emacs use -llcms2?                                 yes
Does Emacs use imagemagick?                             no
Does Emacs use native APIs for images?                  no
Does Emacs support sound?                               yes
Does Emacs use -lgpm?                                   yes
Does Emacs use -ldbus?                                  yes
Does Emacs use -lgconf?                                 no
Does Emacs use GSettings?                               yes
Does Emacs use a file notification library?             yes -lglibc (inotify)
Does Emacs use access control lists?                    yes -lacl
Does Emacs use -lselinux?                               yes
Does Emacs use -lgnutls?                                yes
Does Emacs use -lxml2?                                  yes
Does Emacs use -lfreetype?                              yes
Does Emacs use HarfBuzz?                                yes
Does Emacs use -lm17n-flt?                              yes
Does Emacs use -lotf?                                   yes
Does Emacs use -lxft?                                   no
Does Emacs use -lsystemd?                               yes
Does Emacs use -ljansson?                               yes
Does Emacs use the GMP library?                         yes
Does Emacs directly use zlib?                           yes
Does Emacs have dynamic modules support?                yes
Does Emacs use toolkit scroll bars?                     no
Does Emacs support Xwidgets?                            no
Does Emacs have threading support in lisp?              yes
Does Emacs support the portable dumper?                 yes
Does Emacs support legacy unexec dumping?               no
Which dumping strategy does Emacs use?                  pdumper
Does Emacs have native lisp compiler?                   no
Does Emacs use version 2 of the the X Input Extension?  no

Then I did

time nice ionice -c 3 eatmydata make -j 3


And this is the result of the gdb session:

0 (master=) grfz <at> no:~/src/emacs/src$ gdb ./emacs
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
TERM = screen-256color-bce-s
Breakpoint 1 at 0x1fac58: file emacs.c, line 420.
Breakpoint 2 at 0x1be307: file xterm.c, line 20068.
(gdb) run -Q
Starting program: /home/grfz/src/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff19ee700 (LWP 389772)]
[New Thread 0x7ffff11dc700 (LWP 389773)]
[New Thread 0x7ffff09db700 (LWP 389774)]

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
x_menu_show (f=0x5555561ba540, x=355, y=445, menuflags=0, title=XIL(0x7ffff254286c), error_name=0x7fffffffbfd8) at xmenu.c:1847
1847      specpdl_ref specpdl_count = SPECPDL_INDEX ();
(gdb) bt full
#0  x_menu_show (f=0x5555561ba540, x=355, y=445, menuflags=0, title=XIL(0x7ffff254286c), error_name=0x7fffffffbfd8) at xmenu.c:1847
        i = 21845
        wv = 0x0
        save_wv = 0x0
        first_wv = 0x0
        prev_wv = 0x0
        submenu_stack = 0x7fffff901ae0
        subprefix_stack = 0x7fffff207730
        submenu_depth = 0
        specpdl_count = {
          bytes = 1
        }
        first_pane = 85
#1  0x000055555564f57b in x_popup_menu_1 (position=XIL(0x555555faf143), menu=XIL(0x5555562fe2e3)) at menu.c:1402
        keymap = XIL(0)
        tem = XIL(0)
        tem2 = XIL(0)
        xpos = 355
        ypos = 445
        title = XIL(0x7ffff254286c)
        error_name = 0x0
        selection = XIL(0)
        f = 0x5555561ba540
        x = make_fixnum(355)
        y = make_fixnum(445)
        window = XIL(0x5555561ba545)
        menuflags = 0
        specpdl_count = {
          bytes = 384
        }
#2  0x000055555564f60e in Fx_popup_menu (position=XIL(0x555555faf143), menu=XIL(0x5555562fe2e3)) at menu.c:1466
#3  0x0000555555847c27 in funcall_subr (subr=0x555555e55ca0 <Sx_popup_menu>, numargs=2, args=0x7ffff1a1c110) at eval.c:2913
        argbuf = {XIL(0x7ffff1a1c180), XIL(0x160), XIL(0x7fffffffc100), XIL(0x11558a9f41), XIL(0x555555e55ca5), XIL(0x7fffffffc120), XIL(0x5555558a9ba5), XIL(0x555555e55ca5)}
        a = 0x7ffff1a1c110
        fun = XIL(0)
#4  0x00005555558ab4fb in exec_byte_code (fun=XIL(0x7ffff22a4a35), args_template=513, nargs=1, args=0x7ffff1a1c218) at bytecode.c:809
        call_nargs = 2
        call_fun = XIL(0x555555e55ca5)
        count1 = {
          bytes = 352
        }
        template = make_fixnum(513)
        val = XIL(0x555558b20eb4)
        call_args = 0x7ffff1a1c110
        original_fun = XIL(0x2aaa9c32c180)
        bytecode = XIL(0x7ffff22a4ad4)
        op = 2
        type = CATCHER
        targets =
          {0x5555558afa8f <exec_byte_code+22044>, 0x5555558afabd <exec_byte_code+22090>, 0x5555558afabf <exec_byte_code+22092>, 0x5555558afac1 <exec_byte_code+22094>, 0x5555558afac3 <exec_byte_code+22096>, 0x5555558afac3 <exec_byte_code+22096>, 0x5555558afb40 <exec_byte_code+22221>, 0x5555558afbcf <exec_byte_code+22364>, 0x5555558aaa05 <exec_byte_code+1426>, 0x5555558aaa07 <exec_byte_code+1428>, 0x5555558aaa09 <exec_byte_code+1430>, 0x5555558aaa0b <exec_byte_code+1432>, 0x5555558aaa0d <exec_byte_code+1434>, 0x5555558aaa0d <exec_byte_code+1434>, 0x5555558aaa16 <exec_byte_code+1443>, 0x5555558aa9c2 <exec_byte_code+1359>, 0x5555558aaf11 <exec_byte_code+2718>, 0x5555558aaf13 <exec_byte_code+2720>, 0x5555558aaf15 <exec_byte_code+2722>, 0x5555558aaf17 <exec_byte_code+2724>, 0x5555558aaf19 <exec_byte_code+2726>, 0x5555558aaf19 <exec_byte_code+2726>, 0x5555558aaf63 <exec_byte_code+2800>, 0x5555558aaf22 <exec_byte_code+2735>, 0x5555558ab1bb <exec_byte_code+3400>, 0x5555558ab1bd <exec_byte_code+3402>, 0x5555558ab1bf <exec_byte_code+3404>, 0x5555558ab1c1 <exec_byte_code+3406>, 0x5555558ab1c3 <exec_byte_code+3408>, 0x5555558ab1c3 <exec_byte_code+3408>, 0x5555558ab15a <exec_byte_code+3303>, 0x5555558ab17a <exec_byte_code+3335>, 0x5555558ab2a1 <exec_byte_code+3630>, 0x5555558ab2a3 <exec_byte_code+3632>, 0x5555558ab2a5 <exec_byte_code+3634>, 0x5555558ab2a7 <exec_byte_code+3636>, 0x5555558ab2a9 <exec_byte_code+3638>, 0x5555558ab2a9 <exec_byte_code+3638>, 0x5555558ab240 <exec_byte_code+3533>, 0x5555558ab260 <exec_byte_code+3565>, 0x5555558ab653 <exec_byte_code+4576>, 0x5555558ab655 <exec_byte_code+4578>, 0x5555558ab657 <exec_byte_code+4580>, 0x5555558ab659 <exec_byte_code+4582>, 0x5555558ab65b <exec_byte_code+4584>, 0x5555558ab65b <exec_byte_code+4584>, 0x5555558ab5f2 <exec_byte_code+4479>, 0x5555558ab612 <exec_byte_code+4511>, 0x5555558ac032 <exec_byte_code+7103>, 0x5555558abe52 <exec_byte_code+6623>, 0x5555558abe46 <exec_byte_code+6611>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ac2d7 <exec_byte_code+7780>, 0x5555558ac42c <exec_byte_code+8121>, 0x5555558ac4ad <exec_byte_code+8250>, 0x5555558ac52f <exec_byte_code+8380>, 0x5555558ac5b0 <exec_byte_code+8509>, 0x5555558aad08 <exec_byte_code+2197>, 0x5555558aadaf <exec_byte_code+2364>, 0x5555558ac64e <exec_byte_code+8667>, 0x5555558aac27 <exec_byte_code+1972>, 0x5555558aae2f <exec_byte_code+2492>, 0x5555558ac6d8 <exec_byte_code+8805>, 0x5555558ac758 <exec_byte_code+8933>, 0x5555558ac7b2 <exec_byte_code+9023>, 0x5555558ac832 <exec_byte_code+9151>, 0x5555558ac8b0 <exec_byte_code+9277>, 0x5555558ac9db <exec_byte_code+9576>, 0x5555558aca35 <exec_byte_code+9666>, 0x5555558acb8b <exec_byte_code+10008>, 0x5555558acd0f <exec_byte_code+10396>, 0x5555558acd69 <exec_byte_code+10486>, 0x5555558acdc3 <exec_byte_code+10576>, 0x5555558ace43 <exec_byte_code+10704>, 0x5555558acec3 <exec_byte_code+10832>, 0x5555558acf43 <exec_byte_code+10960>, 0x5555558acfe6 <exec_byte_code+11123>, 0x5555558ad04d <exec_byte_code+11226>, 0x5555558ad0b4 <exec_byte_code+11329>, 0x5555558ad1ba <exec_byte_code+11591>, 0x5555558ad2c6 <exec_byte_code+11859>, 0x5555558ad3d2 <exec_byte_code+12127>, 0x5555558ad4d2 <exec_byte_code+12383>, 0x5555558ad5e2 <exec_byte_code+12655>, 0x5555558ad6f2 <exec_byte_code+12927>, 0x5555558ad802 <exec_byte_code+13199>, 0x5555558ad912 <exec_byte_code+13471>, 0x5555558ada9a <exec_byte_code+13863>, 0x5555558adbaa <exec_byte_code+14135>, 0x5555558add3b <exec_byte_code+14536>, 0x5555558ade22 <exec_byte_code+14767>, 0x5555558adf09 <exec_byte_code+14998>, 0x5555558ae3fa <exec_byte_code+16263>, 0x5555558abc81 <exec_byte_code+6158>, 0x5555558ae46a <exec_byte_code+16375>, 0x5555558ae4c4 <exec_byte_code+16465>, 0x5555558ae5c2 <exec_byte_code+16719>, 0x5555558ae632 <exec_byte_code+16831>, 0x5555558ae6a2 <exec_byte_code+16943>, 0x5555558ae6fc <exec_byte_code+17033>, 0x5555558ae754 <exec_byte_code+17121>, 0x5555558ae7ac <exec_byte_code+17209>, 0x5555558ae80c <exec_byte_code+17305>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ae876 <exec_byte_code+17411>, 0x5555558ae8ce <exec_byte_code+17499>, 0x5555558ae926 <exec_byte_code+17587>, 0x5555558ae97e <exec_byte_code+17675>, 0x5555558ae9d6 <exec_byte_code+17763>, 0x5555558aea2e <exec_byte_code+17851>, 0x5555558abc81 <exec_byte_code+6158>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558aea88 <exec_byte_code+17941>, 0x5555558aeaef <exec_byte_code+18044>, 0x5555558aeb49 <exec_byte_code+18134>, 0x5555558aeba3 <exec_byte_code+18224>, 0x5555558aec23 <exec_byte_code+18352>, 0x5555558aeca3 <exec_byte_code+18480>, 0x5555558aecfd <exec_byte_code+18570>, 0x5555558aed57 <exec_byte_code+18660>, 0x5555558aedd7 <exec_byte_code+18788>, 0x5555558aee57 <exec_byte_code+18916>, 0x5555558aeed7 <exec_byte_code+19044>, 0x5555558aef2f <exec_byte_code+19132>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558abb98 <exec_byte_code+5925>, 0x5555558ab6d3 <exec_byte_code+4704>, 0x5555558aab71 <exec_byte_code+1790>, 0x5555558ab7b1 <exec_byte_code+4926>, 0x5555558ab859 <exec_byte_code+5094>, 0x5555558ab8fe <exec_byte_code+5259>, 0x5555558ab9a3 <exec_byte_code+5424>, 0x5555558abb52 <exec_byte_code+5855>, 0x5555558ab0f2 <exec_byte_code+3199>, 0x5555558abc3e <exec_byte_code+6091>, 0x5555558abcc4 <exec_byte_code+6225>, 0x5555558abd67 <exec_byte_code+6388>, 0x5555558abdbc <exec_byte_code+6473>, 0x5555558ac08a <exec_byte_code+7191>, 0x5555558ac119 <exec_byte_code+7334>, 0x5555558ac1bc <exec_byte_code+7497>, 0x5555558ac231 <exec_byte_code+7614>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558aef89 <exec_byte_code+19222>, 0x5555558af02c <exec_byte_code+19385>, 0x5555558af086 <exec_byte_code+19475>, 0x5555558af0e0 <exec_byte_code+19565>, 0x5555558af13a <exec_byte_code+19655>, 0x5555558af194 <exec_byte_code+19745>, 0x5555558af214 <exec_byte_code+19873>, 0x5555558af294 <exec_byte_code+20001>, 0x5555558af314 <exec_byte_code+20129>, 0x5555558af394 <exec_byte_code+20257>, 0x5555558af4fe <exec_byte_code+20619>, 0x5555558af57e <exec_byte_code+20747>, 0x5555558af5fe <exec_byte_code+20875>, 0x5555558af658 <exec_byte_code+20965>, 0x5555558af765 <exec_byte_code+21234>, 0x5555558af872 <exec_byte_code+21503>, 0x5555558af8cc <exec_byte_code+21593>, 0x5555558af926 <exec_byte_code+21683>, 0x5555558ae0c3 <exec_byte_code+15440>, 0x5555558ae283 <exec_byte_code+15888>, 0x5555558af98d <exec_byte_code+21786>, 0x5555558afa0e <exec_byte_code+21915>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ac93c <exec_byte_code+9417>, 0x5555558ad11b <exec_byte_code+11432>, 0x5555558ae523 <exec_byte_code+16560>, 0x5555558afc85 <exec_byte_code+22546>, 0x5555558afd15 <exec_byte_code+22690>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afdce <exec_byte_code+22875>, 0x5555558afe7f <exec_byte_code+23052>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afff2 <exec_byte_code+23423> <repeats 64 times>}
        quitcounter = 235 '\353'
        bc = 0x555555e524b0 <main_thread+496>
        top = 0x7ffff1a1c108
        pc = 0x7ffff29cb894 "@\207\207"
        bytestr = XIL(0x7ffff22a4ad4)
        vector = XIL(0x7ffff22a4a75)
        maxdepth = make_fixnum(10)
        const_length = 7
        bytestr_length = 29
        vectorp = 0x7ffff25aa590
        max_stack = 10
        frame_base = 0x7ffff1a1c240
        fp = 0x7ffff1a1c290
        bytestr_data = 0x7ffff29cb85d "\302 \204\t"
        rest = false
        mandatory = 1
        nonrest = 2
        pushedargs = 1
        result = XIL(0x70)
#5  0x0000555555847fb6 in fetch_and_exec_byte_code (fun=XIL(0x7ffff25aa495), args_template=0, nargs=0, args=0x7fffffffcab0) at eval.c:2960
#6  0x0000555555848445 in funcall_lambda (fun=XIL(0x7ffff25aa495), nargs=0, arg_vector=0x7fffffffcab0) at eval.c:3032
        val = XIL(0x2aaa9c6b88e0)
        syms_left = make_fixnum(0)
        next = XIL(0x55555583d835)
        lexenv = XIL(0x7fffffffc690)
        count = {
          bytes = 320
        }
        i = 120030143456
        optional = false
        rest = false
        previous_rest = false
#7  0x0000555555847727 in funcall_general (fun=XIL(0x7ffff25aa495), numargs=0, args=0x7fffffffcab0) at eval.c:2823
        original_fun = XIL(0x2aaa9c6b88e0)
#8  0x00005555558479b2 in Ffuncall (nargs=1, args=0x7fffffffcaa8) at eval.c:2873
        count = {
          bytes = 288
        }
        val = XIL(0x555555839d29)
#9  0x000055555583aa55 in Ffuncall_interactively (nargs=1, args=0x7fffffffcaa8) at callint.c:260
        speccount = {
          bytes = 256
        }
#10 0x0000555555847e2e in funcall_subr (subr=0x555555e62860 <Sfuncall_interactively>, numargs=1, args=0x7fffffffcaa8) at eval.c:2938
        fun = XIL(0x555555ef1b00)
#11 0x00005555558476db in funcall_general (fun=XIL(0x555555e62865), numargs=1, args=0x7fffffffcaa8) at eval.c:2819
        original_fun = XIL(0x7b60)
#12 0x00005555558479b2 in Ffuncall (nargs=2, args=0x7fffffffcaa0) at eval.c:2873
        count = {
          bytes = 224
        }
        val = make_fixnum(23456248807424)
#13 0x00005555558467e6 in Fapply (nargs=3, args=0x7fffffffcaa0) at eval.c:2503
        i = 140737488341264
        funcall_nargs = 93825002346080
        funcall_args = 0x0
        spread_arg = XIL(0)
        fun = XIL(0x7b60)
        sa_avail = 16384
        sa_count = {
          bytes = 224
        }
        numargs = 0
        retval = make_fixnum(23456248816954)
#14 0x000055555583aee9 in Fcall_interactively (function=XIL(0x2aaa9c6b88e0), record_flag=XIL(0), keys=XIL(0x7ffff28c2c95)) at callint.c:353
        funval = XIL(0x7ffff25aa495)
        events = 3
        input = XIL(0)
        speccount = {
          bytes = 192
        }
        arg_from_tty = false
        key_count = 3
        record_then_fail = false
        save_this_command = XIL(0x2aaa9c6b88e0)
        save_this_original_command = XIL(0x2aaa9c6b88e0)
        save_real_this_command = XIL(0x2aaa9c6b88e0)
        save_last_command = XIL(0)
        prefix_arg = XIL(0)
        enable = XIL(0)
        up_event = XIL(0)
        form = XIL(0x555555faec23)
        specs = XIL(0)
        sa_avail = 140737488341488
        sa_count = {
          bytes = 140737247297600
        }
        string_len = 0
        string = 0x5555558a92d6 <XSYMBOL+100> "\353\030H\213E\370H\211\307\350\353\376\377\377H\213@\bH\211\307\350(\377\377\377\311\303UH\211\345H\203\354 H\211}\350H\215\025\373\207d"
        string_end = 0x0
        next_event = 0
        nargs = 140737488341536
        args = 0x0
        visargs = 0x555555ef1b00 <lispsym>
        varies = 0x7fffffffca60 "\200\312\377\377\377\177"
        tem = 0x555555ef1b00 <lispsym> "\230\001"
        val = XIL(0x60)
#15 0x0000555555847c56 in funcall_subr (subr=0x555555e628a0 <Scall_interactively>, numargs=3, args=0x7ffff1a1c070) at eval.c:2915
        argbuf = {XIL(0x2aaa9c6b88e0), XIL(0xa0), XIL(0x7fffffffcb60), XIL(0x11558a9f41), XIL(0x555555e628a5), XIL(0x7fffffffcb80), XIL(0x5555558a9ba5), XIL(0x555555e628a5)}
        a = 0x7ffff1a1c070
        fun = XIL(0)
#16 0x00005555558ab4fb in exec_byte_code (fun=XIL(0x7ffff2258ad5), args_template=1025, nargs=1, args=0x7fffffffd1c0) at bytecode.c:809
        call_nargs = 3
        call_fun = XIL(0x555555e628a5)
        count1 = {
          bytes = 160
        }
        template = XIL(0)
        val = XIL(0)
        call_args = 0x7ffff1a1c070
        original_fun = XIL(0x2aaa9c2bc280)
        bytecode = XIL(0x7ffff232cb2d)
        op = 3
        type = CATCHER
        targets =
          {0x5555558afa8f <exec_byte_code+22044>, 0x5555558afabd <exec_byte_code+22090>, 0x5555558afabf <exec_byte_code+22092>, 0x5555558afac1 <exec_byte_code+22094>, 0x5555558afac3 <exec_byte_code+22096>, 0x5555558afac3 <exec_byte_code+22096>, 0x5555558afb40 <exec_byte_code+22221>, 0x5555558afbcf <exec_byte_code+22364>, 0x5555558aaa05 <exec_byte_code+1426>, 0x5555558aaa07 <exec_byte_code+1428>, 0x5555558aaa09 <exec_byte_code+1430>, 0x5555558aaa0b <exec_byte_code+1432>, 0x5555558aaa0d <exec_byte_code+1434>, 0x5555558aaa0d <exec_byte_code+1434>, 0x5555558aaa16 <exec_byte_code+1443>, 0x5555558aa9c2 <exec_byte_code+1359>, 0x5555558aaf11 <exec_byte_code+2718>, 0x5555558aaf13 <exec_byte_code+2720>, 0x5555558aaf15 <exec_byte_code+2722>, 0x5555558aaf17 <exec_byte_code+2724>, 0x5555558aaf19 <exec_byte_code+2726>, 0x5555558aaf19 <exec_byte_code+2726>, 0x5555558aaf63 <exec_byte_code+2800>, 0x5555558aaf22 <exec_byte_code+2735>, 0x5555558ab1bb <exec_byte_code+3400>, 0x5555558ab1bd <exec_byte_code+3402>, 0x5555558ab1bf <exec_byte_code+3404>, 0x5555558ab1c1 <exec_byte_code+3406>, 0x5555558ab1c3 <exec_byte_code+3408>, 0x5555558ab1c3 <exec_byte_code+3408>, 0x5555558ab15a <exec_byte_code+3303>, 0x5555558ab17a <exec_byte_code+3335>, 0x5555558ab2a1 <exec_byte_code+3630>, 0x5555558ab2a3 <exec_byte_code+3632>, 0x5555558ab2a5 <exec_byte_code+3634>, 0x5555558ab2a7 <exec_byte_code+3636>, 0x5555558ab2a9 <exec_byte_code+3638>, 0x5555558ab2a9 <exec_byte_code+3638>, 0x5555558ab240 <exec_byte_code+3533>, 0x5555558ab260 <exec_byte_code+3565>, 0x5555558ab653 <exec_byte_code+4576>, 0x5555558ab655 <exec_byte_code+4578>, 0x5555558ab657 <exec_byte_code+4580>, 0x5555558ab659 <exec_byte_code+4582>, 0x5555558ab65b <exec_byte_code+4584>, 0x5555558ab65b <exec_byte_code+4584>, 0x5555558ab5f2 <exec_byte_code+4479>, 0x5555558ab612 <exec_byte_code+4511>, 0x5555558ac032 <exec_byte_code+7103>, 0x5555558abe52 <exec_byte_code+6623>, 0x5555558abe46 <exec_byte_code+6611>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ac2d7 <exec_byte_code+7780>, 0x5555558ac42c <exec_byte_code+8121>, 0x5555558ac4ad <exec_byte_code+8250>, 0x5555558ac52f <exec_byte_code+8380>, 0x5555558ac5b0 <exec_byte_code+8509>, 0x5555558aad08 <exec_byte_code+2197>, 0x5555558aadaf <exec_byte_code+2364>, 0x5555558ac64e <exec_byte_code+8667>, 0x5555558aac27 <exec_byte_code+1972>, 0x5555558aae2f <exec_byte_code+2492>, 0x5555558ac6d8 <exec_byte_code+8805>, 0x5555558ac758 <exec_byte_code+8933>, 0x5555558ac7b2 <exec_byte_code+9023>, 0x5555558ac832 <exec_byte_code+9151>, 0x5555558ac8b0 <exec_byte_code+9277>, 0x5555558ac9db <exec_byte_code+9576>, 0x5555558aca35 <exec_byte_code+9666>, 0x5555558acb8b <exec_byte_code+10008>, 0x5555558acd0f <exec_byte_code+10396>, 0x5555558acd69 <exec_byte_code+10486>, 0x5555558acdc3 <exec_byte_code+10576>, 0x5555558ace43 <exec_byte_code+10704>, 0x5555558acec3 <exec_byte_code+10832>, 0x5555558acf43 <exec_byte_code+10960>, 0x5555558acfe6 <exec_byte_code+11123>, 0x5555558ad04d <exec_byte_code+11226>, 0x5555558ad0b4 <exec_byte_code+11329>, 0x5555558ad1ba <exec_byte_code+11591>, 0x5555558ad2c6 <exec_byte_code+11859>, 0x5555558ad3d2 <exec_byte_code+12127>, 0x5555558ad4d2 <exec_byte_code+12383>, 0x5555558ad5e2 <exec_byte_code+12655>, 0x5555558ad6f2 <exec_byte_code+12927>, 0x5555558ad802 <exec_byte_code+13199>, 0x5555558ad912 <exec_byte_code+13471>, 0x5555558ada9a <exec_byte_code+13863>, 0x5555558adbaa <exec_byte_code+14135>, 0x5555558add3b <exec_byte_code+14536>, 0x5555558ade22 <exec_byte_code+14767>, 0x5555558adf09 <exec_byte_code+14998>, 0x5555558ae3fa <exec_byte_code+16263>, 0x5555558abc81 <exec_byte_code+6158>, 0x5555558ae46a <exec_byte_code+16375>, 0x5555558ae4c4 <exec_byte_code+16465>, 0x5555558ae5c2 <exec_byte_code+16719>, 0x5555558ae632 <exec_byte_code+16831>, 0x5555558ae6a2 <exec_byte_code+16943>, 0x5555558ae6fc <exec_byte_code+17033>, 0x5555558ae754 <exec_byte_code+17121>, 0x5555558ae7ac <exec_byte_code+17209>, 0x5555558ae80c <exec_byte_code+17305>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ae876 <exec_byte_code+17411>, 0x5555558ae8ce <exec_byte_code+17499>, 0x5555558ae926 <exec_byte_code+17587>, 0x5555558ae97e <exec_byte_code+17675>, 0x5555558ae9d6 <exec_byte_code+17763>, 0x5555558aea2e <exec_byte_code+17851>, 0x5555558abc81 <exec_byte_code+6158>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558aea88 <exec_byte_code+17941>, 0x5555558aeaef <exec_byte_code+18044>, 0x5555558aeb49 <exec_byte_code+18134>, 0x5555558aeba3 <exec_byte_code+18224>, 0x5555558aec23 <exec_byte_code+18352>, 0x5555558aeca3 <exec_byte_code+18480>, 0x5555558aecfd <exec_byte_code+18570>, 0x5555558aed57 <exec_byte_code+18660>, 0x5555558aedd7 <exec_byte_code+18788>, 0x5555558aee57 <exec_byte_code+18916>, 0x5555558aeed7 <exec_byte_code+19044>, 0x5555558aef2f <exec_byte_code+19132>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558abb98 <exec_byte_code+5925>, 0x5555558ab6d3 <exec_byte_code+4704>, 0x5555558aab71 <exec_byte_code+1790>, 0x5555558ab7b1 <exec_byte_code+4926>, 0x5555558ab859 <exec_byte_code+5094>, 0x5555558ab8fe <exec_byte_code+5259>, 0x5555558ab9a3 <exec_byte_code+5424>, 0x5555558abb52 <exec_byte_code+5855>, 0x5555558ab0f2 <exec_byte_code+3199>, 0x5555558abc3e <exec_byte_code+6091>, 0x5555558abcc4 <exec_byte_code+6225>, 0x5555558abd67 <exec_byte_code+6388>, 0x5555558abdbc <exec_byte_code+6473>, 0x5555558ac08a <exec_byte_code+7191>, 0x5555558ac119 <exec_byte_code+7334>, 0x5555558ac1bc <exec_byte_code+7497>, 0x5555558ac231 <exec_byte_code+7614>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558aef89 <exec_byte_code+19222>, 0x5555558af02c <exec_byte_code+19385>, 0x5555558af086 <exec_byte_code+19475>, 0x5555558af0e0 <exec_byte_code+19565>, 0x5555558af13a <exec_byte_code+19655>, 0x5555558af194 <exec_byte_code+19745>, 0x5555558af214 <exec_byte_code+19873>, 0x5555558af294 <exec_byte_code+20001>, 0x5555558af314 <exec_byte_code+20129>, 0x5555558af394 <exec_byte_code+20257>, 0x5555558af4fe <exec_byte_code+20619>, 0x5555558af57e <exec_byte_code+20747>, 0x5555558af5fe <exec_byte_code+20875>, 0x5555558af658 <exec_byte_code+20965>, 0x5555558af765 <exec_byte_code+21234>, 0x5555558af872 <exec_byte_code+21503>, 0x5555558af8cc <exec_byte_code+21593>, 0x5555558af926 <exec_byte_code+21683>, 0x5555558ae0c3 <exec_byte_code+15440>, 0x5555558ae283 <exec_byte_code+15888>, 0x5555558af98d <exec_byte_code+21786>, 0x5555558afa0e <exec_byte_code+21915>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558ac93c <exec_byte_code+9417>, 0x5555558ad11b <exec_byte_code+11432>, 0x5555558ae523 <exec_byte_code+16560>, 0x5555558afc85 <exec_byte_code+22546>, 0x5555558afd15 <exec_byte_code+22690>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afdce <exec_byte_code+22875>, 0x5555558afe7f <exec_byte_code+23052>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afa8f <exec_byte_code+22044>, 0x5555558afff2 <exec_byte_code+23423> <repeats 64 times>}
        quitcounter = 1 '\001'
        bc = 0x555555e524b0 <main_thread+496>
        top = 0x7ffff1a1c068
        pc = 0x7ffff292cea0 "\006\a9\203\260"
        bytestr = XIL(0x7ffff22590e4)
        vector = XIL(0x7ffff2258b15)
        maxdepth = make_fixnum(14)
        const_length = 26
        bytestr_length = 179
        vectorp = 0x7ffff2258b18
        max_stack = 14
        frame_base = 0x7ffff1a1c030
        fp = 0x7ffff1a1c0a0
        bytestr_data = 0x7ffff292ce17 "\304\020\211?\205\023"
        rest = false
        mandatory = 1
        nonrest = 4
        pushedargs = 1
        result = XIL(0x55555581b66c)
#17 0x0000555555847fb6 in fetch_and_exec_byte_code (fun=XIL(0x7ffff2258ad5), args_template=1025, nargs=1, args=0x7fffffffd1b8) at eval.c:2960
#18 0x0000555555848445 in funcall_lambda (fun=XIL(0x7ffff2258ad5), nargs=1, arg_vector=0x7fffffffd1b8) at eval.c:3032
        val = XIL(0x4980)
        syms_left = make_fixnum(1025)
        next = XIL(0x55555583d835)
        lexenv = XIL(0x7fffffffd0f0)
        count = {
          bytes = 160
        }
        i = 117405869184
        optional = false
        rest = false
        previous_rest = false
#19 0x0000555555847727 in funcall_general (fun=XIL(0x7ffff2258ad5), numargs=1, args=0x7fffffffd1b8) at eval.c:2823
        original_fun = XIL(0x4980)
#20 0x00005555558479b2 in Ffuncall (nargs=2, args=0x7fffffffd1b0) at eval.c:2873
        count = {
          bytes = 128
        }
        val = make_fixnum(23456248581595)
#21 0x00005555557548b0 in call1 (fn=XIL(0x4980), arg1=XIL(0x2aaa9c6b88e0)) at lisp.h:3218
#22 0x0000555555758185 in command_loop_1 () at keyboard.c:1514
        scount = {
          bytes = 96
        }
        cmd = XIL(0x2aaa9c6b88e0)
        keybuf =
          {XIL(0x555555faf143), XIL(0x2aaa9c2bf5e8), XIL(0x2aaa9c6b88e0), XIL(0), XIL(0), XIL(0x555555ef1b00), XIL(0x7fffffffd260), XIL(0x55555583d7dc), XIL(0x7fffffffd270), XIL(0), XIL(0x7fffffffd290), XIL(0x55555583d835), XIL(0x7fffffffd2e0), XIL(0x555555ef1b00), XIL(0), XIL(0), XIL(0x7fffffffd2b0), XIL(0x60), XIL(0x7fffffffd2b0), XIL(0x555555e522c0), XIL(0x7fffffffd2f0), XIL(0x5555558438c9), XIL(0x100000000), XIL(0x90), XIL(0x7fffffffd2f0), XIL(0x555555feda40), XIL(0x7fffffffd320), XIL(0x90), XIL(0x7fffffffd320), XIL(0x5555558437b8)}
        i = 3
        prev_modiff = 9
        prev_buffer = 0x7ffff21a3708
        already_adjusted = false
#23 0x000055555584336f in internal_condition_case (bfun=0x5555557578a1 <command_loop_1>, handlers=XIL(0x90), hfun=0x555555756cdb <cmd_error>) at eval.c:1450
        val = XIL(0x7fffffffd380)
        c = 0x555555feda40
#24 0x000055555575748a in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1142
        val = XIL(0xf480)
#25 0x0000555555842540 in internal_catch (tag=XIL(0xf480), func=0x555555757463 <command_loop_2>, arg=XIL(0x90)) at eval.c:1180
        val = make_fixnum(23456248581616)
        c = 0x555555f35600
#26 0x000055555575741f in command_loop () at keyboard.c:1120
#27 0x000055555575679e in recursive_edit_1 () at keyboard.c:729
        count = {
          bytes = 32
        }
        val = XIL(0x555555849975)
#28 0x00005555557569bb in Frecursive_edit () at keyboard.c:812
        count = {
          bytes = 0
        }
        buffer = XIL(0)
#29 0x0000555555751fc6 in main (argc=2, argv=0x7fffffffd698) at emacs.c:2474
        stack_bottom_variable = 0x7ffff5fe03c0
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        dump_mode = 0x0
        skip_args = 0
        temacs = 0x0
        attempt_load_pdump = true
        rlim = {
          rlim_cur = 10022912,
          rlim_max = 18446744073709551615
        }
        lc_all = 0x7fffffffeda7 ""
        sockfd = -1
        module_assertions = false
Cannot access memory at address 0x7fffff2076af
(gdb) xbacktrace
Cannot access memory at address 0x7fffff2076af
(gdb)


> Thanks.  Unfortunately, I still can't reproduce the crash.

It does not crash for you?

Further info: This is on an up-to-date debian/bullseye installation.


Thanks for your attention, Gregor




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 25 Apr 2022 00:39:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 25 Apr 2022 08:38:25 +0800
Gregor Zattler <telegraph <at> gmx.net> writes:

> It does not crash for you?

Yes, it doesn't.  What's the value of `specpdl_ptr' and `specpdl'?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 25 Apr 2022 02:31:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 25 Apr 2022 05:29:44 +0300
> Resent-From: Po Lu <luangruo <at> yahoo.com>
> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
> Resent-CC: bug-gnu-emacs <at> gnu.org
> Resent-Sender: help-debbugs <at> gnu.org
> Date: Mon, 25 Apr 2022 08:38:25 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Gregor Zattler <telegraph <at> gmx.net> writes:
> 
> > It does not crash for you?
> 
> Yes, it doesn't.  What's the value of `specpdl_ptr' and `specpdl'?

It looks like there's some memory-related problem there, because
xbacktrace also fails due to inaccessible memory.  Likely
SPECPDL_INDEX bumps into the same problem.

Not sure how such a memory problem could be caused, though.  If this
is easily reproduced, perhaps bisecting will help?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 25 Apr 2022 03:13:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 25 Apr 2022 11:12:15 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> It looks like there's some memory-related problem there, because
> xbacktrace also fails due to inaccessible memory.  Likely
> SPECPDL_INDEX bumps into the same problem.

I guess running under valgrind or some other memory checker will help.

> Not sure how such a memory problem could be caused, though.  If this
> is easily reproduced, perhaps bisecting will help?

This bug has probably been present for a while, but it's probably the
unusual length of the font selection menu added recently that triggers
it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 08:02:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 10:01:12 +0200
Gregor Zattler <telegraph <at> gmx.net> writes:

> 1. Start emacs -Q
> 2. click "Option" in menu bar
> 3. click "Set default Font" in drop down  menu

This pops up the `x-select-font' font chooser for me, so I can't
reproduce it directly...

> 4. hoover over  "More Fonts" on context menu
> 5. click "by Family"
> 6. emacs crashes

But calling `mouse-select-font' directly gives me that menu, but I can't
reproduce the crash.  I get an enormously long menu, but I guess the
length depends on the number of installed fonts.

(length (font-family-list))
=> 1211

here -- what does this return for you, Gregor?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 09:41:02 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 11:40:08 +0200
Hi Lars,
* Lars Ingebrigtsen <larsi <at> gnus.org> [2022-05-23; 10:01]:
> Gregor Zattler <telegraph <at> gmx.net> writes:
>> 1. Start emacs -Q
>> 2. click "Option" in menu bar
>> 3. click "Set default Font" in drop down  menu
>
> This pops up the `x-select-font' font chooser for me, so I can't
> reproduce it directly...
>
>> 4. hoover over  "More Fonts" on context menu
>> 5. click "by Family"
>> 6. emacs crashes
>
> But calling `mouse-select-font' directly gives me that menu, but I can't
> reproduce the crash.  I get an enormously long menu, but I guess the
> length depends on the number of installed fonts.
>
> (length (font-family-list))
> => 1211
> here -- what does this return for you, Gregor?

=> 3495

I installed NOTO fonts and friends...


I personally am not dependent on this bug being resolved.  I
can easily uninstall most of this fonts, as I do not really
need them, if it helps my case.  But I'm happy to help
chasing down the bug, meaning to answer questions, as all
this is very much beyond my skills.


Thanks for looking into this, Gregor




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 10:28:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 12:27:08 +0200
Gregor Zattler <telegraph <at> gmx.net> writes:

> => 3495
>
> I installed NOTO fonts and friends...
>
> I personally am not dependent on this bug being resolved.  I
> can easily uninstall most of this fonts, as I do not really
> need them, if it helps my case.  But I'm happy to help
> chasing down the bug, meaning to answer questions, as all
> this is very much beyond my skills.

We should definitely fix this -- we can't have a menu crashing Emacs.

I do have a bunch of Noto fonts installed, but way less than yours.
Let's see...

# apt install fonts-noto*

(length (font-family-list))
=> 4833

And...  with that, I'm able to reproduce the crash with

(mouse-select-font)

and then More fonts -> by family

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 23 May 2022 10:28:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 11:27:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: telegraph <at> gmx.net, 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 14:26:29 +0300
> Cc: 55068 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 23 May 2022 12:27:08 +0200
> 
> (length (font-family-list))
> => 4833
> 
> And...  with that, I'm able to reproduce the crash with
> 
> (mouse-select-font)
> 
> and then More fonts -> by family

It would be nice to understand the immediate reason for the segfault
in this case.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 11:59:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: telegraph <at> gmx.net, 55068 <at> debbugs.gnu.org
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 13:58:28 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> (length (font-family-list))
>> => 4833
>> 
>> And...  with that, I'm able to reproduce the crash with
>> 
>> (mouse-select-font)
>> 
>> and then More fonts -> by family
>
> It would be nice to understand the immediate reason for the segfault
> in this case.

I can do some gdb-ing, but now that there's a recipe, I thought Po might
want to take over this bug report...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:13:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 20:12:13 +0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I can do some gdb-ing, but now that there's a recipe, I thought Po might
> want to take over this bug report...

I tried installing all the "google-noto-sans*" packages on my Fedora
system and it still does not crash.  IIRC, nor did displaying the menu
generated on Gregor's computer.

If you can show a backtrace that actually displays something meaningful
(or run Emacs under a memory checker such as Valgrind), that would be
great.  The last one obtained from this crash ended with a segfault in
SPECPDL_INDEX, which makes no sense.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:21:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 14:19:52 +0200
Po Lu <luangruo <at> yahoo.com> writes:

> If you can show a backtrace that actually displays something meaningful
> (or run Emacs under a memory checker such as Valgrind), that would be
> great.  The last one obtained from this crash ended with a segfault in
> SPECPDL_INDEX, which makes no sense.

Not very meaningful backtrace:

Thread 0x7fffeaf57640 (LWP 3291815) exited]

--Type <RET> for more, q to quit, c to continue without paging--
Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
x_menu_show (f=0x55555613a728, x=0, y=0, menuflags=0, 
    title=XIL(0x7ffff191a51c), error_name=0x7fffffffc140) at xmenu.c:1903
1903	  specpdl_ref specpdl_count = SPECPDL_INDEX ();
(gdb) bt
#0  x_menu_show
    (f=0x55555613a728, x=0, y=0, menuflags=0, title=XIL(0x7ffff191a51c), error_name=0x7fffffffc140) at xmenu.c:1903
#1  0x000055555562e00a in x_popup_menu_1
    (position=XIL(0x555555dc4c93), menu=XIL(0x5555569231e3)) at menu.c:1402
#2  0x000055555562e089 in Fx_popup_menu
    (position=XIL(0x555555dc4c93), menu=XIL(0x5555569231e3)) at menu.c:1466
#3  0x00005555557e4997 in funcall_subr
    (subr=0x555555c95360 <Sx_popup_menu>, numargs=2, args=0x7ffff0e561a8)
    at eval.c:2957
#4  0x0000555555836735 in exec_byte_code
    (fun=XIL(0x7ffff1694965), args_template=513, nargs=1, args=0x7ffff0e562b0)
    at bytecode.c:809
#5  0x00005555557e4c82 in fetch_and_exec_byte_code
    (fun=XIL(0x7ffff1999585), args_template=0, nargs=0, args=0x7fffffffc840)
    at eval.c:3004
#6  0x00005555557e4ff6 in funcall_lambda
    (fun=XIL(0x7ffff1999585), nargs=0, arg_vector=0x7fffffffc840)
    at eval.c:3076
#7  0x00005555557e4e14 in apply_lambda
    (fun=XIL(0x7ffff1999585), args=XIL(0), count=...) at eval.c:3026
#8  0x00005555557e350b in eval_sub (form=XIL(0x555555e0c583)) at eval.c:2467
#9  0x00005555557e2afd in Feval (form=XIL(0x555555e0c583), lexical=XIL(0))
--Type <RET> for more, q to quit, c to continue without paging--c
    at eval.c:2278
#10 0x00005555557e4997 in funcall_subr (subr=0x555555ca2820 <Seval>, numargs=2, args=0x7ffff0e56150) at eval.c:2957
#11 0x0000555555836735 in exec_byte_code (fun=XIL(0x7ffff162b32d), args_template=513, nargs=2, args=0x7ffff0e562d0) at bytecode.c:809
#12 0x00005555557e4c82 in fetch_and_exec_byte_code (fun=XIL(0x7ffff17f4af5), args_template=257, nargs=1, args=0x7fffffffd210) at eval.c:3004
#13 0x00005555557e4ff6 in funcall_lambda (fun=XIL(0x7ffff17f4af5), nargs=1, arg_vector=0x7fffffffd210) at eval.c:3076
#14 0x00005555557e456b in funcall_general (fun=XIL(0x7ffff17f4af5), numargs=1, args=0x7fffffffd210) at eval.c:2867
#15 0x00005555557e47c7 in Ffuncall (nargs=2, args=0x7fffffffd208) at eval.c:2917
#16 0x00005555557da894 in Ffuncall_interactively (nargs=2, args=0x7fffffffd208) at callint.c:260
#17 0x00005555557e4bae in funcall_subr (subr=0x555555ca2020 <Sfuncall_interactively>, numargs=2, args=0x7fffffffd208) at eval.c:2982
#18 0x00005555557e451f in funcall_general (fun=XIL(0x555555ca2025), numargs=2, args=0x7fffffffd208) at eval.c:2863
#19 0x00005555557e47c7 in Ffuncall (nargs=3, args=0x7fffffffd200) at eval.c:2917
#20 0x00005555557dcca7 in Fcall_interactively (function=XIL(0x2aaa9bad8100), record_flag=XIL(0), keys=XIL(0x7ffff1cb2c25)) at callint.c:798
#21 0x00005555557e49ca in funcall_subr (subr=0x555555ca2060 <Scall_interactively>, numargs=3, args=0x7ffff0e56070) at eval.c:2959
#22 0x0000555555836735 in exec_byte_code (fun=XIL(0x7ffff1657f2d), args_template=1025, nargs=1, args=0x7fffffffdb90) at bytecode.c:809
#23 0x00005555557e4c82 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1657f2d), args_template=1025, nargs=1, args=0x7fffffffdb88) at eval.c:3004
#24 0x00005555557e4ff6 in funcall_lambda (fun=XIL(0x7ffff1657f2d), nargs=1, arg_vector=0x7fffffffdb88) at eval.c:3076
#25 0x00005555557e456b in funcall_general (fun=XIL(0x7ffff1657f2d), numargs=1, args=0x7fffffffdb88) at eval.c:2867
#26 0x00005555557e47c7 in Ffuncall (nargs=2, args=0x7fffffffdb80) at eval.c:2917
#27 0x000055555571f0a5 in call1 (fn=XIL(0x4a10), arg1=XIL(0x2aaa9bad8100)) at /home/larsi/src/emacs/trunk/src/lisp.h:3228
#28 0x000055555572203b in command_loop_1 () at keyboard.c:1512
#29 0x00005555557e0da2 in internal_condition_case (bfun=0x55555572182a <command_loop_1>, handlers=XIL(0x90), hfun=0x555555720e32 <cmd_error>) at eval.c:1452
#30 0x00005555557214da in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1140
#31 0x00005555557e0475 in internal_catch (tag=XIL(0xf5d0), func=0x5555557214b0 <command_loop_2>, arg=XIL(0x90)) at eval.c:1182
#32 0x000055555572146c in command_loop () at keyboard.c:1118
#33 0x00005555557209d4 in recursive_edit_1 () at keyboard.c:727
#34 0x0000555555720b80 in Frecursive_edit () at keyboard.c:810
#35 0x000055555571ce9e in main (argc=5, argv=0x7fffffffe0c8) at emacs.c:2488
Cannot access memory at address 0x7ffffec324ff
(gdb) 

I'll try valgrind next.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:25:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 14:24:04 +0200
This is the output from valgrind (from after I started the menu):

==3291841== More than 100 errors detected.  Subsequent errors
==3291841== will still be recorded, but in less detail than before.
==3291841== Syscall param pselect6(sig) points to unaddressable byte(s)
==3291841==    at 0x74A61F3: pselect (pselect.c:52)
==3291841==    by 0x4309BA: really_call_select (thread.c:612)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430A7A: thread_select (thread.c:644)
==3291841==    by 0x462D43: xg_select (xgselect.c:182)
==3291841==    by 0x1E2D7F: x_menu_wait_for_event (xmenu.c:219)
==3291841==    by 0x1E2E92: popup_widget_loop (xmenu.c:621)
==3291841==    by 0x1E4284: create_and_show_popup_menu (xmenu.c:1596)
==3291841==    by 0x1E4CB6: x_menu_show (xmenu.c:2090)
==3291841==    by 0x1E2009: x_popup_menu_1 (menu.c:1402)
==3291841==    by 0x1E2088: Fx_popup_menu (menu.c:1466)
==3291841==  Address 0x1009d0d0b0 is 0 bytes inside a block of size 32 in arena "core"
==3291841== 
==3291841== Conditional jump or move depends on uninitialised value(s)
==3291841==    at 0x35D5B0: pdumper_object_p (pdumper.h:166)
==3291841==    by 0x361C28: set_string_marked (alloc.c:4009)
==3291841==    by 0x366339: process_mark_stack (alloc.c:6805)
==3291841==    by 0x3667EB: mark_object (alloc.c:7023)
==3291841==    by 0x3631B1: mark_maybe_pointer (alloc.c:4906)
==3291841==    by 0x363232: mark_memory (alloc.c:4956)
==3291841==    by 0x36328B: mark_c_stack (alloc.c:5148)
==3291841==    by 0x430ACC: mark_one_thread (thread.c:658)
==3291841==    by 0x430BA0: mark_threads_callback (thread.c:691)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430BD2: mark_threads (thread.c:698)
==3291841== 
==3291841== Conditional jump or move depends on uninitialised value(s)
==3291841==    at 0x35D5BD: pdumper_object_p (pdumper.h:166)
==3291841==    by 0x361C28: set_string_marked (alloc.c:4009)
==3291841==    by 0x366339: process_mark_stack (alloc.c:6805)
==3291841==    by 0x3667EB: mark_object (alloc.c:7023)
==3291841==    by 0x3631B1: mark_maybe_pointer (alloc.c:4906)
==3291841==    by 0x363232: mark_memory (alloc.c:4956)
==3291841==    by 0x36328B: mark_c_stack (alloc.c:5148)
==3291841==    by 0x430ACC: mark_one_thread (thread.c:658)
==3291841==    by 0x430BA0: mark_threads_callback (thread.c:691)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430BD2: mark_threads (thread.c:698)
==3291841== 
==3291841== Use of uninitialised value of size 8
==3291841==    at 0x361C3F: set_string_marked (alloc.c:4012)
==3291841==    by 0x366339: process_mark_stack (alloc.c:6805)
==3291841==    by 0x3667EB: mark_object (alloc.c:7023)
==3291841==    by 0x3631B1: mark_maybe_pointer (alloc.c:4906)
==3291841==    by 0x363232: mark_memory (alloc.c:4956)
==3291841==    by 0x36328B: mark_c_stack (alloc.c:5148)
==3291841==    by 0x430ACC: mark_one_thread (thread.c:658)
==3291841==    by 0x430BA0: mark_threads_callback (thread.c:691)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430BD2: mark_threads (thread.c:698)
==3291841==    by 0x3651C9: garbage_collect (alloc.c:6185)
==3291841== 
==3291841== Use of uninitialised value of size 8
==3291841==    at 0x361C53: set_string_marked (alloc.c:4012)
==3291841==    by 0x366339: process_mark_stack (alloc.c:6805)
==3291841==    by 0x3667EB: mark_object (alloc.c:7023)
==3291841==    by 0x3631B1: mark_maybe_pointer (alloc.c:4906)
==3291841==    by 0x363232: mark_memory (alloc.c:4956)
==3291841==    by 0x36328B: mark_c_stack (alloc.c:5148)
==3291841==    by 0x430ACC: mark_one_thread (thread.c:658)
==3291841==    by 0x430BA0: mark_threads_callback (thread.c:691)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430BD2: mark_threads (thread.c:698)
==3291841==    by 0x3651C9: garbage_collect (alloc.c:6185)
==3291841== 
==3291841== Use of uninitialised value of size 8
==3291841==    at 0x36633A: process_mark_stack (alloc.c:6806)
==3291841==    by 0x3667EB: mark_object (alloc.c:7023)
==3291841==    by 0x3631B1: mark_maybe_pointer (alloc.c:4906)
==3291841==    by 0x363232: mark_memory (alloc.c:4956)
==3291841==    by 0x36328B: mark_c_stack (alloc.c:5148)
==3291841==    by 0x430ACC: mark_one_thread (thread.c:658)
==3291841==    by 0x430BA0: mark_threads_callback (thread.c:691)
==3291841==    by 0x3632C9: flush_stack_call_func1 (alloc.c:5189)
==3291841==    by 0x42FDD7: flush_stack_call_func (lisp.h:4201)
==3291841==    by 0x430BD2: mark_threads (thread.c:698)
==3291841==    by 0x3651C9: garbage_collect (alloc.c:6185)
==3291841==    by 0x364F7B: maybe_garbage_collect (alloc.c:6088)
==3291841== 
==3291841== Warning: client switching stacks?  SP change: 0x1ffeffdf60 --> 0x1ffe619240
==3291841==          to suppress, use: --max-stackframe=10374432 or greater
==3291841== Warning: client switching stacks?  SP change: 0x1ffe619240 --> 0x1ffdc34520
==3291841==          to suppress, use: --max-stackframe=10374432 or greater
==3291841== Invalid write of size 8
==3291841==    at 0x1E43BF: x_menu_show (xmenu.c:1903)
==3291841==  Address 0x1ffdc34518 is on thread 1's stack
==3291841== 
Fatal error 11: Segmentation fault
Backtrace:
./emacs(+0x1f4ec9)[0x2fcec9]
./emacs(+0x1c5d68)[0x2cdd68]
./emacs(+0x1f4713)[0x2fc713]
./emacs(+0x1f46e8)[0x2fc6e8]
./emacs(+0x1f4754)[0x2fc754]
./emacs(+0x1f48f8)[0x2fc8f8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12200)[0x705e200]
./emacs(+0xdc3bf)[0x1e43bf]
./emacs(+0xda00a)[0x1e200a]
./emacs(+0xda089)[0x1e2089]
./emacs(+0x290997)[0x398997]
./emacs(+0x2e2735)[0x3ea735]
./emacs(+0x290c82)[0x398c82]
./emacs(+0x290ff6)[0x398ff6]
./emacs(+0x290e14)[0x398e14]
./emacs(+0x28f50b)[0x39750b]
./emacs(+0x28eafd)[0x396afd]
./emacs(+0x290997)[0x398997]
./emacs(+0x2e2735)[0x3ea735]
./emacs(+0x290c82)[0x398c82]
./emacs(+0x290ff6)[0x398ff6]
./emacs(+0x29056b)[0x39856b]
./emacs(+0x2907c7)[0x3987c7]
./emacs(+0x286894)[0x38e894]
./emacs(+0x290bae)[0x398bae]
./emacs(+0x29051f)[0x39851f]
./emacs(+0x2907c7)[0x3987c7]
./emacs(+0x288ca7)[0x390ca7]
./emacs(+0x2909ca)[0x3989ca]
./emacs(+0x2e2735)[0x3ea735]
./emacs(+0x290c82)[0x398c82]
./emacs(+0x290ff6)[0x398ff6]
./emacs(+0x29056b)[0x39856b]
./emacs(+0x2907c7)[0x3987c7]
./emacs(+0x1cb0a5)[0x2d30a5]
./emacs(+0x1ce03b)[0x2d603b]
./emacs(+0x28cda2)[0x394da2]
./emacs(+0x1cd4da)[0x2d54da]
./emacs(+0x28c475)[0x394475]
./emacs(+0x1cd46c)[0x2d546c]
./emacs(+0x1cc9d4)[0x2d49d4]
...
==3291841== 
==3291841== Process terminating with default action of signal 11 (SIGSEGV)
==3291841==    at 0x705E07F: raise (raise.c:45)
==3291841==    by 0x2CDDB3: terminate_due_to_signal (emacs.c:458)
==3291841==    by 0x2FC712: handle_fatal_signal (sysdep.c:1780)
==3291841==    by 0x2FC6E7: deliver_thread_signal (sysdep.c:1772)
==3291841==    by 0x2FC753: deliver_fatal_thread_signal (sysdep.c:1792)
==3291841==    by 0x2FC8F7: handle_sigsegv (sysdep.c:1885)
==3291841==    by 0x705E1FF: ??? (in /usr/lib/x86_64-linux-gnu/libpthread-2.33.so)
==3291841==    by 0x1E43BE: x_menu_show (xmenu.c:1901)
==3291841== 
==3291841== HEAP SUMMARY:
==3291841==     in use at exit: 79,361,910 bytes in 133,428 blocks
==3291841==   total heap usage: 691,341 allocs, 557,913 frees, 222,256,829 bytes allocated
==3291841== 
==3291841== LEAK SUMMARY:
==3291841==    definitely lost: 13,952 bytes in 47 blocks
==3291841==    indirectly lost: 26,621 bytes in 1,060 blocks
==3291841==      possibly lost: 107,553 bytes in 3,167 blocks
==3291841==    still reachable: 77,476,416 bytes in 119,425 blocks
==3291841==         suppressed: 0 bytes in 0 blocks
==3291841== Rerun with --leak-check=full to see details of leaked memory
==3291841== 
==3291841== Use --track-origins=yes to see where uninitialised values come from
==3291841== For lists of detected and suppressed errors, rerun with: -s
==3291841== ERROR SUMMARY: 416209 errors from 107 contexts (suppressed: 0 from 0)
Segmentation fault
larsi <at> xo:~/src/emacs/trunk/src$ 


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:30:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 20:29:23 +0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> ==3291841== Warning: client switching stacks?  SP change: 0x1ffeffdf60 --> 0x1ffe619240
> ==3291841==          to suppress, use: --max-stackframe=10374432 or greater
> ==3291841== Warning: client switching stacks?  SP change: 0x1ffe619240 --> 0x1ffdc34520
> ==3291841==          to suppress, use: --max-stackframe=10374432 or greater
> ==3291841== Invalid write of size 8
> ==3291841==    at 0x1E43BF: x_menu_show (xmenu.c:1903)
> ==3291841==  Address 0x1ffdc34518 is on thread 1's stack

The stack overflowed because of the two allocas.  Does it still crash
with this patch?

diff --git a/src/xmenu.c b/src/xmenu.c
index aaf53569a7..e9601981ed 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1894,13 +1894,19 @@ x_menu_show (struct frame *f, int x, int y, int menuflags,
 {
   int i;
   widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0;
-  widget_value **submenu_stack
-    = alloca (menu_items_used * sizeof *submenu_stack);
-  Lisp_Object *subprefix_stack
-    = alloca (menu_items_used * sizeof *subprefix_stack);
+  widget_value **submenu_stack;
+  Lisp_Object *subprefix_stack;
   int submenu_depth = 0;
+  specpdl_ref specpdl_count;
 
-  specpdl_ref specpdl_count = SPECPDL_INDEX ();
+  USE_SAFE_ALLOCA;
+
+  submenu_stack = SAFE_ALLOCA (menu_items_used
+			       * sizeof *submenu_stack);
+  subprefix_stack = SAFE_ALLOCA (menu_items_used
+				 * sizeof *subprefix_stack);
+
+  specpdl_count = SPECPDL_INDEX ();
 
   eassert (FRAME_X_P (f));
 
@@ -1909,6 +1915,7 @@ x_menu_show (struct frame *f, int x, int y, int menuflags,
   if (menu_items_used <= MENU_ITEMS_PANE_LENGTH)
     {
       *error_name = "Empty menu";
+      SAFE_FREE ();
       return Qnil;
     }
 
@@ -2141,6 +2148,8 @@ x_menu_show (struct frame *f, int x, int y, int menuflags,
 			  entry = Fcons (subprefix_stack[j], entry);
 		    }
 		  unblock_input ();
+
+		  SAFE_FREE ();
 		  return entry;
 		}
 	      i += MENU_ITEMS_ITEM_LENGTH;
@@ -2155,6 +2164,8 @@ x_menu_show (struct frame *f, int x, int y, int menuflags,
     }
 
   unblock_input ();
+
+  SAFE_FREE ();
   return Qnil;
 }
 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:37:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 14:36:15 +0200
Po Lu <luangruo <at> yahoo.com> writes:

> The stack overflowed because of the two allocas.  Does it still crash
> with this patch?

Nope; no crashes with that patch, thanks.

(Side note: It is pretty slow, though -- popping up and closing the menu
both takes about five seconds on this laptop, so perhaps it should limit
the number of entries in one way or another.  And...  the family names
aren't sorted alphabetically?  And it looks like I'm getting several
instances of each family -- it's so slow that it's a bit painful to
scroll through, but I'm getting several instances of "Lato", for
instance, at arbitrary places in the list.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 12:41:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 20:40:02 +0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Nope; no crashes with that patch, thanks.
>
> (Side note: It is pretty slow, though -- popping up and closing the menu
> both takes about five seconds on this laptop, so perhaps it should limit
> the number of entries in one way or another.  And...  the family names
> aren't sorted alphabetically?  And it looks like I'm getting several
> instances of each family -- it's so slow that it's a bit painful to
> scroll through, but I'm getting several instances of "Lato", for
> instance, at arbitrary places in the list.)

Yes, I agree completely.  Allocating 20 MB to generate a popup menu also
seems excessive, but we don't have a way of "lazy-loading" menus at
present.

But for now let's just avoid the crash.  I will try to think up
something later that doesn't involve selecting through many different
layers of menus.

Thanks for testing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Mon, 23 May 2022 14:00:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: larsi <at> gnus.org, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Mon, 23 May 2022 16:59:11 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  telegraph <at> gmx.net,  55068 <at> debbugs.gnu.org
> Date: Mon, 23 May 2022 20:40:02 +0800
> 
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> 
> > Nope; no crashes with that patch, thanks.
> >
> > (Side note: It is pretty slow, though -- popping up and closing the menu
> > both takes about five seconds on this laptop, so perhaps it should limit
> > the number of entries in one way or another.  And...  the family names
> > aren't sorted alphabetically?  And it looks like I'm getting several
> > instances of each family -- it's so slow that it's a bit painful to
> > scroll through, but I'm getting several instances of "Lato", for
> > instance, at arbitrary places in the list.)
> 
> Yes, I agree completely.  Allocating 20 MB to generate a popup menu also
> seems excessive, but we don't have a way of "lazy-loading" menus at
> present.
> 
> But for now let's just avoid the crash.  I will try to think up
> something later that doesn't involve selecting through many different
> layers of menus.

We have the same problem in other *menu.c files.  I fixed w32menu.c,
but there are pgtkmenu.c and nsmenu.m as well.

As for the rest: font-family-list is quite simple-minded, especially
if the frame has more than one font backend defined.  IME, to be
useful, its output should be run through delete-dups and then sorted.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55068; Package emacs. (Tue, 24 May 2022 00:24:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, 55068 <at> debbugs.gnu.org, telegraph <at> gmx.net
Subject: Re: bug#55068: 29.0.50; crashes when trying to set default font
Date: Tue, 24 May 2022 08:23:27 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> We have the same problem in other *menu.c files.  I fixed w32menu.c,
> but there are pgtkmenu.c and nsmenu.m as well.

I will get to those eventually.  Thanks.

> As for the rest: font-family-list is quite simple-minded, especially
> if the frame has more than one font backend defined.  IME, to be
> useful, its output should be run through delete-dups and then sorted.

Sure, I will work on that.




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 21 Jun 2022 11:47:02 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 360 days ago.

Previous Next


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