public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-xfree@cygwin.com
Subject: Re: XWin.exe segmentation fault on Windows 7
Date: Mon, 13 Aug 2012 12:42:00 -0000	[thread overview]
Message-ID: <20120813124123.GC23253@calimero.vinschen.de> (raw)
In-Reply-To: <5028F046.6090505@dronecode.org.uk>

On Aug 13 13:17, Jon TURNEY wrote:
> On 13/08/12 05:23, Chris LeBlanc wrote:
> >I compiled xorg with debugging from the source packages, and that
> >shows the same behaviour.  I can step through the debugger, but the
> >output is the same as what Jon found in the previous email, failing on
> >the call to strcpy().  I've logged the gdb output to a file and can
> >attach it if anyone is interested.
> 
> Yes, please.
> 
> Assuming for the moment this is a defect in the cygwin DLL, it would
> be interesting to see the output of 'mount'.  You might also want to
> install the cygwin-debuginfo package and see if you can debug the
> problem in getmntent().
> 
> It might be worthwhile installing the latest cygwin snapshot [1] to
> see if the problem still exists.
> 
> [1] http://cygwin.com/snapshots/

First step is to take XWin out of the picture.  If this is a generic
problem with getmntent, then a standard getmntent loop should show the
same behaviour:

  #include <stdio.h>
  #include <mntent.h>

  int main ()
  {
    FILE *fp;
    struct mntent *mnt;

    fp = setmntent ("/etc/mtab", "r");
    while ((mnt = getmntent (fp)) != NULL)
      printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
	      mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
    endmntent (fp);
    return 0;
  }

Now the question is, if the same problem occurs, why?  Please paste
the contents of /etc/fstab and, if it exists, /etc/fstab.d/$USER
into your reply.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


  reply	other threads:[~2012-08-13 12:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08  4:51 Chris LeBlanc
2012-08-08 13:03 ` Jon TURNEY
2012-08-08 23:19   ` Chris LeBlanc
2012-08-09  2:19     ` Mark Geisert
2012-08-09  4:55       ` Chris LeBlanc
2012-08-13  4:24         ` Chris LeBlanc
2012-08-13 12:17           ` Jon TURNEY
2012-08-13 12:42             ` Corinna Vinschen [this message]
2012-08-14  4:42               ` Chris LeBlanc
2012-08-14  9:53                 ` Corinna Vinschen

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

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

  git send-email \
    --in-reply-to=20120813124123.GC23253@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-xfree@cygwin.com \
    /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.
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).