Debian Bug report logs - #728584

cabal-install hangs

Reported by: Zhang Zengbo <zengbo.zhang@gmail.com> Date: Sun, 3 Nov 2013 11:51:02 UTC Severity: important Found in version haskell-cabal-install/1.16.0.2-2

Reply or subscribe to this bug.

Toggle useless messages

Report forwarded to debian-bugs-dist@lists.debian.org, Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> :

Bug#728584 ; Package cabal-install . (Sun, 03 Nov 2013 11:51:07 GMT) (full text, mbox, link).

Acknowledgement sent to Zhang Zengbo <zengbo.zhang@gmail.com> :

New Bug report received and forwarded. Copy sent to Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> . (Sun, 03 Nov 2013 11:51:07 GMT) (full text, mbox, link).

Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Zhang Zengbo <zengbo.zhang@gmail.com> To: Debian Bug Tracking System <submit@bugs.debian.org> Subject: cabal-install hangs Date: Sun, 03 Nov 2013 19:41:56 +0800

Package: cabal-install Version: 1.16.0.2-2 Severity: important Dear Maintainer, I am a new user of haskell-platform. After I installed it, I simply run: cabal update, it hangs, then I try to use --verbose=3 to see what happend: $ cabal update --verbose=3 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/1.16.0.2 Creating new connection to hackage.haskell.org Received: HTTP/1.1 301 Moved Permanently Server: nginx/1.4.2 Date: Sun, 03 Nov 2013 11:28:43 GMT Content-Type: text/plain; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Location: /packages/index.tar.gz Content-Length: 0 301 - redirect Redirecting to http://hackage.haskell.org/packages/index.tar.gz ... Sending: GET /packages/index.tar.gz HTTP/1.1 Host: hackage.haskell.org User-Agent: cabal-install/1.16.0.2 Recovering connection to hackage.haskell.org It hangs after the last output line of "Recovering connecton to hackage.haskell.org" I don't know if it is related to cabal-install itself or something else. however I did additional tests: 1) proxychains cabal update, $ proxychains cabal update --verbose=3 ProxyChains-3.1 (http://proxychains.sf.net) 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/1.16.0.2 Creating new connection to hackage.haskell.org |DNS-request| hackage.haskell.org |S-chain|-<>-127.0.0.1:7070-<><>-4.2.2.2:53-<><>-OK |DNS-response| hackage.haskell.org is 88.198.224.242 Segmentation fault Note: my proxychains works well with wget. 2) install Wheezy (7.2) using debootstrap, chroot to it, install haskell platform and proxychains, do cabal update with and without proxychains, same results : hang without proxychains, Segmentation fault with proxychains. 3) install Wheezy (7.2) using kvm, do same as 2), once again get same results. So I guess there is something wrong in the network part of cabal-install. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores) Locale: LANG=zh_CN.utf8, LC_CTYPE=zh_CN.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cabal-install depends on: ii libc6 2.17-93 ii libffi6 3.0.13-4 ii libgmp10 2:5.1.2+dfsg-3 ii zlib1g 1:1.2.8.dfsg-1 Versions of packages cabal-install recommends: ii ghc 7.6.3-5 cabal-install suggests no packages. -- no debconf information

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> :

Bug#728584 ; Package cabal-install . (Sun, 03 Nov 2013 23:09:15 GMT) (full text, mbox, link).

Acknowledgement sent to Joachim Breitner <nomeata@debian.org> :

Extra info received and forwarded to list. Copy sent to Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> . (Sun, 03 Nov 2013 23:09:15 GMT) (full text, mbox, link).

Message #10 received at 728584@bugs.debian.org (full text, mbox, reply):

From: Joachim Breitner <nomeata@debian.org> To: Zhang Zengbo <zengbo.zhang@gmail.com>, 728584@bugs.debian.org Subject: Re: [Pkg-haskell-maintainers] Bug#728584: cabal-install hangs Date: Mon, 04 Nov 2013 00:04:55 +0100

Hi, Am Sonntag, den 03.11.2013, 19:41 +0800 schrieb Zhang Zengbo: > I am a new user of haskell-platform. After I installed it, I simply run: > cabal update, it hangs, then I try to use --verbose=3 to see what happend: unfortuately, I cannot reproduce it here. Is there anything special about your network setup? E.g. forced proxies or something of the kind? Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> :

Bug#728584 ; Package cabal-install . (Mon, 04 Nov 2013 07:09:04 GMT) (full text, mbox, link).

Acknowledgement sent to 张增波 <zengbo.zhang@gmail.com> :

Extra info received and forwarded to list. Copy sent to Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> . (Mon, 04 Nov 2013 07:09:04 GMT) (full text, mbox, link).

Message #15 received at 728584@bugs.debian.org (full text, mbox, reply):

From: 张增波 <zengbo.zhang@gmail.com> Cc: 728584@bugs.debian.org Subject: Re: [Pkg-haskell-maintainers] Bug#728584: cabal-install hangs Date: Mon, 4 Nov 2013 15:05:05 +0800

HI Joachim and all, I guess two situations may help to reproduce it: 1. I am behind two NATs, one is a home router, one is the connection point from ISP to Internet (maybe more, depends on ISP). 2. The network speed is slow from my pc to hackage server (about 10KB/s) And there is another phenomenon after I reported the bug: I tried again (3 times) to do cabal update, with two times get partial content (almost full, let me say, only ~200k lost compared to a wget-ed and verified version but I didn't record the number ) after about 10 minutes then it reported the tarball is broken; and the last time it hangs with 3 hours so I did Ctrl-C to exit (same as the bug report itself). If you need I can do more times and give some accurate data (time/size). From the new phenomenon, I guess again it is about a weak design of tcp itself: when there is only one direction of data flow, the sender may close the tcp link more quickly than the receiver at certain condition: for some point the sender lose all data packages (and re-transmissions) to the receiver, and the receiver don't know it at all. Although it is a tcp weakness, AFAIK, this should be overcome by some upper layer protocol implementation. And another thing I am surprised is about proxychains, it is 100% segmentation fault on my side. I just use a ssh dynamic port forwarding and in wget case it can speed up the download to hackage server. It should be easy to reproduce in my opinion. Best, Zengbo 2013/11/4 Joachim Breitner <nomeata@debian.org> > Hi, > > Am Sonntag, den 03.11.2013, 19:41 +0800 schrieb Zhang Zengbo: > > I am a new user of haskell-platform. After I installed it, I simply run: > > cabal update, it hangs, then I try to use --verbose=3 to see what > happend: > > unfortuately, I cannot reproduce it here. Is there anything special > about your network setup? E.g. forced proxies or something of the kind? > > Greetings, > Joachim > > -- > Joachim "nomeata" Breitner > Debian Developer > nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C > JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata > > >

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> :

Bug#728584 ; Package cabal-install . (Sat, 09 Nov 2013 09:09:04 GMT) (full text, mbox, link).

Acknowledgement sent to 张增波 <zengbo.zhang@gmail.com> :

Extra info received and forwarded to list. Copy sent to Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> . (Sat, 09 Nov 2013 09:09:04 GMT) (full text, mbox, link).

Message #20 received at 728584@bugs.debian.org (full text, mbox, reply):

From: 张增波 <zengbo.zhang@gmail.com> Cc: 728584@bugs.debian.org Subject: Re: [Pkg-haskell-maintainers] Bug#728584: cabal-install hangs Date: Sat, 9 Nov 2013 17:05:38 +0800

Dear Joachim and all mentainers: I have more information on this bug. When I changed ~/.cabal/config file to use remote-repo: old.hackage.haskell.org:http://old.hackage.haskell.org/ instead of remote-repo: hackage.haskell.org:http:// hackage.haskell.org/packages/archive cabal update successed; When I changed back to default, the issue is then reproducable again. In both case, proxychains cabal update will get segmentation fault. Hope it helps. Best, Zengbo 2013/11/4 张增波 <zengbo.zhang@gmail.com> > HI Joachim and all, > > I guess two situations may help to reproduce it: > > 1. I am behind two NATs, one is a home router, one is the connection point > from ISP to Internet (maybe more, depends on ISP). > 2. The network speed is slow from my pc to hackage server (about 10KB/s) > > And there is another phenomenon after I reported the bug: I tried again (3 > times) to do cabal update, with two times get partial content (almost full, > let me say, only ~200k lost compared to a wget-ed and verified version but > I didn't record the number ) after about 10 minutes then it reported the > tarball is broken; and the last time it hangs with 3 hours so I did Ctrl-C > to exit (same as the bug report itself). If you need I can do more times > and give some accurate data (time/size). > > From the new phenomenon, I guess again it is about a weak design of tcp > itself: when there is only one direction of data flow, the sender may close > the tcp link more quickly than the receiver at certain condition: for some > point the sender lose all data packages (and re-transmissions) to the > receiver, and the receiver don't know it at all. Although it is a tcp > weakness, AFAIK, this should be overcome by some upper layer protocol > implementation. > > And another thing I am surprised is about proxychains, it is 100% > segmentation fault on my side. I just use a ssh dynamic port forwarding and > in wget case it can speed up the download to hackage server. It should be > easy to reproduce in my opinion. > > Best, > Zengbo > > > 2013/11/4 Joachim Breitner <nomeata@debian.org> > >> Hi, >> >> Am Sonntag, den 03.11.2013, 19:41 +0800 schrieb Zhang Zengbo: >> > I am a new user of haskell-platform. After I installed it, I simply run: >> > cabal update, it hangs, then I try to use --verbose=3 to see what >> happend: >> >> unfortuately, I cannot reproduce it here. Is there anything special >> about your network setup? E.g. forced proxies or something of the kind? >> >> Greetings, >> Joachim >> >> -- >> Joachim "nomeata" Breitner >> Debian Developer >> nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C >> JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata >> >> >> >

Send a report that this bug log contains spam.