public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dave <temp131@ymail.com>
To: cygwin-xfree <cygwin-xfree@cygwin.com>,
	 "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: -nolisten tcp -multiwindow combination crashes in XWin startup
Date: Tue, 01 Nov 2011 21:51:00 -0000	[thread overview]
Message-ID: <1320184235.73485.YahooMailNeo@web114404.mail.gq1.yahoo.com> (raw)
In-Reply-To: <4EAFF999.7010301@dronecode.org.uk>

Jon:  Thanks for the pointers to the fork() problem faqs.  That and a bit of googling led me to give rebaseall a try, and
that appears to have cured my issue.  (For others, instructions can be found at
http://www.heikkitoivonen.net/blog/2008/11/26/cygwin-upgrades-and-rebaseall/ .)

Suggestion, perhaps more to the main cygwin team:  Since this issue is cygwin specific and is a bit obscure (I've
been using cygwin for a good many years, but this is the first time I've recognized I had issues from this), it'd be nice
if users didn't have to learn about this the hard way.  Could running rebaseall perhaps be automated as part of setup.com?


----- Original Message -----
From: Jon TURNEY

Sent: Tuesday, November 1, 2011 6:52 AM
Subject: Re: -nolisten tcp -multiwindow combination crashes in XWin startup

On 31/10/2011 19:22, Dave wrote:
> Sadly this one wants to play a little hard to get...
> 
> I have tried this on two somewhat similar machines - 5 years difference in hardware, but both XP Pro up-to-date on Microsoft Update, and both running the cygwin versions present on mirror.mcs.anl.gov as of this weekend - both were upgraded, then after both were, I checked that there were no further upgrades posted in between.  The two differ regarding which packages are present, but for those present, they'd seem to be at the same versions.
> 
> One shows this problem quite consistently, the other doesn't show it at all.  It's the newer one, which has a good amount of memory to spare and is usually the more reliable these days, that is showing the problem.
> 
> I can recreate the problem at will on the one that shows it by starting XWin at the command line directly, under xinit, or under startxwin.  But if I try to start XWin under gdb, I don't see the problem; see below.  (The page you pointed me to suggests attaching gdb after startup, but that doesn't seem reasonable in this case.)
> 
> I notice in the output from starting XWin at the command line there's the line
>        3 [main] XWin 4520 fork: child 5408 - died waiting for dll loading, errno 11
> I didn't see this output or captured in /var/log/xwin/XWin.0.log when I ran via xinit or startxwin.  I don't know if that line got generated but lost in output redirections, or if this way of starting X is maybe seeing yet a different problem.  This line seems similar to that reported by Denis Beauchemin, Wed, 19 Oct 2011 14:17:54 +0000.

Yes, this line is output directly by the cygwin DLL, so you won't see it in XWin.0.log

This output is typical of some other software causing cygwin problems with fork emulation, see [1] and [2] in the FAQ.

> Any suggestions re how else to get the backtrace you desire, or any other info that might be helpful?

You may be able to get something useful using the JIT debugger, by setting the error_start token in the CYGWIN env var, prior to invoking the command which crashes, e.g.

CYGWIN="error_start=C:\cygwin\bin\dumper"
CYGWIN="error_start=C:\cygwin\bin\gdb"


> The below were run within a shell within Emacs running on an X server other than :0.  The behavior looks the same as when running in a Windows CMD shell, except here the XWin output seems to be printing locally rather than going to XWin.0.log.  The "@@@@@@@"s are hand-edited whiteouts.
> 
> The note below about Zonealarm is "interesting".  No Zonealarm, tho do have McAfee's firewall enabled.

Apparently cygcheck detects ZoneAlarm by looking for the registry key "SYSTEM\\CurrentControlSet\\Services\\vsdatant", or the file "%windir%\\System32\\vsdatant.sys".

> The run under gdb seemed to startup ok; I closed up X after a little while via "Exit..." on the taskbar icon.

[1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-fork-failures
[2] http://cygwin.com/faq-nochunks.html#faq.using.bloda

-- Jon TURNEY
Volunteer Cygwin/X X Server maintainer


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

       reply	other threads:[~2011-11-01 21:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1319954770.81475.YahooMailNeo@web114412.mail.gq1.yahoo.com>
     [not found] ` <4EAEB486.5090002@dronecode.org.uk>
     [not found]   ` <1320088071.46008.YahooMailNeo@web114420.mail.gq1.yahoo.com>
     [not found]     ` <1320088928.33967.YahooMailNeo@web114410.mail.gq1.yahoo.com>
     [not found]       ` <4EAFF999.7010301@dronecode.org.uk>
2011-11-01 21:51         ` Dave [this message]
2011-11-01 22:10           ` Christopher Faylor
2011-11-10 10:23             ` Linda Walsh
2011-11-10 17:59               ` Christopher Faylor
2011-11-01 22:34           ` Charles Wilson

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=1320184235.73485.YahooMailNeo@web114404.mail.gq1.yahoo.com \
    --to=temp131@ymail.com \
    --cc=cygwin-xfree@cygwin.com \
    --cc=cygwin@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).