From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maikol =?UTF-8?Q?Sol=C3=ADs?= Newsgroups: gmane.emacs.bugs Subject: bug#45511: 27.1; Emacs crashes in gui_produce_glyphs when using a custom function for org-roam-insert Date: Mon, 28 Dec 2020 12:42:08 -0600 Message-ID: References: <83r1n9kg14.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d4df7605b78aa383" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Maikol =?UTF-8?Q?Sol=C3=ADs?= , 45511@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 19:43:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktxUK-0001Nz-Gb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 19:43:25 +0100 Original-Received: from localhost ([::1]:57394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktxUJ-0004Ve-Ge for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 13:43:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktxTy-0004UD-JJ for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2020 13:43:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktxTy-0006pD-C2 for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2020 13:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktxTy-0000xZ-8H for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2020 13:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Maikol =?UTF-8?Q?Sol=C3=ADs?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Dec 2020 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45511 X-GNU-PR-Package: emacs Original-Received: via spool by 45511-submit@debbugs.gnu.org id=B45511.16091809773678 (code B ref 45511); Mon, 28 Dec 2020 18:43:02 +0000 Original-Received: (at 45511) by debbugs.gnu.org; 28 Dec 2020 18:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:36891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktxTs-0000xF-7M for submit@debbugs.gnu.org; Mon, 28 Dec 2020 13:42:57 -0500 Original-Received: from litio.ucr.ac.cr ([163.178.163.170]:45552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktxTp-0000x0-Mk for 45511@debbugs.gnu.org; Mon, 28 Dec 2020 13:42:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucr.ac.cr; i=@ucr.ac.cr; l=0; q=dns/txt; s=dkim; t=1609180973; x=1640716973; h=mime-version:references:in-reply-to:from:date:message-id: subject:to:cc; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=lJmeXIz2tsOn+nngIQVPxV6T+l2xqyEGIe+dPvMZe4iewxOfIhMQm4D6 0tg/SHXKpPjQ2YzSpRQ9jQ9rLfvno9AtNmw8BFNsoGbFr6zCh81O4vo3e dyuBag2sIypHEcJBFn4aOgT9AIC4y7VQbrxLrX7zrMYvKy6nh1QX5UMBL 4=; IronPort-SDR: Gwuua2SerjqrrcLBl2qNlEQWNV997Hef5vVvF37KaimaJDvRLK0ISLaMzZ6Fx0q37xmsw8B0n1 DZetAmcigtLbEWVH8sndRSAyakTqhHesQnmV+u0WuNCI/r2DU55xp+qHeVDmNZjUtTnlLc/fwd /9O+Z/MYs4HvaK2zkiI8cALAWAqZ5T2J4FLj/hjbxqXbshOyJQm5j3ZkjKtPaWZsDPqc8BeSQ2 xMiFU+djRZyTfsI9Suih2E8S7ouPssf2PZeO68obLqSlyPXdD9DJtrGRafV4oLe18o3SS21r/S yDM= X-IPAS-Result: A2HeCADAIOpf/7KjsqNiHAEBAQEBAQcBARIBAQQEAQGCD4MhWGCEP4Eeh2aIKAODXpA9bYcvAgkBAQEBAQEBAQEsDAQBAQKESAKBdSY4EwIDAQEBAwIDAQEBAQEFAQEBAQEBBQMBAQEChhU5DII4KQFzgQcBAQEBAQEBAQEBAQEBAQEBAQEBFgINVGgBAQEBAgESDAUEUgULCQILCQEmBwICIhIBBQEcBhMigwWCZh8BD5IZjxOBBD2KPnZ/M4hVIVKBAAaBOI0pgkGBR4IuNT6EXoJ4gmAEgnBnJARMShiBPJwvm1EHgnmJKpIuIoMpiiuFXY8fLZ5uljwzgUqBezOBPgaCMlAZDY4tFxSIToVjIjM3AgYBCQEBAwmNLQEB IronPort-PHdr: 9a23:5jXt2h0njteXhIGtsmDT+DRfVm0co7zxezQtwd8ZseMSKvad9pjvdHbS+e9qxAeQG9mCtLQe0rud6vm5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe/bL9oMhm6sAHcusYLjYd/N6o61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzocOjUn7G/YlNB/jKNDoBKguRN/xZLUYJqIP/Z6Z6/RYM8WSXZEUstXSidPAJ6zb5EXAuUOM+ZXrYnzqVUNoxWjGwejGPjixSVUinLsx6A2z/gtHAPA0Qc9H9wOqnPUrNDtOakVS++1zarIzTLHb/xOxDn974zIdQ46ofqRWr9wdNDeyUgsFwPCilWcs5flPzSR1uQMqGiW9PdgWv61i2I9sQ5+viKjyds2ioTQgI8e11/L+zljzokvOd24VFB0YcSiEJZIqi2XN4V4T8wmTmxopCs21LwLt560ciYE1Jkq2R/SZvOFfoWK4h/uUPudLDl4in57Zr6yiQq+/FS+x+HgVMS50VBHpTdLnNnLs3ACzR3T6s6fR/t65keuxzCP1xvO6uFfP084j63bK4QuwrM2i5EdslzDEzfrlEj3gqKabFgo 9+qr5uj9f7nrp5GRO5Vphgz8MakigtKzDfg8PwQUXGWW+f6w2KDi8ED4WrlHgf87n6/Eu57AP8sbvLS2AwpN34Ym7BawEimp3c X-IronPort-Anti-Spam-Filtered: true Original-Received: from smtp.ucr.ac.cr (HELO mta0.ucr.ac.cr) ([163.178.163.178]) by niquel.ucr.ac.cr with ESMTP; 28 Dec 2020 12:42:47 -0600 Original-Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (Authenticated sender: maikol.solis@ucr.ac.cr) by mta0.ucr.ac.cr (Postfix) with ESMTPSA id A1BE7DF255 for <45511@debbugs.gnu.org>; Mon, 28 Dec 2020 12:42:46 -0600 (CST) Original-Received: by mail-io1-f47.google.com with SMTP id w18so10205351iot.0 for <45511@debbugs.gnu.org>; Mon, 28 Dec 2020 10:42:46 -0800 (PST) X-Gm-Message-State: AOAM530M7cj4ymciRfP5D148Klpgt52Fmj/CPIuP//3Eeuu23wLEUAG1 +JtbY8oQObQLef0IpKfRkhgsIxybSPUoBFMvZWw= X-Google-Smtp-Source: ABdhPJwRtlfVmn2Mu9YxWhKCcEewUf8+NeRWKna3mQqgggCfQKOQw5XvyDm2qFhI8T0nZFR+t/+k1275FZX/WqQF24M= X-Received: by 2002:a02:ca09:: with SMTP id i9mr40017852jak.135.1609180965558; Mon, 28 Dec 2020 10:42:45 -0800 (PST) In-Reply-To: <83r1n9kg14.fsf@gnu.org> X-Gmail-Original-Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196889 Archived-At: --000000000000d4df7605b78aa383 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eli, My emacs is the compiled in the editor's repo for 15.2 ( https://build.opensuse.org/package/show/editors/emacs), so I haven't any control on how it was compiled. With respect to the bug, I could reproduce it when I tried to replace a link in org-roam. Here it is the full backtrace. Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault. gui_produce_glyphs (it=3D0x7ffd8df127a0) at xdisp.c:29925 29925 struct font *font =3D face->font; (gdb) source /etc/gdbinit (gdb) bt #0 0x00000000004693ed in gui_produce_glyphs (it=3D0x7ffd8df127a0) at xdisp.c:29925 #1 0x000000000044d632 in maybe_produce_line_number (it=3Dit@entry=3D0x7ffd8df16260) at xdisp.c:22909 #2 0x000000000045a0ee in display_line (it=3Dit@entry=3D0x7ffd8df16260, cursor_vpos=3Dcursor_vpos@entry=3D1) at xdisp.c:23161 #3 0x000000000045e00d in try_window (window=3D0x234d765, pos=3D..., flags=3D) at xdisp.c:19182 #4 0x0000000000472e48 in redisplay_window (window=3D0x234d765, just_this_one_p=3Djust_this_one_p@entry=3Dfalse) at xdisp.c:18600 #5 0x000000000047617b in redisplay_window_0 (window=3Dwindow@entry=3D0x234= d765) at xdisp.c:16314 #6 0x0000000000574f16 in internal_condition_case_1 (bfun=3D0x476150 , arg=3D0x234d765, handlers=3D, hfun=3D0x437840 ) at eval.c:1380 #7 0x000000000044107c in redisplay_windows (window=3D0x234d765) at xdisp.c:16294 #8 0x000000000044108d in redisplay_windows (window=3D0xf8e2c45) at xdisp.c:16288 #9 0x0000000000461b78 in redisplay_internal () at xdisp.c:15762 #10 0x000000000046394d in redisplay_preserve_echo_area (from_where=3Dfrom_where@entry=3D7) at xdisp.c:16115 #11 0x00000000005051aa in swallow_events (do_display=3Ddo_display@entry=3Dt= rue) at keyboard.c:4146 #12 0x000000000042c082 in sit_for (timeout=3Dtimeout@entry=3D0x7a, reading=3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) = at dispnew.c:6006 #13 0x000000000050ae48 in read_char (commandflag=3Dcommandflag@entry=3D1, map=3Dmap@entry=3D0x45f8433, prev_event=3D0x0, used_mouse_menu=3Dused_mouse_menu@entry=3D0x7ffd8df1b84b, end_time=3Dend_time@entry=3D0x0) at keyboard.c:2738 #14 0x000000000050b290 in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7ffd8df1b950, prompt=3Dprompt@entry=3D0x0, dont_downcase_last=3Ddont_downcase_last@entry=3Dfalse, can_return_switch_frame=3Dcan_return_switch_frame@entry=3Dtrue, fix_current_buffer=3Dfix_current_buffer@entry=3Dtrue, prevent_re display=3Dprevent_redisplay@entry=3Dfalse) at keyboard.c:9553 #15 0x000000000050c8fe in command_loop_1 () at keyboard.c:1350 #16 0x0000000000574e7e in internal_condition_case (bfun=3Dbfun@entry=3D0x50= c700 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x5= 03780 ) at eval.c:1356 #17 0x00000000004fe1bc in command_loop_2 (ignore=3Dignore@entry=3D0x0) at keyboard.c:1091 #18 0x0000000000574ded in internal_catch (tag=3Dtag@entry=3D0x5bb0, func=3Dfunc@entry=3D0x4fe1a0 , arg=3Darg@entry=3D0x0) at ev= al.c:1117 #19 0x00000000004fe124 in command_loop () at keyboard.c:1062 #20 0x00000000005033b6 in recursive_edit_1 () at keyboard.c:714 #21 0x000000000052bdc2 in read_minibuf (map=3Dmap@entry=3D0x4552933, initial=3D, initial@entry=3D0x0, prompt=3D, prompt@entry=3D0x3695c44, expflag=3D, histvar=3D, histpos=3D, defalt=3D, allow_props=3D, inherit_input_method=3D) at minibuf.c:664 #22 0x000000000052c57c in Fread_from_minibuffer (prompt=3D0x3695c44, initial_contents=3D0x0, keymap=3D0x4552933, read=3D0x0, hist=3D, default_value=3D0x0, inherit_input_method=3D0x0) at minibuf.c:942 #23 0x0000000000577201 in funcall_subr (subr=3D0xbc5920 , numargs=3Dnumargs@entry=3D5, args=3Dargs@entry=3D0x7ffd8df1bd88) at eval.c:2893 #24 0x0000000000575c05 in Ffuncall (nargs=3D6, args=3Dargs@entry=3D0x7ffd8d= f1bd80) at eval.c:2795 #25 0x00000000005ab160 in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, args_template=3Dargs_template@entry=3D0x406, nargs=3Dnargs@entry=3D1, args=3D, args@entry=3D0x7ffd8df1c028) at bytecode.c:633 #26 0x00000000005784dc in funcall_lambda (fun=3D0x7f68248f3d8d, nargs=3Dnargs@entry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffd8df1c028) at eval.c:2990 #27 0x0000000000575b5f in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x7ffd8df1c020) at eval.c:2809 #28 0x0000000000575cca in call1 (fn=3D, arg1=3Darg1@entry=3D= 0x3695c64) at eval.c:2655 #29 0x000000000058276e in do_yes_or_no_p (prompt=3D0x3695c64) at fns.c:2773 #30 0x000000000051ef96 in Fkill_buffer (buffer_or_name=3D) a= t buffer.c:1739 #31 0x0000000000577236 in funcall_subr (subr=3D0xbc4da0 , numargs=3Dnumargs@entry=3D1, args=3Dargs@entry=3D0x7ffd8df1c208) at eval.c:= 2868 #32 0x0000000000575c05 in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7ffd8d= f1c200) at eval.c:2795 #33 0x00000000005ab160 in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, args_template=3Dargs_template@entry=3D0x80a, nargs=3Dnargs@entry=3D2, args=3D, args@entry=3D0x7ffd8df1c450) at bytecode.c:633 #34 0x00000000005784dc in funcall_lambda (fun=3D0x6b88445, nargs=3Dnargs@en= try=3D2, arg_vector=3Darg_vector@entry=3D0x7ffd8df1c450) at eval.c:2990 #35 0x0000000000575b5f in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffd8d= f1c448) at eval.c:2809 #36 0x00000000005ab160 in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, args_template=3Dargs_template@entry=3D0x402, nargs=3Dnargs@entry=3D1, args=3D, args@entry=3D0x7ffd8df1c760) at bytecode.c:633 #37 0x00000000005784dc in funcall_lambda (fun=3D0x6b88405, nargs=3Dnargs@en= try=3D1, arg_vector=3Darg_vector@entry=3D0x7ffd8df1c760) at eval.c:2990 #38 0x0000000000575b5f in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x7ffd8df1c758) at eval.c:2809 #39 0x0000000000572460 in Ffuncall_interactively (nargs=3D2, args=3D0x7ffd8df1c758) at callint.c:254 #40 0x0000000000577175 in funcall_subr (subr=3D0xbcaaa0 , numargs=3Dnumargs@entry=3D2, args=3Dargs@entry=3D0x7ffd8df1c758) at eval.c:2848 #41 0x0000000000575c05 in Ffuncall (nargs=3Dnargs@entry=3D3, args=3Dargs@entry=3D0x7ffd8df1c750) at eval.c:2795 #42 0x0000000000573040 in Fcall_interactively (function=3D, record_flag=3D, keys=3D) at callint.c:783 #43 0x000000000057725e in funcall_subr (subr=3D0xbcaa60 , numargs=3Dnumargs@entry=3D3, args=3Dargs@entry=3D0x7= ffd8df1ca20) at eval.c:2873 #44 0x0000000000575c05 in Ffuncall (nargs=3D4, args=3Dargs@entry=3D0x7ffd8d= f1ca18) at eval.c:2795 #45 0x00000000005ab160 in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, args_template=3Dargs_template@entry=3D0x1006, nargs=3Dnargs@entry=3D1, args=3D, args@entry=3D0x7ffd8df1ccb8) at bytecode.c:633 #46 0x00000000005784dc in funcall_lambda (fun=3D0x7f6824a613e5, nargs=3Dnargs@entry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffd8df1ccb8) at eval.c:2990 --Type for more, q to quit, c to continue without paging-- #47 0x0000000000575b5f in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x7ffd8df1ccb0) at eval.c:2809 #48 0x0000000000575cca in call1 (fn=3Dfn@entry=3D0x4380, arg1=3D) at eval.c:2655 #49 0x000000000050caf0 in command_loop_1 () at keyboard.c:1463 #50 0x0000000000574e7e in internal_condition_case (bfun=3Dbfun@entry=3D0x50= c700 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x5= 03780 ) at eval.c:1356 #51 0x00000000004fe1bc in command_loop_2 (ignore=3Dignore@entry=3D0x0) at keyboard.c:1091 #52 0x0000000000574ded in internal_catch (tag=3Dtag@entry=3D0xd5c0, func=3Dfunc@entry=3D0x4fe1a0 , arg=3Darg@entry=3D0x0) at ev= al.c:1117 #53 0x00000000004fe164 in command_loop () at keyboard.c:1070 #54 0x00000000005033b6 in recursive_edit_1 () at keyboard.c:714 #55 0x00000000005036c4 in Frecursive_edit () at keyboard.c:786 #56 0x0000000000422984 in main (argc=3D1, argv=3D0x7ffd8df1d148) at emacs.c= :2066 ----- Maikol Sol=C3=ADs Universidad de Costa Rica Escuela de Matem=C3=A1tica Centro de Investigaci=C3=B3n en Matem=C3=A1tica Pura y Aplicada Tel: (506) 2511-6607 / (506) 2511-6606 On Mon, Dec 28, 2020 at 11:17 AM Eli Zaretskii wrote: > > From: Maikol Sol=C3=ADs > > Date: Mon, 28 Dec 2020 09:32:17 -0600 > > > > Everything is fine except that after a couple of times using it, emacs > crashes completely. I think that is > > caused by this function because this has never happened before. > > > > I used `gdb` to follow the crash and this is the output: > > > > Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault. > > Is this a normal build of Emacs, or did you build some branch of the > Git repository? (I'm puzzled why the thread is called "emacs-gtk".) > > > gui_produce_glyphs (it=3D0x7fff82fc3650) at xdisp.c:29925 > > 29925 struct font *font =3D face->font; > > (gdb) next > > At this point, please say > > (gdb) source /path/to/emacs/src/.gdbinit > (gdb) bt > > (replacing "/path/to/emacs" with the real location of the Emacs > sources on your system) and post the result. > --000000000000d4df7605b78aa383 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

My emacs is the compiled in= the editor's repo for 15.2 (https://build.opensuse.org/package/show/editors/ema= cs), so I haven't any control on how it was compiled.

With respect to the bu= g, I could reproduce it when I tried to replace a link in org-roam. Here it= is the full backtrace.


Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation = fault.
gui_produce_glyphs (it=3D0x7ffd8df127a0) at xdisp.c:29925
2992= 5 =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct font *font =3D face->font;
(gdb)= source /etc/gdbinit
(gdb) bt
#0 =C2=A00x00000000004693ed in gui_prod= uce_glyphs (it=3D0x7ffd8df127a0) at xdisp.c:29925
#1 =C2=A00x00000000004= 4d632 in maybe_produce_line_number (it=3Dit@entry=3D0x7ffd8df16260) at xdis= p.c:22909
#2 =C2=A00x000000000045a0ee in display_line (it=3Dit@entry=3D0= x7ffd8df16260, cursor_vpos=3Dcursor_vpos@entry=3D1) at xdisp.c:23161
#3 = =C2=A00x000000000045e00d in try_window (window=3D0x234d765, pos=3D..., flag= s=3D<optimized out>) at xdisp.c:19182
#4 =C2=A00x0000000000472e48 = in redisplay_window (window=3D0x234d765, just_this_one_p=3Djust_this_one_p@= entry=3Dfalse) at xdisp.c:18600
#5 =C2=A00x000000000047617b in redisplay= _window_0 (window=3Dwindow@entry=3D0x234d765) at xdisp.c:16314
#6 =C2=A0= 0x0000000000574f16 in internal_condition_case_1 (bfun=3D0x476150 <redisp= lay_window_0>, arg=3D0x234d765, handlers=3D<optimized out>, hfun= =3D0x437840 <redisplay_window_error>) at eval.c:1380
#7 =C2=A00x00= 0000000044107c in redisplay_windows (window=3D0x234d765) at xdisp.c:16294#8 =C2=A00x000000000044108d in redisplay_windows (window=3D0xf8e2c45) at = xdisp.c:16288
#9 =C2=A00x0000000000461b78 in redisplay_internal () at xd= isp.c:15762
#10 0x000000000046394d in redisplay_preserve_echo_area (from= _where=3Dfrom_where@entry=3D7) at xdisp.c:16115
#11 0x00000000005051aa i= n swallow_events (do_display=3Ddo_display@entry=3Dtrue) at keyboard.c:4146<= br>#12 0x000000000042c082 in sit_for (timeout=3Dtimeout@entry=3D0x7a, readi= ng=3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at di= spnew.c:6006
#13 0x000000000050ae48 in read_char (commandflag=3Dcommandf= lag@entry=3D1, map=3Dmap@entry=3D0x45f8433, prev_event=3D0x0, used_mouse_me= nu=3Dused_mouse_menu@entry=3D0x7ffd8df1b84b, end_time=3Dend_time@entry=3D0x= 0) at keyboard.c:2738
#14 0x000000000050b290 in read_key_sequence
=C2= =A0 =C2=A0(keybuf=3Dkeybuf@entry=3D0x7ffd8df1b950, prompt=3Dprompt@entry=3D= 0x0, dont_downcase_last=3Ddont_downcase_last@entry=3Dfalse, can_return_swit= ch_frame=3Dcan_return_switch_frame@entry=3Dtrue, fix_current_buffer=3Dfix_c= urrent_buffer@entry=3Dtrue, prevent_re
display=3Dprevent_redisplay@entry= =3Dfalse) at keyboard.c:9553
#15 0x000000000050c8fe in command_loop_1 ()= at keyboard.c:1350
#16 0x0000000000574e7e in internal_condition_case (b= fun=3Dbfun@entry=3D0x50c700 <command_loop_1>, handlers=3Dhandlers@ent= ry=3D0x90, hfun=3Dhfun@entry=3D0x503780 <cmd_error>) at eval.c:1356#17 0x00000000004fe1bc in command_loop_2 (ignore=3Dignore@entry=3D0x0) at= keyboard.c:1091
#18 0x0000000000574ded in internal_catch (tag=3Dtag@ent= ry=3D0x5bb0, func=3Dfunc@entry=3D0x4fe1a0 <command_loop_2>, arg=3Darg= @entry=3D0x0) at eval.c:1117
#19 0x00000000004fe124 in command_loop () a= t keyboard.c:1062
#20 0x00000000005033b6 in recursive_edit_1 () at keybo= ard.c:714
#21 0x000000000052bdc2 in read_minibuf (map=3Dmap@entry=3D0x45= 52933, initial=3D<optimized out>, initial@entry=3D0x0, prompt=3D<o= ptimized out>, =C2=A0
=C2=A0 =C2=A0prompt@entry=3D0x3695c44, expflag= =3D<optimized out>, histvar=3D<optimized out>, histpos=3D<op= timized out>, defalt=3D<optimized out>, allow_props=3D<optimize= d out>, inherit_input_method=3D<optimized out>) at minibuf.c:664#22 0x000000000052c57c in Fread_from_minibuffer (prompt=3D0x3695c44, init= ial_contents=3D0x0, keymap=3D0x4552933, read=3D0x0, hist=3D<optimized ou= t>, default_value=3D0x0, inherit_input_method=3D0x0) at minibuf.c:942#23 0x0000000000577201 in funcall_subr (subr=3D0xbc5920 <Sread_from_min= ibuffer>, numargs=3Dnumargs@entry=3D5, args=3Dargs@entry=3D0x7ffd8df1bd8= 8) at eval.c:2893
#24 0x0000000000575c05 in Ffuncall (nargs=3D6, args=3D= args@entry=3D0x7ffd8df1bd80) at eval.c:2795
#25 0x00000000005ab160 in ex= ec_byte_code (bytestr=3D<optimized out>, vector=3D<optimized out&g= t;, maxdepth=3D<optimized out>, args_template=3Dargs_template@entry= =3D0x406, nargs=3Dnargs@entry=3D1, args=3D<optimized out>, args@entry= =3D0x7ffd8df1c028)
=C2=A0 =C2=A0at bytecode.c:633
#26 0x0000000000578= 4dc in funcall_lambda (fun=3D0x7f68248f3d8d, nargs=3Dnargs@entry=3D1, arg_v= ector=3Darg_vector@entry=3D0x7ffd8df1c028) at eval.c:2990
#27 0x00000000= 00575b5f in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x7ffd8d= f1c020) at eval.c:2809
#28 0x0000000000575cca in call1 (fn=3D<optimiz= ed out>, arg1=3Darg1@entry=3D0x3695c64) at eval.c:2655
#29 0x00000000= 0058276e in do_yes_or_no_p (prompt=3D0x3695c64) at fns.c:2773
#30 0x0000= 00000051ef96 in Fkill_buffer (buffer_or_name=3D<optimized out>) at bu= ffer.c:1739
#31 0x0000000000577236 in funcall_subr (subr=3D0xbc4da0 <= Skill_buffer>, numargs=3Dnumargs@entry=3D1, args=3Dargs@entry=3D0x7ffd8d= f1c208) at eval.c:2868
#32 0x0000000000575c05 in Ffuncall (nargs=3D2, ar= gs=3Dargs@entry=3D0x7ffd8df1c200) at eval.c:2795
#33 0x00000000005ab160 = in exec_byte_code (bytestr=3D<optimized out>, vector=3D<optimized = out>, maxdepth=3D<optimized out>, args_template=3Dargs_template@en= try=3D0x80a, nargs=3Dnargs@entry=3D2, args=3D<optimized out>, args@en= try=3D0x7ffd8df1c450)
=C2=A0 =C2=A0at bytecode.c:633
#34 0x0000000000= 5784dc in funcall_lambda (fun=3D0x6b88445, nargs=3Dnargs@entry=3D2, arg_vec= tor=3Darg_vector@entry=3D0x7ffd8df1c450) at eval.c:2990
#35 0x0000000000= 575b5f in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffd8df1c448) at eval.= c:2809
#36 0x00000000005ab160 in exec_byte_code (bytestr=3D<optimized= out>, vector=3D<optimized out>, maxdepth=3D<optimized out>,= args_template=3Dargs_template@entry=3D0x402, nargs=3Dnargs@entry=3D1, args= =3D<optimized out>, args@entry=3D0x7ffd8df1c760)
=C2=A0 =C2=A0at b= ytecode.c:633
#37 0x00000000005784dc in funcall_lambda (fun=3D0x6b88405,= nargs=3Dnargs@entry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffd8df1c760) a= t eval.c:2990
#38 0x0000000000575b5f in Ffuncall (nargs=3Dnargs@entry=3D= 2, args=3Dargs@entry=3D0x7ffd8df1c758) at eval.c:2809
#39 0x000000000057= 2460 in Ffuncall_interactively (nargs=3D2, args=3D0x7ffd8df1c758) at callin= t.c:254
#40 0x0000000000577175 in funcall_subr (subr=3D0xbcaaa0 <Sfun= call_interactively>, numargs=3Dnumargs@entry=3D2, args=3Dargs@entry=3D0x= 7ffd8df1c758) at eval.c:2848
#41 0x0000000000575c05 in Ffuncall (nargs= =3Dnargs@entry=3D3, args=3Dargs@entry=3D0x7ffd8df1c750) at eval.c:2795
#= 42 0x0000000000573040 in Fcall_interactively (function=3D<optimized out&= gt;, record_flag=3D<optimized out>, keys=3D<optimized out>) at = callint.c:783
#43 0x000000000057725e in funcall_subr (subr=3D0xbcaa60 &l= t;Scall_interactively>, numargs=3Dnumargs@entry=3D3, args=3Dargs@entry= =3D0x7ffd8df1ca20) at eval.c:2873
#44 0x0000000000575c05 in Ffuncall (na= rgs=3D4, args=3Dargs@entry=3D0x7ffd8df1ca18) at eval.c:2795
#45 0x000000= 00005ab160 in exec_byte_code (bytestr=3D<optimized out>, vector=3D<= ;optimized out>, maxdepth=3D<optimized out>, args_template=3Dargs_= template@entry=3D0x1006, nargs=3Dnargs@entry=3D1, args=3D<optimized out&= gt;, args@entry=3D0x7ffd8df1ccb8)
=C2=A0 =C2=A0at bytecode.c:633
#46 = 0x00000000005784dc in funcall_lambda (fun=3D0x7f6824a613e5, nargs=3Dnargs@e= ntry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffd8df1ccb8) at eval.c:2990--Type <RET> for more, q to quit, c to continue without paging--
= #47 0x0000000000575b5f in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@en= try=3D0x7ffd8df1ccb0) at eval.c:2809
#48 0x0000000000575cca in call1 (fn= =3Dfn@entry=3D0x4380, arg1=3D<optimized out>) at eval.c:2655
#49 0= x000000000050caf0 in command_loop_1 () at keyboard.c:1463
#50 0x00000000= 00574e7e in internal_condition_case (bfun=3Dbfun@entry=3D0x50c700 <comma= nd_loop_1>, handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x5037= 80 <cmd_error>) at eval.c:1356
#51 0x00000000004fe1bc in command_l= oop_2 (ignore=3Dignore@entry=3D0x0) at keyboard.c:1091
#52 0x00000000005= 74ded in internal_catch (tag=3Dtag@entry=3D0xd5c0, func=3Dfunc@entry=3D0x4f= e1a0 <command_loop_2>, arg=3Darg@entry=3D0x0) at eval.c:1117
#53 0= x00000000004fe164 in command_loop () at keyboard.c:1070
#54 0x0000000000= 5033b6 in recursive_edit_1 () at keyboard.c:714
#55 0x00000000005036c4 i= n Frecursive_edit () at keyboard.c:786
#56 0x0000000000422984 in main (a= rgc=3D1, argv=3D0x7ffd8df1d148) at emacs.c:2066


=


-----Maikol Sol=C3=ADs
Universidad de Costa Rica
E= scuela de Matem=C3=A1tica
Centro de Investigaci=C3=B3n en Mat= em=C3=A1tica Pura y Aplicada
Tel: (506) 2511-6607 / (50= 6) 2511-6606



= On Mon, Dec 28, 2020 at 11:17 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Maikol Sol=C3=ADs <maikol.solis@ucr.ac.cr>
> Date: Mon, 28 Dec 2020 09:32:17 -0600
>
> Everything is fine except that after a couple of times using it, emacs= crashes completely.=C2=A0 I think that is
> caused by this function because this has never happened before.
>
> I used `gdb` to follow the crash and this is the output:
>
>=C2=A0 =C2=A0 =C2=A0 Thread 1 "emacs-gtk" received signal SIG= SEGV, Segmentation fault.

Is this a normal build of Emacs, or did you build some branch of the
Git repository?=C2=A0 (I'm puzzled why the thread is called "emacs= -gtk".)

>=C2=A0 =C2=A0 =C2=A0 gui_produce_glyphs (it=3D0x7fff82fc3650) at xdisp.= c:29925
>=C2=A0 =C2=A0 =C2=A0 29925=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct font= *font =3D face->font;
>=C2=A0 =C2=A0 =C2=A0 (gdb) next

At this point, please say

=C2=A0 =C2=A0(gdb) source /path/to/emacs/src/.gdbinit
=C2=A0 =C2=A0(gdb) bt

(replacing "/path/to/emacs" with the real location of the Emacs sources on your system) and post the result.
--000000000000d4df7605b78aa383--