Ticket #636 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

cabal-install: premature end of compressed stream

Reported by: migmit Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version:
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

$ cabal -v3 update Downloading the latest package list from hackage.haskell.org Sending: GET /packages/archive/00-index.tar.gz HTTP/1.1 Host: hackage.haskell.org User-Agent: cabal-install/0.8.0 Creating new connection to hackage.haskell.org Received: HTTP/1.1 200 OK Date: Thu, 18 Feb 2010 11:07:11 GMT Server: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2 Last-Modified: Thu, 18 Feb 2010 04:35:56 GMT ETag: "1bda0bd-167306-47fd880b74300" Accept-Ranges: bytes Content-Length: 1471238 Content-Type: application/x-tar Content-Encoding: x-gzip Downloaded to C:\Documents and Settings\mmitrofanov\Application Data\cabal\packages\hackage.haskell.org\00-index.tar.gz cabal.exe: Codec.Compression.Zlib: premature end of compressed stream

Windows, CygWin?, GHC 6.10.4

ghc-pkg:

$ ghc-pkg list D:/ghc/ghc-6.10.4\package.conf:

Cabal-1.6.0.3, Cabal-1.8.0.2, HTTP-4000.0.9, HUnit-1.2.0.3, QuickCheck?-1.2.0.0, Win32-2.2.0.0, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-0.1.1.0, filepath-1.1.0.2, (ghc-6.10.4), ghc-prim-0.1.0.0, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.2, old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1, time-1.1.4, xhtml-3000.2.0.1, zlib-0.5.2.0

$ cabal --version cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library

Change History

follow-up: ↓ 4   Changed 3 years ago by guest

This bug disappears if you compile cabal-install with GHC 6.12.1.

  Changed 3 years ago by duncan

I suspect recompiling with any version would work. If we cannot reproduce this there's not a lot we can do. If it can be reproduced then please post details here.

  Changed 3 years ago by guest

I have reproduced on 3 machines. Install GHC 6.10.4. Install Cabal binary from the website. Run cabal update. Run cabal install cabal-install. Observe that cabal update no longer works.

in reply to: ↑ 1   Changed 3 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed

Replying to guest:

This bug disappears if you compile cabal-install with GHC 6.12.1.

This is what confused me. I now assume that this comment was a mistake.

I confirmed a bug in cabal-install-0.8.0 on Windows. The update always fails because of a bug in how the downloaded file is written. The fix is in the darcs version (0.8.x branch) and will be in the 0.8.2 release.

If anyone thinks my diagnosis is wrong then please re-open.

Note: See TracTickets for help on using tickets.