Bug 12098 – libcurl bad argument on handle null

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-02-07T03:15:00Z
Last change time
2014-02-27T20:13:29Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-02-07T03:15:12Z
This used to work up to few days ago: void main() { import std.net.curl; get("http://dlang.org/"); } I am using the same libcurl version 7.24.0.0. Now it gives: std.net.curl.CurlException@std\net\curl.d(3589): A libcurl function was given a bad argument on handle null ---------------- 0x004055E6 in pure @safe bool std.exception.enforceEx!(std.net.curl.CurlException).enforceEx!(bool).enforceEx(bool, lazy immutable(char)[], immutable(char)[], uint) at ...\dmd2\\src\phobos\std\exception.d(529) 0x00430372 in void std.net.curl.Curl._check(int) 0x00406B44 in char[] std.net.curl.get!(std.net.curl.HTTP, char).get(const(char)[], std.net.curl.HTTP) at ...\dmd2\\src\phobos\std\net\curl.d(367) 0x00402094 in char[] std.net.curl.get!(std.net.curl.AutoProtocol, char).get(const(char)[], std.net.curl.AutoProtocol) at ...\dmd2\\src\phobos\std\net\curl.d(381) 0x0040202C in _Dmain 0x0042526C in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1() 0x0042523F in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() 0x00425158 in _d_run_main 0x00424F84 in main 0x00466031 in mainCRTStartup 0x7592D2E9 in BaseThreadInitThunk 0x77131603 in RtlInitializeExceptionChain 0x771315D6 in RtlInitializeExceptionChain std.net.curl.CurlException@std\net\curl.d(3589): A libcurl function was given a bad argument on handle null ---------------- 0x004055E6 in pure @safe bool std.exception.enforceEx!(std.net.curl.CurlException).enforceEx!(bool).enforceEx(bool, lazy immutable(char)[], immutable(char)[], uint) at ...\dmd2\\src\phobos\std\exception.d(529) 0x00430372 in void std.net.curl.Curl._check(int) 0x00406B44 in char[] std.net.curl.get!(std.net.curl.HTTP, char).get(const(char)[], std.net.curl.HTTP) at ...\dmd2\\src\phobos\std\net\curl.d(367) 0x00402094 in char[] std.net.curl.get!(std.net.curl.AutoProtocol, char).get(const(char)[], std.net.curl.AutoProtocol) at ...\dmd2\\src\phobos\std\net\curl.d(381) 0x0040202C in _Dmain 0x0042526C in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1() 0x0042523F in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() 0x00425158 in _d_run_main 0x00424F84 in main 0x00466031 in mainCRTStartup 0x7592D2E9 in BaseThreadInitThunk 0x77131603 in RtlInitializeExceptionChain 0x771315D6 in RtlInitializeExceptionChain
Comment #1 by john.loughran.colvin — 2014-02-07T15:22:24Z
Comment #2 by dlang-bugzilla — 2014-02-08T19:04:29Z
Comment #3 by k.hara.pg — 2014-02-09T17:25:23Z
Comment #4 by github-bugzilla — 2014-02-10T21:35:14Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/701768ccfc3ec64856794bf19df9a9b65450feb0 fix Issue 12098 - libcurl bad argument on handle null https://github.com/D-Programming-Language/phobos/commit/66b3b884185a792997ba047452d1b7531de7dc01 Merge pull request #1920 from 9rnsr/fix12098 [REG2.065a] Issue 12098 - libcurl bad argument on handle null
Comment #5 by github-bugzilla — 2014-02-11T05:14:01Z
Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/71ca5f37b84bb63cd287681ee31915027ea8a7cf Merge pull request #1920 from 9rnsr/fix12098 [REG2.065a] Issue 12098 - libcurl bad argument on handle null
Comment #6 by github-bugzilla — 2014-02-27T20:13:29Z