unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Arunas Ruksnaitis <aris020@yahoo.co.uk>
Cc: 12621@debbugs.gnu.org
Subject: bug#12621: Emacs 24.1 crashing on Win7
Date: Thu, 13 Dec 2012 20:04:32 +0200	[thread overview]
Message-ID: <83ip85omkv.fsf@gnu.org> (raw)
In-Reply-To: <1355394162.15171.YahooMailNeo@web171306.mail.ir2.yahoo.com>

> Date: Thu, 13 Dec 2012 10:22:42 +0000 (GMT)
> From: Arunas Ruksnaitis <aris020@yahoo.co.uk>
> 
> 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 lpSid?

No, I don't think the Sid can be invalid, because it is validated just
before the call that crashes, by calling IsValidSid:

  if (what == UID)
    result = get_security_descriptor_owner (psd, &sid, &dflt);
  else if (what == GID)
    result = get_security_descriptor_group (psd, &sid, &dflt);
  else
    result = 0;

  if (!result || !is_valid_sid (sid))  <<<<<<<<<<<<<<<<<<<<<<<<<<<
    use_dflt = 1;
  else if (!w32_cached_id (sid, id, nm))
    {
      /* If FNAME is a UNC, we need to lookup account on the
	 specified machine.  */
      if (IS_DIRECTORY_SEP (fname[0]) && IS_DIRECTORY_SEP (fname[1])
	  && fname[2] != '\0')
	{
	  const char *s;
	  char *p;

	  for (s = fname + 2, p = machine;
	       *s && !IS_DIRECTORY_SEP (*s); s++, p++)
	    *p = *s;
	  *p = '\0';
	  mp = machine;
	}

      if (!lookup_account_sid (mp, sid, name, &name_len,
			       domain, &domain_len, &ignore)
	  || 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?






  reply	other threads:[~2012-12-13 18:04 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11  3:32 bug#12621: Win32 (Ver:24.2); Crashes when files from shared folders are accessed Arvind Devarajan
2012-10-11  8:38 ` bug#12621: Acknowledgement (Win32 (Ver:24.2); Crashes when files from shared folders are accessed) Arvind Devarajan
2012-10-11 17:11   ` bug#12621: Win32 (Ver:24.2); Crashes when files from shared folders are accessed Eli Zaretskii
2012-10-16 13:39 ` Arvind Devarajan
2012-10-16 17:32   ` Eli Zaretskii
2012-10-22 10:19 ` Arvind Devarajan
2012-10-22 17:14   ` Eli Zaretskii
2012-10-23 12:16 ` Arvind Devarajan
2012-10-23 16:24   ` Eli Zaretskii
2012-12-13 10:22 ` bug#12621: Emacs 24.1 crashing on Win7 Arunas Ruksnaitis
2012-12-13 18:04   ` Eli Zaretskii [this message]
2012-12-13 18:30     ` Arunas Ruksnaitis
2012-12-13 19:05       ` Eli Zaretskii
2012-12-13 19:13         ` Eli Zaretskii
2012-12-13 21:09           ` Arūnas Rukšnaitis
2012-12-14  9:16             ` Eli Zaretskii
2012-12-14 14:07               ` Eli Zaretskii
2013-02-19 18:53               ` Glenn Morris
2013-02-19 21:00                 ` Eli Zaretskii
2012-12-13 18:41     ` Arunas Ruksnaitis
2012-12-13 19:08       ` Eli Zaretskii
2012-12-14 15:22       ` bug#12621: Emacs 24.1 crashing on Lose7 Richard Stallman
2012-12-14 18:31         ` Arunas Ruksnaitis
2012-12-15  0:36         ` bug#12621: Emacs 24.1 crashing on Windows 7 Andy Moreton
2012-12-15  8:16           ` Eli Zaretskii
2012-12-15 19:46             ` Richard Stallman
2012-12-15 20:03               ` Eli Zaretskii
2012-12-15 20:41                 ` Drew Adams
2012-12-16 21:23                 ` Richard Stallman
2012-12-15 20:45               ` Daniel Colascione
2012-12-16 21:23                 ` Richard Stallman
2012-12-17  2:03                   ` Dmitry Gutov
2012-12-17  2:19                     ` Daniel Colascione
2012-12-17  2:30                       ` Dmitry Gutov
2012-12-17 23:46                       ` Richard Stallman
2012-12-16 22:05           ` Stefan Monnier
2012-12-16 22:26             ` Drew Adams
2012-12-16 22:36               ` Drew Adams
2012-12-16 23:04               ` Juanma Barranquero
2012-12-17  0:04               ` Stephen Berman
2012-12-17  0:17                 ` Bastien
2012-12-17  1:38                   ` Drew Adams
2012-12-17  1:42                     ` Drew Adams
2012-12-17 23:46                     ` Richard Stallman
2012-12-18  9:35                       ` Bastien
2012-12-18 18:30                         ` Richard Stallman
2012-12-18 18:48                           ` Bastien
2012-12-17  0:43                 ` Juanma Barranquero
     [not found]                 ` <mailman.15500.1355705095.855.bug-gnu-emacs@gnu.org>
2012-12-17  1:01                   ` Burton Samograd
2012-12-17  2:11                 ` Daniel Colascione
2012-12-17 23:46                 ` Richard Stallman
2012-12-17  1:55             ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ip85omkv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12621@debbugs.gnu.org \
    --cc=aris020@yahoo.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).