From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130820 invoked by alias); 12 Feb 2018 01:16:58 -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 130809 invoked by uid 89); 12 Feb 2018 01:16:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=mic, PHP, version.=c2, Oracle?= X-HELO: mout.perfora.net Received: from mout.perfora.net (HELO mout.perfora.net) (74.208.4.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Feb 2018 01:16:56 +0000 Received: from [192.168.1.109] ([24.18.200.169]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LnAbb-1eJh8t2aXV-00hK7h for ; Mon, 12 Feb 2018 02:16:54 +0100 Subject: Re: cygwin stopped working To: cygwin@cygwin.com References: <8297ddf5-5d06-c2b1-526b-16ca311749aa@ferzkopp.net> From: Andreas Schiffler Message-ID: Date: Mon, 12 Feb 2018 01:16:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-UI-Out-Filterresults: notjunk:1;V01:K0:HcM/WaTe2LQ=:vBxBW9GAlhY6H2zM7AhrXe ZENHxtEU+6CqnuSCQZQp0gCiIwNb/z/CjCFm3j51sgbfPcUpCKI6uvUI9+r1c1jIXZp0o+Hm6 XaScYL7yUu7pTr/f9qIbNqd8b6EJJW9wl5IYou9mKvBfCreMYVbsZdvNqls475yvXEreUf/qZ NGM+uoWa7+p0lMt4PHKy9Y+UvS8ZvITCzUYCKA3Yhwo9MT9WDfuKck8HWejyYsm4vEoew6tn7 HmkP2MgR4CGlBbAZ8VSpk/B0/ypQNjUVnN77fZnRpQcEse57tr88DEOddXS58o2Ef0L36K+jc Ba3w9999sPogXIkKS6w/ERGw4YNdje0yDOcsd6cNHnKkM3tVNyrGxtJ/yuBPUpbSDEAczAyYa mhm76zGGFLdVIflq9uSa8uAJlPzHXnxI60bF0ikX/LnSBeF8HtcdmRWL7/y/st7efWAXkVcP9 KW8UmmoxLuzv4JI52kDeXzyDdDMHpCkfAqX/XZNkrm5sKj6yNPg+DUs930NAQKWvz84Iq6vBx Gb1sHzSthzrjro3wS2SGs4ePBCnZTcNnQUirqT33Uo5Gd5D3vR7YBY0LtPhjNI5hT+/MFFB5D fDEZ8Ue7r6kNvUjXQmLcASsbk8M0WkdOf6hThAK+K2uTuYdF5hUPY28lubghN1Kyo/W9V6MC3 fvLcomXy60Xmg6sTxa1uSTLjpfOHrgjVDEm08MGgWBrPT/c0/O76MYEZRTBhO4A3D+nQE3n4w TdPOcV7G+MHMOoPBamQU39KJWVMSPuYfJG6YkQGTPvw0OihYjwKD2T+6htE= X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00114.txt.bz2 Thanks for the tip, but that didn't seem to have helped. The registry setting CYGWIN_NOWINPATH=1 did not seem to affect the environment as seen in bash. The variable seems to be set: bash-4.4$ set ...snip... COMSPEC='C:\WINDOWS\system32\cmd.exe' CYGWIN_NOWINPATH=1 ...snip but the path variable contains still all the common system locations: bash-4.4$ echo $PATH /cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files (x86)/iis express/PHP/v5.3:/cygdrive/c/Program Files/Common Files/Mic rosoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Intel/ iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:...snip... Manually overriding the PATH variable in bash did not help (presumably because the offending DLL is already loaded): bash-4.4$ export PATH=/usr/local/bin:/usr/bin:/bin bash-4.4$ echo $PATH /usr/local/bin:/usr/bin:/bin bash-4.4$ bash-4.4$ bash-4.4$ ls       0 [main] bash (11276) C:\Cygwin\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x3C52410/0x36F2410. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version.  The most recent version *should* reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution.  Rebooting is also suggested if you are unable to find another cygwin DLL. On 2/11/2018 2:42 AM, Doug Henderson wrote: > On 11 February 2018 at 01:18, Andreas Schiffler wrote: >> Terminal (bash) fails with: >> >> Error: Could not fork child process: Resource temporarily unavailable (-1). >> DLL rebasing may be required; see 'rebaseall / rebase --help'. >> > {snip} >> bash-4.4$ ls >> 1 [main] bash (6316) C:\Cygwin\bin\bash.exe: *** fatal error - cygheap >> base mismatch detected - 0x3922410/0x3962410. >> This problem is probably due to using incompatible versions of the cygwin >> DLL. > {snip} >> I do have another version of the cygwin dll file on the system (Plex >> installation) but that never caused any issues in the past. > {snip} > > > The method I use is to define CYGWIN_NOWINPATH=1 before I start > cygwin. Actually, I set it in my Windows User environment so it is > always set for my user. You can find the old windows path as the value > of the environment variable ORIGINAL_PATH. Then, when necessary, I add > only the previous path components that I require back in my > .bash_profile. In my cases,My path looks like: > > $ echo $PATH > /home/USER/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Go/bin:/bin > > In your case, you may have Plex in your path. Make sure any Plex > related directories are not in your cygwin path. > > A Google (or similar) search for "CYGWIN_NOWINPATH" will find many > pages on cygwin.com and stackoverflow.com. > > HTH > > Doug > -- 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