From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12621: Emacs 24.1 crashing on Win7 Date: Thu, 13 Dec 2012 20:04:32 +0200 Message-ID: <83ip85omkv.fsf@gnu.org> References: <1355394162.15171.YahooMailNeo@web171306.mail.ir2.yahoo.com> Reply-To: Eli Zaretskii 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 1355421930 25804 80.91.229.3 (13 Dec 2012 18:05:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2012 18:05:30 +0000 (UTC) Cc: 12621@debbugs.gnu.org To: Arunas Ruksnaitis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 13 19:05:42 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 1TjDAB-0005Pu-Vm for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 19:05:40 +0100 Original-Received: from localhost ([::1]:55050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjD9y-0008Hl-Vj for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 13:05:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjD9n-0008Fe-7X for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 13:05:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjD9h-0006iP-Cu for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 13:05:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjD9h-0006i5-AI for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 13:05:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TjDAY-0007Qm-6b for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 13:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Dec 2012 18:06:02 +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.135542193928520 (code B ref 12621); Thu, 13 Dec 2012 18:06:02 +0000 Original-Received: (at 12621) by debbugs.gnu.org; 13 Dec 2012 18:05:39 +0000 Original-Received: from localhost ([127.0.0.1]:41228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjDAB-0007Px-GG for submit@debbugs.gnu.org; Thu, 13 Dec 2012 13:05:39 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:44181) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjDA8-0007Po-T8 for 12621@debbugs.gnu.org; Thu, 13 Dec 2012 13:05:38 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MEZ00600DM9AR00@a-mtaout23.012.net.il> for 12621@debbugs.gnu.org; Thu, 13 Dec 2012 20:04:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEZ006DNE7L6E60@a-mtaout23.012.net.il>; Thu, 13 Dec 2012 20:04:33 +0200 (IST) In-reply-to: <1355394162.15171.YahooMailNeo@web171306.mail.ir2.yahoo.com> X-012-Sender: halo1@inter.net.il 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.x 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:68471 Archived-At: > Date: Thu, 13 Dec 2012 10:22:42 +0000 (GMT) > From: Arunas Ruksnaitis >=20 > Just to confirm, this is a big problem for me, too. > My observations confirm the original report. > Stack trace, should it help, is here. I guess "lookup_account_sid" = is passing an invalid=A0lpSid? No, I don't think the Sid can be invalid, because it is validated jus= t before the call that crashes, by calling IsValidSid: if (what =3D=3D UID) result =3D get_security_descriptor_owner (psd, &sid, &dflt); else if (what =3D=3D GID) result =3D get_security_descriptor_group (psd, &sid, &dflt); else result =3D 0; if (!result || !is_valid_sid (sid)) <<<<<<<<<<<<<<<<<<<<<<<<<<< use_dflt =3D 1; else if (!w32_cached_id (sid, id, nm)) { /* If FNAME is a UNC, we need to lookup account on the =09 specified machine. */ if (IS_DIRECTORY_SEP (fname[0]) && IS_DIRECTORY_SEP (fname[1]) =09 && fname[2] !=3D '\0') =09{ =09 const char *s; =09 char *p; =09 for (s =3D fname + 2, p =3D machine; =09 *s && !IS_DIRECTORY_SEP (*s); s++, p++) =09 *p =3D *s; =09 *p =3D '\0'; =09 mp =3D machine; =09} if (!lookup_account_sid (mp, sid, name, &name_len, =09=09=09 domain, &domain_len, &ignore) =09 || name_len > UNLEN+1) I actually suspect that the problem might be in the server name, the first argument to lookup_account_sid. If you can easily reproduce this under GDB, can you show what is the value of 'fname' and of 'machine' in the above snippet?