"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: "got fetch" fails on PROFILE=1 build
To:
Sebastien Marie <semarie@online.fr>
Cc:
gameoftrees@openbsd.org
Date:
Mon, 11 Apr 2022 18:31:56 +0200

Download raw body.

Thread
On Mon, Apr 11, 2022 at 05:47:17PM +0200, Sebastien Marie wrote:
> On Mon, Apr 11, 2022 at 06:01:16PM +0300, Mikhail wrote:
> > If got is compiled with PROFILE=1, "got fetch" and "got clone" don't
> > work with git:// repositories, it fails with this error:
> > 
> > Connecting to "origin" git.gameoftrees.org
> > got: git.gameoftrees.org: no address associated with name
> > 
> > After applying inlined patch it starts to work fine. Not sure if
> > "/etc/resolv.conf" should have gone in its own #define, because the path
> > is pretty standard.
> 
> just a general remark about pledge(2) and unveil(2).
> 
> both are linked: with PROFILE=1, pledge(2) isn't used (in order to be able to do 
> profil(2)), but it introduces subtiles changes: a pledged process has some paths 
> whitelisted regarding unveil(2) (like /etc/resolv.conf in this example).

We could simply disable both pledge and unveil if profiling is used.
It is just a debug build so there is no reason to make things complicated.