ikod / dlang-requests

dlang http client library inspired by python-requests
Boost Software License 1.0
154 stars 32 forks source link

Segmentation fault on Windows 10 #145

Open bagomot opened 2 years ago

bagomot commented 2 years ago

On Windows 10, when starting a program with this library, it crashes with a segmentation fault error. This happens even if you only add library imports.

ikod commented 2 years ago

On Windows 10, when starting a program with this library, it crashes with a segmentation fault error. This happens even if you only add library imports.

Most likely - problem with ssl library. Can you please increase debug level and post full log output?

bagomot commented 2 years ago

I followed the recommendations about ssl, but nothing has changed. Especially since I was making http requests. And even without executing the queries, the same error occurs with a lib import.

Debug log with dub run --vverbose:

Running test.exe
Program exited with code -1073741819
Full exception: object.Exception@source\dub\generators\build.d(572): Program exited with code -1073741819
----------------
0x00CFAF8B
0x00CFAD42
0x00CF86A2
ikod commented 2 years ago

I followed the recommendations about ssl, but nothing has changed. Especially since I was making http requests. And even without executing the queries, the same error occurs with a lib import.

Debug log with dub run --vverbose:

Running test.exe
Program exited with code -1073741819
Full exception: object.Exception@source\dub\generators\build.d(572): Program exited with code -1073741819
----------------
0x00CFAF8B
0x00CFAD42
0x00CF86A2

I don't see here anything related to requests library. Can I try to reproduce problem? I need minimal dub.ini and programm code which reproduce problem.

bagomot commented 2 years ago

I don't see here anything related to requests library. Can I try to reproduce problem? I need minimal dub.ini and programm code which reproduce problem.

Minimal code:

/+ dub.sdl:
    name "test"
    dependency "requests" version="~>2.0.8"
+/

import std.stdio;
import requests;

void main() {
    write("test");
}

I am using LDC compiler.