<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">Dear Joachim and all mentainers:</span><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">   I have more information on this bug. When I changed ~/.cabal/config file to use </span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><div>
<br></div><div>  remote-repo: old.hackage.haskell.org:http://<a href="http://old.hackage.haskell.org/">old.hackage.haskell.org/</a></div><div><br></div><div>instead of</div><div><br></div></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><div>
  remote-repo: hackage.haskell.org:http://<a href="http://hackage.haskell.org/packages/archive">hackage.haskell.org/packages/archive</a></div><div><br></div></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">cabal update successed; When I changed back to default, the issue is then reproducable again.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">In both case, proxychains cabal update will get segmentation fault.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">Hope it helps.</span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">Best,</span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px">Zengbo</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13.888888359069824px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/4 ÕÅÔö²¨ <span dir="ltr"><<a href="mailto:zengbo.zhang@gmail.com" target="_blank">zengbo.zhang@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>HI Joachim and all,</div><div><br></div>I guess two situations may help to reproduce it:<div><br></div>
<div>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).</div>
<div>2. The network speed is slow from my pc to hackage server (about 10KB/s)</div><div class="gmail_extra"><br></div><div class="gmail_extra">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). <br>

<br>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.<br>

<br>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.<br>

<br>Best,</div><div class="gmail_extra">Zengbo<div><div class="h5"><br><br><div class="gmail_quote">2013/11/4 Joachim Breitner <span dir="ltr"><<a href="mailto:nomeata@debian.org" target="_blank">nomeata@debian.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi,<br>
<br>
Am Sonntag, den 03.11.2013, 19:41 +0800 schrieb Zhang Zengbo:<br>
> I am a new user of haskell-platform. After I installed it, I simply run:<br>
> cabal update, it hangs, then I try to use --verbose=3 to see what happend:<br>
<br>
unfortuately, I cannot reproduce it here. Is there anything special<br>
about your network setup? E.g. forced proxies or something of the kind?<br>
<br>
Greetings,<br>
Joachim<br>
<span><font color="#888888"><br>
--<br>
Joachim "nomeata" Breitner<br>
Debian Developer<br>
  <a href="mailto:nomeata@debian.org" target="_blank">nomeata@debian.org</a> | ICQ# 74513189 | GPG-Keyid: 4743206C<br>
  JID: <a href="mailto:nomeata@joachim-breitner.de" target="_blank">nomeata@joachim-breitner.de</a> | <a href="http://people.debian.org/~nomeata" target="_blank">http://people.debian.org/~nomeata</a><br>
<br>
<br>
</font></span></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>