This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

launching sh/bash from windows console (cmd) results in application Segmentation Faults


==Problem==
When launching cygwin bash shell from windows command prompt (cmd)
then applications run by bash very frequently crash with Segmentation
Faults.  When this occurs applications that are launched by the shell
are not cleaned up after the shell session terminates (for example
ssh-agents and ssh processes remain and must be killed in task
manager).  This is also a problem when using cygwin from other shell
environments such as console2 and conemu.

==Environment==
Windows 7 SP1 x64.

Cygwin Version:
CYGWIN_NT-6.1 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin
-ssh-agent is present and run at startup

Bash version:
GNU bash, version 4.1.11(2)-release (x86_64-unknown-cygwin)

==Procedure==
1) Launch windows cmd
2) cd to cygwin bin dirctory
3) Execute "sh.exe --login -i" or "sh.exe --login" or "sh.exe -i"
4) Run "ps", "ls", "cat" processes 3 times each.
5) If segmentation faults are not observed run "ssh-add <key>" and
repeat step 4.

==Stack Dumps==
1)
Exception: STATUS_ACCESS_VIOLATION at rip=001800A6DDC
rax=0000000000030000 rbx=00000001802DF958 rcx=00000001802DF958
rdx=0000000001E20000 rsi=0000000000000001 rdi=0000000000000000
r8 =0000000000000008 r9 =0000000000000001 r10=0000000000230000
r11=0000000100411C89 r12=000000000022AA68 r13=0000000000000000
r14=000000000022AA70 r15=0000000000000000
rbp=000000000022AB20 rsp=000000000022A940
program=C:\cygwin64\bin\ls.exe, pid 5900, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
0000022AB20  001800A6DDC (00000000000, 0000022AB20, 0000022AA68, 00000000000)
0000022AB20  00180134677 (003FEFC8180, 0000022AA70, 00000000001, 0000022AA68)
0000022AB20  001801130AB (0000022AA70, 00000000001, 0000022AA68, 0010040E770)
0000022AB20  00100000003 (00000000001, 0000022AA68, 0010040E770, 001802BD480)
0000022AB20  003FEFC8180 (0000022AA68, 0010040E770, 001802BD480, 0000022AA68)
0000022AB20  0000022AA70 (0010040E770, 001802BD480, 0000022AA68, 001802A6740)
0000022AB20  00000000001 (001802BD480, 0000022AA68, 001802A6740, 001802A6740)
0000022AB20  0000022AA68 (0000022AA68, 001802A6740, 001802A6740, 001802A6740)
0000022AB20  0010040E770 (001802A6740, 001802A6740, 001802A6740, 001801736C0)
0000022AB20  001802BD480 (001802A6740, 001802A6740, 001801736C0, 00000000001)
0000022AB20  0000022AA68 (001802A6740, 001801736C0, 00000000001, 00000000000)
0000022AB20  001802A6740 (001801736C0, 00000000001, 00000000000, 04900720019)
0000022AB20  001802A6740 (00000000001, 00000000000, 04900720019, 00180163CAA)
0000022AB20  001802A6740 (00000000000, 04900720019, 00180163CAA, 001802DD820)
0000022AB20  001801736C0 (04900720019, 00180163CAA, 001802DD820, 001802DEE08)
0000022AB20  00000000001 (04900720019, 00180163CAA, 001802DD820, 001802DEE08)
End of stack trace (more stack frames may be present)

2)
Exception: STATUS_ACCESS_VIOLATION at rip=0018007A5AB
rax=00000000003F0000 rbx=0000000000228F30 rcx=0000779666DA0000
rdx=0000001400000000 rsi=00000001802E3BD8 rdi=0000000000000004
r8 =0000000000228AC8 r9 =0000000000228D20 r10=0000000000000000
r11=0000000000000246 r12=0000000000000020 r13=0000000000000001
r14=0000000000000001 r15=0000000000000001
rbp=0000000000228D20 rsp=0000000000228C10
program=C:\cygwin64\bin\ssh-add.exe, pid 3900, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
00000228D20  0018007A5AB (0010041F160, 000002294E0, 00000000000, 000002294B0)
00000228D20  001801341DA (00000000000, 00000000400, 00000000000, 00000228DEF)
0010041F160  001801130AB (00000000400, 00000000000, 00000228DEF, 0000022942F)
0010041F160  00000471900 (00000000400, 00000000000, 00000228DEF, 0000022942F)
End of stack trace

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]