X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4A0F738485BC
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:from:date:message-id:subject:to;
 bh=Gc4ayqPG57oIIdz1LYmOGs127iYZZeLHd+mYMTdQQRw=;
 b=hxrBrzeQj90SqshiEVMwokbkUunuGJ095K+wU2iepnKhQIhv9oPc+iyOionx4dalK2
 3H+0bsOcSazlsB8IgkgboFIbhcWu09cbp24dDOX7mFtiUAKn1G5eqjpLNh1NCk/eCMs2
 quLnmKCn/uM6jtM+l0hktsP7UE5iTO4KPVRzQ/rvhmYvkdBRIRv6vH9hXTFm04+ifjsM
 8YsTaj9xI3Qq+sXIK1jXxJ58Wh7wCjeHQd6Ss8ezPGNSDje51ypuafX4WrKaofJdQICL
 ZAZkd2cr6GbAztAGQUgjZX7xfVHJ/ZkUwC2xDrRUG4PqyzAN/2h/Lhwpn98jLu0QeVlM
 JvXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=Gc4ayqPG57oIIdz1LYmOGs127iYZZeLHd+mYMTdQQRw=;
 b=FEje/Hn81FmIyiwBI+B05wLuKuhLOcK8qnm0plDnAbMLfpADpHIpnglWWib7/NySpP
 D2KDJdjPhhUcp4pLNL2WG+X+82CKh8bX6MpxoF0aiix//K09JNnTdP8V1cMz3/vuC3Js
 GJFC9BUpic4Ev0HXh8M596z334+dr/VYsKNgosQ72saalWqUHuOIDIAh+5DyJboLW9oV
 FXg2AtyQqvNsD+Q3Qssjg02m6gpY5fuBLr9yvHOkbqjhJes+QBxBK6VBEUjNa1LA5EzZ
 ELSebKVc+kfeoJLu1am6todPW4a8HAjnN79ZXlYfQbjr/jPsj/YRzIoDI5QjuTO8jkuz
 FCuw==
X-Gm-Message-State: AOAM5336m7w/VkTO8aR4xHFvfXSoYD4Fm6m5a8ppqcqW5dB8canuxlzv
 Oe2wpneceXtAu6POlxy50mFGTae4x36zQI30Tm64rtiRj20=
X-Google-Smtp-Source: ABdhPJwj4RtIEj5CBvbd8dtM3KXneaNtQcXY5AEHt4/rEZqsRY4j2JNmL7n+5UXNXZpqjSj5vDImv9j2N1kpx/kDgpU=
X-Received: by 2002:a05:651c:4cb:b0:254:f9d:4e69 with SMTP id
 e11-20020a05651c04cb00b002540f9d4e69mr6263635lji.194.1653622598504; Thu, 26
 May 2022 20:36:38 -0700 (PDT)
MIME-Version: 1.0
From: Sam Lin <samlin0925@gmail.com>
Date: Fri, 27 May 2022 11:36:27 +0800
Message-ID: <CANe7G9EE5Q9kd7FM=+ERhhB2zBxyNo1Tx7Rbuy=X4svaG2m0fw@mail.gmail.com>
Subject: Unable to execute Cygwin application within UDF format
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
 FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Hi ,

I will see the problem on WIN10 or WIN SERVER, the duplicate steps are as
follows:

1. Write a simple code 'hello world'  program  and   compiled the
executable file using GCC.

//  hello.c
#include <stdio.h>

int main() {
    printf("Hello World\n");
    return 0;
}

$ gcc hello.c -o hello.exe

2. Format the specified USB drive using command prompt.
  C:\> format <USB Drive Letter>: /fs:UDF /q

3. Put the executable files hello.exe and cygwin1.dll into the UDF format
flash drive and execute.
We will find that the execution error occurs with cygwin v3.2.x and above.

F:\>hello.exe
      0 [main] hello (16224) F:\hello.exe: *** fatal error - add_item
("\??", "/", ...) failed, errno 22
Stack trace:
Frame        Function    Args
000FFFFCCE0  001800622EE (0018029F172, 0018027AE81, 00800000000,
000FFFF8B40)
000FFFFCCE0  0018004874A (00000000000, 000FFFFCCE0, 00180020010,
000FFFFABD6)
000FFFFCCE0  00180048782 (000FFFF9BD0, 00000000016, 00800000000,
00000000001)
000FFFFCCE0  001800E30BC (000FFFFCBD0, 000FFFFCDF0, 001800D7488,
00000000000)
000FFFFCCE0  00180133DC5 (001800D344A, 00000000000, 00000000000,
00000000000)
000FFFFCCE0  00180048DA5 (00000000000, 00000000000, 00000000000,
00000000000)
000FFFFFFF0  00180047856 (00000000000, 00000000000, 00000000000,
00000000000)
000FFFFFFF0  00180047904 (00000000000, 00000000000, 00000000000,
00000000000)
End of stack trace

This error does not occur in v3.1.7.
Hope this will be resolved in the future.

Thanks,
Sam

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