stifling XWin.exe.stackdump

2006-09-29 Thread Kenneth Nellis
I write to share the solution to a problem I didn't know I had until 
I tripped over it this morning. For various reasons, I have not 
upgraded to the 6.8.99.901 versions of Xwindows. Each time I opened a 
new xterm window with startxwin.bat after the XWin.exe server was 
already running, I was generating a XWin.exe.stackdump file in the 
My Documents folder. This event was responsible for 2+ seconds burst 
of disk activity. By removing write access to the file (chmod -w), 
writing to this file is stifled, eliminating the burst of activity.

An interesting aside: Before removing write access to the file, I 
attempted to stifle the disk activity by redirecting it to the bit 
bucket:

$ ln -sf /dev/null XWin.exe.stackdump

What resulted, however, is that the sym-link was converted to a 
Windows shortcut and the file with the same name was created. So, 
in both the Cygwin and the Windows worlds, I add two entries with 
the exact same name.

Here's the before and after ls output:

Before:

$ ls -ld XWin.*
lrwxrwxrwx 1 knellis sweng 9 Sep 29 12:19 XWin.exe.stackdump - /dev/null
$ 

After:

$ ls -ld XWin.*
-rwx--+ 1 knellis sweng 1249 Sep 29 12:21 XWin.exe.stackdump
-rwx--+ 1 knellis sweng 1249 Sep 29 12:21 XWin.exe.stackdump
$ 

For the curious, cygcheck -svr output is attached.

--Ken Nellis

Cygwin Configuration Diagnostics
Current System Time: Fri Sep 29 17:34:48 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM
c:\Program Files\Microsoft SQL Server\80\Tools\Binn\
c:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\
c:\Program Files\QuickTime\QTSystem\
C:\cygwin\home\knellis\scripts
C:\cygwin\home\knellis\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 16268(knellis)  GID: 11555(sweng)
544(Administrators)  545(Users)   1004(Debugger Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 16268(knellis)  GID: 11555(sweng)
544(Administrators)  545(Users)   1004(Debugger Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'knellis'
PWD = '/home/knellis'
HOME = '/home/knellis'
MAKE_MODE = 'unix'

HOMEPATH = '\'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man:/usr/X11R6/man'
APPDATA = 'C:\Documents and Settings\knellis\Application Data'
HOSTNAME = 'knellis-lpt'
XKEYSYMDB = '/usr/X11R6/lib/X11/XKeysymDB'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 13 Stepping 8, GenuineIntel'
WINDIR = 'C:\WINDOWS'
TEXDOCVIEW_txt = 'cygstart %s'
CVSROOT = ':ext:unxcvs:/devel/netmodem/cvs/repos'
TEXDOCVIEW_dvi = 'cygstart %s'
WINDOWID = '2097166'
OLDPWD = '/c/Documents and Settings/knellis/My Documents'
USERDOMAIN = 'IDIRECT'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
CDPATH = '.:/home/knellis'
XAPPLRESDIR = '/usr/X11R6/lib/X11/app-defaults'
EXEEXT = '.exe'
XTERM_SHELL = '/usr/bin/bash'
XCMSDB = '/usr/X11R6/lib/X11/Xcms.txt'
!:: = '::\'
TEMP = '/c/DOCUME~1/knellis/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
XNLSPATH = '/usr/X11R6/lib/X11/locale'
TERMCAP = 'xterm-r6|xterm|xterm X11R6 
version:am:km:mi:ms:xn:co#80:it#8:li#63:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:'
QTJAVA = 'C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip'
HILITE_ERROR = ''
MEMO_FILE = '/home/knellis/.memo'
SYNTEK166 = '71.251.58.23'
TEXDOCVIEW_pdf = 'cygstart %s'
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
HILITE_HEADING = ''
CYGWIN_ROOT = '\cygwin'
LANG = 'en_US.UTF-8'
TEXDOCVIEW_html = 'cygstart %s'
USERPROFILE = 'C:\Documents and Settings\knellis'
CLIENTNAME = 'Console'
TZ = 'US/Eastern'
PS1 = '[EMAIL PROTECTED] \[(B\]'
LOGONSERVER = '\\AD05'
HILITE_PROMPT = ''
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\Documents and Settings\knellis\My Documents'
HISTCONTROL = 'ignoredups'
XTERM_VERSION = 'Cygwin 6.8.2.0(202)'
HILITE_RESET = '(B'
SHLVL = '1'
USERDNSDOMAIN = 'IDIRECT.NET'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
MY_EMAIL = '[EMAIL PROTECTED]'
HOMEDRIVE = 'S:'
BASH_ENV = '/home/knellis/.bashrc'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LESS = 'x4'
HILITE_ECHO = ''

windows patch breaks cygwin/x

2006-09-29 Thread Gerhard Gonter
FYI,
  after installing the windows patch for ms06-055 [1], Cygwin/X didn't
start anymore.  After removing that patch, Cygwin/X worked again.  The
text on the M$ page doesn't explain what the patch does, but the patch
is clearly b0rked.

REF:
[1] http://support.microsoft.com/?kbid=925486

--
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/



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread René Berber
Scott Fordin wrote:

 I just rebuilt my Win2K machine and did a fresh install of all
 packages in the Cygwin and Cygwin-X 1.5.21 distributions.
 
 When I tried running the C:\cygwin\lib\Singular\startxserver.bat
-^
That is not from the Cygwin distribution.

You seem to have installed something else on top of Cygwin.

 script, the X server startup failed with the following error:
 
 - Snip -
 'C:\cygwin\lib\lapack' is not recognized as an internal or external
 command, operable program or batch file.
 - Snip -

So?  That means the above .bat file is trying to execute something else that 
also doesn't come with Cygwin... and is not even an executable.

 I then tried the /usr/X11R6/bin/startxwin.bat script and got the
 same error.

If you received the same error message then something, not Cygwin, messed up 
your installation.  Same error probably means you executed the same file, are 
they really named startxserver.bat and startxwin.bat, or is just a typo?

 Two things are weird about this:
 
1. /usr/X11R6/bin/startxwin.sh works just fine; it's only the
   bat file that fails.
 
2. The same Cygwin/Cygwin-X distribution works just fine on
   my XP machine. I even tried installing Cygwin on my Win2K
   machine using the packages that I had downloaded to my XP
   machine.
 
 I've tried totally removing and reinstalling Cygwin a couple of
 times already.

Did you check what was left on the above directory?  If Cygwin did not install 
whatever is there it will not delete it.

[snip]
-- 
René Berber


--
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/



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread Scott Fordin

Thanks for replying, René. My responses are embedded inline.

René Berber wrote:

When I tried running the C:\cygwin\lib\Singular\startxserver.bat
-^ 
That is not from the Cygwin distribution.


Dunno. I ran the latest official Cygwin setup.exe, and chose to
install *all* the packages at one of the mirrors listed in the
install window:

ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin

The Singular stuff came with that.


You seem to have installed something else on top of Cygwin.


Nope. Just the stuff that came through the Cygwin install.

- Snip - 
'C:\cygwin\lib\lapack' is not recognized as an internal or external
 command, operable program or batch file. 
- Snip -


So?  That means the above .bat file is trying to execute something
else that also doesn't come with Cygwin... and is not even an
executable.


Again. Dunno. It's what came with the distro.

I then tried the /usr/X11R6/bin/startxwin.bat script and got the 
same error.


If you received the same error message then something, not Cygwin,
messed up your installation.  Same error probably means you executed
the same file, are they really named startxserver.bat and
startxwin.bat, or is just a typo?


Nope. Two different files. startxserver.bat came with the
Singular stuff. startxwin.bat is the standard batch file
included with Cygwin in /usr/X11R6/bin.

Again, the two things to remember here are that startxwin.sh
works just fine, and this exact same distro -- Singular stuff
included -- works just fine on my XP machine. Moreover, before
I rebuilt this Win2K box, this distribution worked just fine
as well.

I've tried totally removing and reinstalling Cygwin a couple of 
times already.


Did you check what was left on the above directory?  If Cygwin did
not install whatever is there it will not delete it.


I completely deleted the Cygwin directories, which included
the Singular stuff.

Thanks again,

Scott


--
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/



Re: 1.5.21: startxwin.sh works, startxwin.bat does not work

2006-09-29 Thread René Berber
Scott Fordin wrote:

 Thanks for replying, René. My responses are embedded inline.
 
 René Berber wrote:
 When I tried running the C:\cygwin\lib\Singular\startxserver.bat
 -^
 That is not from the Cygwin distribution.
 
 Dunno. I ran the latest official Cygwin setup.exe, and chose to
 install *all* the packages at one of the mirrors listed in the
 install window:
 
 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin
 
 The Singular stuff came with that.

You are right.

I just checked http://cygwin.com/packages and the startxserver.bat comes with 
singular-icons (strange, but then I don't use Singular).

[snip]
 So?  That means the above .bat file is trying to execute something
 else that also doesn't come with Cygwin... and is not even an
 executable.
 
 Again. Dunno. It's what came with the distro.

OK, it seems that the startxserver is not even a valid script (I haven't 
tested, I don't have Singular, I'm saying that from the result you had).

Question: Why were you trying to start XWin with that bat file?  I don't know 
what it is for, but seems redundant.

 I then tried the /usr/X11R6/bin/startxwin.bat script and got the same
 error.
[snip]

Now to the real problem: are the files different?

They should be.  There is no reference to the Singular directory in the normal 
startxwin.bat file... check for symbolic or hard links, perhaps Singular's 
(post)installation is doing something wrong.

I see no other explanation for getting the same error message.
-- 
René Berber


--
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/