[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:22:33 UTC 2020
Hello Carsten, or anyone else affected,
Accepted gcc-10 into focal-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/gcc-10/10.2.0-5ubuntu1~20.04 in a
few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: gcc-10 (Ubuntu Focal)
Status: New => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
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