delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/19/02:20:16

X-Spam-Check-By: sourceware.org
Message-ID: <46270A01.9D9351FA@dessent.net>
Date: Wed, 18 Apr 2007 23:19:45 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ImageMagick "display" and "convert" fail with a Visual C++ runtime error
References: <4626FDDC DOT 6030608 AT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

dgolovaty AT gmail DOT com wrote:

> Microsoft Visual C++ Runtime Library
> 
> Runtime Error!
> 
> Program C:\cygwin\bin\convert.exe
> 
> R6034
> An application has made an attempt to load the C runtime library
> incorrectly.
> 
> Is there anything that I can do to fix this?

Something sounds quite broken if MSVCRT.DLL is being loaded at all. 
That should not happen.  Try setting your PATH to the minimal required,
in case you have junk libraries in some directory in the PATH:

$ PATH="/usr/bin:/usr/X11R6/bin:$(cygpath -S)" /usr/bin/convert -help

You can also use cygcheck to show the link-time depandencies:

$ cygcheck /usr/bin/convert
C:\cygwin\bin\convert.exe
  C:\cygwin\bin\cygwin1.dll
    C:\WINXP\system32\ADVAPI32.DLL
      C:\WINXP\system32\ntdll.dll
      C:\WINXP\system32\KERNEL32.dll
      C:\WINXP\system32\RPCRT4.dll
  C:\cygwin\bin\cygMagick-10.dll
    C:\cygwin\usr\X11R6\bin\cygX11-6.dll
    C:\cygwin\usr\X11R6\bin\cygXext-6.dll
    C:\cygwin\bin\cygbz2-1.dll
    C:\cygwin\bin\cygfreetype-6.dll
      C:\cygwin\bin\cygz.dll
    C:\cygwin\bin\cyglcms-1.dll
    C:\cygwin\bin\cygtiff-5.dll
      C:\cygwin\bin\cygjpeg-62.dll
    C:\WINXP\system32\GDI32.dll
      C:\WINXP\system32\USER32.dll
  C:\cygwin\bin\cygWand-10.dll

If you see MSVCRT.DLL anywhere in that list, or some DLL that's not from
Cygwin or %windir%\system32, be suspicious.  To really troubleshoot you
can try Dependancy Walker with its profiling feature:

Options Selected:
     Hook the process to gather more detailed dependency information.
     Log LoadLibrary function calls.
     Log thread information.
     Use simple thread numbers instead of actual thread IDs.
----------------------------------------------------------------------

Started "CONVERT.EXE" (process 0x1FE8) at address 0x00400000 by thread
1.  
Loaded "NTDLL.DLL" at address 0x7C900000 by thread 1.  
Loaded "KERNEL32.DLL" at address 0x7C800000 by thread 1.  
Injected "DEPENDS.DLL" at address 0x08370000 by thread 1.
Loaded "CYGWIN1.DLL" at address 0x61000000 by thread 1.  
Loaded "ADVAPI32.DLL" at address 0x77DD0000 by thread 1.  
Loaded "RPCRT4.DLL" at address 0x77E70000 by thread 1.  
Loaded "CYGMAGICK-10.DLL" at address 0x6E460000 by thread 1.  
Loaded "CYGX11-6.DLL" at address 0x67010000 by thread 1.  
Loaded "CYGXEXT-6.DLL" at address 0x66DA0000 by thread 1.  
Loaded "CYGBZ2-1.DLL" at address 0x6CE00000 by thread 1.  
Loaded "CYGFREETYPE-6.DLL" at address 0x6C660000 by thread 1.  
Loaded "CYGZ.DLL" at address 0x66AD0000 by thread 1.  
Loaded "CYGLCMS-1.DLL" at address 0x6EBD0000 by thread 1.  
Loaded "CYGTIFF-5.DLL" at address 0x6B1A0000 by thread 1.  
Loaded "CYGJPEG-62.DLL" at address 0x6BDD0000 by thread 1.  
Loaded "GDI32.DLL" at address 0x77F10000 by thread 1.  
Loaded "USER32.DLL" at address 0x7E410000 by thread 1.  
Loaded "CYGWAND-10.DLL" at address 0x6E390000 by thread 1.  
LoadLibraryW("rpcrt4.dll") called from "RPCRT4.DLL" at address
0x77E9FAF5 by thread 1.
LoadLibraryW("rpcrt4.dll") returned 0x77E70000 by thread 1.
LoadLibraryA("Secur32.dll") called from "ADVAPI32.DLL" at address
0x77DF97AE by thread 1.
Loaded "SECUR32.DLL" at address 0x77FE0000 by thread 1.  
LoadLibraryA("Secur32.dll") returned 0x77FE0000 by thread 1.
Thread 2 started in "KERNEL32.DLL" at address 0x7C810659.
LoadLibraryA("user32") called from "CYGWIN1.DLL" at address 0x6100124F
by thread 1.
LoadLibraryA("user32") returned 0x7E410000 by thread 1.
LoadLibraryA("psapi") called from "CYGWIN1.DLL" at address 0x6100124F by
thread 1.
Loaded "PSAPI.DLL" at address 0x76BF0000 by thread 1.  
LoadLibraryA("psapi") returned 0x76BF0000 by thread 1.
Thread 2 exited with code 0 (0x0).
Exited "CONVERT.EXE" (process 0x1FE8) with code 0 (0x0) by thread 1.
Entrypoint reached. All implicit modules have been loaded.

Still no mention of MSVCRT.DLL anywhere, so I don't see how this is
happening in your case.

Brian

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