From unknown Tue Jun 24 05:08:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36287 <36287@debbugs.gnu.org> To: bug#36287 <36287@debbugs.gnu.org> Subject: Status: 26.2.90; On macOS, process-attributes returns truncated command name Reply-To: bug#36287 <36287@debbugs.gnu.org> Date: Tue, 24 Jun 2025 12:08:57 +0000 retitle 36287 26.2.90; On macOS, process-attributes returns truncated comma= nd name reassign 36287 emacs submitter 36287 Xu Chunyang severity 36287 minor tag 36287 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 19 03:46:45 2019 Received: (at submit) by debbugs.gnu.org; 19 Jun 2019 07:46:45 +0000 Received: from localhost ([127.0.0.1]:45954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdVIq-0000pV-KM for submit@debbugs.gnu.org; Wed, 19 Jun 2019 03:46:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:46239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdVIp-0000pP-ST for submit@debbugs.gnu.org; Wed, 19 Jun 2019 03:46:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34542) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdVIn-0003Gz-2s for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 03:46:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, UPPERCASE_50_75,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdVIl-0001a3-2q for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 03:46:40 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdVIj-0001Ug-23 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 03:46:37 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D0AA7222B4 for ; Wed, 19 Jun 2019 03:46:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 19 Jun 2019 03:46:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=MXJaUJYS/FrG0651iOrMv3SXlE KFth6xwLWO5exFiIY=; b=OunAAzto4MhdSg4kkZDHJvl0NRyKHdCahFESNoKYlO OncPZYE1vFJ/COYnUDmbJ74D7Pm2ADb0JQMqp6/RpwAfWV66ku7tLxhCFBqhOPPv 4zsF/VTv80OeqhRAJpU5R/5SKAkQp5VTOx6jK/FkgLfTh5iohy9OyJwv2y2JOhG5 klHDwxtBqKuajcM7hHYnScNdt/ubImNv1k9px+elBvBHtPDjIAIVgMWRCds2UXNK y0OJ+Ras3TiuIKLvH3Uu8iixU+QqkLMjzmJRyoFUtmNz2HuhO3h5UG+11eX0cw7j 9dFnHVrAWPYrXGTicB5KvtwW5nYM1nA3gb3R+sYhuiFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=MXJaUJ YS/FrG0651iOrMv3SXlEKFth6xwLWO5exFiIY=; b=K4LkS4ffUnJ4d73mjtak1j Pc9efHTsKDSnXZWspu63n4fQDN3UKw7VNAkpD26gmKMq5CHa9Ubi228ozfk2CrAy IQ1IhF4XMJhtjHTgKq9gf3WH6ZuU0QuKcidnbgF7Bt6vldWjIqj76371gjrDoQPm UC8or6lKUMz7DHilIUp4gn6ibrWPr7s5GZvAEEkJElfc9yuQbY/RoWyor66Apgdm Iy31liSC2z5hApP+cDZr6mD7mKCN+StSrXqNO1/f4lmsmG/myQfqfRMVPcO2FBz0 CdEOMkNq3TnLzuuKrn9J4pM8t8f+nzqhnt4nBr90A7HzONu/O4UTthSts2GWjF5A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddugdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgfgsehtqhertd dtredtnecuhfhrohhmpegiuhcuvehhuhhnhigrnhhguceomhgrihhlseiguhgthhhunhih rghnghdrmhgvqeenucffohhmrghinhephhgvlhhpvghrrdgrphhpnecukfhppeduudejrd elfedrvddtiedrudeffeenucfrrghrrghmpehmrghilhhfrhhomhepmhgrihhlseiguhgt hhhunhihrghnghdrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from Chunyangs-MacBook-Air.local (unknown [117.93.206.133]) by mail.messagingengine.com (Postfix) with ESMTPA id A294580060 for ; Wed, 19 Jun 2019 03:46:27 -0400 (EDT) From: Xu Chunyang To: bug-gnu-emacs@gnu.org Subject: 26.2.90; On macOS, process-attributes returns truncated command name User-Agent: Emacs/26.2.90 Date: Wed, 19 Jun 2019 15:46:24 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) (alist-get 'comm (process-attributes 45329)) ;; =3D> "Google Chrome He" But the command name is actually 'Google Chrome Helper' as the following shows ~ $ ps -p 45329 PID TTY TIME CMD 45329 ?? 8:15.90 /Applications/Google Chrome.app/Contents/Framework= s/Google Chrome Framework.framework/Versions/75.0.3770.100/Helpers/Google C= hrome Helper.app/Contents/MacOS/Google Chrome Helper --type=3Dgpu-process -= -field-trial-handle=3D1718379636,16071315400300348740,16333828044400969087,= 131072 --gpu-preferences=3DKAAAAAAAAAAgAAAAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAA= AAAAAAABAAAfAAAA+AAAAAAAAAAAAQAAAAAAAAgBAAAAAAAAEAEAAAAAAAAYAQAAAAAAACABAAA= AAAAAKAEAAAAAAAAwAQAAAAAAADgBAAAAAAAAQAEAAAAAAABIAQAAAAAAAFABAAAAAAAAWAEAAA= AAAABgAQAAAAAAAGgBAAAAAAAAcAEAAAAAAAB4AQAAAAAAAIABAAAAAAAAiAEAAAAAAACQAQAAA= AAAAJgBAAAAAAAAoAEAAAAAAACoAQAAAAAAALABAAAAAAAAuAEAAAAAAADAAQAAAAAAAMgBAAAA= AAAA0AEAAAAAAADYAQAAAAAAAOABAAAAAAAA6AEAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAA= AAAAAAAAABgAAABAAAAAAAAAAAAAAAAcAAAAQAAAAAAAAAAAAAAAIAAAAEAAAAAAAAAAAAAAACg= AAABAAAAAAAAAAAAAAAAsAAAAQAAAAAAAAAAAAAAANAAAAEAAAAAAAAAAAAAAADgAAABAAAAAAA= AAAAQAAAAAAAAAQAAAAAAAAAAEAAAAGAAAAEAAAAAAAAAABAAAABwAAABAAAAAAAAAAAQAAAAgA= AAAQAAAAAAAAAAEAAAAKAAAAEAAAAAAAAAABAAAACwAAABAAAAAAAAAAAQAAAA0AAAAQAAAAAAA= AAAEAAAAOAAAAEAAAAAAAAAAEAAAAAAAAABAAAAAAAAAABAAAAAYAAAAQAAAAAAAAAAQAAAAHAA= AAEAAAAAAAAAAEAAAACAAAABAAAAAAAAAABAAAAAoAAAAQAAAAAAAAAAQAAAALAAAAEAAAAAAAA= AAEAAAADQAAABAAAAAAAAAABAAAAA4AAAAQAAAAAAAAAAYAAAAAAAAAEAAAAAAAAAAGAAAABgAA= ABAAAAAAAAAABgAAAAgAAAAQAAAAAAAAAAYAAAAKAAAAEAAAAAAAAAAGAAAACwAAABAAAAAAAAA= ABgAAAA0AAAAQAAAAAAAAAAYAAAAOAAAA --service-request-channel-token=3D1247481= 7198730077840 ~ $ In GNU Emacs 26.2.90 (build 1, x86_64-apple-darwin18.6.0, Carbon Version 15= 8 AppKit 1671.5) of 2019-06-13 built on Chunyangs-MacBook-Air.local Repository revision: 7ba854289bd169f1e5f4fbdbc4ae2bef24b9811f Windowing system distributor 'Apple Inc.', version 10.14.5 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 19 04:38:24 2019 Received: (at 36287) by debbugs.gnu.org; 19 Jun 2019 08:38:24 +0000 Received: from localhost ([127.0.0.1]:45986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdW6q-00025F-9J for submit@debbugs.gnu.org; Wed, 19 Jun 2019 04:38:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:58914 helo=mx1.suse.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdW6n-000250-T2 for 36287@debbugs.gnu.org; Wed, 19 Jun 2019 04:38:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1721FAD5E; Wed, 19 Jun 2019 08:38:16 +0000 (UTC) From: Andreas Schwab To: Xu Chunyang Subject: Re: bug#36287: 26.2.90; On macOS, process-attributes returns truncated command name References: X-Yow: My LIBRARY CARD expired... Date: Wed, 19 Jun 2019 10:38:15 +0200 In-Reply-To: (Xu Chunyang's message of "Wed, 19 Jun 2019 15:46:24 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36287 Cc: 36287@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Jun 19 2019, Xu Chunyang wrote: > (alist-get 'comm (process-attributes 45329)) > ;; => "Google Chrome He" > > But the command name is actually 'Google Chrome Helper' as the following > shows That's probably a kernel limitation. The Linux kernel also remembers no more than 15 characters of the command name. You need to peek that the process's memory to retrieve the full name. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 19 06:15:20 2019 Received: (at 36287) by debbugs.gnu.org; 19 Jun 2019 10:15:20 +0000 Received: from localhost ([127.0.0.1]:46053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdXce-0004XU-HS for submit@debbugs.gnu.org; Wed, 19 Jun 2019 06:15:20 -0400 Received: from mail-ed1-f46.google.com ([209.85.208.46]:41622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdXcc-0004XD-Mm for 36287@debbugs.gnu.org; Wed, 19 Jun 2019 06:15:19 -0400 Received: by mail-ed1-f46.google.com with SMTP id p15so26354968eds.8 for <36287@debbugs.gnu.org>; Wed, 19 Jun 2019 03:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=10htMGX/BrPIZsEd/bl/u5Py+VRQiUyWBzqLWTCUvXE=; b=AExJ5DGO2bGNfpl+dUh+UoRpouFDV0o2XFOMrZHPsdWLIiLadgcJX/gqrVuahDcCj8 fV58yRU8xz70PTJ+5ciyqa+vYvJgmIKQiJ4YKE3KXbpWGq6/p4GT5Z3TzV3LfK7aNfEB /l7tqf6v8iIL9mjKQ59LV4Yd6dFEKT9oDuYvmun/xXf+8iPbzd0EY6ixIOy2SvmfSHlU ZzRxphUEwpa4lL1QO8PFIhiwFPXE9vfjxIC3DzoMnr9I2zkBsl0vJ9DhzWqFNLYxM9oA SpbGt8XyihgTcYqJ/J9Zk2M8R7gR6eNODPUoG0wongsotbg+6BI0RdYGO/hMgnitQqXd EeTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=10htMGX/BrPIZsEd/bl/u5Py+VRQiUyWBzqLWTCUvXE=; b=jkTaes5Rxgw6viEDqG7Sd34lKJVjYVnrTmkfc/5XCHRsScWEsXaQNr6QlUI0PcA6Pn iExw7k3v+learyN1kf3ufamMiBs2U+XEygjQbxwqQIM23wYyH3esUbBoNz89Dr6zi1BK uPokF/pk3Tjr7f0W1yUF13OAe9fqfHhJ183wXhdtRejD+Yr+44JOOFgFc35Bxc9d1pRE /cicFF580jiYG+2XHDV3MmoZWdwEeMmmIYHELe6cVfIbNf55Pj2sTP4Z1hwH/t+Ld6VT 5UNL+7Op83r4oNAqJ6Aav1VcdyRLxouk0mDw/63SwzsBBPM1fksSQkDFeB/JfSEvGBks Go9g== X-Gm-Message-State: APjAAAV4UvFnpY318L9kdksZfY+6ZyPcXW10nL9Y4P1iVW0HxuUSoOE+ 0eZxfACzRdH5oof+x2sg7uCIecRuGEpVlg== X-Google-Smtp-Source: APXvYqx9M+Oz9ND7PI+FvKJF26Ook9t+Bl+r+cWBKjLTDMElbBn/M7KoowC56tkdE4bs+RFKRda+Uw== X-Received: by 2002:a50:9413:: with SMTP id p19mr109177937eda.224.1560939312169; Wed, 19 Jun 2019 03:15:12 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id o93sm5493396edd.46.2019.06.19.03.15.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 03:15:11 -0700 (PDT) From: Robert Pluim To: Xu Chunyang Subject: Re: bug#36287: 26.2.90; On macOS, process-attributes returns truncated command name References: X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Wed, 19 Jun 2019 12:15:10 +0200 In-Reply-To: (Xu Chunyang's message of "Wed, 19 Jun 2019 15:46:24 +0800") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36287 Cc: 36287@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 19 Jun 2019 15:46:24 +0800, Xu Chunyang said: Xu> (alist-get 'comm (process-attributes 45329)) Xu> ;; => "Google Chrome He" The sysctl interface will never return more than 16 characters. A quick google leads me to the following (there may well be utility functions in emacs for the full-path => command name munging already). diff --git a/src/sysdep.c b/src/sysdep.c index b2aecc0dda..c1cc89451b 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -50,6 +50,10 @@ # include #endif +#ifdef DARWIN_OS +# include +#endif + #ifdef __FreeBSD__ /* Sparc/ARM machine/frame.h has 'struct frame' which conflicts with Emacs's 'struct frame', so rename it. */ @@ -3819,8 +3823,21 @@ system_process_attributes (Lisp_Object pid) if (gr) attrs = Fcons (Fcons (Qgroup, build_string (gr->gr_name)), attrs); + char pathbuf[PROC_PIDPATHINFO_MAXSIZE]; + char *comm; + + if (proc_pidpath (proc_id, pathbuf, sizeof(pathbuf)) > 0) + { + if ((comm = strrchr (pathbuf, '/'))) + comm++; + else + comm = pathbuf; + } + else + comm = proc.kp_proc.p_comm; + decoded_comm = (code_convert_string_norecord - (build_unibyte_string (proc.kp_proc.p_comm), + (build_unibyte_string (comm), Vlocale_coding_system, 0)); attrs = Fcons (Fcons (Qcomm, decoded_comm), attrs); From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 07:21:05 2020 Received: (at control) by debbugs.gnu.org; 18 Aug 2020 11:21:06 +0000 Received: from localhost ([127.0.0.1]:34275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7zft-0000nH-Il for submit@debbugs.gnu.org; Tue, 18 Aug 2020 07:21:05 -0400 Received: from mail-yb1-f174.google.com ([209.85.219.174]:34827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7zfs-0000mN-0D for control@debbugs.gnu.org; Tue, 18 Aug 2020 07:21:04 -0400 Received: by mail-yb1-f174.google.com with SMTP id y134so11190964yby.2 for ; Tue, 18 Aug 2020 04:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=1YiMWzQ+UIOT4hLscsQy8hwXS8DILvvAOBsKWatqWNY=; b=G6tYzTQNjdpyxKehQGPn97UH/m0foF0FPaz595HVQDPAGRViwBvAP2yZIr4rR+r5RW 5Q+Q/0fowvDS8l4xZjn/iLeqXCGCjYcbVdoIjrhGqfGYp+h3IgShMmYjUZoTqRAlKnyH 40sYvR8aL8whNZL2UwAG7C9T4cURDeWaDo4aJiuyKfnYTetbu957+bQ8qlsBWASC4R4l TVi6m22KqrAD8fqssnkGEmL17XqfEualEVG6TGAZK8EDJ6gGibL8XGuoS7axHHJwwmL9 iqvSt548/2fFclIqjO9TITxyLBXUEfiotssnhUH1KBcNJqr0E61lbsBFWMtSTyuzZCqi jTcw== X-Gm-Message-State: AOAM531Dvy5eBKJ9ZtfOObJvmJUEYPh3D9qUE77ph3p3a+WE1RaGEknl 9QIrTdLmW3OkmUymgLLe3DW1IbCX1qZ+OYORbpwWdNTvKj58og== X-Google-Smtp-Source: ABdhPJzNkwdJvBHPJlVGotq0oI+Y8KdbPPWy8pEjjWBO/BdsO9lccohFpWTFAFVozlKlAD/X9oLutdPhpQwsXceNQI4= X-Received: by 2002:a5b:508:: with SMTP id o8mr29030241ybp.43.1597749658328; Tue, 18 Aug 2020 04:20:58 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 18 Aug 2020 11:20:57 +0000 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 18 Aug 2020 11:20:57 +0000 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 36287 + patch thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 36287 + patch thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 2.0 BLANK_SUBJECT Subject is present but empty -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different tags 36287 + patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 14:30:33 2020 Received: (at 36287) by debbugs.gnu.org; 18 Aug 2020 18:30:33 +0000 Received: from localhost ([127.0.0.1]:36981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86NV-0001Pu-Ij for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:30:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86NT-0001HX-9h for 36287@debbugs.gnu.org; Tue, 18 Aug 2020 14:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/bif2uMKSDIY6g97f+3Fhul19ZN4V8GaUU39x6p3rns=; b=PkGLmgm2ydQjUPp6T7YcCyqQNS 72WG4Ya8524l7L1o8k3RdTFpBXrll5siX6ZlXvYINvJtllP304PbBXTGWISmM9oEU+f8u1xdQrENL aIT6sdGGfcscpO9Dcvzb1opzQVZW9VxazjrMKz8ZqBql/lIYPT6DscqIi/8ZeJ6AAEKc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k86NK-0001Sv-EB; Tue, 18 Aug 2020 20:30:24 +0200 From: Lars Ingebrigtsen To: Xu Chunyang , 36287@debbugs.gnu.org Subject: Re: bug#36287: 26.2.90; On macOS, process-attributes returns truncated command name References: X-Now-Playing: The Wolfgang Press's _Standing Up Straight_: "I Am the Crime" Date: Tue, 18 Aug 2020 20:30:20 +0200 In-Reply-To: (Robert Pluim's message of "Wed, 19 Jun 2019 12:15:10 +0200") Message-ID: <87mu2rhkn7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > The sysctl interface will never return more than 16 characters. A > quick google leads me to the following (there may well be utility > functions in emacs for the full-path => command name munging a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36287 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Pluim writes: > The sysctl interface will never return more than 16 characters. A > quick google leads me to the following (there may well be utility > functions in emacs for the full-path => command name munging already). > [...] > #ifdef __FreeBSD__ > /* Sparc/ARM machine/frame.h has 'struct frame' which conflicts with Emacs's > 'struct frame', so rename it. */ > @@ -3819,8 +3823,21 @@ system_process_attributes (Lisp_Object pid) [...] > + char pathbuf[PROC_PIDPATHINFO_MAXSIZE]; > + char *comm; > + > + if (proc_pidpath (proc_id, pathbuf, sizeof(pathbuf)) > 0) > + { I've tested this on Catalina now, and it fixes the problem, so I'll just go ahead and apply it to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 14:32:02 2020 Received: (at control) by debbugs.gnu.org; 18 Aug 2020 18:32:02 +0000 Received: from localhost ([127.0.0.1]:36986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Ow-0002g6-0Y for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:32:02 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Ot-0002ZB-2y for control@debbugs.gnu.org; Tue, 18 Aug 2020 14:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dpOFjcoCdfmhL6+J9Qc2x6qi9HiLUorOz7HiaNlunaU=; b=uERN3vjzKGDpwiZwA9Jz8EPjAc DHDW9Se0nM6xkuW3pyNAij5Kk11HJ7d7CnCgfWtn+mmBRhqbefH8QN4PylH71o0FZWqfGdfJYYzLo x8dL2HfkKPOzeJZRBPcIqBFO3449YdERuGGGuAbrR9KAZ7JyofTxUyO9ykK76XgNq2NQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k86Ol-0001Vd-AV for control@debbugs.gnu.org; Tue, 18 Aug 2020 20:31:53 +0200 Date: Tue, 18 Aug 2020 20:31:50 +0200 Message-Id: <87lfibhkkp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36287 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36287 fixed close 36287 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36287 fixed close 36287 28.1 quit From unknown Tue Jun 24 05:08:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Sep 2020 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator