I'm having problems with zlib compression - stunnel 4.07 on my client machne crashes whenever I try and start a session. With compression set to rle or not defined, there is no problem.
I am securing a MySQL connection between a Windows client and Mandrake Linux 10.1 server.
Client Configuration:
Stunnel 4.07 and openssl 0.9.7e-zlib binaries downloaded from Stunnel website
stunnel.conf ------------ cert=./Allan_Guild_Work.pem key=./Allan_Guild_Work_key.pem client=yes compression=zlib
[Primary Club] accept=3306 connect=195.137.78.107:3307 TIMEOUTbusy=5 -------------
Server Configuration:
Stunnel 4.07 and openssl 0.9.7e (compiled with zlib support) rebuilt from Mandrake Cooker SRPMS
stunnel.conf ------------ CApath=/etc/ssl/stunnel/certs/ cert=/etc/ssl/stunnel/CAcert.pem key=/etc/ssl/stunnel/CAkey.pem client=no foreground=yes pid=/var/run/stunnel.pid verify=0 compression=zlib
[Primary Club] accept=3307 connect=3306 ------------
When I try and connect, I get the following output from the client (which then crashes):
------------- 2005.01.11 19:04:14 LOG5[308:2172]: stunnel 4.07 on x86-pc-mingw32-gnu WIN32+IPv4 with OpenSSL 0.9.7e 25 Oct 2004 2005.01.11 19:04:14 LOG5[308:1688]: No limit detected for the number of clients 2005.01.11 19:04:16 LOG5[308:804]: Primary Club connected from 127.0.0.1:4769 -------------
and the following from the server:
------------- 2005.01.11 19:21:30 LOG5[25439:1076523680]: stunnel 4.07 on i586-mandrake-linux-gnu PTHREAD+POLL+IPv4+LIBWRAP with OpenSSL 0.9.7e 25 Oct 2004 2005.01.11 19:21:30 LOG5[25439:1076523680]: 500 clients allowed 2005.01.11 19:21:53 LOG5[25439:1073900464]: Primary Club connected from 212.135.219.66:3974 2005.01.11 19:21:53 LOG5[25439:1073900464]: VERIFY IGNORE: depth=0, /C=UK/ST=Some-State/L=London/O=Primary Club/CN=Allan Guild/emailAddress=allan.guild@bitsnpieces.org.uk 2005.01.11 19:21:53 LOG5[25439:1073900464]: VERIFY IGNORE: depth=0, /C=UK/ST=Some-State/L=London/O=Primary Club/CN=Allan Guild/emailAddress=allan.guild@bitsnpieces.org.uk 2005.01.11 19:21:57 LOG3[25439:1073900464]: SSL_read (ERROR_SYSCALL): Connection reset by peer (104) 2005.01.11 19:21:57 LOG5[25439:1073900464]: Connection reset: 3843 bytes sent to SSL, 55 bytes sent to socket -------------
Any advice would be greatly appreciated (Do I need a zlib dll?),
Allan
Allan,
When I try and connect, I get the following output from the client (which then crashes):
[cut]
Any advice would be greatly appreciated
Please send us your stack backtrace. http://www.network-theory.co.uk/articles/gccdebug.html
(Do I need a zlib dll?),
No, you don't need dll files on your Mandrake. 8-)
Best regards, Mike
Dear Mike,
Thanks for the reply. I don't have gdb etc. set up on my Windows client at the moment, although I will set up MinGW, if it is needed to get to the bottom of this.
I do however have a Windows Error Log which contains a stack backtrace, and I have attached it below. Please let me know if this is sufficient information.
Best wishes,
Allan
Application exception occurred: App: (pid=1472) When: 1/11/2005 @ 19:29:29.750 Exception number: c0000005 (access violation)
*----> System Information <----* Computer Name: GALIA User Name: allan Number of Processors: 1 Processor Type: x86 Family 6 Model 10 Stepping 0 Windows 2000 Version: 5.0 Current Build: 2195 Service Pack: 4 Current Type: Uniprocessor Free Registered Organization: Registered Owner: Allan Guild
*----> Task List <----* 0 Idle.exe 8 System.exe 160 SMSS.exe 184 CSRSS.exe 180 WINLOGON.exe 232 SERVICES.exe 244 LSASS.exe 428 svchost.exe 460 spoolsv.exe 488 ccEvtMgr.exe 580 svchost.exe 608 NAVAPSVC.exe 652 nmapserv.exe 704 NPROTECT.exe 724 nvsvc32.exe 612 regsvc.exe 776 mstask.exe 840 NOPDB.exe 900 WinMgmt.exe 924 svchost.exe 1104 explorer.exe 1012 SymTray.exe 1272 ccApp.exe 1304 realsched.exe 1280 jusched.exe 1348 NvMixerTray.exe 1392 rundll32.exe 1372 rundll32.exe 1324 iTunesHelper.ex.exe 1084 qttask.exe 348 iPodService.exe 1408 acrotray.exe 1468 hppdirector.exe 1196 audevicemgr.exe 280 MROUTE~2.exe 1476 pnplus35.exe 1520 MAILMOA.exe 1600 XWin.exe 1652 CONNMN~1.exe 1664 hppapml0.exe 304 firefox.exe 1588 rxvt.exe 1712 sh.exe 976 ssh.exe 1160 WINWORD.exe 1216 emacs.exe 1792 rekall2.exe 1564 wmplayer.exe 1804 wslink32.exe 2044 wslink32.exe 2000 svchost.exe 2272 wuauclt.exe 1812 rekall2.exe 1472 stunnel-4.07.ex.exe 2216 DRWTSN32.exe 0 _Total.exe
(00400000 - 0041D000) (77F80000 - 77FFD000) (7C2D0000 - 7C332000) (7C570000 - 7C623000) (77D30000 - 77DA1000) (76B30000 - 76B6E000) (70A70000 - 70AD9000) (77F40000 - 77F7B000) (77E10000 - 77E75000) (78000000 - 78045000) (71710000 - 71794000) (782F0000 - 78535000) (75030000 - 75044000) (75020000 - 75028000) (61D80000 - 61EBD000) (75050000 - 75058000) (6B080000 - 6B10D000) (10000000 - 1011A000) (690A0000 - 690AB000) (77A50000 - 77B3F000) (779B0000 - 77A4B000) (77570000 - 775A0000) (77820000 - 77827000) (759B0000 - 759B6000) (681A0000 - 681A7000) (66740000 - 66747000) (61B80000 - 61B97000) (7CA00000 - 7CA23000) (7C0F0000 - 7C151000) (7C740000 - 7C7C7000) (77430000 - 77440000) (74FD0000 - 74FEE000) (75010000 - 75017000)
State Dump for Thread Id 0x894
eax=00000000 ebx=0022fc20 ecx=ffffffff edx=00000000 esi=0022fc20 edi=00000000 eip=77e11555 esp=0022fbd8 ebp=0022fbf8 iopl=0 nv up ei pl zr na po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
function: ScrollDC 77e11533 8d542404 lea edx,[esp+0x4] ss:01189abf=???????? 77e11537 cd2e int 2e 77e11539 c21c00 ret 0x1c 77e1153c b838110000 mov eax,0x1138 77e11541 8d542404 lea edx,[esp+0x4] ss:01189abf=???????? 77e11545 cd2e int 2e 77e11547 c20400 ret 0x4 77e1154a b89a110000 mov eax,0x119a 77e1154f 8d542404 lea edx,[esp+0x4] ss:01189abf=???????? 77e11553 cd2e int 2e 77e11555 c21000 ret 0x10 77e11558 6a01 push 0x1 77e1155a 58 pop eax 77e1155b c20800 ret 0x8 77e1155e b839110000 mov eax,0x1139 77e11563 8d542404 lea edx,[esp+0x4] ss:01189abf=???????? 77e11567 cd2e int 2e 77e11569 c20800 ret 0x8
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0022FBF8 00408DA1 0022FC20 00000000 00000000 00000000 user32!ScrollDC 0022FC78 00409453 00233564 00000001 0022FFE0 0022FFE0 !<nosymbols> 0022FEE8 0040A108 00400000 00000000 00233564 00000001 !<nosymbols> 0022FF68 004011A4 00000001 008725D0 00872AE8 00000000 !<nosymbols> 0022FFA0 00401203 00000002 00000000 00000000 7C59893A !<nosymbols> 0022FFC0 7C59893D 00000000 00000000 7FFDF000 00000000 !<nosymbols> 0022FFF0 00000000 004011F0 00000000 000000C8 00000100 kernel32!ProcessIdToSessionId
*----> Raw Stack Dump <----* 0022fbd8 a8 5f e1 77 20 fc 22 00 - 00 00 00 00 00 00 00 00 ._.w ."......... 0022fbe8 00 00 00 00 20 fc 22 00 - 36 07 15 00 00 00 00 00 .... .".6....... 0022fbf8 78 fc 22 00 a1 8d 40 00 - 20 fc 22 00 00 00 00 00 x."...@. ."..... 0022fc08 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................ 0022fc18 58 03 00 00 33 02 00 00 - 88 07 24 00 c7 c0 00 00 X...3.....$..... 0022fc28 00 00 00 00 00 00 00 00 - 06 18 4e 02 5b 02 00 00 ..........N.[... 0022fc38 95 00 00 00 b8 8d 41 00 - 30 00 00 00 03 00 00 00 ......A.0....... 0022fc48 30 8e 40 00 00 00 00 00 - 00 00 00 00 00 00 40 00 0.@...........@. 0022fc58 51 03 bf 03 13 00 01 00 - 06 00 00 00 00 00 00 00 Q............... 0022fc68 29 17 41 00 45 05 bb 17 - 01 00 00 00 e0 ff 22 00 ).A.E.........". 0022fc78 e8 fe 22 00 53 94 40 00 - 64 35 23 00 01 00 00 00 ..".S.@.d5#..... 0022fc88 e0 ff 22 00 e0 ff 22 00 - 00 00 00 00 fc fc 22 01 .."...".......". 0022fc98 1c fd 22 00 cb 16 f9 77 - d0 80 f8 77 48 03 fd 77 .."....w...wH..w 0022fca8 8c 80 f8 77 30 fd 22 00 - 00 00 00 00 00 f0 fd 7f ...w0."......... 0022fcb8 00 00 00 00 00 00 00 00 - 43 3a 5c 44 6f 77 6e 6c ........C:\Downl 0022fcc8 6f 61 64 5c 70 72 69 6d - 61 72 79 5f 63 6c 75 62 oad\primary_club 0022fcd8 5c 00 74 75 6e 6e 65 6c - 2d 34 2e 30 37 2e 65 78 .tunnel-4.07.ex 0022fce8 65 00 00 00 00 00 00 00 - e0 fc 22 00 00 02 00 00 e........."..... 0022fcf8 d0 fe 22 00 55 1f f8 77 - d0 2a f8 77 d5 c3 fc 77 ..".U..w.*.w...w 0022fd08 00 00 87 00 c9 c4 fc 77 - e0 c4 fc 77 38 35 23 00 .......w...w85#.
State Dump for Thread Id 0x768
eax=00000000 ebx=ffffffff ecx=000004d6 edx=00000000 esi=7fffffff edi=00000102 eip=77f82870 esp=00f8f874 ebp=00f8f8ac iopl=0 nv up ei ng nz ac po cy cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000297
function: NtWaitForSingleObject 77f82865 b8ea000000 mov eax,0xea 77f8286a 8d542404 lea edx,[esp+0x4] ss:01ee975b=???????? 77f8286e cd2e int 2e 77f82870 c20c00 ret 0xc
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 00F8F8AC 74FD3C59 000000B8 000000BC 00000000 00000004 ntdll!NtWaitForSingleObject 00F8F998 750312F5 000000BD 00F8FD1C 00F8FE20 00000000 msafd!WSPSetSockOpt 00F8F9FC 00405AC3 000000BD 00F8FD1C 00F8FE20 00000000 ws2_32!select 00F8FA4C 004083BF 00F8FB14 FFFFFFFF 00000000 00000000 !<nosymbols> 00F8FF6C 00408E0C 00875058 00F8FFB4 00F8FFB4 78008454 !<nosymbols> 00F8FF7C 78008454 00000000 77E12DE1 00240788 00875058 !<nosymbols> 00F8FFB4 7C57B388 00875058 77E12DE1 00240788 00875058 !endthread 00F8FFEC 00000000 780083D2 00875058 00000000 00000008 kernel32!lstrcmpiW
*----> Raw Stack Dump <----* 00f8f874 94 13 fd 74 b8 00 00 00 - 01 00 00 00 98 f8 f8 00 ...t............ 00f8f884 1c fd f8 00 20 f9 f8 00 - 10 f9 f8 00 dc 4b 9a de .... ........K.. 00f8f894 13 f8 c4 01 ff ff ff ff - ff ff ff 7f c8 a2 24 00 ..............$. 00f8f8a4 00 00 00 00 00 00 00 00 - 98 f9 f8 00 59 3c fd 74 ............Y<.t 00f8f8b4 b8 00 00 00 bc 00 00 00 - 00 00 00 00 04 00 00 00 ................ 00f8f8c4 00 00 00 00 98 a9 24 00 - 20 fe f8 00 00 00 00 00 ......$. ....... 00f8f8d4 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................ 00f8f8e4 78 01 87 00 48 00 f9 00 - 78 01 87 00 78 01 87 00 x...H...x...x... 00f8f8f4 1c 00 34 00 02 00 00 00 - c0 05 00 00 68 07 00 00 ..4.........h... 00f8f904 50 88 08 00 00 00 00 00 - 00 00 00 00 ff ff ff ff P............... 00f8f914 ff ff ff 7f 01 00 00 00 - 00 00 00 00 bc 00 00 00 ................ 00f8f924 19 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................ 00f8f934 00 00 00 00 00 00 00 00 - 00 00 00 00 04 00 00 00 ................ 00f8f944 04 00 00 00 04 f9 f8 00 - fc ff ff ff 00 00 00 00 ................ 00f8f954 c8 a2 24 00 dc 38 02 78 - 00 00 00 00 10 f9 f8 00 ..$..8.x........ 00f8f964 2c 00 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00 ,............... 00f8f974 00 00 87 00 42 00 00 00 - 2c f9 f8 00 c4 f8 f8 00 ....B...,....... 00f8f984 cc f9 f8 00 ec f9 f8 00 - 12 ea fd 74 88 3d fd 74 ...........t.=.t 00f8f994 ff ff ff ff fc f9 f8 00 - f5 12 03 75 bd 00 00 00 ...........u.... 00f8f9a4 1c fd f8 00 20 fe f8 00 - 00 00 00 00 00 00 00 00 .... ...........
State Dump for Thread Id 0x8f4
eax=61de4b1e ebx=00000040 ecx=0128ffa4 edx=61de4b1e esi=4c62a48d edi=00f928a0 eip=0128f884 esp=0128f83c ebp=00fabd80 iopl=0 nv up ei pl nz ac po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000216
function: <nosymbols> 0128f86c 7cf8 jl 01292166 0128f86e 2801 sub [ecx],al ds:0128ffa4=dc 0128f870 50 push eax 0128f871 0800 or [eax],al ds:61de4b1e=31 0128f873 00a028f90010 add [eax+0x1000f928],ah ds:71df4446=?? 0128f879 01f9 add ecx,edi 0128f87b 0000 add [eax],al ds:61de4b1e=31 0128f87d 44 inc esp 0128f87e 0000 add [eax],al ds:61de4b1e=31 0128f880 6e outsb 0128f881 050a6b80bd add eax,0xbd806b0a 0128f886 fa cli 0128f887 00f8 add al,bh 0128f889 f3fa rep cli 0128f88b 0000 add [eax],al ds:61de4b1e=31 0128f88d 40 inc eax 0128f88e 0000 add [eax],al ds:61de4b1e=31 0128f890 cd08 int 08 0128f892 fa cli 0128f893 003508000001 add [01000008],dh ds:01000008=?? 0128f899 0000 add [eax],al ds:61de4b1e=31 0128f89b 000500000010 add [Ordinal718 (10000000)],al ds:10000000=4d
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 00FABD80 00000000 00000000 0000005F 0000005C 00000000 <nosymbols>
*----> Raw Stack Dump <----* 0128f83c 84 f8 28 01 12 8c da 61 - 48 c7 fa 00 80 bd fa 00 ..(....aH....... 0128f84c 35 08 00 00 4f 36 de 61 - 80 bd fa 00 f8 f3 fa 00 5...O6.a........ 0128f85c 00 40 00 00 cd 08 fa 00 - 35 08 00 00 e4 f8 28 01 .@......5.....(. 0128f86c 7c f8 28 01 50 08 00 00 - a0 28 f9 00 10 01 f9 00 |.(.P....(...... 0128f87c 00 44 00 00 6e 05 0a 6b - 80 bd fa 00 f8 f3 fa 00 .D..n..k........ 0128f88c 00 40 00 00 cd 08 fa 00 - 35 08 00 00 01 00 00 00 .@......5....... 0128f89c 05 00 00 00 10 01 f9 00 - a0 28 f9 00 a0 74 0a 6b .........(...t.k 0128f8ac 10 01 f9 00 0a 19 0a 6b - a0 28 f9 00 e4 f8 28 01 .......k.(....(. 0128f8bc 00 00 00 00 00 00 00 00 - e0 fd 87 00 e0 fd 87 00 ................ 0128f8cc 5a 00 00 00 02 11 fa 00 - 00 00 00 00 00 00 00 00 Z............... 0128f8dc 00 00 00 00 38 04 f9 00 - 63 c7 ba ae 02 b6 d1 58 ....8...c......X 0128f8ec a8 bb c0 7f 68 43 78 72 - 05 10 33 96 1c 00 00 00 ....hCxr..3..... 0128f8fc ac f8 28 01 44 f8 28 01 - 4c f9 28 01 6c f9 28 01 ..(.D.(.L.(.l.(. 0128f90c 12 ea fd 74 88 3d fd 74 - ff ff ff ff 7c f9 28 01 ...t.=.t....|.(. 0128f91c f5 12 03 75 50 08 00 00 - 10 01 f9 00 2c 73 f9 00 ...uP.......,s.. 0128f92c a0 28 f9 00 3d 13 0a 6b - a0 28 f9 00 2c 33 f9 00 .(..=..k.(..,3.. 0128f93c 17 00 00 00 00 00 00 00 - 00 00 00 00 a0 28 f9 00 .............(.. 0128f94c 17 00 00 00 00 00 00 00 - a0 28 f9 00 17 00 00 00 .........(...... 0128f95c 2c 33 f9 00 00 00 00 00 - 00 00 00 00 a0 28 f9 00 ,3...........(.. 0128f96c 00 00 00 00 a0 28 f9 00 - 00 40 00 00 2c 73 f9 00 .....(...@..,s..
State Dump for Thread Id 0x8c
eax=74fd6311 ebx=0024ae28 ecx=7c577a40 edx=00000000 esi=74fea3a0 edi=00000000 eip=77f8289c esp=0148ff84 ebp=0148ffb4 iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202
function: ZwRemoveIoCompletion 77f82891 b8a8000000 mov eax,0xa8 77f82896 8d542404 lea edx,[esp+0x4] ss:023e9e6b=???????? 77f8289a cd2e int 2e 77f8289c c21400 ret 0x14
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0148FFB4 7C57B388 74FD9048 7C5784D0 00400000 0024AE28 ntdll!ZwRemoveIoCompletion 0148FFEC 00000000 00000000 00000000 00000000 00000000 kernel32!lstrcmpiW
On Wed, 2005-01-12 at 17:28 +0100, Michal Trojnara wrote:
Allan,
When I try and connect, I get the following output from the client (which then crashes):
[cut]
Any advice would be greatly appreciated
Please send us your stack backtrace. http://www.network-theory.co.uk/articles/gccdebug.html
(Do I need a zlib dll?),
No, you don't need dll files on your Mandrake. 8-)
Best regards, Mike _______________________________________________ stunnel-users mailing list stunnel-users@mirt.net http://stunnel.mirt.net/mailman/listinfo/stunnel-users