From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32286 invoked by alias); 13 Aug 2012 12:42:08 -0000 Received: (qmail 31699 invoked by uid 22791); 13 Aug 2012 12:41:40 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 13 Aug 2012 12:41:26 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id A774D2C0054; Mon, 13 Aug 2012 14:41:23 +0200 (CEST) Date: Mon, 13 Aug 2012 12:42:00 -0000 From: Corinna Vinschen To: cygwin-xfree@cygwin.com Subject: Re: XWin.exe segmentation fault on Windows 7 Message-ID: <20120813124123.GC23253@calimero.vinschen.de> Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com References: <50226385.6060903@dronecode.org.uk> <5028F046.6090505@dronecode.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5028F046.6090505@dronecode.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-08/txt/msg00025.txt.bz2 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 #include 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/