wanna ask

2006-02-23 Thread stone cold steve austin
hi there
i would like to install cygwin as a part of my effort
to have graphic on dual networked monitors. However, i
tried to install cygwin from the following directory
but it cannot find them. 
http://mirror.aarnet.edu.au/pub/cygwin/
I believe this mirror have all the packages that i
need, especially the tcsh package and cygwin1.dll.
Could u suggest other ways?
Thanks a lot.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: cygwin scp -r fails

2006-02-23 Thread Corinna Vinschen
On Feb 22 23:04, Greg Tokarski wrote:
> I just installed the dev. snapshot as suggested by Corinna
> 
> > Are you running Cygwin 1.5.19-4?  Anyway, try the latest developer's
> > snapshot from http://cygwin.com/snapshots/  It probably solves your
> > problem.
> 
> and nothing seems to have changed. And yes, I was on the 1.5.19-4.

Sure you installed correctly?  I can not reproduce this.


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Snapshot report - ssh error

2006-02-23 Thread Corinna Vinschen
On Feb 22 20:51, Karl M wrote:
> Hi All...
> 
> With the latest snapshots (2/22, 2/20 and possible 2/19, not sure about 
> 2/19 and have not tried any before that) I get an error in my application 
> log like the following after each interactive ssh session loggs off.
> 
> sshd: PID 2928: syslogin_perform_logout: logout() returned an error.

A permission problem with /var/log/wtmp or /var/run/utmp?


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: wanna ask

2006-02-23 Thread Corinna Vinschen
On Feb 23 08:59, stone cold steve austin wrote:
> hi there
> i would like to install cygwin as a part of my effort
> to have graphic on dual networked monitors. However, i
> tried to install cygwin from the following directory
> but it cannot find them. 
> http://mirror.aarnet.edu.au/pub/cygwin/
> I believe this mirror have all the packages that i
> need, especially the tcsh package and cygwin1.dll.
> Could u suggest other ways?
> Thanks a lot.

Use setup.exe from http://cygwin.com/  That's the only officially
blessed technique to install Cygwin.


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Corinna Vinschen
On Feb 21 13:56, Peter Rehley wrote:
> On Feb 21, 2006, at 11:31 AM, Dave Korn wrote:
> 
> >On 21 February 2006 19:06, Peter Rehley wrote:
> >
> >>Hi,
> >>
> >>Well, for my particular hang issue cygwin is hanging inside the
> >>inside_kernel function on the GetModuleFileName call.  I tracked this
> >>down by adding debug statements (strace.prntf) until I got to the
> >>point where the debug print before GetModuleFileName would appear and
> >>the ones after it didn't. This is consistent.  Each hang is happening
> >>at this spot.
> >>
> >>However, this doesn't explain what is happening, but only where.
> >>
> >>I also observed that the times it hung were the only times
> >>inside_kernel was actually called.
> >>
> >>I'm still trying to get more information.
> >>Peter
> >>
> >>p.s. using cygwin snapshot 1.5.19-20060205.

Due to your problem report and some googling, I had some vague idea
yesterday, what the problem could be.  But it's not clear if the very
simple patch I applied yesterday does really change anything with
respect to your problem.

Please test the 2006-02-22 snapshot from http://cygwin.com/snapshots/
and report if you see a change, to the good or to the bad.


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Distributing Cygwin DLLs with my app

2006-02-23 Thread Dave Bryan

Hi,

I have an application for Windows written in VC++ which spawns the GNU  
tools GCC, LD, etc. As the GNU programs use the Cygwin DLLs I need those  
also. Is is possible to distribute just the needed Cygwin DLLs with my app  
+ GNU tools rather than the complete Cygwin installation ? There would be  
no cost to customers for Cygwin & GCC, just my VC++ app


Thanks
Dave Bryan




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



Cygwin Bash shell on Windows 2003 Server not working

2006-02-23 Thread Nitin Agarwal
I am trying to install cygwin on a Win 2003 Enterprise
Edition machine. I followed all you instructions but was not able to
run the cygwin.

I always get an error in Bash.exe call. My Bash shell is not working.
Any help in this regard would be very helpful. I have included the
content of the dump file created when bash failed to start.

I few points to note:

1. I am using Terminal Services to install cygwin.
2. It is Virtual Machine with windows 2003 installed.
3. I do not see the "sshd" user created on the computer.

I really need to get this thing working. Please help me.

I have gone through mostly all the posts on the internet about this
error and tried all the workarounds but it did not help. I found this
post on cygwin forums, which says cygwin does not work on Windows 2003
server. But there are a lot of people using cygwin on windows.

http://www.cygwin.com/ml/cygwin/2003-01/msg01489.html

I have also attached output of command cygcheck -v -s.

Exception details -
---
Exception: STATUS_ACCESS_VIOLATION at eip=00437B40
eax=4000 ebx=0004 ecx=610FCE28 edx= esi=004B10BA edi=61102C1C
ebp=0022EE78 esp=0022EBDC program=C:\cygwin\bin\bash.exe, pid 40348, thread main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
0022EE78  00437B40  (0003, 004B01B8, 004B0090, 7C821144)
0022EF78  61005BC8  (0022EFD0, , 0022EFB3, 00246FD0)
0022FF88  61005EB3  (, , , )
End of stack trace
Cygwin Configuration Diagnostics
Current System Time: Thu Feb 23 08:28:36 2006

Windows 2003 Enterprise Server Ver 5.2 Build 3790 Service Pack 1

Running in Terminal Service session

Path:   C:\Program Files\Mail Enable\BIN
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\cygwin\bin
.

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(Administrator) GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(Administrator) GID: 401(mkpasswd)
401(mkpasswd)

SysDir: C:\WINDOWS\system32
WinDir: C:\Documents and Settings\Administrator\WINDOWS

CYGWIN = 'binmode ntsec tty'
Path = 'C:\Program Files\Mail Enable\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
WS\System32\Wbem;C:\cygwin\bin;'

ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
APPDATA = 'C:\Documents and Settings\Administrator\Application Data'
CLIENTNAME = 'NITBITAN'
ClusterLog = 'C:\WINDOWS\Cluster\cluster.log'
CommonProgramFiles = 'C:\Program Files\Common Files'
COMPUTERNAME = 'VPS270'
ComSpec = 'C:\WINDOWS\system32\cmd.exe'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Documents and Settings\Administrator'
LOGONSERVER = '\\VPS270'
MAILENABLE_PATH = 'C:\PROGRA~1\MAILEN~1'
NUMBER_OF_PROCESSORS = '1'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 3 Stepping 8, GenuineIntel'
PROCESSOR_LEVEL = '15'
PROCESSOR_REVISION = '0308'
ProgramFiles = 'C:\Program Files'
PROMPT = '$P$G'
SESSIONNAME = 'RDP-Tcp#148'
SWMC_DIR = 'C:\Program Files\SWsoft\SW Management Console'
SystemDrive = 'C:'
SystemRoot = 'C:\WINDOWS'
TEMP = 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\10'
TMP = 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\10'
USERDOMAIN = 'VPS270'
USERNAME = 'Administrator'
USERPROFILE = 'C:\Documents and Settings\Administrator'
VZMC_DIR = 'C:\Program Files\SWsoft\Virtuozzo Management Console Pro\'
windir = 'C:\WINDOWS'
POSIXLY_CORRECT = '1'

Use '-r' to scan registry

c:  hd  NTFS 10239Mb  10% CP CS UN PA FC

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Not Found: sh
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

   56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
  "cygbz2-1.dll" v0.0 ts=2005/7/9 1:09
7k 2005/11/20 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
  "cygcharset-1.dll" v0.0 ts=2005/11/19 21:24
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
  "cygcrypt-0.dll" v0.0 ts=2003/10/19 3:57
 1108k 2005/10/17 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
  "cygcrypto-0.9.7.dll" v0.0 ts=2005/10/17 5:16
 1047k 2005/10/11 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
  "

postinstall scripts: .sh and .sh.done

2006-02-23 Thread James McLaughlin
Hi,

While fixing a problem I'd posted to the group about
(incidentally, thanks to Brian Dessent for identifying
a Cygwin DLL version mismatch as the source of the
other problem), I ran the post-texmf.sh script. I
don't know if this was meant to give me any diagnostic
information, but anyway it ran successfully, which
means (I think) that TEX etc are now installed. (Of
course, until I bring in the Cygcheck output, I can't
really ask about that.)

My real question revolves around the fact that the
script did not change from post-texmf.sh to
post-texmf.sh.done. Should I change it myself now that
it's finished running, or should I leave it be? Plus,
there was another file in \etc\postinstall that was
.sh and not .sh.done - what does this signify?

Thanks,

James McLaughlin.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: postinstall scripts: .sh and .sh.done

2006-02-23 Thread Chris Taylor

James McLaughlin wrote:

Hi,

While fixing a problem I'd posted to the group about
(incidentally, thanks to Brian Dessent for identifying
a Cygwin DLL version mismatch as the source of the
other problem), I ran the post-texmf.sh script. I
don't know if this was meant to give me any diagnostic
information, but anyway it ran successfully, which
means (I think) that TEX etc are now installed. (Of
course, until I bring in the Cygcheck output, I can't
really ask about that.)

My real question revolves around the fact that the
script did not change from post-texmf.sh to
post-texmf.sh.done. Should I change it myself now that
it's finished running, or should I leave it be? Plus,
there was another file in \etc\postinstall that was
.sh and not .sh.done - what does this signify?

Thanks,

James McLaughlin.



You have to do it manually - normally this is done by setup upon 
successful completion afaik.


If there's another .sh, then it also needs to be run. They should only 
be .sh if for some reason they didn't run correctly.




Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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



Re: length of the sidebar in rxvt [attn: base-files maintainer]

2006-02-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> 
> You can set the number of scrollback lines with the -sl argument or the
> saveLines resource.  I recommend using resources so that you don't have
> to supply a million command line arguments to rxvt on each invocation.
> Just stick them in ~/.Xdefaults instead.

Should we start providing /etc/defaults/etc/skel/.Xdefaults, so that new
users can have a sample ~/.Xdefaults to start from in customizing their
use of rxvt?

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/cSS84KuGfSFAYARAtqsAJ9LFarx8Fu8B8YXYQLvLjP5jmZI5gCeL+dD
S4N/TdQERdFkN/RCqTCwWsU=
=OwgV
-END PGP SIGNATURE-

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



Re: Cygwin Bash shell on Windows 2003 Server not working

2006-02-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Nitin Agarwal on 2/23/2006 6:31 AM:
> 
> I always get an error in Bash.exe call. My Bash shell is not working.
> Any help in this regard would be very helpful. I have included the
> content of the dump file created when bash failed to start.

Try rerunning setup.exe to reinstall bash:

> Not Found: sh

Until that line of cygcheck -svf is resolved, the bash postinstall script
has not correctly run, and cygwin will be unusable.  If you are getting
errors while trying to install bash and rerun the postinstall script, then
there may be some permissions problems to research.  But hopefully the
reinstall of bash will solve your problems.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/caG84KuGfSFAYARAgsPAKCX28WNcgWYyfVeecK45bBFhd7fwwCePAsk
64Ig+7UzJZxP/UL/GUpjK5U=
=O94V
-END PGP SIGNATURE-

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



Re: problem with starting services in 1.5.19

2006-02-23 Thread Yadin Y. Goldschmidt

I will try sending the attachment again so it will not be encoded.

"Yadin Y. Goldschmidt" wrote in message news:[EMAIL PROTECTED]

I reported this in the past but received no response. Services like cron
and sshd hang up when starting with cygrunsrv in 1.5.29. Upon reboot, most
often one starts
and the other hangs. The problem is best nanifested when from the cygwin
prompt
I type "cygrunsrv -S cron" or "cygrunsrv -S sshd". With 1.5.18 they start
with no problem. with 1.5.19 I get:
"cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 
1053:

The service did not respond to the start or control request in a timely
fashion"
When looking at ps -a the process cygrunsrv is running but not cron or 
sshd.

Again reverting to 1.5.18 everything works fine. I tried rebase all but it
does not help.
I tried the latest snapshot 20060222 and it does not help either.
Yadin.















Cygwin Configuration Diagnostics
Current System Time: Tue Feb 14 16:12:45 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\X11R6\bin
C:\cygwin\bin
C:\cygwin\usr\local\bin
C:\cygwin\usr\local\grace\bin
c:\Imagemagick
c:\WINNT\system32
c:\gstools\gs6.50\bin
c:\Program Files\Microsoft Visual Studio\df98\bin
c:\Program Files\Microsoft Visual Studio\vc98\bin
c:\pfe
c:\gstools\gsview
C:\cygwin\usr\local\bin\netpbm
c:\stat\bin
c:\texmf\miktex\bin
c:\MATLAB7\bin\win32
c:\Program Files\Adobe\Acrobat 7.0\Acrobat

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1004(robert)  GID: 513(None)
513(None) 544(Administrators)   551(Backup Operators)
547(Power Users)  545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1004(robert)  GID: 513(None)
513(None) 544(Administrators)   551(Backup Operators)
547(Power Users)  545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

USER = 'robert'
PWD = '/c/robert'
CYGWIN = 'NTSEC BINMODE'
HOME = '/c/robert'
MAKE_MODE = 'unix'

XDVIINPUTS = 
'/usr/share/texmf/dvips/config:/usr/share/texmf/dvips:/usr/share/texmf/web2c'
HOMEPATH = '\Documents and Settings\robert'
MANPATH = ':/usr/ssl/man:/usr/X11R6/man'
APPDATA = 'C:\Documents and Settings\robert\Application Data'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 4, GenuineIntel'
HISTSIZE = '500'
WINDIR = 'C:\WINNT'
TEXDOCVIEW_txt = 'cygstart %s'
TEXDOCVIEW_dvi = 'cygstart %s'
OLDPWD = '/usr/bin'
USERDOMAIN = 'MINERVA'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
HISTFILESIZE = '500'
!:: = '::\'
TEMP = '/cygdrive/c/DOCUME~1/robert/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
LIB = 'c:\program files\microsoft visual studio\vc98\lib;'
TERMCAP = '/etc/termcap'
QTJAVA = 'C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip'
USERNAME = 'robert'
TEXDOCVIEW_pdf = 'cygstart %s'
PROCESSOR_LEVEL = '15'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
TEXDOCVIEW_html = 'cygstart %s'
USERPROFILE = 'C:\Documents and Settings\robert'
CLIENTNAME = 'Console'
TEXMFDBS = '/usr/share/localtexmf:/usr/share/texmf:/var/cache/fonts'
PS1 = '${HOSTNAME}(\w)\$ '
LOGONSERVER = '\\MINERVA'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
TERMINFO = '/usr/share/terminfo/'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\WINNT\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/robert/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINNT'
PROCESSOR_REVISION = '0204'
CLASSPATH = 'C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip'
ORIGIN = 'C:\Program Files\origin40'
PKG_CONFIG_PATH = '/usr/X11R6/lib/pkgconfig'
TEXDOCVIEW_ps = 'cygstart %s'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '1'
SESSIONNAME = 'Console'
HISTFILE = '/cygdrive/c/robert/.bash_history'
COMPUTERNAME = 'MINERVA'
_ = '/bin/cygcheck.exe'
POSIXLY_CORRECT = '1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
 (default) = '/cygdrive'
 cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
 (default) = 'C:\cygwin'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/c/acrobat
 (default) = 'c:\Program Files\Adobe\Acrobat 7.0\Acrobat'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/c/fortran
 (default) = 'c:\Program Files\Microsoft Visual Studio'
 flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/cygdrive/d
 (default) = 'd:'
 flags = 0x000a
HKE

Re: Croatian fonts

2006-02-23 Thread rakbsub

Anyone know if cygwin accepts unicode fonts on the command line?
--
View this message in context: 
http://www.nabble.com/Croatian-fonts-t1160474.html#a3090203
Sent from the Cygwin Users forum at Nabble.com.


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



RE: length of the sidebar in rxvt [attn: base-files maintainer]

2006-02-23 Thread Eric Blake
Forwarded to list: http://cygwin.com/acronyms/#PPIOSPE

From: "Jerry D. Hedden" <[EMAIL PROTECTED]>
> > From: Eric Blake
> > Should we start providing /etc/defaults/etc/skel/.Xdefaults, so that new
> > users can have a sample ~/.Xdefaults to start from in customizing their
> > use of rxvt?
> 
> Sounds like a good idea.  I've attached the .Xdefaults that I use to
> serve
> as a possible basis for this.

-- 
Eric Blake

--- Begin Message ---
### Common to both XTerm and RXVT
# -geometry
XTerm*geometry: 80x99-10+0
# -bg
XTerm*background: black
# -fg
XTerm*foreground: white
# -fn (-font for RXVT)
XTerm*font: "Lucida Console-10"
# -sb
XTerm*scrollBar: True
# -j
XTerm*jumpScroll: True
# -ut
XTerm*utmpInhibit: True
# -sl 2500
XTerm*saveLines: 2500
# -si
XTerm*scrollTtyOutput: False

### RXVT specific
# -sr
Rxvt*scrollBar_right: True
# -sk
Rxvt*scrollTtyKeypress: True
# -tn
Rxvt*termName: rxvt-cygwin-native

### XTERM specific
# -rightbar
XTerm*rightScrollBar: True
# -sk
XTerm*scrollKey: True
# -rw
XTerm*reverseWrap: True
# -s
XTerm*multiScroll: True
# -wf
XTerm*waitForMap: True

### Colors used by both XTerm and RXVT
XTerm*color0: #00
XTerm*color1: #E0
XTerm*color2: #00E000
XTerm*color3: #E0E000
XTerm*color4: #5060E0
XTerm*color5: #E800E0
XTerm*color6: #00E0E0
XTerm*color7: #E8E8E8
XTerm*color8: #787878
XTerm*color9: #E04040
XTerm*color10: #40E040
XTerm*color11: #E0E040
XTerm*color12: #4080E0
XTerm*color13: #E040E0
XTerm*color14: #40E0E0
XTerm*color15: #E0E0E0
XTerm*colorUL: #E0E000
XTerm*colorBD: #E0E0E0

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

Re: script in cygwin

2006-02-23 Thread Igor Peshansky
On Wed, 22 Feb 2006, Jim Easton wrote:

> Does cygwin have a program called "script".  It is a program
> which records terminal traffic in a file.
>
> If so what would I select in setup to get it?

.
According to the package search page, "script" isn't part of the Cygwin
distribution.

IIRC, "script" is available on cygwin-ports[*], but note that cygwin-ports
has its own support list.  Yaakov did say that he'd be ok with someone
else proposing to maintain it -- are you willing?
Igor
[*] See, e.g., 
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: Distributing Cygwin DLLs with my app

2006-02-23 Thread Igor Peshansky
On Thu, 23 Feb 2006, Dave Bryan wrote:

> I have an application for Windows written in VC++ which spawns the GNU
> tools GCC, LD, etc. As the GNU programs use the Cygwin DLLs I need those
> also. Is is possible to distribute just the needed Cygwin DLLs with my
> app + GNU tools rather than the complete Cygwin installation ? There
> would be no cost to customers for Cygwin & GCC, just my VC++ app

IANAL (), but as far as I
understand, the GPL does allow such distribution, as long as you are also
distributing sources for the GPL'd tools.  For further licensing
questions, please use the cygwin-licensing list.

However, it's good that you asked here, because another point of concern
with such distributions is to make sure you don't become a
 by not playing nicely with the existing
Cygwin installations.  As long as your distribution/installer detects an
existing installation and uses its DLLs and tools instead of the ones you
provide (or asks for an upgrade if the tools are too old), you should be
ok.

It would also be nice if you explicitly stated in the documentation that
you use Cygwin under the covers as part of your toolchain, so that
installing Cygwin later will not produce unpleasant surprises.  The best
way of doing this is to install into a standard location rather than the
location of your program (e.g., test for an existing installation, and if
it's not there, install the minimal set of packages in c:\cygwin,
preferably using Cygwin's installer or something with equal
functionality).  That way, if the users later decide to install Cygwin,
your minimal installation will be detected and upgraded.

You can even present this as a choice for the users (like some products do
with things like Acrobat Reader or DirectX) -- if Cygwin is not detected,
offer to install it, and spawn Cygwin setup for doing the minimal install
from your distribution CD.  Fortunately, Cygwin is easy to detect.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: Croatian fonts

2006-02-23 Thread Igor Peshansky
On Thu, 23 Feb 2006, rakbsub wrote:

> Anyone know if cygwin accepts unicode fonts on the command line?

Cygwin does not do Unicode, but it does allow (or, rather, doesn't
disallow) native codepages.  For example, I have no problem using Cyrillic
fonts with Cygwin -- you need to use the fonts in the appropriate encoding
for your terminal.

You might find 
useful, too.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: Distributing Cygwin DLLs with my app

2006-02-23 Thread Dave Bryan

Igor

Thanks very much for your reply. I appreciate your time and the points you  
raised.


Regards
Dave



On Thu, 23 Feb 2006, Dave Bryan wrote:


I have an application for Windows written in VC++ which spawns the GNU
tools GCC, LD, etc. As the GNU programs use the Cygwin DLLs I need those
also. Is is possible to distribute just the needed Cygwin DLLs with my
app + GNU tools rather than the complete Cygwin installation ? There
would be no cost to customers for Cygwin & GCC, just my VC++ app


IANAL (), but as far as I
understand, the GPL does allow such distribution, as long as you are also
distributing sources for the GPL'd tools.  For further licensing
questions, please use the cygwin-licensing list.

However, it's good that you asked here, because another point of concern
with such distributions is to make sure you don't become a
 by not playing nicely with the existing
Cygwin installations.  As long as your distribution/installer detects an
existing installation and uses its DLLs and tools instead of the ones you
provide (or asks for an upgrade if the tools are too old), you should be
ok.

It would also be nice if you explicitly stated in the documentation that
you use Cygwin under the covers as part of your toolchain, so that
installing Cygwin later will not produce unpleasant surprises.  The best
way of doing this is to install into a standard location rather than the
location of your program (e.g., test for an existing installation, and if
it's not there, install the minimal set of packages in c:\cygwin,
preferably using Cygwin's installer or something with equal
functionality).  That way, if the users later decide to install Cygwin,
your minimal installation will be detected and upgraded.

You can even present this as a choice for the users (like some products  
do

with things like Acrobat Reader or DirectX) -- if Cygwin is not detected,
offer to install it, and spawn Cygwin setup for doing the minimal install
from your distribution CD.  Fortunately, Cygwin is easy to detect.

HTH,
Igor




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



Re: Cygwin Bash shell on Windows 2003 Server not working

2006-02-23 Thread Nitin Agarwal
Eric,

Thanks for the reply.

I have run the cygwin install 3-4 times after removing everything. But
I still get the same error. And the installation package downloaded
from cygwin website works fine on one of my Windows XP machine.

You have pointed out an error - > > Not Found: sh

Can I copy this or install this from some other installation package?
Or is there any other way I can install cygwin?

Thanks.

Nitin


On 2/23/06, Eric Blake <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> According to Nitin Agarwal on 2/23/2006 6:31 AM:
> >
> > I always get an error in Bash.exe call. My Bash shell is not working.
> > Any help in this regard would be very helpful. I have included the
> > content of the dump file created when bash failed to start.
>
> Try rerunning setup.exe to reinstall bash:
>
> > Not Found: sh
>
> Until that line of cygcheck -svf is resolved, the bash postinstall script
> has not correctly run, and cygwin will be unusable.  If you are getting
> errors while trying to install bash and rerun the postinstall script, then
> there may be some permissions problems to research.  But hopefully the
> reinstall of bash will solve your problems.
>
> - --
> Life is short - so eat dessert first!
>
> Eric Blake [EMAIL PROTECTED]
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFD/caG84KuGfSFAYARAgsPAKCX28WNcgWYyfVeecK45bBFhd7fwwCePAsk
> 64Ig+7UzJZxP/UL/GUpjK5U=
> =O94V
> -END PGP SIGNATURE-
>

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



1.5.19-4 mpd crashes when forking

2006-02-23 Thread Pat Kelly
I can compile and run the latest (stable) mpd, but whenever it would
fork (like if its run as a daemon or mpc tries to play it), it crashes
with:

102 [main] mpd 3796 C:\cygwin\usr\local\bin\mpd.exe *** fatal error -
MapViewOfFileEx (0x13B), Win32 error 6. Terminating.
7 [main] mpd 3704 child_copy: loaded dll data write copy failed,
0x70C05000..0x70C05830, done 0, windows pid 2288260, Win32 error 5


Did I probably mess something obvious with the porting, or is this a
bug in somebody's (cygwin's or mpd's) screw up with the forking?

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



experimental coreutils-5.94-2

2006-02-23 Thread Eric Blake
An experimental release of coreutils, 5.94-2, is available to help test
the latest snapshots in preparation for cygwin 1.5.20.  To use this
version, you must have a recent snapshot (20060220 or later)
installed, then use the Exp button of setup.exe to select the
experimental version of coreutils.

This version uses the improved d_ino member and readdir()
improvements that are available in snapshots.  I also intentionally
changed /bin/pwd to use its readdir fallback code rather than
the more efficient getcwd code, so that /bin/pwd becomes a
nice efficient test of whether cygwin is reporting accurate
inode information in its directory listings.  Be aware that
coreutils-5.94-1 does not test all of the code paths of cygwin
like this experimental 5.94-2 does, so I recommend upgrading
coreutils if you plan on testing the latest snapshots to help
look for regressions in file listings.  Functionally, there should
be NO difference in behavior between 5.94-1 and 5.94-2 - if
there is, then you have found a cygwin bug and should
report it to this list.  This includes if the shell builtin 'cd -P'
ever disagrees with '/bin/pwd'.

-- 
Eric Blake
volunteer cygwin coreutils maintainer

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



Re: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Peter Rehley

Hi,
On Feb 23, 2006, at 3:20 AM, Corinna Vinschen wrote:


On Feb 21 13:56, Peter Rehley wrote:

On Feb 21, 2006, at 11:31 AM, Dave Korn wrote:


On 21 February 2006 19:06, Peter Rehley wrote:


Hi,

Well, for my particular hang issue cygwin is hanging inside the
inside_kernel function on the GetModuleFileName call.  I tracked  
this

down by adding debug statements (strace.prntf) until I got to the
point where the debug print before GetModuleFileName would  
appear and
the ones after it didn't. This is consistent.  Each hang is  
happening

at this spot.

However, this doesn't explain what is happening, but only where.

I also observed that the times it hung were the only times
inside_kernel was actually called.

I'm still trying to get more information.
Peter

p.s. using cygwin snapshot 1.5.19-20060205.


Due to your problem report and some googling, I had some vague idea
yesterday, what the problem could be.  But it's not clear if the very
simple patch I applied yesterday does really change anything with
respect to your problem.

Please test the 2006-02-22 snapshot from http://cygwin.com/snapshots/
and report if you see a change, to the good or to the bad.


Yeah, I saw that change, and I tried yesterdays snapshot but it still  
hung.  I also did some more googling and found that someone submitted  
a patch a few years ago.  The patch checked to see if it was inside  
the ntdll.dll by looking at the handle.

http://www.cygwin.com/ml/cygwin-patches/2003-q2/msg4.html

I found this google too.
http://blogs.msdn.com/oldnewthing/archive/2004/01/28/63880.aspx

I'm going to try that patch today and see what happens.  Christopher  
didn't apply it because it was a bandage and didn't really fix the  
bigger problem.


Peter


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



apache2 mod_perl

2006-02-23 Thread Gunnar Thielebein
Ive installed apache2 on cygwin and now I want to compile mod_perl for 
it which asks for apxs and breaks install
process because file is not installed. (by the way why is default path 
for apache2 not set like in all manuals/howtos in the web? 
/usr/local/apache2/bin/).

can i download this script manually or what needs to be done?
binary package: apache-2.2.55

My Cygwin Version is CYGWIN_NT-5.1 ** 1.5.19(0.150/4/2) 2006-01-20 
13:28 i686 Cygwin


thx in advance, Gunnar



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



Re: Cygwin Bash shell on Windows 2003 Server not working

2006-02-23 Thread Eric Blake
Ugh - topposting reformatted: http://cygwin.com/acronyms/#TOFU

> On 2/23/06, Eric Blake  wrote:
     ^

Ugh - raw email: http://cygwin.com/acronyms/#PCYMTNQREAIYR

> >
> > Try rerunning setup.exe to reinstall bash:
> >
> > > Not Found: sh
> >
> > Until that line of cygcheck -svf is resolved, the bash postinstall script
> > has not correctly run, and cygwin will be unusable.  If you are getting
> > errors while trying to install bash and rerun the postinstall script, then
> > there may be some permissions problems to research.  But hopefully the
> > reinstall of bash will solve your problems.
> >

> Eric,
> 
> Thanks for the reply.
> 
> I have run the cygwin install 3-4 times after removing everything. But
> I still get the same error. And the installation package downloaded
> from cygwin website works fine on one of my Windows XP machine.
> 
> You have pointed out an error - > > Not Found: sh
> 
> Can I copy this or install this from some other installation package?

The postinstall script for the bash package effectively does
'cp /bin/bash /bin/sh' from inside a bash shell, so you could
manually do that (or the cmd.com equivalent
'copy c:\cygwin\bin\bash.exe c:\cygwin\bin\sh.exe').  But
the bigger question is WHY the postinstall script is failing,
and the realization that the postinstall script relies on bash
working.  As has been previously suggested on this list,
if you are having problems starting bash, a good thing to
try is opening a cmd.com window in c:\cygwin\bin (or
wherever you installed), then running ".\bash.exe -livx"
to start an interactive login shell with full debugging
statements, and see how far you get or what error
message is printed.

> Or is there any other way I can install cygwin?

setup.exe is the only recommended method from this mailing
list.

> 
> Thanks.
> 
> Nitin
> 

-- 
Eric Blake

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



Re: apache2 mod_perl

2006-02-23 Thread Gunnar Thielebein

Hm, like I read in another thread package for apache2 comes without apsx
fortunately after installing apache1.3 found apsx in /usr/sbin


stock apache2 install on cwgwin is /usr/sbin/

I thine /usr/sbin/apxs2

you may need the apache apr package

search for "bin/apxs2"



On Thu, 2006-02-23 at 17:23 +0100, Gunnar Thielebein wrote:

Ive installed apache2 on cygwin and now I want to compile mod_perl for 
it which asks for apxs and breaks install
process because file is not installed. (by the way why is default path 
for apache2 not set like in all manuals/howtos in the web? 
/usr/local/apache2/bin/).

can i download this script manually or what needs to be done?
binary package: apache-2.2.55

My Cygwin Version is CYGWIN_NT-5.1 ** 1.5.19(0.150/4/2) 2006-01-20 
13:28 i686 Cygwin


thx in advance, Gunnar



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




--
Jason Czerak ([EMAIL PROTECTED])
PPD  - New Hope, MN
System Administrator

Desk:  763.489.6128
Cell:  586.405.8366 (Nextel: 130*21*2819)
Pager: 888.381.1459 ([EMAIL PROTECTED])

__
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that you must not read this transmission and
that any disclosure, copying, printing, distribution or use of this
transmission is strictly prohibited. If you have received this transmission
in error, please immediately notify the sender by telephone or return email
and delete the original transmission and its attachments without reading
or saving in any manner.


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



Re: apache2 mod_perl

2006-02-23 Thread Jason J. Czerak
it's there. it's a seperate package.

On Thu, 2006-02-23 at 17:46 +0100, Gunnar Thielebein wrote:
> Hm, like I read in another thread package for apache2 comes without apsx
> fortunately after installing apache1.3 found apsx in /usr/sbin
> 
> > stock apache2 install on cwgwin is /usr/sbin/
> > 
> > I thine /usr/sbin/apxs2
> > 
> > you may need the apache apr package
> > 
> > search for "bin/apxs2"
> > 
> 
> On Thu, 2006-02-23 at 17:23 +0100, Gunnar Thielebein wrote:
> 
> > Ive installed apache2 on cygwin and now I want to compile mod_perl for 
> > it which asks for apxs and breaks install
> > process because file is not installed. (by the way why is default path 
> > for apache2 not set like in all manuals/howtos in the web? 
> > /usr/local/apache2/bin/).
> > can i download this script manually or what needs to be done?
> > binary package: apache-2.2.55
> > 
> > My Cygwin Version is CYGWIN_NT-5.1 ** 1.5.19(0.150/4/2) 2006-01-20 
> > 13:28 i686 Cygwin
> > 
> > thx in advance, Gunnar
> > 
> > 
> > 
> > --
> > Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> > Problem reports:   http://cygwin.com/problems.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ:   http://cygwin.com/faq/
> > 
> > 
> 
-- 
Jason Czerak ([EMAIL PROTECTED])
PPD  - New Hope, MN
System Administrator

Desk:  763.489.6128
Cell:  586.405.8366 (Nextel: 130*21*2819)
Pager: 888.381.1459 ([EMAIL PROTECTED])

__
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that you must not read this transmission and
that any disclosure, copying, printing, distribution or use of this
transmission is strictly prohibited. If you have received this transmission
in error, please immediately notify the sender by telephone or return email
and delete the original transmission and its attachments without reading
or saving in any manner.


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



Re: please test snapshots: we'd like to release cygwin version 1.20

2006-02-23 Thread Eric Blake
Eric Blake  byu.net> writes:

> In an effort to help the testing be easier to perform, I will soon be 
releasing 
> an experimental coreutils-5.94-2 that uses the d_ino member in ls and also 
> in /bin/pwd

Now released, but it pointed out an upstream bug in coreutils - 'ls -i'
currently stubbornly uses [l]stat(), even when d_ino is available.  So ls
is NOT (yet) a good test of the d_ino changes, after all (but it DOES
remain a good test of readdir() refactoring).

-- 
Eric Blake



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



Re: Snapshot report - ssh error

2006-02-23 Thread Karl M

Hi All...

It was a permissions problem with /var/run/utmp.

But that got me looking...back in Nov 2003, Corinna made the following 
change to ssh-host-config


# Create /var/log and /var/log/lastlog if not already existing

-if [ -f /var/log ]
+if [ -f ${LOCALSTATEDIR}/log ]
then
-  echo "Creating /var/log failed\!"
+  echo "Creating ${LOCALSTATEDIR}/log failed!"
else
-  if [ ! -d /var/log ]
+  if [ ! -d ${LOCALSTATEDIR}/log ]
  then
-mkdir -p /var/log
+mkdir -p ${LOCALSTATEDIR}/log
  fi
-  if [ -d /var/log/lastlog ]
+  if [ -d ${LOCALSTATEDIR}/log/lastlog ]
  then
-echo "Creating /var/log/lastlog failed\!"
-  elif [ ! -f /var/log/lastlog ]
+chmod 777 ${LOCALSTATEDIR}/log/lastlog
+  elif [ ! -f ${LOCALSTATEDIR}/log/lastlog ]
  then
-cat /dev/null > /var/log/lastlog
+cat /dev/null > ${LOCALSTATEDIR}/log/lastlog
+chmod 666 ${LOCALSTATEDIR}/log/lastlog
  fi
fi

And I am curious why set the permissions to 777 on /var/log/lastlog if it is 
a directory?


Thanks,

...Karl


From: Corinna Vinschen Subject: Re: Snapshot report - ssh error
Date: Thu, 23 Feb 2006 12:16:31 +0100

On Feb 22 20:51, Karl M wrote:
> Hi All...
>
> With the latest snapshots (2/22, 2/20 and possible 2/19, not sure about
> 2/19 and have not tried any before that) I get an error in my 
application

> log like the following after each interactive ssh session loggs off.
>
> sshd: PID 2928: syslogin_perform_logout: logout() returned an error.

A permission problem with /var/log/wtmp or /var/run/utmp?


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





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



Re: Snapshot report - ssh error

2006-02-23 Thread Corinna Vinschen
On Feb 23 08:54, Karl M wrote:
> Hi All...
> 
> It was a permissions problem with /var/run/utmp.
> 
> But that got me looking...back in Nov 2003, Corinna made the following 
> change to ssh-host-config
> [...]
> And I am curious why set the permissions to 777 on /var/log/lastlog if it 
> is a directory?

Because /var/log/lastlog can be a directory.  In this case sshd creates
files under /var/log/lastlog directory with the name of the user and
each file only contains logininfo records for that user.

We're just missing a lastlog tool which allows examining the lastlog
file(s).  It's part of the pwdutils package from
http://www.thkukuk.de/pam/pwdutils/   *hint, hint*


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: proftpd + mod_tsl + cygwin under win2003

2006-02-23 Thread Jason Tishler
On Wed, Feb 22, 2006 at 01:00:53PM -0800, Tyler Durden wrote:
> When I run the daemon (net start "cygwin proftpd" in
> Windows), I get this error in /var/log/proftpd.log
> 
> myservername - PRIVS_RELINQUISH: unable to
> seteuid(session.uid): Invalid argument
> myservername - PRIVS_RELINQUISH: unable to
> seteuid(session.uid): Invalid argument
> myservername - error opening scoreboard: Permission
> denied
> 
> I have done everything while logged in as
> administrator, the service is configured to run as
> SYSTEM.  I tried changing default permission in the
> /var/proftpd directory and ownership (for scroeboard
> file) to SYSTEM or administrators (root) without any
> success.

What do the following commands indicate?

$ ls -ld /var/proftpd

$ strings /usr/local/sbin/proftpd.exe | fgrep proftpd.scoreboard

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Problem to launch bash from a shotcut

2006-02-23 Thread Mark Craddle
I work since years with Cygwin and never found a nice
way to launch a "standalone" bash script from a
shortcut and/or a Windows batch file.

Say I have a directory with :
  bash.exe
  cygiconv-2.dll
  cygintl-3.dll
  cygncurses-8.dll
  cygreadline6.dll
  cygwin1.dll
  my_script(a bash script)
  launcher.bat (or a shortcut)

This directory can be on a cd-rom, an unmapped network
share, a local drive, ...
Then the directory can be :
  D:\mydir\
  \\server\far away\mydir\
  C:\another path with spaces\mydir

It will be nice to just to have to double-clic on
launcher.bat

All I can manage to do is to launch from a mapped
drive.

launcher.bat :
set current_path=%~d0%~p0
"%current_path%bash.exe" "%current_path%my_script"

It is perfect, but only for local or mapped drives.
note : if I use the -c notation I have to use 
"%current_path%bash.exe" -c
"'%current_path%my_script'"

If I try it from a network share I get :
\server\far away\my_script: no such file or directory
Note the single first reverse slash.

I also tried :
set current_path=%~d0%~p0
"%current_path%bash.exe" -c "cd '%current_path%';
./my_script"
but I get the same error on the cd.


Any idea how I can instruct bash to execute from an
unmapped network share ?








___ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

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



sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Tim Daneliuk

Is anyone familiar with alternate access methods as they apply to
cygwin? If I edit /etc/hosts.allow, the alternate access method
(indicated by a '+' in an 'ls -l' listing) gets lost. Thereafter
/etc/hosts.allow is no longer properly observed by sshd - it makes ssh
logins impossible from anything other than localhost.

So ... how do I edit /etc/hosts.allow and retain the alternate access
method that appears to be crucial for proper sshd operation?

P.S. Notice that merely copying the originally installed hosts.allow to
 a backup copy causes the alternate access method to be lost:


-rwx--+ 1 tundra None  200 Feb 23 00:15 hosts.allow
-rwx--  1 tundra None  200 Feb 23 00:15 hosts.allow.orig
-rwx--+ 1 tundra None  407 Feb 23 00:15 hosts.deny

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/



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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Igor Peshansky
On Thu, 23 Feb 2006, Tim Daneliuk wrote:

> Is anyone familiar with alternate access methods as they apply to
> cygwin? If I edit /etc/hosts.allow, the alternate access method
> (indicated by a '+' in an 'ls -l' listing) gets lost. Thereafter
> /etc/hosts.allow is no longer properly observed by sshd - it makes ssh
> logins impossible from anything other than localhost.

Cygwin isn't ACL-aware, and file creation operations don't retain the
original ACLs -- Cygwin constructs them anew to reflect the permission
mapping.  See .
To make sure you keep the ACLs, use an editor that edits files in-place,
rather than making a copy (e.g., vim).

> So ... how do I edit /etc/hosts.allow and retain the alternate access
> method that appears to be crucial for proper sshd operation?

The alternate access method is not crucial.  What's crucial is that the
files should be a) readable by SYSTEM, and b) not group/world-readable.
To accomplish this, "chown SYSTEM.SYSTEM /etc/hosts.{allow,deny} && chmod
600 /etc/hosts.{allow,deny}" (this is more secure, anyway).  No need for
an alternate method.  You can then temporarily chown them to your userid
or "chmod a+w" for editing (restoring the owner/permissions afterwards).

> P.S. Notice that merely copying the originally installed hosts.allow to
>  a backup copy causes the alternate access method to be lost:

Same reason -- Cygwin isn't really ACL-aware.  You can also restore the
original ACLs by running something like "getfacl hosts.allow | setfacl -f
- hosts.allow.orig" (assuming the owner stays the same).

> -rwx--+ 1 tundra None  200 Feb 23 00:15 hosts.allow
> -rwx--  1 tundra None  200 Feb 23 00:15 hosts.allow.orig
> -rwx--+ 1 tundra None  407 Feb 23 00:15 hosts.deny

These files should really be owned by SYSTEM (or whatever user sshd runs
as).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Igor Peshansky
On Thu, 23 Feb 2006, Igor Peshansky wrote:

> Cygwin isn't ACL-aware...

To be more precise, Cygwin doesn't support ACL APIs for files beyond what
Windows provides (and those are really outside of Cygwin).  Cygwin
obviously has to be aware of ACLs to construct them for the POSIX
permission mapping.

I probably should've said: Cygwin doesn't "think" in terms of ACLs, but in
terms of POSIX permissions...

Corinna, am I digging myself deeper into the hole here? :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Eric Blake
> 
> Cygwin isn't ACL-aware, and file creation operations don't retain the
> original ACLs -- Cygwin constructs them anew to reflect the permission
> mapping.  See .
> To make sure you keep the ACLs, use an editor that edits files in-place,
> rather than making a copy (e.g., vim).

Actually, it is more accurate to state that most applications on
cygwin aren't ACL-aware.  CVS coreutils (which will someday
become coreutils 6.0) has a patch currently undergoing
testing that makes cp, mv, and friends ACL-aware, such
that copying a file with ACLs will be able to give the new file
the same permissions.  At any rate, I have not yet had
time to play with those patches to see if they need some
more fixes as part of porting the eventual coreutils 6.0
to cygwin.

However, you are correct that one of the biggest limitations
currently in cygwin's ACL implementation is that default
ACLs attached to directories are not applied to new files
created in those directories.

It may be that vim also needs to be taught to be ACL aware,
and that when editing a file with ACLs and creating a
replacement, it should put the same permissions on the
replacement as the original.  But I leave that to the
vim maintainer to track down.

-- 
Eric Blake

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



RE: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Dave Korn
On 23 February 2006 16:20, Peter Rehley wrote:

> Yeah, I saw that change, and I tried yesterdays snapshot but it still
> hung.  I also did some more googling and found that someone submitted
> a patch a few years ago.  The patch checked to see if it was inside
> the ntdll.dll by looking at the handle.
> http://www.cygwin.com/ml/cygwin-patches/2003-q2/msg4.html
> 
> I found this google too.
> http://blogs.msdn.com/oldnewthing/archive/2004/01/28/63880.aspx
> 
> I'm going to try that patch today and see what happens.  Christopher
> didn't apply it because it was a bandage and didn't really fix the
> bigger problem.

  That all fits right in with your diagnosis of the problem; a deadlock of
some kind I guess is the only thing that could make GetModuleFileName hang.

  Have you got a stack backtrace showing the call chain when this problem
arises?

  We may be able to come up with a substitute for GMFN that would solve the
problem.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Tim Daneliuk

Igor Peshansky wrote:


On Thu, 23 Feb 2006, Tim Daneliuk wrote:






Same reason -- Cygwin isn't really ACL-aware.  You can also restore the
original ACLs by running something like "getfacl hosts.allow | setfacl -f
- hosts.allow.orig" (assuming the owner stays the same).



-rwx--+ 1 tundra None  200 Feb 23 00:15 hosts.allow
-rwx--  1 tundra None  200 Feb 23 00:15 hosts.allow.orig
-rwx--+ 1 tundra None  407 Feb 23 00:15 hosts.deny



These files should really be owned by SYSTEM (or whatever user sshd runs
as).
HTH,
Igor


Ahh - that was the hint I needed.  But here is something very strange:

As installed, hosts.allow is owned by the installing user - in this
case, "tundra" who is also an Administrator on the system.  sshd
properly recognizes the rule found in this file.  HOWEVER, if I edit
the file (to change allow rules), I *have* to chown it to SYSTEM or
ssh access outside localhost fails.  Stranger still is that once
the file is owned by SYSTEM, it cannot be further edited because
I get a "Permission Denied" on it with emacs or vi - strange considering
that I am an Administrator on the system.

P.S. Did I mention that I hate the Windows security model ;)

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/


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



Re: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Christopher Faylor
On Thu, Feb 23, 2006 at 06:13:40PM -, Dave Korn wrote:
>On 23 February 2006 16:20, Peter Rehley wrote:
>
>> Yeah, I saw that change, and I tried yesterdays snapshot but it still
>> hung.  I also did some more googling and found that someone submitted
>> a patch a few years ago.  The patch checked to see if it was inside
>> the ntdll.dll by looking at the handle.
>> http://www.cygwin.com/ml/cygwin-patches/2003-q2/msg4.html
>> 
>> I found this google too.
>> http://blogs.msdn.com/oldnewthing/archive/2004/01/28/63880.aspx
>> 
>> I'm going to try that patch today and see what happens.  Christopher
>> didn't apply it because it was a bandage and didn't really fix the
>> bigger problem.
>
>That all fits right in with your diagnosis of the problem; a deadlock
>of some kind I guess is the only thing that could make
>GetModuleFileName hang.
>
>Have you got a stack backtrace showing the call chain when this problem
>arises?

You'd need to decode the stack backtrace on multiple threads, if this is
really that kind of deadlock.

Btw, FWIW, I am excruciatingly aware of this type of deadlock.  I
suffered from it greatly when I moved more of the fork code into the
"DLLentry" part of cygwin to deal with problems caused by Corinna's
streamliing of mmap.

>We may be able to come up with a substitute for GMFN that would solve
>the problem.

Funny you should mention that.  I was just thinking that I could use
either use the technique that gdb uses to find shared library names or
possibly use the stuff in hookapi.cc.  Of course, *that* would be
subject to races.  So you'd potentially be trading races for deadlocks.

cgf

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



Re: script in cygwin

2006-02-23 Thread Steven O'Brien
On Wed, 22 Feb 2006, Jim Easton wrote:

> Does cygwin have a program called "script".  It is a program
> which records terminal traffic in a file.
>
> If so what would I select in setup to get it?

Fedora Core 4 gets this program from a package called "util-linux",
which I guess is roughly equivalent to the cygwin cygutils package.
Certainly it has some contents in common.

Some of the contents of util-linux are already included in official
cygwin packages, and others are not relevant on a Windows platform. But
it does have a few programs that may be useful, including script.

I have a patch for this package that enables building on cygwin of the
following programs as used in fedora core 4:
arch
chkdupexe
hexdump
line
logger
pg
renice
script
setterm
sln
tailf
ul
whereis

I could possibly find time to package and maintain these, as they are
very stable (ie I don't expect there to be much maintenance), if the
cygwin maintainers think they are worth adding to the distribution.
Would it make sense to add these to cygutils, or to distribute them as a
distinct package (util-linux-cygwin?).

Regards,
Steven






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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



bindresvport(): can it be exported from cygwin1.dll?

2006-02-23 Thread Andrew Schulman
I'm trying to build dante, a SOCKS client and server, for Cygwin.  Right now
build is failing with

.libs/Rbindresvport.o: In function `Rbindresvport':
/usr/local/src/dante-1.1.19/lib/Rbindresvport.c:68: undefined reference to
`_bindresvport'

based on a call to bindresvport().  bindresvport() is normally declared in
netinet/in.h, but in Cygwin it's missing.

I see that bindresvport.c is part of the cygwin source code.  Would it be
possible to have it exported from cygwin1.dll?

Thanks,
Andrew.


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



Re: bindresvport(): can it be exported from cygwin1.dll?

2006-02-23 Thread Corinna Vinschen
On Feb 23 14:29, Andrew Schulman wrote:
> I'm trying to build dante, a SOCKS client and server, for Cygwin.  Right now
> build is failing with
> 
> .libs/Rbindresvport.o: In function `Rbindresvport':
> /usr/local/src/dante-1.1.19/lib/Rbindresvport.c:68: undefined reference to
> `_bindresvport'
> 
> based on a call to bindresvport().  bindresvport() is normally declared in
> netinet/in.h, but in Cygwin it's missing.
> 
> I see that bindresvport.c is part of the cygwin source code.

You have apparently better eyes then I have.  Where did you see that
bindresvport function in Cygwin?

If you're talking about the implementation in newlib/libc/sys/linux/...
then it's unusable for Cygwin.  There's a reason it's in the linux
subdirectory...

>   Would it be
> possible to have it exported from cygwin1.dll?

No.  We need a implementation which uses the limited functionality
of WinSock.  It's not that hard, but it's definitely not going to be 
in 1.5.20.  http://cygwin.com/acronyms/#SHTDI


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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bindresvport(): can it be exported from cygwin1.dll?

2006-02-23 Thread Andrew Schulman
> > I see that bindresvport.c is part of the cygwin source code.
> 
> You have apparently better eyes then I have.  Where did you see that
> bindresvport function in Cygwin?
> 
> If you're talking about the implementation in newlib/libc/sys/linux/...
> then it's unusable for Cygwin.  There's a reason it's in the linux
> subdirectory...

Ah... ok.
 
> >   Would it be
> > possible to have it exported from cygwin1.dll?
> 
> No.  We need a implementation which uses the limited functionality
> of WinSock.  It's not that hard, but it's definitely not going to be 
> in 1.5.20.  http://cygwin.com/acronyms/#SHTDI

OK, I'll have a look at it.  Any ready pointers would be welcome.
A.


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



RE: Shells hang during script execution

2006-02-23 Thread Ernie Coskrey
There are two hang conditions that we've identified and have developed fixes 
for.  This is a description of the first of the two along with a patch; I'll 
follow up with a description and patch for the second.


If a signal can't be handled because it is blocked, it gets queued (on 
the process's "sigq") to be handled later. Now, whenever the process's 
signal mask changes (e.g., the signal in question gets unblocked), an 
attempt is made to handle all the queued signals (i.e., a signal flush 
occurs). However, if the queueing of the blocked signal happens right 
after the signal mask change, then we miss the signal. This causes the 
process to hang. The signal is on the queue, but the process doesn't 
know to check for it. The process just hangs until another signal gets 
sent to it.

The workaround is basically to force the signal queue to be rescanned 
(flushed) whenever we add something to it, so a queued signal is never 
missed.


--- sigproc.cc.ORIG 2006-02-16 14:02:42.81432 -0500
+++ sigproc.cc  2006-02-22 10:55:20.327209900 -0500
@@ -1130,6 +1130,7 @@
case __SIGNOHOLD:
case __SIGFLUSH:
case __SIGFLUSHFAST:
+flush:
  sigq.reset ();
  while ((q = sigq.next ()))
{
@@ -1150,6 +1151,8 @@
  else
{
  int sig = pack.si.si_signo;
+ if (sig == SIGCHLD)
+   clearwait = true;
  // FIXME: REALLY not right when taking threads into consideration.
  // We need a per-thread queue since each thread can have its own
  // list of blocked signals.  CGF 2005-08-24
@@ -1165,10 +1168,11 @@
system_printf ("Failed to arm signal %d from pid %d", 
pack.sig, pack.pid);
 #endif
  sigq.add (pack);  // FIXME: Shouldn't add this in !sh 
condition
+ goto flush; // signal may have become unblocked while
+ // we were processing it (before we added
+ // it to the sigq) -- flush sigq to be sure   
}
}
- if (sig == SIGCHLD)
-   clearwait = true;
}
  break;
}

> -Original Message-
> From: Ernie Coskrey 
> Sent: Friday, February 10, 2006 1:31 PM
> To: Ernie Coskrey; 'cygwin@cygwin.com'
> Subject: RE: Shells hang during script execution
> 
> 
> We've been able to narrow this down some more.  The shell 
> gets hung in sigsuspend(), waiting for SIGCHLD.  We've 
> verified that the process that's executed as part of the 
> command substitution does complete, and returns EOF, and the 
> shell (we're testing with pdksh) goes into sigsuspend and 
> never comes out.
> 
> If we execute "kill -CHLD ", the shell resumes its processing.
> 
> I'm going to continue to look into this - if anybody has any 
> insight into how SIGCHLD might be getting lost, please let me 
> know.  Thanks!
> 
> Ernie Coskrey
> 
> 
> -Original Message-
> From: Ernie Coskrey
> Sent: Wed 2/1/2006 3:27 PM
> To: 'cygwin@cygwin.com'
> Subject: Shells hang during script execution
>  
> I've run into problems with shell scripts hanging during 
> execution for no apparent reason.  I've narrowed down my test 
> case to two simple shell scripts.  To reproduce the problem, 
> I ran three instances of the "top.sh" script included here, 
> and after a bit (30 minutes to an hour or so) I'll see that 
> one or two of the shells have just stopped in their tracks.
> 
> Here are the scripts:
> 
> 
> dir=$1
> loops=$2
> 
> for loop in `seq 1 $loops`
> do
> x=`./subtest.sh $dir`
> date
> echo loop $loop
> done
> 
> 
> for j in `ls $1`
> do
> if [ `echo $j | egrep -i "A|B" | wc -l` -ne 0 ]
> then
> echo $j
> fi
> done
> echo subtest1 done >&2
> 
> 
> 
> I then ran three bash shells.  The commands I ran, 
> simultaneously, were:
> 
> 1) ./top.sh C:/ 600
> 2) ./top.sh C:/windows 300
> 3) ./top.sh C:/windows/system32 100
> 
> These ran for about 45 minutes, and then I noticed that two 
> of them (1 and 2 above) had stopped printing any output.  The 
> third was still moving along.  The third completed, but the 
> first two never progressed any further.  I used Process 
> Explorer from ntinternals.com, and saw that the two hung 
> shells were not using any CPU, and did not have any child 
> processes created; they were simply stopped.  If a process 
> dump would be helpful, I can generate one with Windbg or gdb.
> 
> -
> Ernie Coskrey   SteelEye Technology, Inc.803-461-3875
> 
> 

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



RE: Shells hang during script execution

2006-02-23 Thread Ernie Coskrey
Here's a description of a second hang condition we were encountering, along 
with a patch for it.


The application (pdksh in this case) does a read on a pipe, which eventually 
calls pipe.cc fhandler_pipe::read in Thread 1.  This creates a new cygthread 
with "read_pipe()" as the function.  Then it calls th->detach(read_state).

When the hang occurs, the new thread gets terminated early, before 
cygthread::stub() can call "callfunc()".  You see the error message "erroneous 
thread activation".  I'm not sure what's causing the thread to fail activation, 
but the result is, the read_state semaphore never gets signalled.

So Thread 1 goes into cygthread::detach(read_state).  The first thing that 
happens is signal_arrived is set.  The old code would then set n=1, but leave 
howlong=INFINITE.  My change sets howlong=100 in this case.  Then, when TIMEOUT 
occurs, we look to see if __name is not NULL.  Since the thread was terminated, 
its name is now NULL, so it doesn't decrement i, and eventually you break out 
of the loop and clean up as expected.



--- cygthread.cc.ORIG   2006-02-22 10:57:42.123931300 -0500
+++ cygthread.cc2006-02-23 15:50:23.894461500 -0500
@@ -374,10 +374,12 @@
break;
  case WAIT_OBJECT_0 + 1:
n = 1;
-   if (i--)
- howlong = 50;
+   i--;
+   howlong = 100;
break;
  case WAIT_TIMEOUT:
+   if(!i && __name)
+   i--;
break;
  default:
if (!exiting)

> -Original Message-
> From: Ernie Coskrey 
> Sent: Friday, February 10, 2006 1:31 PM
> To: Ernie Coskrey; 'cygwin@cygwin.com'
> Subject: RE: Shells hang during script execution
> 
> 
> We've been able to narrow this down some more.  The shell 
> gets hung in sigsuspend(), waiting for SIGCHLD.  We've 
> verified that the process that's executed as part of the 
> command substitution does complete, and returns EOF, and the 
> shell (we're testing with pdksh) goes into sigsuspend and 
> never comes out.
> 
> If we execute "kill -CHLD ", the shell resumes its processing.
> 
> I'm going to continue to look into this - if anybody has any 
> insight into how SIGCHLD might be getting lost, please let me 
> know.  Thanks!
> 
> Ernie Coskrey
> 
> 
> -Original Message-
> From: Ernie Coskrey
> Sent: Wed 2/1/2006 3:27 PM
> To: 'cygwin@cygwin.com'
> Subject: Shells hang during script execution
>  
> I've run into problems with shell scripts hanging during 
> execution for no apparent reason.  I've narrowed down my test 
> case to two simple shell scripts.  To reproduce the problem, 
> I ran three instances of the "top.sh" script included here, 
> and after a bit (30 minutes to an hour or so) I'll see that 
> one or two of the shells have just stopped in their tracks.
> 
> Here are the scripts:
> 
> 
> dir=$1
> loops=$2
> 
> for loop in `seq 1 $loops`
> do
> x=`./subtest.sh $dir`
> date
> echo loop $loop
> done
> 
> 
> for j in `ls $1`
> do
> if [ `echo $j | egrep -i "A|B" | wc -l` -ne 0 ]
> then
> echo $j
> fi
> done
> echo subtest1 done >&2
> 
> 
> 
> I then ran three bash shells.  The commands I ran, 
> simultaneously, were:
> 
> 1) ./top.sh C:/ 600
> 2) ./top.sh C:/windows 300
> 3) ./top.sh C:/windows/system32 100
> 
> These ran for about 45 minutes, and then I noticed that two 
> of them (1 and 2 above) had stopped printing any output.  The 
> third was still moving along.  The third completed, but the 
> first two never progressed any further.  I used Process 
> Explorer from ntinternals.com, and saw that the two hung 
> shells were not using any CPU, and did not have any child 
> processes created; they were simply stopped.  If a process 
> dump would be helpful, I can generate one with Windbg or gdb.
> 
> 
> -
> Ernie Coskrey   SteelEye Technology, Inc.803-461-3875
> 
> 

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



Re: Shells hang during script execution

2006-02-23 Thread Christopher Faylor
On Thu, Feb 23, 2006 at 04:33:45PM -0500, Ernie Coskrey wrote:
>There are two hang conditions that we've identified and have developed fixes 
>for.  This is a description of the first of the two along with a patch; I'll 
>follow up with a description and patch for the second.
>
>
>If a signal can't be handled because it is blocked, it gets queued (on 
>the process's "sigq") to be handled later. Now, whenever the process's 
>signal mask changes (e.g., the signal in question gets unblocked), an 
>attempt is made to handle all the queued signals (i.e., a signal flush 
>occurs). However, if the queueing of the blocked signal happens right 
>after the signal mask change, then we miss the signal. This causes the 
>process to hang. The signal is on the queue, but the process doesn't 
>know to check for it. The process just hangs until another signal gets 
>sent to it.
>
>The workaround is basically to force the signal queue to be rescanned 
>(flushed) whenever we add something to it, so a queued signal is never 
>missed.

Thanks for the analysis and the patch.

But, a backwards goto into a case?  Yuck.  I'll see if I can come up
with something better.

cgf

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



Re: Shells hang during script execution

2006-02-23 Thread Christopher Faylor
On Thu, Feb 23, 2006 at 04:40:33PM -0500, Christopher Faylor wrote:
>On Thu, Feb 23, 2006 at 04:33:45PM -0500, Ernie Coskrey wrote:
>>There are two hang conditions that we've identified and have developed fixes 
>>for.  This is a description of the first of the two along with a patch; I'll 
>>follow up with a description and patch for the second.
>>
>>
>>If a signal can't be handled because it is blocked, it gets queued (on 
>>the process's "sigq") to be handled later. Now, whenever the process's 
>>signal mask changes (e.g., the signal in question gets unblocked), an 
>>attempt is made to handle all the queued signals (i.e., a signal flush 
>>occurs). However, if the queueing of the blocked signal happens right 
>>after the signal mask change, then we miss the signal. This causes the 
>>process to hang. The signal is on the queue, but the process doesn't 
>>know to check for it. The process just hangs until another signal gets 
>>sent to it.
>>
>>The workaround is basically to force the signal queue to be rescanned 
>>(flushed) whenever we add something to it, so a queued signal is never 
>>missed.
>
>Thanks for the analysis and the patch.
>
>But, a backwards goto into a case?  Yuck.  I'll see if I can come up
>with something better.

Actually, I spoke too soon.  I don't understand your analysis.

You make this statement:

>>However, if the queueing of the blocked signal happens right after the
>>signal mask change, then we miss the signal.

but I don't understand how you came to this conclusion.  If the signal mask
changes, then the queue should be flushed -- that's what the __SIGFLUSH is
for.  So, even if something is added to the queue while the mask is changing,
the function which changes the mask should eventually call send_sig to cause
the wait_sig thread to run the queue.

So, this patch would seem to be a band-aid over some other problem.

cgf

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



Re: Shells hang during script execution

2006-02-23 Thread Christopher Faylor
On Thu, Feb 23, 2006 at 04:35:12PM -0500, Ernie Coskrey wrote:
>Here's a description of a second hang condition we were encountering, along 
>with a patch for it.
>
>
>The application (pdksh in this case) does a read on a pipe, which eventually 
>calls pipe.cc fhandler_pipe::read in Thread 1.  This creates a new cygthread 
>with "read_pipe()" as the function.  Then it calls th->detach(read_state).
>
>When the hang occurs, the new thread gets terminated early, before
>cygthread::stub() can call "callfunc()".  You see the error message
>"erroneous thread activation".  I'm not sure what's causing the thread
>to fail activation, but the result is, the read_state semaphore never
>gets signalled.

Sorry but this is another band-aid around a problem.  The real problem
is that the code shouldn't get into the state that you are describing.
That's why cygwin prints an error message - it is a serious problem.
Making the code deal gracefully with a problem like this isn't going
to solve the underlying issue.

If you can figure out what's causing the erroneous thread activation
then that will be the real culprit.

cgf

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



Re: script in cygwin

2006-02-23 Thread Yaakov S (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Igor Peshansky wrote:
> IIRC, "script" is available on cygwin-ports[*], but note that cygwin-ports
> has its own support list.  Yaakov did say that he'd be ok with someone
> else proposing to maintain it -- are you willing?
>   Igor
> [*] See, e.g., 

cgf previously vetoed an ITP of script that was "non-standard":

http://www.cygwin.com/ml/cygwin-apps/2004-11/msg00038.html
http://www.cygwin.com/ml/cygwin-apps/2004-11/msg00044.html
http://www.cygwin.com/ml/cygwin-apps/2004-11/msg00049.html

My script package is based on:

http://www.cygwin.com/ml/cygwin/2002-09/msg01371.html

Which appears to be a (old) port of the util-linux script, but the code
is quite different from the script.c in the current util-linux-2.12r.  I
have tweaked the util-linux script to compile, but it needs further testing.

Actually, after exploring util-linux, it appears that a number of
utilities could be packaged from there, but some of them are duplicated
in cygutils.  Maybe the cygutils maintainer (Chuck?) could step forward
and help explain the similarities and differences between cygutils and
util-linux.


Yaakov

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/jJupiWmPGlmQSMRAvNOAJ9ET84BlX14vW10q2iSagmADeT33gCdHjpz
3W6vOowu9icX9n7XZtqtw1A=
=xLap
-END PGP SIGNATURE-

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



Question about rxvt

2006-02-23 Thread Maurício

 Hi,

  I've been using rxvt, as recommended by chere man page. I have a 
problem: in some non-cygwin console programs (ghci, the Haskell 
interpreter, and others) the up arrow key doesn't work as expected. 
Instead of repeating the last line, the cursor goes up. Why does that 
happens? Is there something I could read to understand that better?


  Thanks,
  Maurício


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



Re: script in cygwin

2006-02-23 Thread Yaakov S (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steven O'Brien wrote:
> I have a patch for this package that enables building on cygwin of the
> following programs as used in fedora core 4:
>   arch
>   chkdupexe
>   hexdump
>   line
>   logger
>   pg
>   renice
>   script
>   setterm
>   sln
>   tailf
>   ul
>   whereis

I got a few more to compile, and with gettext and ncurses support, but
I'm not sure how many of them actually work, and some are already in
cygutils:

getopt
misc-utils: cal ddate kill logger look mcookie namei rename write
sys-utils: arch flock ipcrm rdev renice setsid sln
text-utils: col colrm column hexdump line pg rev tailf ul

I presume the disk-utils programs aren't that portable?


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/jtNpiWmPGlmQSMRApS4AJ4pw2XKLbLwFTsQ/UExaRUr06j9bwCfV1Q0
XakL0NjSgwynOaUl70932QY=
=ed6O
-END PGP SIGNATURE-

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



OpenGL issues

2006-02-23 Thread CSEngineer

hi,
I am having difficulties with running some opengl sample programs on cygwin. 
I have installed the opengl package distributed with cygwin. 


#
$ gcc -g -o abgr.c -lopengl32 -lglut32 -lglu32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: 
undefined r

eference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
#
$ bash --version
GNU bash, version 3.00.16(14)-release (i686-pc-cygwin)
Copyright (C) 2004 Free Software Foundation, Inc.
#
OS Win NT 

regards, 


Sam

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



Re: OpenGL issues

2006-02-23 Thread René Berber
CSEngineer wrote:

> I am having difficulties with running some opengl sample programs on
> cygwin. I have installed the opengl package distributed with cygwin.
> #
> $ gcc -g -o abgr.c -lopengl32 -lglut32 -lglu32
---^
You are having difficulties because you don't know how to compile a simple 
program.

Does this look better to you?

gcc -g -o abgr abgr.c -lopengl32 -lglut32 -lglu32
-- 
René Berber


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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Igor Peshansky
On Thu, 23 Feb 2006, Tim Daneliuk wrote:

> Igor Peshansky wrote:
>
> > On Thu, 23 Feb 2006, Tim Daneliuk wrote:
> >
> 
>
> > Same reason -- Cygwin isn't really ACL-aware.  You can also restore
> > the original ACLs by running something like "getfacl hosts.allow |
> > setfacl -f - hosts.allow.orig" (assuming the owner stays the same).
> >
> > > -rwx--+ 1 tundra None  200 Feb 23 00:15 hosts.allow
> > > -rwx--  1 tundra None  200 Feb 23 00:15 hosts.allow.orig
> > > -rwx--+ 1 tundra None  407 Feb 23 00:15 hosts.deny
> >
> > These files should really be owned by SYSTEM (or whatever user sshd
> > runs as).
>
> Ahh - that was the hint I needed.  But here is something very strange:
>
> As installed, hosts.allow is owned by the installing user - in this
> case, "tundra" who is also an Administrator on the system.

As installed by what?  I couldn't find anything that generates that file.

> sshd properly recognizes the rule found in this file.

That's because it simply checks that a) permissions are no more than 700,
and b) that the file is readable.  Both are satisfied, even though the
owner is wrong.

> HOWEVER, if I edit the file (to change allow rules), I *have* to chown
> it to SYSTEM or ssh access outside localhost fails.

Thank your editor which makes a copy.  Once you make a copy, Cygwin only
copies the POSIX permissions (which are 700), so that the file is no
longer readable by SYSTEM.  You can use the "getfacl | setfacl" trick to
get the ACLs back.

> Stranger still is that once the file is owned by SYSTEM, it cannot be
> further edited because I get a "Permission Denied" on it with emacs or
> vi - strange considering that I am an Administrator on the system.

Why is this strange?  Normally you are not supposed to see files that
belong to other users (and SYSTEM *is* another user).  You can grab the
ownership of the file and edit it, or make it world readable/writable and
edit it.  Just don't forget to change it back to the way it was, or sshd
will complain.

> P.S. Did I mention that I hate the Windows security model ;)

Most of the above is not really due to Windows -- it would happen on any
system that has ACLs.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: sshd, /etc/hosts.allow, & Alternate Access Methods

2006-02-23 Thread Tim Daneliuk

Igor Peshansky wrote:


On Thu, 23 Feb 2006, Tim Daneliuk wrote:



Igor Peshansky wrote:



On Thu, 23 Feb 2006, Tim Daneliuk wrote:






Same reason -- Cygwin isn't really ACL-aware.  You can also restore
the original ACLs by running something like "getfacl hosts.allow |
setfacl -f - hosts.allow.orig" (assuming the owner stays the same).



-rwx--+ 1 tundra None  200 Feb 23 00:15 hosts.allow
-rwx--  1 tundra None  200 Feb 23 00:15 hosts.allow.orig
-rwx--+ 1 tundra None  407 Feb 23 00:15 hosts.deny


These files should really be owned by SYSTEM (or whatever user sshd
runs as).


Ahh - that was the hint I needed.  But here is something very strange:

As installed, hosts.allow is owned by the installing user - in this
case, "tundra" who is also an Administrator on the system.



As installed by what?  I couldn't find anything that generates that file.




I'm not sure.  I did a *complete* install of cygwin.  I dunno if it was
installed then, or when I ran ssh-host-config ...


sshd properly recognizes the rule found in this file.



That's because it simply checks that a) permissions are no more than 700,
and b) that the file is readable.  Both are satisfied, even though the
owner is wrong.



HOWEVER, if I edit the file (to change allow rules), I *have* to chown
it to SYSTEM or ssh access outside localhost fails.



Thank your editor which makes a copy.  Once you make a copy, Cygwin only
copies the POSIX permissions (which are 700), so that the file is no
longer readable by SYSTEM.  You can use the "getfacl | setfacl" trick to
get the ACLs back.



Ah, OK that explains it...


Stranger still is that once the file is owned by SYSTEM, it cannot be
further edited because I get a "Permission Denied" on it with emacs or
vi - strange considering that I am an Administrator on the system.



Why is this strange?  Normally you are not supposed to see files that
belong to other users (and SYSTEM *is* another user).  You can grab the
ownership of the file and edit it, or make it world readable/writable and
edit it.  Just don't forget to change it back to the way it was, or sshd
will complain.



P.S. Did I mention that I hate the Windows security model ;)



Most of the above is not really due to Windows -- it would happen on any
system that has ACLs.
Igor


Point taken.

(And thanks for your help ;)
--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/


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



Re: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Peter Rehley


On Feb 23, 2006, at 10:13 AM, Dave Korn wrote:


On 23 February 2006 16:20, Peter Rehley wrote:


Yeah, I saw that change, and I tried yesterdays snapshot but it still
hung.  I also did some more googling and found that someone submitted
a patch a few years ago.  The patch checked to see if it was inside
the ntdll.dll by looking at the handle.
http://www.cygwin.com/ml/cygwin-patches/2003-q2/msg4.html

I found this google too.
http://blogs.msdn.com/oldnewthing/archive/2004/01/28/63880.aspx

I'm going to try that patch today and see what happens.  Christopher
didn't apply it because it was a bandage and didn't really fix the
bigger problem.


I tried putting the patch in place, and it stopped hanging at the  
place I reported.  I had print statements to verify that it went  
through the section.  However, the program still hung at some point.   
I tracked down a couple of other GMFN calls that used non-null  
handles and tried using the technique that the patch had.


The one at dll_list::alloc caused nothing to run..died with no error  
message.  The second at format_process_maps seemed to work better in  
that the script when running by it self didn't hang.  But when I ran  
another configure script in a different window it did hang pretty  
quickly.  I'm going to look into this more.




  That all fits right in with your diagnosis of the problem; a  
deadlock of
some kind I guess is the only thing that could make  
GetModuleFileName hang.


  Have you got a stack backtrace showing the call chain when this  
problem

arises?

Here is all of the bt's for all of the threads in the program.  If  
you need more information let me know.  But I probably won't be able  
to get it until next week.  My company is moving and things have to  
be turned off for a bit.


[EMAIL PROTECTED] ~/tmp/debug/build/i686-pc-cygwin/winsup/cygwin
$ gdb /usr/bin/sh.exe -x try.cmd
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.

This GDB was configured as "i686-pc-cygwin"...
add symbol table from file "cygwin1.dbg" at
warning: no loadable sections found in added symbol-file /home/ 
Administrator/tmp

/debug/build/i686-pc-cygwin/winsup/cygwin/cygwin1.dbg
Breakpoint 1 at 0x610164f7: file ../../../../cygwin- 
snapshot-20060222-1/winsup/cygwin/exceptions.cc, line 312.

(gdb) attach 1056
Attaching to program `/usr/bin/sh.exe', process 1056
[Switching to thread 1056.0x3ac]
(gdb) info threads
* 5 thread 1056.0x3ac  0x77fa144c in ntdll!DbgUiConnectToDbg ()
   from /cygdrive/c/WINNT/system32/NTDLL.DLL
  4 thread 1056.0x53c  0x77f94091 in ntdll!ZwWaitForSingleObject ()
   from /cygdrive/c/WINNT/system32/NTDLL.DLL
  3 thread 1056.0x538  0x77f94091 in ntdll!ZwWaitForSingleObject ()
   from /cygdrive/c/WINNT/system32/NTDLL.DLL
  2 thread 1056.0x4fc  0x77f95aae in ntdll!ZwQueryVirtualMemory ()
   from /cygdrive/c/WINNT/system32/NTDLL.DLL
  1 thread 1056.0x3ec  0x610011ad in gotit ()
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/ 
autoload.cc:203

Current language:  auto; currently c++
(gdb) thread 1
[Switching to thread 1 (thread 1056.0x3ec)]#0  0x610011ad in gotit ()
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/ 
autoload.cc:203

203 std_dll_init ()
(gdb) bt
#0  0x610011ad in gotit ()
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/ 
autoload.cc:203

#1  0x6107b540 in fill_rusage (r=0x22e6e0, h=0x3c4)
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/ 
resource.cc:79

#2  0x6106e923 in pinfo::exit (this=0x22e648, n=0)
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/pinfo.cc: 
156

#3  0x610048e7 in do_exit (status=0)
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/dcrt0.cc: 
1118

#4  0x61004cf2 in _exit (n=0)
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/dcrt0.cc: 
1146

#5  0x610d in exit (code=0)
at ../../../../../cygwin-snapshot-20060222-1/newlib/libc/stdlib/ 
exit.c:65

#6  0x61004cc1 in cygwin_exit (n=0)
at ../../../../cygwin-snapshot-20060222-1/winsup/cygwin/dcrt0.cc: 
1140
#7  0x004104d8 in execute_command_internal (command=0x555f08,  
asynchronous=0,

pipe_in=-1, pipe_out=-1, fds_to_close=0x556240)
at /home/Administrator/tmp/bash/SOURCES/tmp/bash-3.0/ 
execute_cmd.c:3693

#8  0x00412530 in execute_command (command=0x555f08)
at /home/Administrator/tmp/bash/SOURCES/tmp/bash-3.0/ 
execute_cmd.c:347
#9  0x00410345 in execute_command_internal (command=0x556080,  
asynchronous=0,

pipe_in=-1, pipe_out=-1, fds_to_close=0x556280)
at /home/Administrator/tmp/bash/SOURCES/tmp/bash-3.0/ 
execute_cmd.c:2370

#10 0x00412530 in execute_command (command=0x556080)
at /home/Administrator/tmp/bash/SOUR

Re: Cygwin Bash shell on Windows 2003 Server not working

2006-02-23 Thread Nitin Agarwal
Eric,

I tried copyinh the bash as sh.exe by running your command but it did not work.
And when I run .\bash.exe -livx I get the same error in stack dump -

Exception: STATUS_ACCESS_VIOLATION at eip=00437B40
eax=4000 ebx=0004 ecx=610FCE28 edx= esi=0022EED9 edi=61102C1C
ebp=0022EEA8 esp=0022EC0C program=C:\cygwin\bin\bash.exe, pid 21516, thread main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
0022EEA8  00437B40  (0002, 004B01C0, 004B0090, 61010EAC)
0022EF78  61005BC8  (0022EFD0, , 0022EFB3, 00246E40)
0022FF88  61005EB3  (, , , )
End of stack trace

Is there a way reinstall just BASH.exe and run the post install script?

Thanks.

> The postinstall script for the bash package effectively does
> 'cp /bin/bash /bin/sh' from inside a bash shell, so you could
> manually do that (or the cmd.com equivalent
> 'copy c:\cygwin\bin\bash.exe c:\cygwin\bin\sh.exe').  But
> the bigger question is WHY the postinstall script is failing,
> and the realization that the postinstall script relies on bash
> working.  As has been previously suggested on this list,
> if you are having problems starting bash, a good thing to
> try is opening a cmd.com window in c:\cygwin\bin (or
> wherever you installed), then running ".\bash.exe -livx"
> to start an interactive login shell with full debugging
> statements, and see how far you get or what error
> message is printed.
>
> > Or is there any other way I can install cygwin?
>
> setup.exe is the only recommended method from this mailing
> list.
>
>


On 2/23/06, Eric Blake <[EMAIL PROTECTED]> wrote:
> Ugh - topposting reformatted: http://cygwin.com/acronyms/#TOFU
>
> > On 2/23/06, Eric Blake  wrote:
>     ^
>
> Ugh - raw email: http://cygwin.com/acronyms/#PCYMTNQREAIYR
>
> > >
> > > Try rerunning setup.exe to reinstall bash:
> > >
> > > > Not Found: sh
> > >
> > > Until that line of cygcheck -svf is resolved, the bash postinstall script
> > > has not correctly run, and cygwin will be unusable.  If you are getting
> > > errors while trying to install bash and rerun the postinstall script, then
> > > there may be some permissions problems to research.  But hopefully the
> > > reinstall of bash will solve your problems.
> > >
>
> > Eric,
> >
> > Thanks for the reply.
> >
> > I have run the cygwin install 3-4 times after removing everything. But
> > I still get the same error. And the installation package downloaded
> > from cygwin website works fine on one of my Windows XP machine.
> >
> > You have pointed out an error - > > Not Found: sh
> >
> > Can I copy this or install this from some other installation package?
>
> The postinstall script for the bash package effectively does
> 'cp /bin/bash /bin/sh' from inside a bash shell, so you could
> manually do that (or the cmd.com equivalent
> 'copy c:\cygwin\bin\bash.exe c:\cygwin\bin\sh.exe').  But
> the bigger question is WHY the postinstall script is failing,
> and the realization that the postinstall script relies on bash
> working.  As has been previously suggested on this list,
> if you are having problems starting bash, a good thing to
> try is opening a cmd.com window in c:\cygwin\bin (or
> wherever you installed), then running ".\bash.exe -livx"
> to start an interactive login shell with full debugging
> statements, and see how far you get or what error
> message is printed.
>
> > Or is there any other way I can install cygwin?
>
> setup.exe is the only recommended method from this mailing
> list.
>
> >
> > Thanks.
> >
> > Nitin
> >
>
> --
> Eric Blake
>

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



Re: cygwin scp -r fails

2006-02-23 Thread Greg Tokarski
Corinna Vinschen  cygwin.com> writes:
> On Feb 22 23:04, Greg Tokarski wrote:
> > I just installed the dev. snapshot as suggested by Corinna
> > > Are you running Cygwin 1.5.19-4?  Anyway, try the latest developer's
> > > snapshot from http://cygwin.com/snapshots/  It probably solves your
> > > problem.
> > and nothing seems to have changed. And yes, I was on the 1.5.19-4.
> Sure you installed correctly?  I can not reproduce this.
> Corinna

Hi.

Yes, I am pretty sure I have done it right - just unzipped into the cygwin 
directory replacing components of etc and usr if I remeber right
How can I check if it got applied? I mean aside from maybe the timestamps.

Anyhow, you are not the only one who cannot replicate it; so I think it really 
has something to do with windows :(
I will install on another system and test; but cannot till next week.
The guys at the "bug central" emailed me back on my bug submit, and they cannot 
replicate it either.

There's not many cases of this happening, so I assume it's something weird

Oh well... I got a workaround that allows me to do what I need, and if needed I 
can just wait and see what happens in the next release.

Thx for trying to help though.

GT





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



Re: Hanging at GetModuleFileName in inside_kernel function

2006-02-23 Thread Christopher Faylor
On Thu, Feb 23, 2006 at 03:43:25PM -0800, Peter Rehley wrote:
>On Feb 23, 2006, at 10:13 AM, Dave Korn wrote:
>
>>On 23 February 2006 16:20, Peter Rehley wrote:
>>
>>>Yeah, I saw that change, and I tried yesterdays snapshot but it still
>>>hung.  I also did some more googling and found that someone submitted
>>>a patch a few years ago.  The patch checked to see if it was inside
>>>the ntdll.dll by looking at the handle.
>>>http://www.cygwin.com/ml/cygwin-patches/2003-q2/msg4.html
>>>
>>>I found this google too.
>>>http://blogs.msdn.com/oldnewthing/archive/2004/01/28/63880.aspx
>>>
>>>I'm going to try that patch today and see what happens.  Christopher
>>>didn't apply it because it was a bandage and didn't really fix the
>>>bigger problem.
>
>I tried putting the patch in place, and it stopped hanging at the  
>place I reported.  I had print statements to verify that it went  
>through the section.  However, the program still hung at some point.   
>I tracked down a couple of other GMFN calls that used non-null  
>handles and tried using the technique that the patch had.

Does the latest snapshot behave any differently?  It has a temporary
patch which stops cygwin from suspending (for long) when the current IP
is in the cygwin DLL itself.

cgf

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



Perl NET::SERVER module acts strangly in cygwin

2006-02-23 Thread Bruce Dobrin
HI All,
Perhaps this is the wrong list for this,  but as it is Cygwin
specific...
Anyone have any experience with the perl NET::SERVER module?
I have been re-writing some of my perl servers using the
NET::SERVER::PREFORK  (v.90)module.  All is well on Linux but in Cygwin
(1.5.18) everything works fine until I try to take the data coming in
via the socket ($_)  and fork off a "system" or "exec" using that data.
When I do this,  the client connection is abruptly closed without
successfully performing the "system" call.  If I define the variable
internally it all works fine. 

Example:
Sub make_dirs (
 my $destinU = $_ ;
 chomp;

  $destinU =~ tr#\\#/#;
  $destinU =~ tr/://d;

  print "unix style destination is $destinU \r\n";
 
  if (! -d "$destinU" ){
print   "system \"mkdir -p ${destinU}\"\r\n";
   system "mkdir -p /cygdrive/c/${destinU}" ;

Result:
unix style destination is c/temp/newdir
mkdir -p /cygdrive/c/temp/newdir

#And nothing happens and client session crashes.

If I set the above second line to : 
my $destinU = c:\temp\newdir ;

I get :
unix style destination is c/temp/newdir
mkdir -p /cygdrive/c/temp/newdir

 the directory is created and the client session remains open and
stable.

If I run the first example on Linux (centos4) All works as it's suppose
to and I get weird /cygdrive/c/temp directorys ;)

I tried running the above example in a script using the SOCKET module,
and the above worked as expected .

I've been staring at strace logs,  but I'm not getting anywhere...

Any help or suggestions would be appreciated
Bruce D.



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



Free SFTP server for Windows?

2006-02-23 Thread Angel Tsankov
Can someone recommend a free SFTP server that has been ported to 
Windows? 



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