public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout'
@ 2010-10-09 16:24 Thorkil Naur
  2010-10-09 17:41 ` Christopher Faylor
  0 siblings, 1 reply; 4+ messages in thread
From: Thorkil Naur @ 2010-10-09 16:24 UTC (permalink / raw)
  To: cygwin

Hello merry Cygwin'ers,

On a recently installed Cygwin (version 1.7.7-1 according to setup.exe),
the Cygwin bash shell fails to start. Details become visible when
starting bash.exe from an ordinary command prompt:

> C:\cygwin>bin\bash.exe --login -i
>       3 [main] bash 1928 C:\cygwin\bin\bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout' (handle 0x7E410000), Win32 error 127
> Stack trace:
> Frame     Function  Args
> 002238B8  6102749B  (002238B8, 00000000, 00000000, 00223938)
> 00223BA8  6102749B  (61177B80, 00008000, 00000000, 61179977)
> 00224BD8  61004AFB  (610011A0, 611575DC, 7E410000, 61033DBC)
> End of stack trace
> 
> C:\cygwin>

Other commands work fine, for example:

> C:\cygwin>bin\ls.exe
> Cygwin.bat  Cygwin.ico  bin  cygdrive  dev  etc  home  lib  proc  tmp  usr  var
> 
> C:\cygwin>

The installed bash has version 3.2.51-24, again according to setup.exe.
This is on a Windows system that describes itself as:

> Microsoft Windows XP
> Professional
> Version 2002
> Service Pack 3

On http://msdn.microsoft.com/en-us/library/ms646296%28VS.85%29.aspx,
we find:

> GetKeyboardLayout Function
> 
> Retrieves the active input locale identifier (formerly called the keyboard layout) for the specified thread. If the idThread parameter is zero, the input locale identifier for the active thread is returned.
> Syntax
> 
> HKL WINAPI GetKeyboardLayout(
>   __in  DWORD idThread
> );
> ...
> Library
>         User32.lib

And, using an admittedly primitive method:

> C:\cygwin>bin\strings.exe /cygdrive/c/WINDOWS/system32/user32.dll | bin\grep.exe GetKeyboardLayout
> GetKeyboardLayout
> GetKeyboardLayoutList
> GetKeyboardLayoutNameA
> GetKeyboardLayoutNameW
> 
> C:\cygwin>

This indicates that GetKeyboardLayout seems to be available. The Windows
PATH includes C:\WINDOWS\system32.

I have earlier installed Cygwin and used it's bash.exe successfully on a
number of other Windows systems, both Windows XP and, more recently,
Windows 7. On one of the other Windows XP systems, I upgraded Cygwin and
bash to the same versions mentioned above and bash.exe still works. That
particular system describes itself as:

> Microsoft Windows XP
> Home edition
> Version 2002
> Service Pack 3

(so "Home edition" compared to "Professional").

Searching for similar messages, I found several cases, none of which
relates to the specific function GetKeyboardLayout: There is

> http://www.mail-archive.com/cygwin [ at ] cygwin.com/msg99373.html

which has

> >>>> 4 [main] -bash 3392 C:\cygwin\bin\bash.exe: *** fatal error - couldn't
> >>>> dynamically determine load address for 'WSAGetLastError' (handle
> >>>> 0xFFFFFFFF), Win32 error 126

And http://archives.postgresql.org/pgsql-cygwin/2005-03/msg00020.php has:

> Re: couldn't dynamically determine load address for 'NetApiBufferFree' (handle 0xFFFFFFFF), Win32 error 126

And http://cygwin.ru/ml/cygwin/2007-05/msg00219.html with:

> $ rlogin blah [ at ] blah
> 9617 [main] rlogin 5392 e:\cygwin\bin\rlogin.exe: *** fatal error - couldn't dynamically determine load address for 'rcmd' (handle 0x75E70000), Win32 error 127
> Hangup

In each of these cases, the problem seems to be that the mentioned
function is somehow unavailable. But the remedies mentioned does
not seem to apply to my case.

Any help to proceed in this matter will be greatly appreciated.

Thanks and best regards
Thorkil


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout'
  2010-10-09 16:24 bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout' Thorkil Naur
@ 2010-10-09 17:41 ` Christopher Faylor
  2010-10-09 19:45   ` Thorkil Naur
  2010-10-22 19:41   ` Thorkil Naur
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Faylor @ 2010-10-09 17:41 UTC (permalink / raw)
  To: cygwin

On Sat, Oct 09, 2010 at 06:24:40PM +0200, Thorkil Naur wrote:
>Hello merry Cygwin'ers,
>
>On a recently installed Cygwin (version 1.7.7-1 according to setup.exe),
>the Cygwin bash shell fails to start. Details become visible when
>starting bash.exe from an ordinary command prompt:
>
>> C:\cygwin>bin\bash.exe --login -i
>>       3 [main] bash 1928 C:\cygwin\bin\bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout' (handle 0x7E410000), Win32 error 127
>> Stack trace:
>> Frame     Function  Args
>> 002238B8  6102749B  (002238B8, 00000000, 00000000, 00223938)
>> 00223BA8  6102749B  (61177B80, 00008000, 00000000, 61179977)
>> 00224BD8  61004AFB  (610011A0, 611575DC, 7E410000, 61033DBC)
>> End of stack trace

First guess would be that you may have a virus, BLODA* or something else
which has modified a system dll.  This function should be available
in Windows XP.

The cygcheck output that we request here:  http://cygwin.com/problems.html
might provide more insight.

cgf

*http://cygwin.com/acronyms/#BLODA

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout'
  2010-10-09 17:41 ` Christopher Faylor
@ 2010-10-09 19:45   ` Thorkil Naur
  2010-10-22 19:41   ` Thorkil Naur
  1 sibling, 0 replies; 4+ messages in thread
From: Thorkil Naur @ 2010-10-09 19:45 UTC (permalink / raw)
  To: cygwin

Hello,

On Sat, Oct 09, 2010 at 01:40:48PM -0400, Christopher Faylor wrote:
> ...
> The cygcheck output that we request here:  http://cygwin.com/problems.html
> might provide more insight.
> ...

Sorry, I overlooked that. Unfortunately, the machine where this happens
is the one I use at work and looking over the cygcheck output, I suspect
that some of this information would be considered confidential by the
owner. So, I don't feel that I should disclose this information.

I will, of course, follow up on the hint about a possible virus, thanks.
I might also try to adjust the firewall and anti-virus settings, to see
if I can possibly figure out a likely cause of the problem.

For now, that leaves me without a solution to the problem, but I'll just
have to do without bash.exe and hope that not too many other programs
hit this obstacle.

Thanks a lot anyway for your efforts.

Best regards
Thorkil

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout'
  2010-10-09 17:41 ` Christopher Faylor
  2010-10-09 19:45   ` Thorkil Naur
@ 2010-10-22 19:41   ` Thorkil Naur
  1 sibling, 0 replies; 4+ messages in thread
From: Thorkil Naur @ 2010-10-22 19:41 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

Hello,

On Sat, Oct 09, 2010 at 01:40:48PM -0400, Christopher Faylor wrote:
> ...
> The cygcheck output that we request here:  http://cygwin.com/problems.html
> might provide more insight.
> ...

With permission from the owner, I attach a slightly anonymized version
of the cygcheck output that you request. 

In addition to this, I tried running mintty (that I have not tried
before) and that actually succeeds to execute bash.exe. There are some,
presumably independent, problems with this that I intend to report
separately, but I will just hesitate slightly, in case the present
problem gets resolved and the solution manages to solve those other
problems as well.

Any additional comments on this matter are most welcome.

Best regards
Thorkil

[-- Attachment #2: cygcheck_20101009_2112.out --]
[-- Type: text/plain, Size: 11229 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Sat Oct 09 21:12:15 2010

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\Program Files\CA\SharedComponents\ScanEngine
	C:\Program Files\CA\SharedComponents\CAUpdate\
	C:\Program Files\CA\SharedComponents\ThirdParty\
	C:\Program Files\CA\SharedComponents\SubscriptionLicense\
	C:\Program Files\CA\eTrustITM
	C:\Program Files\IBM\Personal Communications\
	C:\Program Files\IBM\Trace Facility\
	C:\PROGRA~1\IBM\SQLLIB\BIN
	C:\PROGRA~1\IBM\SQLLIB\FUNCTION
	C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL
	c:\progra~1\cool51\gen
	C:\Program Files\cool60\Gen
	C:\Program Files\cool65\Gen
	C:\Program Files\CA\AllFusion Gen\Gen\
	C:\Program Files\CA\AllFusion Gen\

Output from C:\cygwin\bin\id.exe
UID: 82191(z6pqr)        GID: 10513(Domain Users)
10513(Domain Users)      0(root)                  544(Administrators)
547(Power Users)         545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

Path = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;c:\progra~1\cool51\gen;C:\Program Files\cool60\Gen;C:\Program Files\cool65\Gen;C:\Program Files\CA\AllFusion Gen\Gen\;C:\Program Files\CA\AllFusion Gen\'

ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
APPDATA = 'C:\Documents and Settings\z6pqr\Application Data'
CASHCOMP = 'C:\Program Files\CA\SharedComponents\'
CLASSPATH = '.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar'
CMCOMMON = 'C:\Program Files\XYZ\XYZ.AQ.EDHSager\XYZ.AQ.CMCOMMON'
CommonProgramFiles = 'C:\Program Files\Common Files'
COMPUTERNAME = 'abcdef'
ComSpec = 'C:\WINDOWS\system32\cmd.exe'
COOL-BASE = 'C:\Program Files\CA\AllFusion Gen\Gen\'
DB2INSTANCE = 'DB2'
EXCINIT = 'pqr'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Documents and Settings\z6pqr'
HOMESHARE = '\\xyz1h\priv1'
IBMCMROOT = 'C:\Program Files\XYZ\XYZ.AQ.EDHSager\XYZ.AQ.CMCOMMON'
IEF = 'C:\Program Files\CA\AllFusion Gen\Gen\'
IEFGEN = 'C:\Program Files\CA\AllFusion Gen\Gen\'
IEFGXTP = 'C:\Program Files\CA\AllFusion Gen\Translat\'
IEFH = 'C:\Program Files\CA\AllFusion Gen\GEN'
IEFJRE = 'C:\Program Files\CA\SharedComponents\JRE\1.5.0_06\'
IGW_LOC = 'C:\Program Files\CA\SharedComponents\iTechnology\'
INCLUDE = 'C:\PROGRA~1\IBM\SQLLIB\INCLUDE;C:\PROGRA~1\IBM\SQLLIB\LIB'
INOCULAN = 'C:\Program Files\CA\eTrustITM'
ITMLICENSE = 'C:\Program Files\CA\SharedComponents\SubscriptionLicense\'
ITMTHIRDPARTY = 'C:\Program Files\CA\SharedComponents\ThirdParty\'
LIB = ';C:\PROGRA~1\IBM\SQLLIB\LIB'
LOGONSERVER = '\\XYZ1L'
NUMBER_OF_PROCESSORS = '2'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PCOMM_Root = 'C:\Program Files\IBM\Personal Communications\'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 23 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '1706'
ProgramFiles = 'C:\Program Files'
PROMPT = '$P$G'
SESSIONNAME = 'Console'
SystemDrive = 'C:'
SystemRoot = 'C:\WINDOWS'
TEMP = 'C:\DOCUME~1\z6pqr\LOCALS~1\Temp'
TMP = 'C:\DOCUME~1\z6pqr\LOCALS~1\Temp'
USERDNSDOMAIN = 'INTERN.XYZ.DK'
USERDOMAIN = 'XYZ'
USERNAME = 'Z6PQR'
USERPROFILE = 'C:\Documents and Settings\z6pqr'
VSTO_LOGALERTS = '1'
windir = 'C:\WINDOWS'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygwin
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

c:  hd  NTFS    152624Mb  79% CP CS UN PA FC     OSDisk
d:  cd             N/A    N/A                    
g:  net            N/A    N/A                    
i:  net            N/A    N/A                    
j:  net            N/A    N/A                    
k:  net            N/A    N/A                    
l:  net            N/A    N/A                    
m:  net            N/A    N/A                    
n:  net            N/A    N/A                    
o:  net            N/A    N/A                    
q:  net            N/A    N/A                    
r:  net            N/A    N/A                    
s:  net            N/A    N/A                    
t:  net            N/A    N/A                    
u:  net            N/A    N/A                    
v:  net            N/A    N/A                    
w:  net            N/A    N/A                    
x:  net            N/A    N/A                    
y:  net            N/A    N/A                    

C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Not Found: awk
Not Found: bash
Not Found: cat
Not Found: cp
Not Found: cpp (good!)
Not Found: crontab
Found: C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Not Found: grep
Not Found: kill
Not Found: ld
Not Found: ls
Not Found: make
Not Found: mv
Not Found: patch
Not Found: perl
Not Found: rm
Not Found: sed
Not Found: ssh
Not Found: sh
Not Found: tar
Not Found: test
Not Found: vi
Not Found: vim

Warning: cygwin1.dll not found on your path

No Cygwin services found.


Cygwin Package Information
Last downloaded files to: C:\pqr\download\Cygwin
Last downloaded files from: http://cygwin.basemirror.de/

Package                 Version
_update-info-dir        00923-1
alternatives            1.3.30c-10
base-cygwin             2.1-1
base-files              3.9-3
base-passwd             3.1-1
bash                    3.2.51-24
binutils                2.20.51-2
bzip2                   1.0.5-10
coreutils               8.5-2
crypt                   1.1-1
csih                    0.9.1-1
cygrunsrv               1.34-1
cygutils                1.4.4-1
cygwin                  1.7.7-1
cygwin-doc              1.7-1
dash                    0.5.6.1-2
diffutils               2.9-1
editrights              1.01-2
findutils               4.5.9-1
gamin                   0.1.10-11
gawk                    3.1.8-1
gcc-core                3.4.4-999
gcc-g++                 3.4.4-999
gcc-java                3.4.4-999
gcc-mingw-core          20050522-1
gcc-mingw-g++           20050522-1
gcc-mingw-java          20050522-1
gdb                     6.8-2
gettext                 0.17-11
ghostscript             8.63-2
ghostscript-fonts-other 6.0-1
ghostscript-fonts-std   8.11-1
gmp                     4.3.1-3
gnuplot                 4.4.0-1
grep                    2.6.3-1
groff                   1.20.1-2
gzip                    1.3.12-2
ipc-utils               1.0-1
less                    436-1
libattr1                2.4.43-1
libbz2_1                1.0.5-10
libcairo2               1.8.10-1
libdb4.5                4.5.20.2-2
libedit0                20090923-1
libexpat1               2.0.1-1
libfam0                 0.1.10-11
libfontconfig1          2.8.0-1
libfontenc1             1.0.5-1
libfreetype6            2.3.12-1
libgc                   6.4-1
libgcc1                 4.3.4-3
libgcrypt11             1.4.5-1
libgd2                  2.0.36RC1-11
libgdbm4                1.8.3-20
libggi2                 2.2.2-2
libggiwmh0              0.3.2-2
libgii1                 1.0.2-2
libGL1                  7.6.1-1
libglib2.0_0            2.24.1-1
libglitz1               0.5.6-10
libgmp3                 4.3.1-3
libgmpxx4               4.3.1-3
libgpg-error0           1.7-1
libgs8                  8.63-2
libICE6                 1.0.6-1
libiconv2               1.13.1-1
libidn11                1.18-1
libintl3                0.14.5-1
libintl8                0.17-11
libjasper1              1.900.1-11
libjpeg62               6b-21
libjpeg7                7-10
liblzma1                4.999.9beta-11
libncurses10            5.7-18
libncurses8             5.5-10
libncurses9             5.7-16
libncursesw10           5.7-18
libopenssl098           0.9.8o-2
libpango1.0_0           1.28.1-1
libpcre0                8.02-1
libpixman1_0            0.18.2-1
libplot2                2.6-2
libpng12                1.2.44-1
libpopt0                1.6.4-4
libreadline6            5.2.14-12
libreadline7            6.0.3-2
libsigsegv2             2.8-1
libSM6                  1.1.1-2
libssp0                 4.3.4-3
libstdc++6              4.3.4-3
libuuid1                2.17.2-1
libwrap0                7.6-21
libX11_6                1.3.3-1
libXau6                 1.0.6-1
libXaw7                 1.0.7-2
libxcb-render-util0     0.3.6-1
libxcb-render0          1.6-1
libxcb1                 1.6-1
libXdmcp6               1.0.3-1
libXext6                1.1.2-1
libXft2                 2.1.14-1
libxkbfile1             1.0.6-1
libXmu6                 1.0.5-1
libXmuu1                1.0.5-1
libXpm4                 3.5.8-1
libXrender1             0.9.6-1
libXt6                  1.0.8-1
login                   1.10-10
lua                     5.1.4-11
lynx                    2.8.5-4
m4                      1.4.15-1
make                    3.81-2
man                     1.6f-1
mingw-runtime           3.18-1
msmtp                   1.4.18-1
mutt                    1.5.20-1
ncurses                 5.7-18
openssh                 5.6p1-2
openssl                 0.9.8o-2
openssl-devel           0.9.8o-2
pdksh                   5.2.14-3
perl                    5.10.1-4
ping                    1.0-1
posh                    0.8.4-1
rebase                  3.0.1-1
rsh                     0.17-1
rsh-server              0.17-1
rsync                   3.0.7-1
run                     1.1.12-11
sed                     4.2.1-1
tar                     1.23-1
tcltk                   20080420-1
tcsh                    6.17.00.1-1
terminfo                5.7_20091114-14
terminfo0               5.5_20061104-12
texinfo                 4.13-3
time                    1.7-2
tzcode                  2010j-1
w32api                  3.15-1
w3m                     0.5.1-2
wget                    1.12-1
which                   2.20-2
xauth                   1.0.4-1
xcursor-themes          1.0.2-1
xeyes                   1.1.0-1
xkbcomp                 1.1.1-1
xkeyboard-config        1.9-1
xorg-server             1.8.2-1
xz                      4.999.9beta-11
zlib                    1.2.5-1
zlib-devel              1.2.5-1
zlib0                   1.2.5-1
zsh                     4.3.10-1
Use -h to see help about each section


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-22 19:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-09 16:24 bash.exe: *** fatal error - couldn't dynamically determine load address for 'GetKeyboardLayout' Thorkil Naur
2010-10-09 17:41 ` Christopher Faylor
2010-10-09 19:45   ` Thorkil Naur
2010-10-22 19:41   ` Thorkil Naur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).