delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/16/13:30:00

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: CYGWIN_MISMATCH_OK not working?
Date: Thu, 16 Mar 2006 18:29:50 -0000
Message-ID: <002d01c64927$9c55d1e0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


  I can't get this bit of code to trigger:

-------------------------------<snip>
void
multiple_cygwin_problem (const char *what, unsigned magic_version, unsigned
version)
{
  if (_cygwin_testing && (strstr (what, "proc") || strstr (what, "cygheap")))
    {
      child_proc_info->type = _PROC_WHOOPS;
      return;
    }

  char buf[1024];
  if (GetEnvironmentVariable ("CYGWIN_MISMATCH_OK", buf, sizeof (buf)))
    return;
-------------------------------<snip>

despite having it set in my global windows environment before starting the
shell:

-------------------------------<snip>
User is dk
dk AT rainbow ~> /usr/build/install/bin/addr2line.exe
      3 [main] ? (1824) C:\cygwin\usr\build\install\bin\addr2line.exe: ***
fatal
 error - proc magic mismatch detected - 0x88E640F7/0xC87757A7.
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.
dk AT rainbow ~> set | grep MISM
CYGWIN_MISMATCH_OK=1
dk AT rainbow ~>
-------------------------------<snip>

  In light of the recent changes to environment variable generation and
filtering, is it necessarily valid to be calling the win32
GetEnvironmentVariable function at this point, or is it going to be in a
sanitized context with next-to-no environment variables set?


    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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019