X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: From: John Fano Date: Wed, 1 Dec 2010 07:32:15 -0500 Message-ID: Subject: Re: 1.7.7 - OpenSSH Fatal Error 1114 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Additional Info: I tried sending commands directly from the command line via ssh and I was able to reproduce the same error outside of python when using public key auth. When I take off the public key and enter the password when prompted the command will run. I have tried a dozen or so commands and they all work with password auth and fail when using public key auth. Please note that in python it does not matter whether I use password or public key auth, I still get the same results. john AT DO-T-IT-NOC:~$ ssh Administrator AT storage -i storage_private "net share test$=3D'c:\test' /grant:everyone,full" 1 [main] sshd 564 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - could not load u, Win32 error 1114 Stack trace: Frame Function Args 00229954 6102749B (00229954, 00000000, 00000000, 00000000) 00229C44 6102749B (61177B80, 00008000, 00000000, 61179977) 0022AC74 61004AFB (61179084, 61161E94, 61161E94, 0022ACD8) 0022AEA4 6100135E (610309EB, 6123F8A4, 0022AF10, 0022AED8) 0022BBC8 6115764C (00000003, FFFFFFFF, FFFFFFFF, 61117D12) 0022BC08 610CB0E3 (00000003, 104552F8, 0022BD0C, 1045C138) 0022BC28 6102951B (104552F8, 0022BD0C, 1045C138, 0022BD34) 0022C148 610C01A5 (10454A18, 104586A0, 00000002, 00000000) 0022C198 00412D4B (10454A18, 104586A0, 10454A18, 00427EA2) 0022C1C8 004130F4 (10454A18, 104586A0, 104589E8, 1044C104) 0022C288 0041343C (10458A28, 104589E8, 104589E8, 00000001) 0022C2C8 0040AAF3 (00000062, 0000000A, 104563B0, 0040BB05) 0022C308 004389D6 (00000001, 00000000, 104563B0, 0040C6FA) 0022C348 0040BC6A (1045C540, 10455280, 0022C388, 00417DF6) 0022C388 00413CCE (1045C540, 00000003, 00000000, 0022CC44) 0022CD58 004040F3 (00000000, 0022CE64, 0022CD98, 61006CD3) End of stack trace (more stack frames may be present) John :-) ------------------------------ "Any people, nation, or language that speaks anything against the God of Shadrach, Meshach, and Abednego shall be torn limb from limb, and their houses laid in ruins, for there is no other god who is able to rescue in this way." =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 - Daniel 3:29 On Wed, Dec 1, 2010 at 7:13 AM, John Fano wrote: > Hi Everyone, > > I have cygwin 1.7.7 installed on a win2003 r2 file server. =A0I have > tried both versions of openssh and openssl available in the installer, > and the currently installed versions are 5.5p1 and 0.9.8o, > respectively. =A0I am connecting from an ubuntu lucid machine via python > and the paramiko ssh module from the repos. =A0When I ssh in via the > command line, everything works as expected. =A0I can issue all kinds of > commands and they all just work. =A0However, when I issue the same > commands via python, only the first command is successful, and each > subsequent command produces a win32 error message. =A0At first I thought > it was a python/paramiko issue, but when I did some searching on the > returned win32 error, it points to a dll issue. =A0To further rule out > python/paramiko, I have cygwin 1.7.5 running on an XP box and I do not > have the same issue connecting to that box via python. =A0Below is a > sample from python. =A0Basically all I am doing is requesting a > directory listing from /cygdrive/c twice. =A0The first time, you can see > the listing in line #1. =A0In line #2 you can see that there is no > error. =A0Now when I issue that command again, it shows no output in > line #3, and the ssh error in line #4. =A0Each subsequent command will > issue the same ssh error with no output. =A0I googled the win32 error > 1114, and that got me this "1114 =A0 =A0 =A0 =A0A dynamic link library (D= LL) > initialization routine failed. =A0ERROR_DLL_INIT_FAILED". =A0I have > rebooted the server just to make sure all dlls were loaded fresh. > > I have attached the cygcheck output. > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > [GCC 4.4.3] on linux2 > Type "copyright", "credits" or "license()" for more information. > DreamPie 1.1 >>>> import paramiko >>>> ssh =3D paramiko.SSHClient() >>>> ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) >>>> ssh.connect('storage', 22, 'Administrator', 'XXX') >>>> stdin, stdout, stderr =3D ssh.exec_command('ls /cygdrive/c') >>>> stdout.read() > 1: '533686c990bc04236541ef5e\nADFS\nAUTOEXEC.BAT\nCONFIG.SYS\nDocuments > and Settings\nIO.SYS\nMSDOS.SYS\nNTDETECT.COM\nProgram > Files\nRECYCLER\nSAN_Shares.exe\nStorageReports\nSystem Volume > Information\nWINDOWS\nadsm.sys\nboot.ini\ncygwin\nfslrdr\nntldr\npagefile= .sys\nreset.txt\nshares.csv\n' >>>> stderr.read() > 2: '' >>>> stdin, stdout, stderr =3D ssh.exec_command('ls /cygdrive/c') >>>> stdout.read() > 3: '' >>>> stderr.read() > 4: ' =A0 =A0 =A00 [main] sshd 1388 C:\\cygwin\\usr\\sbin\\sshd.exe: *** > fatal error - could not load u, Win32 error 1114\nStack > trace:\r\nFrame =A0 =A0 Function =A0Args\r\n00229984 =A06102749B =A0(0022= 9984, > 00000000, 00000000, 00000000)\r\n00229C74 =A06102749B =A0(61177B80, > 00008000, 00000000, 61179977)\r\n0022ACA4 =A061004AFB =A0(61179084, > 61161E94, 61161E94, 7C838501)\r\n0022AED4 =A06100135E =A0(610309EB, > 6123F704, 0022AF40, 0022AF08)\r\n0022BBB8 =A06115764C =A0(00000003, > FFFFFFFF, FFFFFFFF, 61117D12)\r\n0022BBF8 =A0610CB0E3 =A0(00000003, > 1044BE18, 0022BCFC, 1045C190)\r\n0022BC18 =A06102951B =A0(1044BE18, > 0022BCFC, 1045C190, 0022BD24)\r\n0022C138 =A0610C01A5 =A0(10454868, > 1044BDF8, 00000002, 00000000)\r\n0022C188 =A000413318 =A0(10454868, > 1044BDF8, 10454868, 00428C72)\r\n0022C1B8 =A0004136A4 =A0(10454868, > 1044BDF8, 10459920, 1044C104)\r\n0022C278 =A0004139EC =A0(10459930, > 10459920, 10459920, 00000001)\r\n0022C2B8 =A00040AC33 =A0(00000062, > 0000000A, 10455170, 0040BC45)\r\n0022C2F8 =A000439AC6 =A0(00000001, > 00000000, 10455170, 0040C83A)\r\n0022C338 =A00040BDAA =A0(1045C540, > 104550E0, 0022C378, 004188A6)\r\n0022C378 =A00041429E =A0(1045C540, > 00000003, 00000000, 0022CC34)\r\n0022CD48 =A000404163 =A0(00000000, > 0022CE64, 0022CD88, 61006CD3)\r\nEnd of stack trace (more stack frames > may be present)\n' >>>> > > Thanks! > > John :-) > ------------------------------ > "Any people, nation, or > language that speaks anything > against the God of Shadrach, > Meshach, and Abednego shall be > torn limb from limb, and their > houses laid in ruins, for there > is no other god who is able to > rescue in this way." > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 - Daniel 3:29 > -- 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