www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12098] New: libcurl bad argument on handle null

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 07 2014
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Feb 07 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12098


Vladimir Panteleev <thecybershadow gmail.com> changed:

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



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: -------
Feb 08 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Feb 09 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12098




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


[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: -------
Feb 10 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Feb 10 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12098




Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/71ca5f37b84bb63cd287681ee31915027ea8a7cf


[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: -------
Feb 11 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12098




Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/71ca5f37b84bb63cd287681ee31915027ea8a7cf


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