Re: bash exits when test or [ ] is used in Windows Server 2008

2010-06-06 Thread Larry Hall (Cygwin)

On 6/6/2010 9:50 AM, Dick wrote:

I've found the problem (but no solution yet), this problem is caused by Xen
(google for: xen cygwin).
It might be a good idea to add it to the FAQ.


There have been some reports in the past about xen causing problems for
Cygwin but they haven't risen to the level of "frequent" (as in FAQ ;-) ).
I'm not sure why this is an issue with xen.  It's definitely something to
report to them if they aren't aware of the issue.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-06-06 Thread Dick
I've found the problem (but no solution yet), this problem is caused by Xen 
(google for: xen cygwin).
It might be a good idea to add it to the FAQ.


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-21 Thread Jayavel

Dear Corinna,

I am using the Cygwin 1.5.19 in Windows XP for a long time without any
issue. Rightnow i am porting the build environvent to Windows Server 2003,
but i am getting the Cygwin Issue continuously.

I have stopped the DEP and Terminal Services in Windows Server 2003 and
tried the build which is using the Cygwin, but still getting the same error.

Below is the error message:

Exception: STATUS_ACCESS_VIOLATION at eip=6101D909
eax=0001 ebx=616E018C ecx=611100F4 edx= esi=0001
edi=000F
ebp=0023E2D8 esp=0023E2C0 program=c:\cygwin\bin\make.exe, pid 2312, thread
main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
0023E2D8  6101D909  (616E018C, 000F, 0001, 0001)
0023E318  6109534F  (000F, 0040985F, 616E388C, 01B7)
0023E3A8  610882AF  (0A044320, 0023E3E0, 00409B71, 61093882)
0023E3C8  00409C7C  (0A044320, 0001, 0023E3E0, 0042458C)
0023E418  00409E91  (0023E48C, 0023E488, , 610562D5)
0023E4B8  004053F7  (, 0A072540, 00A9, 0023E570)
0023E5B8  00414F43  (0023E5F0, 0001, 0A045FE8, 0002)
0023E628  00414591  (616E388C, 0001, 00414112, 0002)
0023E668  00414262  (0A044418, , 0023EF48, )
0023F070  00410EEA  (0005, 616E3844, 0A0400A8, 0023F0C8)
0023F0B0  61005ED4  (0023F0C8, 7C82E01E, 0023F0EC, )
0023FF90  610060EB  (, , , )
End of stack trace

Kindly guide me regarding this issue.

Thanks in advance!

Thx
Jay

Corinna Vinschen-2 wrote:
> 
> On Mar 12 13:00, Dick wrote:
>> Hello all,
>> 
>> I've just installed cygwin in Windows Server 2008, I've only selected
>> rpm-build and libintl-2 as additional packages. During install there are
>> no error messages.
>> 
>> Then when I start cygwin my home directory isn't made and no profiles
>> are created. And worse, when I try to start:
>> 
>> bash-3.2$ test -e
>> 
>> cygwin quits.
>> 
>> bash-3.2$ [ ]
>> 
>> does the same.
>> 
>> What could be wrong? I've tried reinstalling cygwin a few times.
> 
> Is the 2K8 server running Terminal Services?  If so, you could stumble
> over a bug in the TS application compatibility layer when running
> applications which don't have the TS awareness flag set in their PE/COFF
> header.  I reported that bug, but the frontlevel support refused to
> follow up on this bug.
> 
> What you can do is, switch off DEP for all applications and reboot.  Now
> you should be able to run all Cygwin applications.  Either keep it that
> way or run the peflagsall script with the "-t 1" option, reset the DEP
> setting and reboot again.
> 
> Occasionally after updating Cygwin you might have to run peflagsall
> again.  This is supposed to get better over time, the more Cygwin
> packages will have the TS-awareness flag from the start, now that gcc-4
> sets the flag automatically.
> 
> 
> Corinna
> 
> -- 
> Corinna Vinschen  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader  cygwin AT cygwin DOT com
> Red Hat
> 
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/bash-exits-when-test-or-is-used-in-Windows-Server-2008-tp27876439p27982848.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-19 Thread Dick
I can't reproduce this issue on a fresh install of Windows 2008 in a virtual 
machine using terminal server, I supppose it should just work but it doesn't.

When I start test or [ ] a stackdump is created with the following information:
Exception: STATUS_ACCESS_VIOLATION at eip=775D9832

Please note everything seems to work except [ ] and test in bash (the internal 
version! not /usr/bin/[ or /usr/bin/test)

I've also disable DEP for applications which doesn't help either.

cygcheck -srv doesn't find duplicate cygwin1.dll libraries, but it does find
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin entries which aren't visible in regedit.exe.
I suppose this is caused by virtual registry.

strace bash -c '[ ]' gives the following output:
 6022  380278 [main] bash 4524 sig_send: sendsig 0x128, pid 4524, 
signal -34, its_me 1
  479  380757 [main] bash 4524 sig_send: wakeup 0x22C
  485  381242 [main] bash 4524 sig_send: Waiting for pack.wakeup 0x22C
9  381251 [sig] bash 4524 wait_sig: signalling pack.wakeup 0x22C
  864  382115 [main] bash 4524 sig_send: returning 0x0 from sending 
signal -34
  406  382521 [main] bash 4524 sigaction_worker: signal 20, 
newact 0x27CB24 (handler 0x41E390), oa 0x0
 7408  389929 [main] bash 4524 sig_send: sendsig 0x128, pid 4524, 
signal -34, its_me 1
  737  390666 [main] bash 4524 sig_send: wakeup 0x230
  519  391185 [main] bash 4524 sig_send: Waiting for pack.wakeup 0x230
9  391194 [sig] bash 4524 wait_sig: signalling pack.wakeup 0x230
 1048  392242 [main] bash 4524 sig_send: 
returning 0x0 from sending signal -34
  479  392721 [main] bash 4524 __set_errno: 
fhandler_socket* get(int):82 val 108
  469  393190 [main] bash 4524 cygwin_getpeername: -1 = getpeername (0) -1
 4975  398165 [main] bash 4524 set_signal_mask: oldmask 0x0, 
newmask 0x0, mask_bits 0x0
 2539  400704 [main] bash 4524 set_signal_mask: not calling 
sig_dispatch_pending
--- Process 4524, exception C005 at 753CA923
  835  401539 [main] bash 4524 _cygtls::handle_exceptions: 
In cygwin_except_handler exc 0xC005 at 0x775DAD42 sp 0x27
42D0
  853  402392 [main] bash 4524 _cygtls::handle_exceptions: 
In cygwin_except_handler sig 11 at 0x775DAD42
  886  403278 [main] bash 4524 _cygtls::handle_exceptions: 
In cygwin_except_handler calling 0x0
 403949 [main] bash 4524 _cygtls::handle_exceptions: 
Exception: STATUS_ACCESS_VIOLATION
  671  403949 [main] bash 4524 _cygtls::handle_exceptions: 
Exception: STATUS_ACCESS_VIOLATION
 1367  405316 [main] bash 4524 try_to_debug: debugger_command ''
 406131 [main] bash 4524 open_stackdumpfile: 
Dumping stack trace to bash.exe.stackdump


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Dick
Corinna

Nope, none of those applications are installed. I'm not sure whether it is a 
fork() issue, opening a sub shell for example doesn't give any errors.

Please let me know if you have another suggestion.

TIA,
Dick


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Corinna Vinschen
On Mar 12 16:18, Dick wrote:
> Hi Corinna,
> 
> Yes, the 2k008 server is running TS. I've disabled DEP for all applications 
> and
> removed cygwin and reran setup.exe.
> 
> Sadly the probleem isn't solved, any other suggestions are welcome.

http://cygwin.com/faq/faq.using.html#faq.using.bloda ?


Corinna

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

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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Dick
Hi Corinna,

Yes, the 2k008 server is running TS. I've disabled DEP for all applications and
removed cygwin and reran setup.exe.

Sadly the probleem isn't solved, any other suggestions are welcome.

Thanks,
Dick


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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Corinna Vinschen
On Mar 12 13:00, Dick wrote:
> Hello all,
> 
> I've just installed cygwin in Windows Server 2008, I've only selected
> rpm-build and libintl-2 as additional packages. During install there are
> no error messages.
> 
> Then when I start cygwin my home directory isn't made and no profiles
> are created. And worse, when I try to start:
> 
> bash-3.2$ test -e
> 
> cygwin quits.
> 
> bash-3.2$ [ ]
> 
> does the same.
> 
> What could be wrong? I've tried reinstalling cygwin a few times.

Is the 2K8 server running Terminal Services?  If so, you could stumble
over a bug in the TS application compatibility layer when running
applications which don't have the TS awareness flag set in their PE/COFF
header.  I reported that bug, but the frontlevel support refused to
follow up on this bug.

What you can do is, switch off DEP for all applications and reboot.  Now
you should be able to run all Cygwin applications.  Either keep it that
way or run the peflagsall script with the "-t 1" option, reset the DEP
setting and reboot again.

Occasionally after updating Cygwin you might have to run peflagsall
again.  This is supposed to get better over time, the more Cygwin
packages will have the TS-awareness flag from the start, now that gcc-4
sets the flag automatically.


Corinna

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

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