delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/04/01/23:36:42

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 927853858C50
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1712029000;
bh=U/1k1V2niaDn+YbBKefzB8R6R5Gc1MUpaP244rvM5hQ=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=HjLZPeO4+Ia5tluGu8ZFzVY5B6ZFAbx14cdGvD3fokyEjJoAXBc7uQy9bVH5AlS9r
MyIKaLWLcexVFIi8ZtmfiU3P9LGxixCxCfDBwmo0EZ3Cf4lLl9Q+2WZ4SlWsTvbCQP
EoguR7ZQpGlt4nDSbpCmoWnVAIpB2pVY4gX5blZw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D3CB43858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D3CB43858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712028980; cv=none;
b=h8VCNAkGmi5/CRS6CvQBXVeIlcCMwfZGgZkQr04Tf/xugQt4kmP8t3syiHlpfIT3VVIL+xvscpQ5oNg83HejoeMeQuFO6ZqcpmGqcNdQA8/+AT4eJxLM6aqETITyQyjcdxJoOFfk0SZPqWO8R92R14yvCevKii3JeP5g3E5qMzo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712028980; c=relaxed/simple;
bh=aAX65TxJdvltl+xDkjlbuG6ypfrKr+12Q7SGNFUR36Y=;
h=DKIM-Signature:To:From:Subject:Message-ID:Date:MIME-Version;
b=Y5rkQyEkV/qrKUyhoHuDeKogGw8JCeX8JyGq8z8lNDtZE5NeoC1JyV+7iZ7gz0h+5Uz/TpAFUiaHC6opagACjhK19ywxX7Jz8TwCmRMXNORligrmoAdf9dnKH3sk3H4/7tMCLEqdWguq1ufdhxGbvbDnSp9ayIcM8l/ROT8IefU=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1712028977; x=1712633777;
h=content-language:content-transfer-encoding:mime-version:user-agent
:date:message-id:subject:from:to:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=aAX65TxJdvltl+xDkjlbuG6ypfrKr+12Q7SGNFUR36Y=;
b=GU6LlXG2qF8PxK435VA/lftj43hRKtN1Qh8kYBJ8WJx/Znc3c5SsV2qVS8y3t2dIcO
63oL1POfVI0bzxKmuTQgumiNkAgW2NOSXWj2B+uMEoCy3aBy/i2yjAcmyUZFJMOXy3lY
65ONp5ZYioSHhJLVqEVd2Iy8jeN3M+t3LZryUi4BLJ1Apzwx3Y1epFzjSZ1SUlYt/m72
jHa9e61WezYniBFZvEaOHeAUOOe8eV3a99hmfWsk1JTSTiS6IloF0nJppMQs/eUT1Yil
Kpu1GrsKchVwa3zKBjwDFVqb+fCWmn6QqjBwO3RTOvJV/jMr03slml+gsqUa2njg3Rw0
kOsw==
X-Gm-Message-State: AOJu0YwxxyIbVTTqR5pq0Gq12IRaQPIT7QPghGK7w3W5e6NcAhTIc1/S
vXI+HxtZo1cpRXth/INnvicQVYxCMXk0rK0ilgt2TJz+XpyCyzWpKu5mq1qo
X-Google-Smtp-Source: AGHT+IG97ZGni6QgzV1E86VKhXbXUOPPJa9toyJ/0WygPTx5BSKZ6taYHEZSxFH6Jjp+xqcq7kJRow==
X-Received: by 2002:a17:90a:8d0c:b0:2a2:85a:454a with SMTP id
c12-20020a17090a8d0c00b002a2085a454amr9262414pjo.31.1712028977306;
Mon, 01 Apr 2024 20:36:17 -0700 (PDT)
To: cygwin AT cygwin DOT com
Subject: xargs completely broken under cygwin 3.6.0-0.108.gb7f5a33200a9
Message-ID: <a40780cc-82d1-4d00-7fa0-e11c9b1a96a1@gmail.com>
Date: Mon, 1 Apr 2024 20:36:15 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.8.0
MIME-Version: 1.0
X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF,
FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bruce Jerrick via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bruce Jerrick <bmj001 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4323aglc1624375

'xargs' (part of 'findutils') is completely broken if
  3.6.0-0.108.gb7f5a33200a9 (test version) is installed:

  $ xargs
  xargs: Unexpected suffix cmdline on cmdline

  $ xargs --version
  xargs: Unexpected suffix cmdline on cmdline

  $ echo narf | xargs echo
  xargs: Unexpected suffix cmdline on cmdline

'xargs' is from the current x86_64 findutils-4.9.0-1 .
All other packages are up to date per setup.ini dated
  2024-04-01 21:32:37 GMT.

I first discovered this under Windoze 11 Insider Preview
  (with no other Cygwin test versions).
On a Windoze 10 machine, it was OK with cygwin 3.5.1-1,
  appeared when I installed 3.6.0-0.108.gb7f5a33200a9,
  then went away when I reverted to 3.5.1-1 .
(All machines are VMware VM's.)

----------------------------------------------------------------

I have just started looking at the source, and the error
  is coming from this snippet from 'safe_atoi()' in
  lib/safe-atoi.c :

safe_atoi (const char *s, enum quoting_style style)
{
  ...
  lval = strtol (s, &end, 10);
  ...
  else if (*end)
    {
      die (EXIT_FAILURE, errno, _("Unexpected suffix %s on %s"),
       quotearg_n_style (0, style, end),
       quotearg_n_style (1, style, s));
    }
  ...

From 'man 3 strtol":
  "If the subject string is empty (or not in acceptable form),
    no conversion is performed and the value of s is stored
    in ptr [i.e., 'end'] ..."
Which is apparently what is happening here.

I have yet to discover where "cmdline" is coming from (perhaps
  /proc/%d/cmdline), let alone what it looks like.
Further progress by me will depend on what success I have in
  building 'findutils' from source :) .


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019