DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51K7ZYVY152638 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51K7ZYVY152638 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ldWA3K13 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3ACF3858406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740036934; bh=qnGGOaIjqmWzlGzbWOd1l2CE7BCWOQZoxEj5IBcx2jY=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ldWA3K13FhmZkCu2+BK8U+fFO64WL2DctkT6s2Dea4rwUKnvXPUXaroX8va8DnxQD h/6rBA6rXjdEVNiiirq6HmfN62JN7gBN6roHY1mj7oHIeWCmTFe2oZsVB9jOElA4n4 VaPHbVPGdujFJTDV4pI8OHctpPjJifdg2+RDKUNU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 044943858C42 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 044943858C42 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740036897; cv=none; b=HqvxVjhcRblB3mAGiXrSRb6JUkUzQN257uI7UhKgvF637VYmt7fYUJCR+ZoUZOCfMjUtmDALT59As7ta+moSPWJn1oT21RycegBpTzQNIKZCyPYEbuffzT3ceMlELoazF0P8MrA0/h5NFCFfXc27YTmeUYJIc4TTXlIB9tf7c00= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740036897; c=relaxed/simple; bh=WrwjW4bVrEESEmAClOBL3Q1LBUxtjyLP3ZDb03JPRUM=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=Cj1jHW8OpCxJpRLxJ6jHGRZwbZCn8oJlL6XGXIWOtDC+wVpaYMFhBczDRd5cuvZKsq7RRFdW9MJ0cbhusoS9/Z/Tykw8Pyg/Uv27/ekorHdZcRXQMnUE7XrBa2idycIbkfuvOQVJNPNLLBaNYbLKysQ5cmhWKee7GzRLAMwsToE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 044943858C42 Subject: Re: cygwin 3.6.0 vs. libbsd 0.11.7-3: -lbsd breaks setproctitle() To: cygwin AT cygwin DOT com References: <4250e737-217a-2b55-c6df-8567b283da15 AT t-online DOT de> Message-ID: <2b2f037c-eb06-1edb-bd45-e72e9498af05@t-online.de> Date: Thu, 20 Feb 2025 08:34:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.20 MIME-Version: 1.0 In-Reply-To: X-TOI-EXPURGATEID: 150726::1740036894-02FFB44A-D8D7EC3A/0/0 CLEAN NORMAL X-TOI-MSGID: b4545ff0-8a85-4ab5-ae27-4ffe94defca3 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Christian Franke Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51K7ZYVY152638 Corinna Vinschen via Cygwin wrote: > On Feb 19 16:37, Corinna Vinschen via Cygwin wrote: >> On Feb 19 14:40, Corinna Vinschen via Cygwin wrote: >>> On Feb 19 14:25, Christian Franke via Cygwin wrote: >>>> Corinna Vinschen via Cygwin wrote: >>>>> So I think we rather shouldn't supply the libbsd version of >>>>> setproctitle_init/setproctitle anymore, as soon as cygwin 3.6.0 is >>>>> released. >>>>> >>>>> What do you think? >>>> Makes sense. But then existing programs already using the functions from >>>> cygbsd-0.dll would no longer start. Perhaps keep the symbols in the DLL only >>>> for some time? >>> Sure! The new version will just disable the header definitions but >>> still export the symbols for backward compat. >> I just realized that this isn't sufficient. The link lib libbsd.dll.a >> must not export the symbol either. > I uploaded a 0.11.8-1 test package which fixes this issue. I'll > propagate it to non-test when 3.6.0 is released. A quick test with stress-ng was successful with both libbsd 0.11.8-1 and 0.12.2-1 test releases: - Old executable using setproctitle{,_init}() from cygbsd-0.dll still runs. - A rebuild uses setproctitle() from cygwin1.dll. - The testcases using other functions linked to cygbsd-0.dll succeed and setproctitle() now works: $ procps -C stress-ng -o pid,args --sort pid   PID COMMAND 24706 ./stress-ng --heapsort 1 --mergesort 1 --radixsort 1 --monte-carlo 1 --str 1 --wcs 1 -t 30 --verify -v -M 24707 stress-ng-heapsort [run] 24708 stress-ng-mergesort [run] 24709 stress-ng-radixsort [run] 24710 stress-ng-monte-carlo [run]  <= uses arc4random() 24711 stress-ng-str [run] <= uses strlcat/cpy() 24712 stress-ng-wcs [run] <= uses wcslcat/cpy() -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple