Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on Windows 10 #145

Open
bagomot opened this issue Aug 29, 2022 · 4 comments
Open

Segmentation fault on Windows 10 #145

bagomot opened this issue Aug 29, 2022 · 4 comments

Comments

@bagomot
Copy link

bagomot commented Aug 29, 2022

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
Copy link
Owner

ikod commented Aug 29, 2022

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
Copy link
Author

bagomot commented Aug 30, 2022

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
Copy link
Owner

ikod commented Aug 30, 2022

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
Copy link
Author

bagomot commented Aug 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants