From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sonic303-48.consmr.mail.ir2.yahoo.com (sonic303-48.consmr.mail.ir2.yahoo.com [77.238.178.229]) by mx.groups.io with SMTP id smtpd.web10.2474.1667766041676628538 for ; Sun, 06 Nov 2022 12:20:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@yahoo.es header.s=s2048 header.b=SheCxmRO; spf=neutral (domain: yahoo.es, ip: 77.238.178.229, mailfrom: joaquin_conobolillo@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1667766039; bh=z3FWtZ+mcFACFU5Wn1kcOX2nCHTn71CaVHto2O4hPp4=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=SheCxmRONZIRdZjFxWOls4yLycVksKcuYDA2tkixCfgoiAS5Orkr4b7SxS8TM+wxAWVeUJqYy3gRgAQvVtXDOQQhO4xxX5xPNc3g01+S+I20jmPW3sf1h1FESaQrfJiIVy+kVyPe+lAwxVGrE6/Wk28Zmm3rKC6ahMbTGWhwPYmG0SA5xlOS/rpshtgHyiwitkl5d/W0QQWgJfSafiyeYoox3Ns5jtfpdwaZ1oGrnCiut2oru1v1BSEycTe1vPFra/C2P5wDFCDavqdwJLBtxI3SV7IeB8Vmnt2p9NdrXz0hyLXbU8GOS6GUmqHS9Kswjg+JGZ2/KaL6G2/eKOZcMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667766039; bh=x2hThqhhVJVMJVXuD/Xm+PLS/ZrvKq6uuqRZZhXbeRW=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=JXVlSdAo55anDmjCfSchcmO7PzmLqL2AP0EfEIJYlWBtBSarYUKPcqVQL3aSnlmcvj5JjUNUDDH3OPQqaL5SyfllHXh4XoTz3nsdL5moxZlCAeTIER0RnJUMUPc1rDM+aT3C+mG19tBmIchy+lupMF0IjBJ3qnVodgREkm41gfcck0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bSe.WVF1HexOpSPuNGb.Tg4txA9WGew0Cnx2L_n0DZ8UM.e2eTCrqmYxdKc3UDDoKNHnv AN8liDFuUl6oYSZvLxAPNsPJeytKajQHtEwo1a9w91FkZ4PFOBARfuj7LHJOP9r.M5n_Tr0smyW0 0GB2aCB2YKRfjXZCU2MsC9R6L3ivbF6Xk_HieBm_ZZpJ.d.t2ciiXPQEwB9pTzxtMrhUGDX3MsIY 2GuxcoHgsDjZbBc7_PfOTsuYHsSiST7AJgrnKaN8ELe1vAjw61FB3ASR4790y.d.58rWofD0TH.3 E5_9P1K5P X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Sun, 6 Nov 2022 20:20:39 +0000 Date: Sun, 6 Nov 2022 20:18:38 +0000 (UTC) From: =?UTF-8?B?Sm9hcXXDr8K/wr0gQ29ubyBCb2xpbGxv?= To: Edk2-devel-groups-io , "Michael D. Kinney" , rebecca@quicinc.com, rebecca@quicinc.com Message-ID: <369835914.808190.1667765918175@mail.yahoo.com> Subject: edk2-libc fopen() fails MIME-Version: 1.0 References: <369835914.808190.1667765918175.ref@mail.yahoo.com> X-Mailer: WebService/1.1.20826 YMailNodin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Rebecca, to my knowledge, you are the maintainer of the AppPkg, that my team is currently using to analyse a very sporadic reboot failure (stuck, about 5 failures out of 100 reboots) on a x86-64 platform that our company is going to ship soon. Since the failure appears while Windows boots, it is safe to boot to UEFI Shell first, analyse the register settings of the platform using an UEFI Shell application, we are currently implementing, before booting to Windows. We are familiar with GIT and EDK2, but regrettably facing problems using edk2-libc to refine the test program for our needs: fopen() always fails: Our configuration: * commit ba0e0e4c6a174b71b18ccd6e47319cc45878893c (HEAD, tag: edk2-stable202208) * latest - AppPkg - StdLib - StdLibPrivateInternalFiles * target.txt: - ACTIVE_PLATFORM = AppPkg\AppPkg.dsc - TARGET = RELEASE - TARGET_ARCH = X64 - TOOL_CHAIN_CONF = Conf/tools_def.txt - TOOL_CHAIN_TAG = VS2015x86 We are able to adjust, build and run AppPkg/Applications/Hello/Hello.c on the target platform. Regrettably fopen() always returns NULL. ERRNO is always 0. E.g. FILE fp = fopen("test.txt", "w"); or open an existing file for reading: FILE fp = fopen("test.txt", "r"); How can we do file access as specified by the Standard C Specification, with edk2-libc? Thanks in advance for your time and advice, JC PS: To doublecheck the problem on a Linux system, we ran the above procedure on a WSL (Windows Subsystem for Linux) build environment with the same result (TOOL_CHAIN_TAG set to GCC5).