Broken CURL operations

Bug #1876296 reported by Carsten Schlote
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dub (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The official dub package fails to operate properly with libcurl. It aborts with unexpected error in runtime.

$ /usr/bin/dub --version
DUB version 1.19.0-1build2, built on Mar 24 2020
$ /usr/bin/dub upgrade -v
Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
Determined package version using GIT: lzd 0.3.4+commit.3.g1026347
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
  Found dependency silly 1.0.2
Upgrading project in /home/cschlote/build/dlang/lzd
Search for versions of silly (1 package suppliers)
Package supplier registry at https://code.dlang.org/ failed with 'HTTP request returned status code 0 ()', trying fallbacks.
Fallback package supplier registry at https://code-mirror.dlang.io/ failed with 'Failed to download https://code-mirror.dlang.io/api/packages/infos?packages=%5B%22silly%22%5D&include_dependencies=true&minimize=true'.
Fallback package supplier registry at https://dub-registry.herokuapp.com/ failed with 'HTTP request returned status code 503 (Service Unavailable)'.
Package silly not found in registry at https://code.dlang.org/ (fallbacks registry at https://code-mirror.dlang.io/, registry at https://dub-registry.herokuapp.com/): HTTP request returned status code 0 ()
Return for silly: [1.0.2]
Dependency resolution result:
  silly: 1.0.2
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
  Found dependency silly 1.0.2

However, a dub version compiled with ldc2 (also compiled from sources) works fine:
$ /usr/local/bin/dub upgrade -v
Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
Determined package version using GIT: lzd 0.3.4+commit.3.g1026347
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
  Found dependency silly 1.0.2
Upgrading project in /home/cschlote/build/dlang/lzd
Search for versions of silly (1 package suppliers)
Return for silly: [1.0.2, 1.0.1, 1.0.0, 0.8.2, 0.8.1, 0.8.0, 0.7.1, 0.7.0, 0.6.0, 0.5.0, 0.4.3, 0.4.2, 0.4.1, 0.4.0, 0.3.0, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.7.0-alpha, ~master]
Dependency resolution result:
  silly: 1.0.2
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/cschlote/.dub/packages/local-packages.json
Looking for local package map at /home/cschlote/build/dlang/lzd/.dub/packages/local-packages.json
  Found dependency silly 1.0.2

The problem prevents the use of all packages on code.dlang.org as it aborts with 'https://code-mirror.dlang.io/, registry at https://dub-registry.herokuapp.com/): HTTP request returned status code 0 ()'.

Problem is related to Bug #1876293

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: dub 1.19.0-1build2
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:36:37 2020
SourcePackage: dub
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Carsten Schlote (carsten-schlote) wrote :
Revision history for this message
Brad Svercl (graxxy) wrote :

Same problem here, I submitted a diff bug report, but this was what I was getting at. It's interesting because it doesn't appear on this version in other distros.

Revision history for this message
Carsten Schlote (carsten-schlote) wrote :

The problem seems to be related to broken HTTP/2 status line support in libphobos. There is some patch available, which hopefully will appear in the GDC package soon. This should fix all packages using GDC for compilation.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dub (Ubuntu):
status: New → Confirmed
Revision history for this message
Brad Svercl (graxxy) wrote :

Works for me as of latest version. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.