From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EFJgFXvaZWWTUgAAauVa8A:P1 (envelope-from ) for ; Tue, 28 Nov 2023 13:18:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EFJgFXvaZWWTUgAAauVa8A (envelope-from ) for ; Tue, 28 Nov 2023 13:18:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 37E4F6650B for ; Tue, 28 Nov 2023 13:18:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=Rjw7qs21; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701173883; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j9aBigwAXJOn2hfMb8GcsiYuDX06t+lU5b5BkWn5aOM=; b=HMM0GxsbxyoIu60v+rY6me2ETPrnH2fPz2DkfOenF4MiZF4T6dbFqhjtrKxrwZj36DnCtG crhaOolXf3WnPIzvmeOC7IgXAPu8tozYVyxQLbheeP87aIzLTSmkKtTlJ6y2YdW+RkKUCF igU2wCnjDidO9qbB7kKycMJ7An3vQ3v2Ep0O7MSVDtUEEAQfrRburpft69GMjlyFJd+tGb Ol4All4ZFFvJfcgSan5N1zY+fcv9EdGduRgT9Vfd67rXAbJeR96QlBHcx0LYfsURhfwwN2 GNz+1D1NE4Ib+pyLBxb3M3eAY2UjvF3lKh9pezj43SD2UwoS3Or3gqAQzbhLOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=Rjw7qs21; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701173883; a=rsa-sha256; cv=none; b=uiNH3P+lEAcztvMYwtzXN3Ujvpl88fcZto6wUTXl0i0iAfDuNw8EeWEMcTjODONWTnyQOG C5WVMz4X1XqIKZFVjAxLSpPyUUWg5D60tEVajkEGZ2JPUdJaEDA6qcL0/Uz1O1T/YQGOiX TtJTvXxbmlVP3lnpMZVTo9dtdQHw3P80DWIyGGqZAkTnSwPITZh8ZtgLKSPW6umU91yMLr 1ClxcB74+QwO6cVlwXZngKzrtkYtI8FCqJStyWp7kj30/kibg/HMDNLyJz8lQC/Xd5XM01 oU/teNXPcmelJWDOcTPS02LD8eShWZemwjh/B9Oyr5iPbmHMn5rMl+wnOdDjPA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7x1m-0006yh-CP; Tue, 28 Nov 2023 07:17:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7x1k-0006yR-Ep for guix-devel@gnu.org; Tue, 28 Nov 2023 07:17:20 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7x1g-0008LN-BL for guix-devel@gnu.org; Tue, 28 Nov 2023 07:17:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail; t=1701173832; x=1701433032; bh=j9aBigwAXJOn2hfMb8GcsiYuDX06t+lU5b5BkWn5aOM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Rjw7qs21HrmNGVQkRrWynF1L/u5vbP5FWJthVBOdmEkrvNyf4eUgsWxrS5IBkcIjW aVhKBZZ6c0vjq68MU+rZiSdkp4rFKRFeke6WOxXzI61xlvpfBmpGnmlKTAcnRHQTyA SncuPt7cbR+7poX98Di1nD3UfgZdUvxzPNtK5KC7PH/mfD9BeXn8w/F1NBlupRuFuH 17btKazRp3KPF8zwP638MvFO54WKrMFOmTRZIL1Kds1/1GTKKkn9zXBl8sFFzlEJHs 9Gv//LKYvSbgS0GZAu8OzT971XXwVgVQueUewCTjf1gYZfL3Fzh2fZP/LbEY/Txgjy GITH3BD9ANJWg== Date: Tue, 28 Nov 2023 12:16:56 +0000 To: Felix Lechner , =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Attila Lendvai Cc: guix-devel Subject: Re: shepherd GEXP module import mystery Message-ID: In-Reply-To: <87ttp6lqon.fsf@lease-up.com> References: <87ttp6lqon.fsf@lease-up.com> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_5cRAdUQXkVX25EDqLcyy07xuorpaiFBjUDBNg0jFc" Received-SPF: pass client-ip=185.70.40.18; envelope-from=attila@lendvai.name; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 37E4F6650B X-Spam-Score: -7.89 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.89 X-TUID: 1j1l+fmP8lpu This is a multi-part message in MIME format. --b1_5cRAdUQXkVX25EDqLcyy07xuorpaiFBjUDBNg0jFc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable hi Felix, Ludo, > > a start GEXP of my service sees bindings that come from the module > > called (shepherd support), but i have no idea who and where imports > > that module. >=20 >=20 > Without code it's hazardous to speculate, but could the Guix service > (gnu service mcron) cause that issue when it is being logged? unfortunately it's a complex web of stuff, but i managed to make a small re= producer that is attaced. it can be run with: $(guix system --no-graphic vm reproducer.scm) and in the VM (must use fold, because it's a dumb terminal): cat /var/log/messages | fold -150 to my surprise this one does list (shepherd support) in the module-use list= . and i realized why: the logging infrastructure somewhere siently truncate= s the lines, and in my original case that module was chopped off. not that i understand everything here... e.g. why are there several (guix b= uild utils) modules? *** reproducer gexp speaking, current module: #, module-uses: ( # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #), ringbuffer: # so, the only mystery left is that i still don't know where it is imported i= nto the unnamed package in which the GEXPs are compiled/loaded, and whether= that is intended. maybe it's part of the shepherd API that (shepherd support) is made availab= le for the service GEXPs? looking at the public definitions in (shepherd su= pport), it's not obvious that those are meant to be available for the users= of shepherd, though. Ludo? > In my code tree, which is a month behind, (gnu services mcron) is the > only Guix service that imports (shepherd support). it's a good hint, but that could only cause this if all the service GEXPs w= ere loaded into the same module, but that would have already broken things = in countless other ways. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CWe are products of our past, but we don't have to be prisoners of = it.=E2=80=9D =09=E2=80=94 Rick Warren (1954=E2=80=93) --b1_5cRAdUQXkVX25EDqLcyy07xuorpaiFBjUDBNg0jFc Content-Type: text/x-scheme; name=reproducer.scm Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=reproducer.scm OzsgUnVuIHdpdGggc29tZXRoaW5nIGxpa2UgdGhpczoKOzsgJChndWl4IHN5c3RlbSAtLW5vLWdy YXBoaWMgdm0gcmVwcm9kdWNlci5zY20pCgooZGVmaW5lLW1vZHVsZSAocmVwcm9kdWNlcikKICAj OnVzZS1tb2R1bGUgKGdudSBzeXN0ZW0pCiAgIzp1c2UtbW9kdWxlIChnbnUgc3lzdGVtIHNoYWRv dykKICAjOnVzZS1tb2R1bGUgKGdudSBzeXN0ZW0gbnNzKQogICM6dXNlLW1vZHVsZSAoZ251IHN5 c3RlbSB2bSkKICAjOnVzZS1tb2R1bGUgKGdudSB0ZXN0cykKICAjOnVzZS1tb2R1bGUgKGdudSBz ZXJ2aWNlcykKICAjOnVzZS1tb2R1bGUgKGdudSBzZXJ2aWNlcyBiYXNlKQogICM6dXNlLW1vZHVs ZSAoZ251IHNlcnZpY2VzIGRidXMpCiAgIzp1c2UtbW9kdWxlIChnbnUgc2VydmljZXMgc2hlcGhl cmQpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgYWRtaW4pCiAgIzp1c2UtbW9kdWxlIChn bnUgcGFja2FnZXMgYmFzZSkKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBiYXNoKQogICM6 dXNlLW1vZH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gICAgICAgICAgICAgICAgICAobW9kdWxl LXVzZXMgKGN1cnJlbnQtbW9kdWxlKSkKICAgICAgICAgICAgICAgICAgICAgIChhbmQ9PiAobW9k dWxlLXZhcmlhYmxlIChjdXJyZW50LW1vZHVsZSkgJ3JpbmctYnVmZmVyKSB2YXJpYWJsZS1yZWYp KQogICAgICAgICAgICAgIDApKSkpKSkKICAgICViYXNlLXNlcnZpY2VzKSkpCg== --b1_5cRAdUQXkVX25EDqLcyy07xuorpaiFBjUDBNg0jFc--