From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ota, Takaaki" Newsgroups: gmane.emacs.bugs Subject: bug#22795: 25.0.91; Can't write read only file on w32 Date: Mon, 29 Feb 2016 08:40:35 -0800 Message-ID: <20160229.084035.77911664.Takaaki.Ota@am.sony.com> References: <8360xcfyqp.fsf@gnu.org> <20160226.112605.492625590.Takaaki.Ota@am.sony.com> <83si0fcf4y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456764089 14058 80.91.229.3 (29 Feb 2016 16:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 16:41:29 +0000 (UTC) Cc: 22795@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 17:41:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaQsl-0006Wh-JN for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 17:41:15 +0100 Original-Received: from localhost ([::1]:37638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQsk-000821-Sl for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 11:41:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQsc-0007vG-Ij for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:41:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaQsY-0000Ns-DI for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:41:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQsY-0000No-9g for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaQsY-00070C-55 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Ota, Takaaki" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22795-submit@debbugs.gnu.org id=B22795.145676405726898 (code B ref 22795); Mon, 29 Feb 2016 16:41:02 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 16:40:57 +0000 Original-Received: from localhost ([127.0.0.1]:53881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQsS-0006zl-I9 for submit@debbugs.gnu.org; Mon, 29 Feb 2016 11:40:57 -0500 Original-Received: from mail-bn1on0072.outbound.protection.outlook.com ([157.56.110.72]:16640 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQsQ-0006zY-7v for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 11:40:54 -0500 Original-Received: from BY2PR08CA0011.namprd08.prod.outlook.com (10.163.62.149) by DM2PR0801MB572.namprd08.prod.outlook.com (10.242.127.12) with Microsoft SMTP Server (TLS) id 15.1.415.20; Mon, 29 Feb 2016 16:40:48 +0000 Original-Received: from BN1BFFO11FD038.protection.gbl (2a01:111:f400:7c10::1:180) by BY2PR08CA0011.outlook.office365.com (2a01:111:e400:58a4::21) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 16:40:47 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.229) smtp.mailfrom=am.sony.com; gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=bestguesspass action=none header.from=am.sony.com; Received-SPF: Pass (protection.outlook.com: domain of am.sony.com designates 160.33.194.229 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.229; helo=usculsndmail02v.am.sony.com; Original-Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BN1BFFO11FD038.mail.protection.outlook.com (10.58.144.101) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 29 Feb 2016 16:40:47 +0000 Original-Received: from usculsndmail12v.am.sony.com (usculsndmail12v.am.sony.com [146.215.230.103]) by usculsndmail02v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1TGekE1007882; Mon, 29 Feb 2016 16:40:46 GMT In-Reply-To: <83si0fcf4y.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(189002)(24454002)(199003)(5423002)(23756003)(2906002)(92566002)(106466001)(50226001)(2351001)(2950100001)(86362001)(586003)(19580405001)(19580395003)(110136002)(47776003)(5003600100002)(1220700001)(5008740100001)(5001960100002)(103116003)(104016004)(1096002)(6806005)(189998001)(11100500001)(87936001)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB572; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD038; 1:KexUA3A9UV45LPvALEdm1VO3m4qH3w5OQkKgsaCUakySOG1aFcjoZyxA4uYjzqDcuidv56wWLXagnidjF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J82ujZjnZImBp9SAzJM1jhBiqIDoQJ8ew== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR0801MB572; X-MS-Office365-Filtering-Correlation-Id: 693a46ae-d92b-48e3-7ae6-08d341271364 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 20:1xr8pErocbZCegUsH34wYH5x9KM9icLOovTAXBDhARVuW1HD29VTEW8Qj8Oq/vPnE1/SJSgghMod9ReN+4nhZ96hn73NAgIP3+0k2YLSPkimXvzQxnkZ6OFrlYy9jL97y5iaEQHkQGNDdxOtSzjSoWxtG5AVO3q1T46LAzeltdBeJY93Lk/66nSMoBF9R/SzB4KZf9/yYFsB3xR1cMuNRvKD6suk6pAyh7bqWT3mb3/6Dv+EjaNRAEMOr3AWSUzOTLDXgpdg4BjkdnJcAAMk1zfuXpaEeFDZGcP9c8cEajPqXG2O2CHbQRzyURk1qeW16KOrFA9C0NPKp53hT9fObrAAyU2bbsqYa/e1p7aLhguFTCRtZYtFa6Vj+QvfF12CVR1t5Q6DzHNleArGFUPxBGdoVyUy7DcR5qDR+xWr9UrpTozqSyw7cNt94cr4wnSP+GuYduPyhgYDEYKNBy022m9FReO56uvk4+wpqe68LnQRPJYRCDlbfwlIbQ4GDzIc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13023025)(13016025)(13024025)(13018025)(8121501046)(3002001)(10201501046); SRVR:DM2PR0801MB572; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0801MB572; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 4:N33pZma7I4+6hT1F86HtakOdxJxzynLBrGm1aHOGRxq1Rz6Ie5D3oMZ5RWaTk1zrNPr6pQlWiFu9nSju5zhs+bOFmlFacrvsTU16ZFT6n+YsG0X1hJc3b3dX3CwYQLqSm2pc69Rb5xeLq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8zJdRFryQG2Q2VgsrUvds78mg4OBm2yi/vIWIgmCMnynhs40z9TEPHZYpqPjlhWqEjYwV264I3G20xdBrR27DQbTy8jJYLR4d5UlSwVqzs0T5M95DYMHaWu/P0ZjzwaVC dtlGbZkf20vFbkpnBLKCWY/PG8PD+bN3p4tr1guOgeOrm X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 5:DnrRWMOG6MvBu/Q6V0RPiabdp9/lnX2pWc8ET+uDwb5gBboi6MNk6YsqvTrQ1Sxwag6q33fpxvMhvEP2/UtCZo4ouMhgyrq2n1uG6PKB/QlwdN1+hZ9+zqwpLjQu3VUbnTne0nZuZag3os8EZS03Dg==; 24:pViG4M5fIKqGUHZO921X9eQrbmdZTGzHXNh4NQc9fc+ujIr5L3KILx4fGaIFYsUA+UAIddrgIBlEre4A/FjE4p/HV+KlGhASHza6LcOyeC0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 16:40:47.2538 (UTC) X-MS-Exchange-CrossTenant-Id: 86f99b1e-a08b-4313-8c0c-2258d53da610 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=86f99b1e-a08b-4313-8c0c-2258d53da610; Ip=[160.33.194.229]; Helo=[usculsndmail02v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB572 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114142 Archived-At: Fri, 26 Feb 2016 23:53:33 +0200: Eli Zaretskii wrote: > > Date: Fri, 26 Feb 2016 11:26:05 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > = > > I think this is something to do with my mingw. I cannot remember w= hen > > I updated mingw last time. Here is the comparison between trace in= > > emacs-24.5 and emacs-25.0.91. The difference is in the open system= > > call. Both pass the same set of parameters to open but emacs-24.5 > > gets 3 and emacs-25.0.91 gets -1. Both emacs were built using ming= w > > but I cannot guarantee they are the same version of mingw. > = > I very much doubt this has something to do with MinGW, because MinGW > uses the Windows runtime library, so running the two executables on > the same box will use the same library. > = > > Can you think of any other reason than they were built with > > different mingw to explain the difference of the open() behavior? > = > Step into the 'open' call -- it's shadowed by 'sys_open' defined on > w32.c. What flags are passed to _wopen in each case? Your trace fro= m > GDB seems to indicate that in the case of 25.0.91 we pass O_BINARY, > while in 24.5 we don't. If this is really the case, maybe that's the= > reason, although I don't currently see why it would lead to a failure= > (and it certainly doesn't fail for me). Is there any other differenc= e > in flags and modes with which we call _wopen in each case? > = > Also, I think by the time this code is run, the original file should > have been renamed to the backup-file name, so the file you are saving= > should not exist on disk by the time we open it. If that is not the > case with 25.0.91, then perhaps what fails is not the open call, but > the rename call before that. > = > Thanks. > = I am now very much puzzled. Here is the trace up to _wopen(). I printed parameters to _wopen() and they are identical yet one succeeds and the other fails. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D emacs-24.5 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D 4819 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4820 if (NUMBERP (append)) (gdb) = 4823 open_flags |=3D O_APPEND; (gdb) = 4830 if (open_and_close_file) (gdb) = 4832 desc =3D emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=3Dfile@entry=3D0x5bf6ec8 "c:/d/ota/memo", = oflags=3Doflags@entry=3D33537, mode=3Dmode@entry=3D384) at sysdep.c= :2143 2143 { (gdb) n 2145 oflags |=3D O_CLOEXEC; (gdb) = 2146 while ((fd =3D open (file, oflags, mode)) < 0 && errno =3D=3D= EINTR) (gdb) s sys_open (path=3Dpath@entry=3D0x5bf6ec8 "c:/d/ota/memo", oflag=3Doflag@= entry=3D33665, = mode=3Dmode@entry=3D384) at w32.c:4172 4172 { (gdb) n 4173 const char* mpath =3D map_w32_filename (path, NULL); (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4176 if (w32_unicode_filenames) (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4176 if (w32_unicode_filenames) (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4184 if ((oflag & (_O_CREAT | _O_EXCL)) !=3D (_O_CREAT | _O_EX= CL)) (gdb) = 4185 res =3D _wopen (mpath_w, (oflag & ~_O_CREAT) | _O_NOINH= ERIT, mode); (gdb) p mpath_w $1 =3D L"c:\\d\\ota\\memo\000\340\074\311\003\000\000\300\235\017\001\0= 01\000\xe558\210\364\141\073\005\xf822\255\003\116\137\x5c9\xf822\255\0= 03\325\245\334\003\xe554\210\b\000\xe550\210\xe648\210\375\226\022\001\= 030\000\xf822\255\003\xf822\255\003\000\000\n\000\102\225\312\003\142\3= 72\256\003\102\225\312\003\xf822\255\003\xf822\255\003\xf822\255\003\00= 0\000\272\374\075\167@\000\065\302\057\001\320\224\022\001\000\000\000\= 000\000\000\000\000\xe5a4\210\000\000\340\245\077\001\350\245\077\001\0= 00\000\000\000\334\136\325\120\352\013\000=E4\000\003\001\000\xed4b\320= \126\154\153\030\001\000\000\000\000\xe60c\210\324\134\027\001\003\000\= xe60c\210\000\000\xe600\210\000\255\x1fb5\000\255\x1fb5\xe6e8\210\330\1= 62\023\001\003\000\xe60c\210\000\000\000\255\x1fb5\030\000\030\000\002\= 000\000\100\000\342\374\312\003\340\374\312\003\344\267\042\001\300\235= \017\001\121\305\057\001\321\267\042\001\220\141\073\005\xf822\255\003\= 000\255\x1fb5\000\255\x1fb5\xed4b\320\126\220\267\042\001\005\000\005\0= 00\350\265\034\001\071\212\017\001\023\000\102\225\312\003$\000\xf822\2= 55\003\000\000\000\000\xf822\255\003\xe70c\210\xed4b\000\001\225\267\04= 2\001"... (gdb) p oflag $2 =3D 33665 (gdb) p mode $3 =3D 384 (gdb) s 4186 if (res < 0) (gdb) p res $4 =3D 3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D emacs-25.0.91 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D 4810 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4811 if (NUMBERP (append)) (gdb) = 4810 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4821 if (open_and_close_file) (gdb) = 4823 desc =3D emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=3Dfile@entry=3D0x883a4ac "c:/d/ota/memo", = oflags=3Doflags@entry=3D33537, mode=3Dmode@entry=3D384) at sysdep.c= :2260 2260 { (gdb) n 2263 oflags |=3D O_BINARY; (gdb) = 2264 oflags |=3D O_CLOEXEC; (gdb) = 2265 while ((fd =3D open (file, oflags, mode)) < 0 && errno =3D=3D= EINTR) (gdb) s sys_open (path=3Dpath@entry=3D0x883a4ac "c:/d/ota/memo", oflag=3Doflag@= entry=3D33665, = mode=3Dmode@entry=3D384) at w32.c:4290 4290 { (gdb) n 4291 const char* mpath =3D map_w32_filename (path, NULL); (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4294 if (w32_unicode_filenames) (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4294 if (w32_unicode_filenames) (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4302 if ((oflag & (_O_CREAT | _O_EXCL)) !=3D (_O_CREAT | _O_EX= CL)) (gdb) = 4303 res =3D _wopen (mpath_w, (oflag & ~_O_CREAT) | _O_NOINH= ERIT, mode); (gdb) p mpath_w $2 =3D L"c:\\d\\ota\\memo\000\006\000\002\145\021\133\321\x889\000\000\= 324\302\x82d\300\170\000\310\317\123\377\310\317\123\377\310\317\123\37= 7^\000\063\317\x889\000\000\000\000\310\317\123\377\040\201\000\310\317= \123\377\002\000=E4\000\000\000\xe3dc\210p\000\062\117\061\001\073\255\= 022\001\000\160\375\176\154\041\000\074\030\000=FF\000\n\000\000\000\xe= 488\210\xa69a\027\001=E4\000\xe454\210\100\102\017\000\000'\000\110\121= =B7\xe51c\210\045\143\103\167\000\000\000\000\000\000\000\000\xe444\210= \000\000\x29e0\001\002\x29e8\001\002\000\000\000\000\xddf1\327\120\352\= 013\000\xe380\210\005\000\002\000\120\213\030\002\005\000\xd868\042\001= \000\000\000\000\023\000\023\000\xd86c\042\001\xe4a0\210\021\122\061\00= 1\xd85c\042\001\062\117\061\001\xee70\210\000\000\xe4a0\210\xedef\320\1= 26\xd840\042\001\022\000\012\024\000\xe58c\210\164\261\017\001\xd85c\04= 2\001\xd86d\042\001R\000\012\024\000\005\000\xe58c\210\005\000\xe58c\21= 0\000\000\xd845\042\001\xf658\x805\xf4dc\x805\022\000\000\000\002\145\0= 21\xd840\042\001\022\000\160\214\135\377"... (gdb) p oflag $3 =3D 33665 (gdb) p mode $4 =3D 384 (gdb) s [New Thread 8556.0x2230] [New Thread 8556.0x12c4] 4304 if (res < 0) (gdb) p res $5 =3D -1