From nobody Sun Dec 24 18:11:55 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sypyj2c81z550Bs; Sun, 24 Dec 2023 18:11:57 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sypyj29Zdz4l4B; Sun, 24 Dec 2023 18:11:57 +0000 (UTC) (envelope-from jrm@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703441517; h=from:from: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; bh=6fHxm2bXAT5hglfCmEWayTEU8y8UAXWOL4n6uPv4XxY=; b=aAJqhuhWcJ/rq0aBZPMD/ba7ofxt+kXXqundDWgZEQXSAXCPB5QxXsv9o7IpR+s+j8wc7v P2HKmE3KZZOaqvjouMxH60+kmoI7i6/UOe9CoUf/1FioqRVp2AI7xrlhZLTXZ5R5F3xvt1 /sDvF6Y+WC/J9uWsb9Qyh0LL/dP3ThgAPhbFPiSWc0vYoADQ3otd6IASh+HqqaIvwTQ4XH HJiIOQBdLZrvTth7YcjFxTEyoozyMoQVSXZGrMmbTVDaa/ROcNvDOVPzfIeGqcSS9EkD94 m+JGIFTf8jUKPLN+ULIv1wUc91SUatACxOLnRHQ9zitsU0dT4kQw9DHaXenBEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703441517; a=rsa-sha256; cv=none; b=enyjO4SUOvrgNYH3BzS3JDXd1TxTbqUMFKBoj8UOmw4nSFXv/Jpj7YAvh5YhyZTMIXkde5 6tst+PWs5pd0CZwIWIEOJXCvgHRmVLZsTZvHKEH11O+VPIaNRIvHY6XZRYlmY1oZsAzWw8 DKr0sxFDqU9QIeOwRFijG1jgrBqmY/raH7jXH0bQCHpjIGTf+4m6jmdZDcBymHUnJ/KiHg Uw37yTFaXFQNnnNo6lVqb4CxrYQ+mCJeoHhafyeG0x5m9pS1nU1/pmu/bDhyvKKF+7MsOZ f8hDlWJCugeAIrH+Qev9s6ZqolRR2FuTNobg4iVFBt1AwPKsdQCJWM+o8tYJiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703441517; h=from:from: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; bh=6fHxm2bXAT5hglfCmEWayTEU8y8UAXWOL4n6uPv4XxY=; b=XQHefoz8lktFoTJZVqSUvFKoMvc0yKE+7+5XMU5JiKEG6wAYswFCUPW2+z+6FDKhnLyyYi UFgpphrIK89Thl4AQ6n5h0dTDU0U9hSIxntdtp/Bo1RWTVTZSDHMbAHINHjWM3V6RCg8Cz RqaH4eowTtQosZulu+gzqwNHzt6/MT8k0fI2nMBN9xYRFT7heeQketmHywvl1zB6rjAeN+ dP1azn7nDY0iLwZCAytp93e/Rt8wCVjpouZ0KWzsJo+YFr+LAyM5iR8Ax1bSMVCEeqC3it xcALH3Fy9zvYir2JDfI7ZtGihzQpSGWQ3d9ZJviGXNkq00vmT+IXxnAL4JDBXA== Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-156-57-164-95.dhcp-dynamic.fibreop.ns.bellaliant.net [156.57.164.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jrm/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Sypyh6Lbvz9G6; Sun, 24 Dec 2023 18:11:56 +0000 (UTC) (envelope-from jrm@freebsd.org) From: Joseph Mingrone To: Kristof Provost Cc: Brooks Davis , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 8ccd0b876e67 - main - libc: expose execvpe for Linux compat In-Reply-To: (Kristof Provost's message of "Sat, 23 Dec 2023 20:30:55 +0100") References: <202312111927.3BBJRWon091352@gitrepo.freebsd.org> Date: Sun, 24 Dec 2023 14:11:55 -0400 Message-ID: <864jg7bhck.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, 2023-12-23 at 20:30, Kristof Provost wrote: > Hi Brooks, Joseph, > On 11 Dec 2023, at 20:27, Brooks Davis wrote: >> The branch main has been updated by brooks: >> URL: https://cgit.FreeBSD.org/src/commit/?id=3D8ccd0b876e67fda6249f294ff= 484798cc1e1569f >> commit 8ccd0b876e67fda6249f294ff484798cc1e1569f >> Author: Brooks Davis >> AuthorDate: 2023-12-11 19:24:53 +0000 >> Commit: Brooks Davis >> CommitDate: 2023-12-11 19:24:53 +0000 >> libc: expose execvpe for Linux compat >> We already implemented execvpe internally with an _ prefix in libc so >> go ahead and expose it for compatibility with Linux. >> This reverts c605eea952146348e5e1ad5cab6c127d7a1bd164. >> Bump __FreeBSD_version for the addition and add definitions to supre= ss >> compat shims in libzfs (zfs changes were merged from upstream). >> PR: 275370 (request and exp-run (thanks antoine!)) >> Reviewed by: kevans >> Differential Revision: https://reviews.freebsd.org/D42846 > I don=E2=80=99t understand why, but this breaks devel/bear (=E2=80=9CTool= that generates a compilation database for clang tooling=E2=80=9D). > Rather than generate a list of commands it seems to recursively spawn end= less =E2=80=9Cwrapper=E2=80=9D processes: > ``` > 82661 0 I+ 0:00.18 | | `-- bear -- ls > 82662 0 I+ 0:06.90 | | `-- /usr/local/bin/bear intercept --= library /usr/local/lib/bear/libexec.so --wrapper /usr/local/lib/bear/wrappe= r --wrapper-dir /usr/local/lib/bear/wr > 82663 0 I+ 0:00.13 | | `-- /usr/local/lib/bear/wrapper --= destination dns:///localhost:30309 --execute /bin/ls -- ls > 82664 0 I+ 0:00.09 | | `-- /usr/local/lib/bear/wrapper = --destination dns:///localhost:30309 --execute /bin/ls -- ls > 82665 0 I+ 0:00.06 | | `-- /usr/local/lib/bear/wrappe= r --destination dns:///localhost:30309 --execute /bin/ls -- ls > 82666 0 I+ 0:00.06 | | `-- /usr/local/lib/bear/wrap= per --destination dns:///localhost:30309 --execute /bin/ls -- ls > ``` > It=E2=80=99s trivially reproducible at least. Without this patch `bear --= ls` returns immediately and generates a compile_commands.json file (empty,= but that=E2=80=99s fine here). With it it=E2=80=99ll spin endlessly. > Best regards, > Kristof Hi Kristof, Brooks, I'm updating my CURRENT system to after that commit. I'll try to understan= d the problem after the holidays. If I don't come up with anything helpful= , I'll report the issue upstream. Joe --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAmWIdGtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl YnNkLm9yZwAKCRA2pAyDsNbvnl1YD/9nvpz4BkgwTiS3YhW8l5iJTGMn/JaCNQuy fhiLR6FwaORccnatP9A63SsFYAopkrqGI0M3War6cEEANFVGPb3ocFuHmL4U0e0g yixr2BjL7mhqq6DuTanbmkj2gWO0njoYUKyfVVf2bj2qxsmkuGsB2hoGhmpUDDLu s/7iP2LdRcBVIdrGVv7swBOikkERjyEc0F06hztdJBOcu0bdjHKswFmnOFKr3tUg IEcJlp66E0/7DiEVD7gf+Rxr4UXoCFSybqiCLIGnHrtQrC/GdwAqpeX4gNLkSqXE eMa+S/unpGGoQYHcVwzLcaRxUkq7oljlEdqzW/6GYmP3dYeqoxOPvFJZ0EZV6WSf rf7N7UVrFrY7fpUMsC8dY0Fag/rOwOnHNCASEVB1LiXc2Bj6t2ldJZtwrXP1hwJI pKij+2/LTeSoPMu3xauCG1hrFzRfhw2Lzmjrt1BWubclveIwTfkeaplSvIKgsS2/ mG8ajZ0Ztyc6J1WMhQ0E7T64qucFKlSsvEcPiFcHA1cMt1pswUsYKseL2EeWtrC4 APQ/BTkyCrKhpkAykNFTUo3duiQ2u/kb3dkftwAvbI64fZtmqt5gv25UW7SKTBZV Ven2ecWLjLqpamUdUE2XKwxfjWYDGYomJVhSdQ9D76NbyNypeqAIJY0XrDV+POwL 9vxynLXPxQ== =wt7L -----END PGP SIGNATURE----- --=-=-=--