problem with curl

236 vues
Accéder directement au premier message non lu

marek.r...@gmail.com

non lue,
10 janv. 2023, 14:42:4210/01/2023
à Harbour Users
I encountered a strange problem with libcurl. I compiled the sample contrib\hbcurl\tests\ftp_uldl.prg and it worked fine once or twicebut most of the time it  crashes after CURL_EASY_INIT() without error message or with a message like this:

[hb_out.log]
Application Internal Error - D:\work\prg\baselinker\testy\ftp_uldl.exe
Terminated at: 2023-01-10 20:29:42
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00410EBB
    EAX:81B1CFA0  EBX:82C9BCBC  ECX:0117ED24  EDX:00880000
    ESI:00000001  EDI:00000003  EBP:0117ED1C
    CS:EIP:0023:00410EBB  SS:ESP:002B:0079FAE0
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010207
    Exception Parameters: 00000000 82C9BCC0
    CS:EIP: 8B 4B 04 F6 C1 01 0F 84 19 01 00 00 F6 C1 02 0F
    SS:ESP: 0079FB70 0000002F 70A6E5FC 70A4DB8D 70A6E5FC 0079FB2C 0000002A 004FC8C8 0000002B 0079FAB0 00000007 0079FB70 0088A418 0079FB4C 0117ED28 70A461CB

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...


Modules:
00400000 0019B000 D:\work\prg\baselinker\testy\ftp_uldl.exe
77AA0000 001A4000 C:\WINDOWS\SYSTEM32\ntdll.dll
75D60000 000F0000 C:\WINDOWS\System32\KERNEL32.DLL
76DC0000 0021C000 C:\WINDOWS\System32\KERNELBASE.dll
76D00000 0007B000 C:\WINDOWS\System32\ADVAPI32.dll
771B0000 000BF000 C:\WINDOWS\System32\msvcrt.dll
76990000 00076000 C:\WINDOWS\System32\sechost.dll
77410000 000BE000 C:\WINDOWS\System32\RPCRT4.dll
75F40000 00023000 C:\WINDOWS\System32\GDI32.dll
76BE0000 00018000 C:\WINDOWS\System32\win32u.dll
77910000 000E0000 C:\WINDOWS\System32\gdi32full.dll
76B60000 0007B000 C:\WINDOWS\System32\msvcp_win.dll
75F70000 00120000 C:\WINDOWS\System32\ucrtbase.dll
77270000 0019D000 C:\WINDOWS\System32\USER32.dll
743C0000 00028000 C:\WINDOWS\SYSTEM32\WINMM.DLL
70A00000 0009C000 C:\hb32\comp\mingw\bin\libcurl-4.dll
75B60000 000FA000 C:\WINDOWS\System32\CRYPT32.dll
76C80000 00057000 C:\WINDOWS\System32\wldap32.dll
76090000 00063000 C:\WINDOWS\System32\WS2_32.dll
64B40000 00018000 C:\hb32\comp\mingw\bin\libwinpthread-1.dll
6EB40000 00024000 C:\hb32\comp\mingw\bin\libgcc_s_dw2-1.dll
63F00000 0002D000 C:\hb32\comp\mingw\bin\libidn2-0.dll
6DE80000 00033000 C:\hb32\comp\mingw\bin\libnghttp2-14.dll
6B400000 002C4000 C:\hb32\comp\mingw\bin\libcrypto-1_1.dll
6E640000 00016000 C:\hb32\comp\mingw\bin\libbrotlidec.dll
6D040000 00018000 C:\hb32\comp\mingw\bin\libpsl-5.dll
6AF80000 00096000 C:\hb32\comp\mingw\bin\libssl-1_1.dll
63080000 0001F000 C:\hb32\comp\mingw\bin\zlib1.dll
66200000 0010B000 C:\hb32\comp\mingw\bin\libiconv-2.dll
61EC0000 0002A000 C:\hb32\comp\mingw\bin\libintl-8.dll
6D6C0000 0002A000 C:\hb32\comp\mingw\bin\libbrotlicommon.dll
64BC0000 001DF000 C:\hb32\comp\mingw\bin\libunistring-2.dll
76100000 00026000 C:\WINDOWS\System32\IMM32.DLL
73F20000 00074000 C:\WINDOWS\system32\uxtheme.dll
76130000 00280000 C:\WINDOWS\System32\combase.dll
770D0000 000D4000 C:\WINDOWS\System32\MSCTF.dll
76AC0000 00096000 C:\WINDOWS\System32\OLEAUT32.dll
75530000 0000F000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
76C20000 0005F000 C:\WINDOWS\System32\bcryptPrimitives.dll
73BC0000 000B9000 C:\WINDOWS\SYSTEM32\textinputframework.dll
73940000 0027E000 C:\WINDOWS\System32\CoreUIComponents.dll
738A0000 0009B000 C:\WINDOWS\System32\CoreMessaging.dll
75EB0000 00087000 C:\WINDOWS\System32\SHCORE.dll
74E90000 00029000 C:\WINDOWS\SYSTEM32\ntmarta.dll
737C0000 000DB000 C:\WINDOWS\SYSTEM32\wintypes.dll
740C0000 0000A000 C:\WINDOWS\SYSTEM32\secur32.dll
746B0000 00021000 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
74EC0000 00052000 C:\WINDOWS\system32\mswsock.dll

Called from CURL_EASY_INIT(0)
Called from MAIN(45) in ftp_uldl.prg
------------------------------------------------------------------------
Someone could help me?

mstuff kstuff

non lue,
10 janv. 2023, 21:40:4710/01/2023
à Harbour Users
The only reason I am responding is, you are a person of my own heart.
I  also have a D:\work\prg\ hb32 and hb34  etc.

I'm not into curl but, you may want to check out Victor's hb3.4 curl, he seemed to be into that.
It may be the same or updated, I'm not sure.
Scope it out.
MikeK

gruncic

non lue,
11 janv. 2023, 13:14:3611/01/2023
à Harbour Users
I had a similar problem. Try libcirl.dll version 7.82.0  as in the picture.
Greeting

 Screenshot (189).png

Eric Lendvai

non lue,
15 janv. 2023, 21:18:4215/01/2023
à Harbour Users

I tried for a long long time to make curl+ssl/https to work in Windows. No luck. 
With mingw64 ... absolutely no way. With msvc supposedly it could work (I think Antonio Linares at some point made it work).

Since I focus on web apps, which I deploy on Linux (Ubuntu servers), I decided to focus on that environment. 
If you use VSCODE and Docker Desktop with WSL2 for example, it is possible to use curl.
I am using curl for accessing an API.

Budyanto Dj.

non lue,
15 janv. 2023, 21:48:3515/01/2023
à harbou...@googlegroups.com
Hi,
Once I had similar problem with curl command line, caused by an
antivirus software blocking the access.

cheers,
bdj

Auge & Ohr

non lue,
16 janv. 2023, 02:40:4716/01/2023
à Harbour Users
hi,

have a look into HMG Forum
https://www.hmgforum.com/viewtopic.php?t=7289

EDK have upload imap_Curl.7z which use
libcurl.dll     7.85
libeay32.dll    1.0.2.21
ssleay32.dll     1.0.2.21

and modify Source to build new LIB

libcurl.a
libhbcurl.a

it use IMAP to get Email and have Function SendSMTP()

Jimmy

marek.r...@gmail.com

non lue,
16 janv. 2023, 03:54:2916/01/2023
à Harbour Users
Great! Thanks!!! :-)

Alex Strickland

non lue,
16 janv. 2023, 04:40:5116/01/2023
à harbou...@googlegroups.com

Hi

On 2023/01/16 04:18, Eric Lendvai wrote:

I tried for a long long time to make curl+ssl/https to work in Windows. No luck. 
With mingw64 ... absolutely no way. With msvc supposedly it could work (I think Antonio Linares at some point made it work).

I have it working with my MSVC 2005 build if anyone has some specific questions. Pretty much worked out of the box with Viktor's 3.4 branch but maybe I am forgetting some issues, it was a while ago.

--

Regards

Alex



--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/8ead1542-4691-4968-ac81-cf60d31b628fn%40googlegroups.com.
--

Gerald Drouillard

non lue,
16 janv. 2023, 07:27:0316/01/2023
à harbou...@googlegroups.com
Hi Eric
We use msy64 on windows 10/11 and ubuntu linux for smtp, ftp, and http without any problems.  Without seeing your code, I would suspect that you creating new curl instances without calling curl_easy_cleanup()?

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message