Thread overview
[Issue 12098] New: libcurl bad argument on handle null
Feb 07, 2014
John Colvin
Feb 09, 2014
Vladimir Panteleev
Feb 10, 2014
Kenji Hara
Feb 11, 2014
Kenji Hara
February 07, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098

           Summary: libcurl bad argument on handle null
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2014-02-07 03:15:12 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 07, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098


John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com


--- Comment #1 from John Colvin <john.loughran.colvin@gmail.com> 2014-02-07 23:22:24 GMT ---
It seems this has broken dub: https://github.com/rejectedsoftware/dub/issues/236

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com


--- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> 2014-02-09 05:04:29 EET ---
Introduced in https://github.com/D-Programming-Language/dmd/pull/3221

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2014-02-09 17:25:23 PST ---
https://github.com/D-Programming-Language/phobos/pull/1920

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 11, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098



--- Comment #4 from github-bugzilla@puremagic.com 2014-02-10 21:35:14 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 11, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 11, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098



--- Comment #5 from github-bugzilla@puremagic.com 2014-02-11 05:14:01 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 28, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12098



--- Comment #6 from github-bugzilla@puremagic.com 2014-02-27 20:13:29 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/71ca5f37b84bb63cd287681ee31915027ea8a7cf Merge pull request #1920 from 9rnsr/fix12098

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------