From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 130ED3858031; Mon, 1 Nov 2021 17:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 130ED3858031 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0 Date: Mon, 01 Nov 2021 17:44:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 17:44:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102992 --- Comment #21 from J=C3=BCrgen Reuter --- (In reply to Thomas Koenig from comment #19) > (In reply to J=C3=BCrgen Reuter from comment #18) >=20 > > write(0x1, " Hello, world!\\n\n\0", 0x11) =3D 17 0 >=20 > Hmm, was this actually the string that you put into the Fortran > program, or is something very strange going on here? Yes, the program was=20 program main print *, "Hello, world!\n" end program main sorry, about the backslash \n, that was accidental.=20 Doing just program main print *, "Hello, world!" end program main # dtruss ./a.out > out.008 SYSCALL(args) =3D return Hello, world! access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) =3D -1 Err#2 bsdthread_register(0x7FF805E18020, 0x7FF805E1800C, 0x2000) =3D 1073= 742303 0 shm_open(0x7FF805CE6F5D, 0x0, 0x5CE57BA) =3D 3 0 fstat64(0x3, 0x7FF7BE646820, 0x0) =3D 0 0 mmap(0x0, 0x2000, 0x1, 0x40001, 0x3, 0x0) =3D 0x1019C9000 0 close(0x3) =3D 0 0 ioctl(0x2, 0x4004667A, 0x7FF7BE6468D4) =3D 0 0 mprotect(0x1019D0000, 0x1000, 0x0) =3D 0 0 mprotect(0x1019D7000, 0x1000, 0x0) =3D 0 0 mprotect(0x1019D8000, 0x1000, 0x0) =3D 0 0 mprotect(0x1019DF000, 0x1000, 0x0) =3D 0 0 mprotect(0x1019CB000, 0x90, 0x1) =3D 0 0 mprotect(0x1019CB000, 0x90, 0x3) =3D 0 0 mprotect(0x1019CB000, 0x90, 0x1) =3D 0 0 mprotect(0x1019E0000, 0x1000, 0x1) =3D 0 0 mprotect(0x1019E1000, 0x90, 0x1) =3D 0 0 mprotect(0x1019E1000, 0x90, 0x3) =3D 0 0 mprotect(0x1019E1000, 0x90, 0x1) =3D 0 0 mprotect(0x1019CB000, 0x90, 0x3) =3D 0 0 mprotect(0x1019CB000, 0x90, 0x1) =3D 0 0 mprotect(0x1019E0000, 0x1000, 0x3) =3D 0 0 mprotect(0x1019E0000, 0x1000, 0x1) =3D 0 0 issetugid(0x0, 0x0, 0x0) =3D 0 0 getentropy(0x7FF7BE6466D0, 0x20, 0x0) =3D 0 0 getentropy(0x7FF7BE646730, 0x40, 0x0) =3D 0 0 getpid(0x0, 0x0, 0x0) =3D 61408 0 stat64("/AppleInternal\0", 0x7FF7BE646DF0, 0x0) =3D -1 Err#2 csops_audittoken(0xEFE0, 0x7, 0x7FF7BE646920) =3D -1 Err#22 proc_info(0x2, 0xEFE0, 0xD) =3D 64 0 csops_audittoken(0xEFE0, 0x7, 0x7FF7BE646A10) =3D -1 Err#22 sysctlbyname(kern.osvariant_status, 0x15, 0x7FF7BE646E40, 0x7FF7BE646E38, 0= x0)=20 =3D 0 0 csops(0xEFE0, 0x0, 0x7FF7BE646E74) =3D 0 0 fstat64(0x0, 0x7FF7BE646BF0, 0x0) =3D 0 0 fstat64(0x1, 0x7FF7BE646BF0, 0x0) =3D 0 0 fstat64(0x2, 0x7FF7BE646BF0, 0x0) =3D 0 0 mprotect(0x1018C7000, 0x100000, 0x1) =3D 0 0 sigaction(0x3, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x4, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x6, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x8, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0xB, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0xA, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0xC, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x5, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x18, 0x7FF7BE647FA8, 0x7FF7BE647FD0) =3D 0 0 sigaction(0x19, 0x7FF7BE647FB8, 0x7FF7BE647FE0) =3D 0 0 write(0x1, " Hello, world!\n\0", 0xF) =3D 15 0=