From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Karl Otness Newsgroups: gmane.emacs.bugs Subject: bug#34114: 27.0.50: pdumper and themes with Emacs daemon Date: Thu, 24 Jan 2019 19:22:34 +0000 Message-ID: References: <61329001-3288-47b4-ad82-de16ac532d12@email.android.com> <83lg3a6qf7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="263067"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34114@debbugs.gnu.org, Kaushal Modi To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 20:34:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmklN-0016KE-UI for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2019 20:34:10 +0100 Original-Received: from localhost ([127.0.0.1]:59881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmklL-0002tt-Oq for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2019 14:34:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmkl5-0002o1-VM for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 14:33:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmkac-00025b-4s for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 14:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmkac-00025F-00 for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 14:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gmkab-00032U-NH for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 14:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Karl Otness Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jan 2019 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34114 X-GNU-PR-Package: emacs Original-Received: via spool by 34114-submit@debbugs.gnu.org id=B34114.154835777911660 (code B ref 34114); Thu, 24 Jan 2019 19:23:01 +0000 Original-Received: (at 34114) by debbugs.gnu.org; 24 Jan 2019 19:22:59 +0000 Original-Received: from localhost ([127.0.0.1]:44300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmkaY-00031z-DR for submit@debbugs.gnu.org; Thu, 24 Jan 2019 14:22:58 -0500 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:38079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmkaU-00031i-9A for 34114@debbugs.gnu.org; Thu, 24 Jan 2019 14:22:55 -0500 Original-Received: by mail-io1-f41.google.com with SMTP id l14so5715181ioj.5 for <34114@debbugs.gnu.org>; Thu, 24 Jan 2019 11:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karlotness-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IUIzPiNGzsOq5SHrVwOvn5wKB/aePhRJdbPv/MAOSxY=; b=0n1LDYHSEGlwj38FZhVVlQKZ5MwgutssaTaglVQbh4lhZhe5m9O1w+XWItSZzfQpWr Y64jQfNltjaufnR1wbd/fPcpfBAhNYRqqlU403UgCcWaKNoFwP2vvl+hXVx04aWLqssP q7gs9I+oBl50BTXbbcK540lnuQ6GXFB9IOpdOROCAiS+k/iXXIssCWztBxLm2YbDGe6a EXfc9VYLvma6oyLh373cfVoxYTBeopw+uyQjTHgC70jUD30g7jcuRFuS046u2nOZ5T5K cDlSXUzoR8iEMYQkWR4BOjaPZK9ZOsg7hGL1tFz6TuU1kEgg9QLt+vGLaoQiMS9PAMal tYoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IUIzPiNGzsOq5SHrVwOvn5wKB/aePhRJdbPv/MAOSxY=; b=sS68rs79w9PhDid3Zvqv9k46bYzWmoiQhv0IZjDD8kKnzdd3Sxnclf/rgwgyKjES2s rtfchm6YSw7BXfrspmc40Ld9BsGN7gh+IIdTMTZxMd5g0O74hp6KL+jdtnigOYkQzhUd YFeiQ1i7LsdNTP+gwCTmF2Evobcs+6ZoUZ7sCzygXE8F98Or0bWeMF4O82U9nVy/ovMY Np7NxPvrJErZeTOANaBew0DZJZsT0Gl7tAivOLdN+SeigFYV5GsBf6ZIa0dcu/VUTlDV 8AyVmMes5+xxsnXdwIjfbyDbkpLNZnlAsBtHB53yKB1eMFX0xXLG64zjUOOWv5cyk5c4 cpZQ== X-Gm-Message-State: AJcUukcn2ADbhiNrFu+6zArXc31j8Pzr/+rXmsMHE0R4rflEXns5joGz G7noiQGyalrwHtgqSrYOUr1fgNadq2s= X-Google-Smtp-Source: AHgI3IYvwONFU7ADyzozNItxR/bajoWKocf0cc16Qm/myuJ20YB/HfQcoCHnVrxwrLV2MmXJaHNYPA== X-Received: by 2002:a5e:9e4a:: with SMTP id j10mr5403046ioq.165.1548357768037; Thu, 24 Jan 2019 11:22:48 -0800 (PST) Original-Received: from mail-it1-f171.google.com (mail-it1-f171.google.com. [209.85.166.171]) by smtp.gmail.com with ESMTPSA id b25sm9117880iot.10.2019.01.24.11.22.46 for <34114@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 11:22:47 -0800 (PST) Original-Received: by mail-it1-f171.google.com with SMTP id h193so6170038ita.5 for <34114@debbugs.gnu.org>; Thu, 24 Jan 2019 11:22:46 -0800 (PST) X-Received: by 2002:a24:a507:: with SMTP id k7mr2049284itf.98.1548357766299; Thu, 24 Jan 2019 11:22:46 -0800 (PST) In-Reply-To: <83lg3a6qf7.fsf@gnu.org> X-Gmail-Original-Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154748 Archived-At: On Thu, Jan 24, 2019 at 3:12 PM Eli Zaretskii wrote: > So Karl, could you please try the patch below, which is based on your > idea, but with a quirk? That patch seems to fix the issue for me. Thanks for taking a look at it. > And before you apply the patch, could you perhaps show C and Lisp > backtraces from the errors you were seeing? I don't see those errors > here when I try your recipe, and I'd like to better understand where > the problem happens. As far as backtraces, here's the output I get when running with my init file containing just "(toggle-debug-on-error)" and "(load-theme 'wombat t)"= : > Error: (error (error "Invalid face" tooltip)) > (internal-get-lisp-face-attribute tooltip :family #) > (face-attribute tooltip :family #) > (face-attr-match-p tooltip (:inherit variable-pitch) #) > (frame-set-background-mode #) > (modify-frame-parameters nil ((menu-bar-lines . 1) (buried-buffer-list)= (buffer-list #) (unsplittable) (modeline . t) (width . 1= 0) (height . 9) (font . "tty") (background-color . "unspecified-bg") (foreg= round-color . "unspecified-fg"))) > (frame-notice-user-settings) > (#[0 "\11\203\10\0\306\11!\21\n\2042\0\13\2032\0\f\307\267\202'\0\310\3= 11\13!\312\"\210\313\314\13!!\315P\2021\0\314\316\317\13\320 \321 $!\22\15\= 204;\0\322\323\324\"\210\16!\204Q\0\16\"\203Q\0\16#\204Q\0\16\"\325=3D\203t= \0\16$\300=3D\204`\0\326\327\330\331\332 $\210\333\334!\203i\0\334 \210\333= \335!\203t\0\335\336 !\210\333\337!\203}\0\337 \210\15?\205\205\0\322\340!\= 207" [(("-cdac$" . 1.3)) default-directory auto-save-list-file-name auto-sa= ve-list-file-prefix system-type inhibit-startup-hooks abbreviate-file-name = #s(hash-table size 1 test eq rehash-size 1.5 rehash-threshold 0.8125 pureco= py t data (ms-dos 22)) make-directory file-name-directory t make-temp-name = expand-file-name "~" format "%s%d-%s~" emacs-pid system-name run-hooks emac= s-startup-hook term-setup-hook pc set-face-attribute default nil :font font= -spec fboundp frame-notice-user-settings frame-set-background-mode selected= -frame font-menu-add-default window-setup-hook frame-initial-frame initial-= window-system noninteractive face-font-rescale-alist] 6]) > (normal-top-level) The C backtrace is mostly just funcalls, but this is what I get from a breakpoint at xfaces.c:1866 which I think is where the actual error is signaled. > #0 0x00005555556b2764 in lface_from_face_name_no_resolve (f=3D0x555555e7= 6a30, face_name=3D..., signal_p=3Dtrue) at xfaces.c:1866 > #1 0x00005555556b27cb in lface_from_face_name (f=3D0x555555e76a30, face_= name=3D..., signal_p=3Dtrue) at xfaces.c:1884 > #2 0x00005555556b7acd in Finternal_get_lisp_face_attribute (symbol=3D...= , keyword=3D..., frame=3D...) at xfaces.c:3731 > #3 0x00005555557e9df7 in funcall_subr (subr=3D0x555555d6e7e0 , numargs=3D3, args=3D0x7fffffffbe10) at eval.c:294= 0 > #4 0x00005555557e98b7 in Ffuncall (nargs=3D4, args=3D0x7fffffffbe08) at = eval.c:2860 > #5 0x000055555583e47d in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D3, args=3D0x7fffffffc328) at byt= ecode.c:633 > #6 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D3, arg_vecto= r=3D0x7fffffffc310) at eval.c:3058 > #7 0x00005555557e98fb in Ffuncall (nargs=3D4, args=3D0x7fffffffc308) at = eval.c:2862 > #8 0x000055555583e47d in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D3, args=3D0x7fffffffc890) at byt= ecode.c:633 > #9 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D3, arg_vecto= r=3D0x7fffffffc878) at eval.c:3058 > #10 0x00005555557e98fb in Ffuncall (nargs=3D4, args=3D0x7fffffffc870) at = eval.c:2862 > #11 0x000055555583e47d in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D1, args=3D0x7fffffffce00) at byt= ecode.c:633 > #12 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D1, arg_vecto= r=3D0x7fffffffcdf8) at eval.c:3058 > #13 0x00005555557e98fb in Ffuncall (nargs=3D2, args=3D0x7fffffffcdf0) at = eval.c:2862 > #14 0x00005555557e90ab in call1 (fn=3D..., arg1=3D...) at eval.c:2711 > #15 0x00005555556b70b9 in update_face_from_frame_parameter (f=3D0x555555e= 76a30, param=3D..., new_value=3D...) at xfaces.c:3398 > #16 0x00005555555abead in Fmodify_frame_parameters (frame=3D..., alist=3D= ...) at frame.c:3236 > #17 0x00005555557e9dcb in funcall_subr (subr=3D0x555555d69ea0 , numargs=3D2, args=3D0x7fffffffd0d8) at eval.c:2937 > #18 0x00005555557e98b7 in Ffuncall (nargs=3D3, args=3D0x7fffffffd0d0) at = eval.c:2860 > #19 0x000055555583e47d in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D0, args=3D0x7fffffffd820) at byt= ecode.c:633 > #20 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D0, arg_vecto= r=3D0x7fffffffd820) at eval.c:3058 > #21 0x00005555557e98fb in Ffuncall (nargs=3D1, args=3D0x7fffffffd818) at = eval.c:2862 > #22 0x000055555583e47d in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D0, args=3D0x7fffffffdd00) at byt= ecode.c:633 > #23 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D0, arg_vecto= r=3D0x7fffffffdd00) at eval.c:3058 > #24 0x00005555557e98fb in Ffuncall (nargs=3D1, args=3D0x7fffffffdcf8) at = eval.c:2862 > #25 0x000055555583d4f1 in bcall0 (f=3D...) at bytecode.c:328 > #26 0x00005555557ebb26 in do_one_unbind (this_binding=3D0x7fffffffdd80, u= nwinding=3Dtrue, bindflag=3DSET_INTERNAL_UNBIND) at eval.c:3504 > #27 0x00005555557ebfea in unbind_to (count=3D5, value=3D...) at eval.c:36= 31 > #28 0x000055555583e566 in exec_byte_code (bytestr=3D..., vector=3D..., ma= xdepth=3D..., args_template=3D..., nargs=3D0, args=3D0x7fffffffe3b0) at byt= ecode.c:653 > #29 0x00005555557ea4e7 in funcall_lambda (fun=3D..., nargs=3D0, arg_vecto= r=3D0x7fffffffe3b0) at eval.c:3058 > #30 0x00005555557ea152 in apply_lambda (fun=3D..., args=3D..., count=3D4)= at eval.c:2994 > #31 0x00005555557e812f in eval_sub (form=3D...) at eval.c:2373 > #32 0x00005555557e7428 in Feval (form=3D..., lexical=3D...) at eval.c:214= 7 > #33 0x000055555571afd4 in top_level_2 () at keyboard.c:1099 > #34 0x00005555557e5427 in internal_condition_case (bfun=3D0x55555571afb1 = , handlers=3D..., hfun=3D0x55555571a9a7 ) at eval.c= :1376 > #35 0x000055555571b01c in top_level_1 (ignore=3D...) at keyboard.c:1107 > #36 0x00005555557e488c in internal_catch (tag=3D..., func=3D0x55555571afd= 6 , arg=3D...) at eval.c:1139 > #37 0x000055555571aefb in command_loop () at keyboard.c:1068 > #38 0x000055555571a48e in recursive_edit_1 () at keyboard.c:714 > #39 0x000055555571a686 in Frecursive_edit () at keyboard.c:785 > #40 0x0000555555718244 in main (argc=3D2, argv=3D0x7fffffffe8c8) at emacs= .c:1902 Thanks again, Karl