[Bug 1876293] Re: libphobos: std.net.curl does not understand HTTP/2 status lines
Ćukasz Zemczak
1876293 at bugs.launchpad.net
Fri Sep 4 13:23:37 UTC 2020
This bug is fixed for focal as part of LP: #1879481 and does not require
explicit validation.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-10 in Ubuntu.
https://bugs.launchpad.net/bugs/1876293
Title:
libphobos: std.net.curl does not understand HTTP/2 status lines
Status in gcc-10 package in Ubuntu:
Fix Released
Status in gcc-10 source package in Focal:
Fix Committed
Bug description:
The GDC runtime access to the libcurl is broken. CURL operations abort
with unexpected error codes.
Test programm:
```
import std.net.curl;
import std.stdio;
void main()
{
HTTP http = HTTP();
auto data = get("https://acme-staging-v02.api.letsencrypt.org/directory", http);
writeln(data);
}
```
Compile this program and run it.
$ gdc curldownload.d -o curldownload -g
$ ./curldownload
std.net.curl.HTTPStatusException@/usr/lib/gcc/aarch64-linux-gnu/10/include/d/std/net/curl.d(1071): HTTP request returned status code 0 ()
----------------
??:? pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy object.Throwable) [0xffff7faf82d3]
??:? char[] std.net.curl._basicHTTP!(char)._basicHTTP(const(char)[], const(void)[], std.net.curl.HTTP) [0xaaaad4d9384b]
??:? char[] std.net.curl.get!(std.net.curl.HTTP, char).get(const(char)[], std.net.curl.HTTP) [0xaaaad4d92833]
??:? _Dmain [0xaaaad4d9272f]
??:? ???[0xffff7fc808bb]
??:? ???[0xffff7fc80c2f]
??:? _d_run_main [0xffff7fc80d9f]
??:? main [0xaaaad4d927a3]
??:? __libc_start_main [0xffff7f6da08f]
??:? ???[0xaaaad4d92603]
The same issue also impacts the 'dub' package. It is *not* possible to
update/fetch packages from code.dlang.org.
I compiled 'ldc2' from sources in its latest version. The code snippet
works fine, when compiled with ldc- Also 'dub', when recompiled with
ldc2, works fine.
So there is some problem with gdc and its access to libcurl. Maybe
broken library bindungs? Some issue with ARM32 and ARM64 archs (same
problem with ARM32(gnueabihf))?
Issue also reported on dlang.org :
https://issues.dlang.org/show_bug.cgi?id=20380
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gdc-10 10-20200411-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-1008.8-raspi 5.4.29
Uname: Linux 5.4.0-1008-raspi aarch64
ApportVersion: 2.20.11-0ubuntu27
Architecture: arm64
CasperMD5CheckResult: skip
Date: Fri May 1 12:19:49 2020
SourcePackage: gcc-10
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1876293/+subscriptions
More information about the foundations-bugs
mailing list