From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arvind Devarajan Newsgroups: gmane.emacs.bugs Subject: bug#12621: Win32 (Ver:24.2); Crashes when files from shared folders are accessed Date: Tue, 23 Oct 2012 17:46:54 +0530 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_971edf3e-c4c4-4195-9885-40fbb976d8ef_" X-Trace: ger.gmane.org 1350994648 12487 80.91.229.3 (23 Oct 2012 12:17:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 12:17:28 +0000 (UTC) Cc: "12621@debbugs.gnu.org" <12621@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 14:17:35 2012 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 1TQdQM-0005ZH-0m for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 14:17:34 +0200 Original-Received: from localhost ([::1]:58817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQdQE-0006QB-3d for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 08:17:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQdQ3-00067G-OK for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 08:17:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQdPy-00054J-Aq for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 08:17:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQdPy-000544-7g for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 08:17:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TQdRl-0006xI-U2 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 08:19:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Arvind Devarajan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2012 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12621 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 12621-submit@debbugs.gnu.org id=B12621.135099474126729 (code B ref 12621); Tue, 23 Oct 2012 12:19:01 +0000 Original-Received: (at 12621) by debbugs.gnu.org; 23 Oct 2012 12:19:01 +0000 Original-Received: from localhost ([127.0.0.1]:57127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQdRj-0006x3-Gt for submit@debbugs.gnu.org; Tue, 23 Oct 2012 08:19:00 -0400 Original-Received: from dub0-omc4-s35.dub0.hotmail.com ([157.55.2.110]:60176) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQdRf-0006wo-R8 for 12621@debbugs.gnu.org; Tue, 23 Oct 2012 08:18:58 -0400 Original-Received: from DUB402-EAS389 ([157.55.2.73]) by dub0-omc4-s35.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 23 Oct 2012 05:16:56 -0700 X-Originating-IP: [112.79.41.107] X-EIP: [xqmIkrrhhix21ypW0NYHCanI29kj5O4A] X-Originating-Email: [arvind.devarajan@outlook.com] X-OriginalArrivalTime: 23 Oct 2012 12:16:56.0808 (UTC) FILETIME=[4B86F680:01CDB118] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:65911 Archived-At: --_971edf3e-c4c4-4195-9885-40fbb976d8ef_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Here=E2=80=99s the call stack (and also see below the callstack for the res= ult of C-h v w32-get-true-file-attributes): #0 0x77e82fed in RPCRT4!I_RpcNegotiateTransferSyntax () from C:\WINNT\system32\rpcrt4.dll #1 0x77e7a741 in RPCRT4!NdrAllocate () from C:\WINNT\system32\rpcrt4.dll #2 0x77e7f64c in RPCRT4!NdrConformantStructBufferSize () from C:\WINNT\system32\rpcrt4.dll #3 0x77e7ae23 in RPCRT4!NdrpMemoryIncrement () from C:\WINNT\system32\rpcrt4.dll #4 0x77e89a57 in RpcBindingSetAuthInfoExW () from C:\WINNT\system32\rpcrt4.dll #5 0x77e899d2 in RpcBindingSetAuthInfoExW () from C:\WINNT\system32\rpcrt4.dll #6 0x77e89c5c in RpcBindingSetAuthInfoExW () from C:\WINNT\system32\rpcrt4.dll #7 0x77e7cc59 in RPCRT4!NdrConformantArrayBufferSize () from C:\WINNT\system32\rpcrt4.dll #8 0x77e7ae23 in RPCRT4!NdrpMemoryIncrement () from C:\WINNT\system32\rpcrt4.dll #9 0x77e86d08 in RPCRT4!NdrComplexStructFree () from C:\WINNT\system32\rpcrt4.dll #10 0x77e718cc in SimpleTypeMemorySize () from C:\WINNT\system32\rpcrt4.dll #11 0x00819518 in ?? () #12 0x77ef55cc in RPCRT4!CStdStubBuffer_CountRefs () from C:\WINNT\system32\rpcrt4.dll #13 0x77de5ab8 in LsaICLookupSids () from C:\WINNT\system32\advapi32.dll #14 0x77ddf4b0 in GetSidLengthRequired () from C:\WINNT\system32\advapi32.d= ll #15 0x77de5a67 in LsaICLookupSids () from C:\WINNT\system32\advapi32.dll #16 0x0086d7a8 in ?? () #17 0x77de58f6 in LsaLookupSids () from C:\WINNT\system32\advapi32.dll #18 0x77de57a7 in LookupAccountSidW () from C:\WINNT\system32\advapi32.dll #19 0x77e0d99b in LookupAccountSidA () from C:\WINNT\system32\advapi32.dll #20 0x01029dfb in lookup_account_sid@28 () #21 0x0102a10d in get_name_and_id () #22 0x0102a284 in get_file_owner_and_group () #23 0x0102c2a7 in stat () #24 0x0103bdf7 in Finsert_file_contents () #25 0x0100ee96 in Ffuncall () #26 0x0107139d in exec_byte_code () #27 0x01071f9a in Fbyte_code () #28 0x0100e48d in eval_sub () #29 0x0101111b in internal_lisp_condition_case () #30 0x01070ae5 in exec_byte_code () #31 0x0100e9ec in funcall_lambda () #32 0x0100ed43 in Ffuncall () #33 0x0107139d in exec_byte_code () #34 0x0100e9ec in funcall_lambda () #35 0x0100ed43 in Ffuncall () #36 0x0107139d in exec_byte_code () #37 0x0100e9ec in funcall_lambda () #38 0x0100ed43 in Ffuncall () #39 0x0107139d in exec_byte_code () #40 0x0100e9ec in funcall_lambda () #41 0x0100ed43 in Ffuncall () #42 0x0107139d in exec_byte_code () #43 0x0100e9ec in funcall_lambda () #44 0x0100ed43 in Ffuncall () #45 0x0107139d in exec_byte_code () #46 0x01071f9a in Fbyte_code () #47 0x0100e48d in eval_sub () #48 0x0100d4fb in internal_catch () #49 0x01070b2b in exec_byte_code () #50 0x0100e9ec in funcall_lambda () #51 0x0100ed43 in Ffuncall () #52 0x0107139d in exec_byte_code () #53 0x0100e9ec in funcall_lambda () #54 0x0100ed43 in Ffuncall () #55 0x0100f1fe in call1 () #56 0x0104c4cd in mapcar1 () #57 0x0104f6db in Fmapc () #58 0x0100eef0 in Ffuncall () #59 0x0107139d in exec_byte_code () #60 0x0100e9ec in funcall_lambda () #61 0x0100ed43 in Ffuncall () #62 0x010728ec in Fcall_interactively () #63 0x0100eed9 in Ffuncall () #64 0x0100f1a0 in call3 () #65 0x010259e5 in command_loop_1 () #66 0x0100d5b1 in internal_condition_case () #67 0x0101cf14 in command_loop_2 () #68 0x0100d4fb in internal_catch () #69 0x0101dc8c in recursive_edit_1 () #70 0x0101df14 in Frecursive_edit () #71 0x011a1c47 in main () A debugging session is active. Inferior 1 [process 5440] will be killed. Quit anyway? (y or n) --- Result of C-h v w32-get-true-file-attributes --- w32-get-true-file-attributes is a variable defined in `C source code'. Its value is nil Documentation: Non-nil means determine accurate file attributes in `file-attributes'. This option controls whether to issue additional system calls to determine accurate link counts=2C file type=2C and ownership information. It is more useful for files on NTFS volumes=2C where hard links and file security are supported=2C than on volumes of the FAT family. Without these system calls=2C link count will always be reported as 1 and f= ile ownership will be attributed to the current user. The default value `local' means only issue these system calls for files on local fixed drives. A value of nil means never issue them. Any other non-nil value means do this even on remote and removable drives where the performance impact may be noticeable even on modern hardware. ________________________________ From: Eli Zaretskii Sent: 22-10-2012 22:44 To: Arvind Devarajan Cc: 12621@debbugs.gnu.org Subject: Re: bug#12621: Win32 (Ver:24.2)=3B Crashes when files from shared = folders are accessed > From: Arvind Devarajan > Date: Mon=2C 22 Oct 2012 15:49:36 +0530 > CC: "12621@debbugs.gnu.org" <12621@debbugs.gnu.org> > > Sorry for the late reply... No problem. > Secondly=2C I see that emacs crashes even with w32-get-true-file-attribut= es is set to nil. That's strange. Can you show a GDB backtrace in this case=2C please? When w32-get-true-file-attributes is nil=2C Emacs is not supposed to call the LookupAccountSid API=2C which was the one that led to the crash in your previous backtrace. --_971edf3e-c4c4-4195-9885-40fbb976d8ef_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"
Here= =E2=80=99s the call stack (and also see below the callstack for the result = of C-h v w32-get-true-file-attributes):

#0 =3B 0x77e82fed in RPCRT4!I_RpcNegotiateTransferSyntax ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#1 =3B 0x77e7a741 in RPCRT4!NdrAllocate () from C:\WINNT\system32\rpcrt= 4.dll
#2 =3B 0x77e7f64c in RPCRT4!NdrConformantStructBufferSize ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#3 =3B 0x77e7ae23 in RPCRT4!NdrpMemoryIncrement ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#4 =3B 0x77e89a57 in RpcBindingSetAuthInfoExW ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#5 =3B 0x77e899d2 in RpcBindingSetAuthInfoExW ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#6 =3B 0x77e89c5c in RpcBindingSetAuthInfoExW ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#7 =3B 0x77e7cc59 in RPCRT4!NdrConformantArrayBufferSize ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#8 =3B 0x77e7ae23 in RPCRT4!NdrpMemoryIncrement ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#9 =3B 0x77e86d08 in RPCRT4!NdrComplexStructFree ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#10 0x77e718cc in SimpleTypeMemorySize () from C:\WINNT\system32\rpcrt4.dll=
#11 0x00819518 in ?? ()
#12 0x77ef55cc in RPCRT4!CStdStubBuffer_CountRefs ()
 =3B =3B from C:\WINNT\system32\rpcrt4.dll
#13 0x77de5ab8 in LsaICLookupSids () from C:\WINNT\system32\advapi32.dll #14 0x77ddf4b0 in GetSidLengthRequired () from C:\WINNT\system32\advapi32.d= ll
#15 0x77de5a67 in LsaICLookupSids () from C:\WINNT\system32\advapi32.dll #16 0x0086d7a8 in ?? ()
#17 0x77de58f6 in LsaLookupSids () from C:\WINNT\system32\advapi32.dll
#18 0x77de57a7 in LookupAccountSidW () from C:\WINNT\system32\advapi32.dll<= br> #19 0x77e0d99b in LookupAccountSidA () from C:\WINNT\system32\advapi32.dll<= br> #20 0x01029dfb in lookup_account_sid@28 ()
#21 0x0102a10d in get_name_and_id ()
#22 0x0102a284 in get_file_owner_and_group ()
#23 0x0102c2a7 in stat ()
#24 0x0103bdf7 in Finsert_file_contents ()
#25 0x0100ee96 in Ffuncall ()
#26 0x0107139d in exec_byte_code ()
#27 0x01071f9a in Fbyte_code ()
#28 0x0100e48d in eval_sub ()
#29 0x0101111b in internal_lisp_condition_case ()
#30 0x01070ae5 in exec_byte_code ()
#31 0x0100e9ec in funcall_lambda ()
#32 0x0100ed43 in Ffuncall ()
#33 0x0107139d in exec_byte_code ()
#34 0x0100e9ec in funcall_lambda ()
#35 0x0100ed43 in Ffuncall ()
#36 0x0107139d in exec_byte_code ()
#37 0x0100e9ec in funcall_lambda ()
#38 0x0100ed43 in Ffuncall ()
#39 0x0107139d in exec_byte_code ()
#40 0x0100e9ec in funcall_lambda ()
#41 0x0100ed43 in Ffuncall ()
#42 0x0107139d in exec_byte_code ()
#43 0x0100e9ec in funcall_lambda ()
#44 0x0100ed43 in Ffuncall ()
#45 0x0107139d in exec_byte_code ()
#46 0x01071f9a in Fbyte_code ()
#47 0x0100e48d in eval_sub ()
#48 0x0100d4fb in internal_catch ()
#49 0x01070b2b in exec_byte_code ()
#50 0x0100e9ec in funcall_lambda ()
#51 0x0100ed43 in Ffuncall ()
#52 0x0107139d in exec_byte_code ()
#53 0x0100e9ec in funcall_lambda ()
#54 0x0100ed43 in Ffuncall ()
#55 0x0100f1fe in call1 ()
#56 0x0104c4cd in mapcar1 ()
#57 0x0104f6db in Fmapc ()
#58 0x0100eef0 in Ffuncall ()
#59 0x0107139d in exec_byte_code ()
#60 0x0100e9ec in funcall_lambda ()
#61 0x0100ed43 in Ffuncall ()
#62 0x010728ec in Fcall_interactively ()
#63 0x0100eed9 in Ffuncall ()
#64 0x0100f1a0 in call3 ()
#65 0x010259e5 in command_loop_1 ()
#66 0x0100d5b1 in internal_condition_case ()
#67 0x0101cf14 in command_loop_2 ()
#68 0x0100d4fb in internal_catch ()
#69 0x0101dc8c in recursive_edit_1 ()
#70 0x0101df14 in Frecursive_edit ()
#71 0x011a1c47 in main ()
A debugging session is active.

 =3B =3B =3B =3B =3B =3B =3B Inferior 1 [proces= s 5440] will be killed.

Quit anyway? (y or n)

---
Result of C-h v w32-get-true-file-attributes
---
w32-get-true-file-attributes is a variable defined in `C source code'.
Its value is nil

Documentation:
Non-nil means determine accurate file attributes in `file-attributes'.
This option controls whether to issue additional system calls to determine<= br> accurate link counts=2C file type=2C and ownership information. =3B It = is more
useful for files on NTFS volumes=2C where hard links and file security are<= br> supported=2C than on volumes of the FAT family.

Without these system calls=2C link count will always be reported as 1 and f= ile
ownership will be attributed to the current user.
The default value `local' means only issue these system calls for files
on local fixed drives. =3B A value of nil means never issue them.
Any other non-nil value means do this even on remote and removable drives where the performance impact may be noticeable even on modern hardware.

From: Eli Zaretskii
Sent: 22-10-2012 22:44
To: Arvind Devarajan
Cc: 12621@debbugs.gnu.org
Subject: Re: bug#12621: Win32 (Ver:24.2)=3B Crashes when files from shared fold= ers are accessed

>=3B From: Arvind Devarajan <=3Barvind.devaraj= an@outlook.com>=3B
>=3B Date: Mon=2C 22 Oct 2012 15:49:36 +=3B0530
>=3B CC: "=3B12621@debbugs.gnu.org"=3B <=3B12621@debbugs.gnu.or= g>=3B
>=3B
>=3B Sorry for the late reply...

No problem.

>=3B Secondly=2C I see that emacs crashes even with w32-get-true-file-att= ributes is set to nil.

That's strange. =3B Can you show a GDB backtrace in this case=2C please= ?
When w32-get-true-file-attributes is nil=2C Emacs is not supposed to
call the LookupAccountSid API=2C which was the one that led to the crash in your previous backtrace.
--_971edf3e-c4c4-4195-9885-40fbb976d8ef_--