From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11197 invoked by alias); 26 Mar 2014 17:35:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11174 invoked by uid 89); 26 Mar 2014 17:35:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f43.google.com Received: from mail-la0-f43.google.com (HELO mail-la0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 26 Mar 2014 17:35:28 +0000 Received: by mail-la0-f43.google.com with SMTP id e16so1762843lan.16 for ; Wed, 26 Mar 2014 10:35:24 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.235.229 with SMTP id up5mr649932lbc.62.1395855324466; Wed, 26 Mar 2014 10:35:24 -0700 (PDT) Received: by 10.112.176.7 with HTTP; Wed, 26 Mar 2014 10:35:24 -0700 (PDT) Date: Wed, 26 Mar 2014 18:39:00 -0000 Message-ID: Subject: launching sh/bash from windows console (cmd) results in application Segmentation Faults From: Scott Mitchell To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-03/txt/msg00444.txt.bz2 ==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 " 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