Thread overview
Curl HTTP segfault
Feb 24, 2016
skilion
Feb 24, 2016
Kagamin
Feb 24, 2016
Kagamin
February 24, 2016
Hello everyone,
I have had this problem for a little while but I don't understand if I'm am not using correctly the HTTP struct, or if it is a library bug.

Hear is my code: http://pastebin.com/Pgx7bqum

I get a segfault on exit in the destructor calling std.net.curl.Curl.shutdown()

Workarounds that I found are :
- call http.shutdown() before the end of main
- make http static
February 24, 2016
http://pastebin.com/JfPtGTD8 ?
February 24, 2016
Oops, no, looks like you can't put HTTP in a class, because it works with GC and is ref counted.