From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.bugs Subject: bug#49782: 28.0.50; set-fontset-font crashes in init (server) Date: Sat, 31 Jul 2021 15:05:44 +0200 Message-ID: <8735ru3a6v.fsf@turtle-trading.net> References: <87mtq4rmh0.fsf@arrian.i-did-not-set--mail-host-address--so-tickle-me> <83eebfrixt.fsf@gnu.org> <871r7fhcpv.fsf@turtle-trading.net> <835ywrr5ve.fsf@gnu.org> <87wnp77gdn.fsf@turtle-trading.net> <83wnp7po2q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23739"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: 49782-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 31 15:06:12 2021 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 1m9ogt-00062k-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 15:06:11 +0200 Original-Received: from localhost ([::1]:40098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9ogs-0008RG-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 09:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9ogl-0008NY-Es for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 09:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9ogl-0002Sj-6q for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 09:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9ogl-0001T6-2z for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2021 09:06:03 -0400 Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Jul 2021 13:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 49782 X-GNU-PR-Package: emacs Mail-Followup-To: 49782@debbugs.gnu.org, b.riefenstahl@turtle-trading.net, b.riefenstahl@turtle-trading.net Original-Received: via spool by 49782-done@debbugs.gnu.org id=D49782.16277367525609 (code D ref 49782); Sat, 31 Jul 2021 13:06:02 +0000 Original-Received: (at 49782-done) by debbugs.gnu.org; 31 Jul 2021 13:05:52 +0000 Original-Received: from localhost ([127.0.0.1]:33494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9ogZ-0001SO-Uo for submit@debbugs.gnu.org; Sat, 31 Jul 2021 09:05:52 -0400 Original-Received: from odoacer.turtle-trading.net ([93.241.193.16]:40091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9ogY-0001S8-Tt for 49782-done@debbugs.gnu.org; Sat, 31 Jul 2021 09:05:51 -0400 Original-Received: from zenobia.turtle-trading.net ([192.168.2.109]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1m9ogS-0005Ho-NF; Sat, 31 Jul 2021 15:05:44 +0200 Original-Received: from benny by zenobia.turtle-trading.net with local (Exim 4.92) (envelope-from ) id 1m9ogS-0003sC-Lk; Sat, 31 Jul 2021 15:05:44 +0200 In-Reply-To: <83wnp7po2q.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Jul 2021 23:02:37 +0300") 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:210976 Archived-At: Hi Eli, Eli Zaretskii writes: > (I cannot produce such a backtrace myself, because your recipe > involves 3 different processes, one of which forks, which is hard to > follow with GDB on a system I have here.) Same problem here. I tried 'emacsclient -a "gdbserver emacs"', but than the problem does not reproduce. Or maybe I was doing something wrong. Eli Zaretskii writes: > But before you embark on that adventure, please try another stab in > the dark: > > diff --git a/src/fontset.c b/src/fontset.c > index d2d428d..7d4bd65 100644 > --- a/src/fontset.c > +++ b/src/fontset.c > @@ -1356,15 +1356,16 @@ check_fontset_name (Lisp_Object name, Lisp_Object *frame) > int id; > struct frame *f = decode_live_frame (*frame); > > - if (!FRAME_WINDOW_P (f) && !FRAME_INITIAL_P (f)) > - error ("Can't use fontsets in non-GUI frames"); > - > XSETFRAME (*frame, f); > > if (EQ (name, Qt)) > return Vdefault_fontset; > if (NILP (name)) > - id = FRAME_FONTSET (f); > + { > + if (!FRAME_WINDOW_P (f)) > + error ("Can't use fontsets in non-GUI frames"); > + id = FRAME_FONTSET (f); > + } > else > { > CHECK_STRING (name); Yes, this works. It works for running Emacs directly as well as through 'emacsclient -a ""' and 'emacsclient -a "emacs"'. I think this is it. Thank you, benny