Public bug reported:

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)

** Affects: gcc-10 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug arm64 focal uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876293

Title:
  Broken CURL support with GDC

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1876293/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to