FS#7944 - pacman segfaults, using http_proxy

Attached to Project: Pacman
Opened by x86hemi (xhemi) - Monday, 03 September 2007, 08:30 GMT
Last edited by Xavier (shining) - Monday, 11 August 2008, 22:32 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 3.0.5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Pacman dies while waiting for the proxy response. This is likely due to the fact that the proxy filters traffic and scans for viruses.

Additional info:
read above, below

Steps to reproduce:
[root@YYYY ZZZZ]# http_proxy=http://XXX.XXX.XXX:8080 pacman -S openoffice-base openoffice-nn
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: hunspell-1.1.8-1 icu-3.6-1 libgsf-1.14.5-1 libwpd-0.8.9-1 libxslt-1.1.21-1 xmlsec-1.2.10-3 flac-1.2.0-1 libsndfile-1.0.17-1 xalan-java-2.7.0-2 hsqldb-java-1.8.0.7-2 openoffice-base-2.2.1-3 openoffice-nn-2.2.1-1

Total Package Size: 119.49 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from ftp.archlinux.org : Connection timed out
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from ftp.archlinux.org : Internal Server Error
error: failed retrieving file 'xalan-java-2.7.0-2.pkg.tar.gz' from ftp.archlinux.org : Connection timed out
error: failed retrieving file 'hsqldb-java-1.8.0.7-2.pkg.tar.gz' from ftp.archlinux.org : Internal Server Error
error: failed retrieving file 'openoffice-base-2.2.1-3.pkg.tar.gz' from ftp.archlinux.org : Connection timed out
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from ftp.nethat.com : Connection timed out
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from ftp.nethat.com : Connection timed out
error: failed retrieving file 'xalan-java-2.7.0-2.pkg.tar.gz' from ftp.nethat.com : Connection timed out
error: failed retrieving file 'hsqldb-java-1.8.0.7-2.pkg.tar.gz' from ftp.nethat.com : Connection timed out
error: failed retrieving file 'openoffice-base-2.2.1-3.pkg.tar.gz' from ftp.nethat.com : Connection timed out
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from locke.suu.edu : Internal Server Error
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from locke.suu.edu : Internal Server Error
error: failed retrieving file 'xalan-java-2.7.0-2.pkg.tar.gz' from locke.suu.edu : Internal Server Error
error: failed retrieving file 'hsqldb-java-1.8.0.7-2.pkg.tar.gz' from locke.suu.edu : Internal Server Error
error: failed retrieving file 'openoffice-base-2.2.1-3.pkg.tar.gz' from locke.suu.edu : Internal Server Error
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from ftp-linux.cc.gatech.edu : Connection timed out
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from ftp-linux.cc.gatech.edu : Internal Server Error
error: failed retrieving file 'xalan-java-2.7.0-2.pkg.tar.gz' from ftp-linux.cc.gatech.edu : Connection timed out
error: failed retrieving file 'hsqldb-java-1.8.0.7-2.pkg.tar.gz' from ftp-linux.cc.gatech.edu : Internal Server Error
error: failed retrieving file 'openoffice-base-2.2.1-3.pkg.tar.gz' from ftp-linux.cc.gatech.edu : Connection timed out
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from mirror.cs.vt.edu : Connection timed out
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from mirror.cs.vt.edu : Internal Server Error
error: failed retrieving file 'xalan-java-2.7.0-2.pkg.tar.gz' from mirror.cs.vt.edu : Connection timed out
error: failed retrieving file 'hsqldb-java-1.8.0.7-2.pkg.tar.gz' from mirror.cs.vt.edu : Internal Server Error
error: failed retrieving file 'openoffice-base-2.2.1-3.pkg.tar.gz' from mirror.cs.vt.edu : Connection timed out
error: failed retrieving file 'icu-3.6-1.pkg.tar.gz' from mirrors.easynews.com : Connection timed out
error: failed retrieving file 'libwpd-0.8.9-1.pkg.tar.gz' from mirrors.easynews.com : Not Found
Internal pacman error: Segmentation faults 00:00:00 [---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0%
Please submit a full bug report, with the given package if appropriate.
This task depends upon

Closed by  Xavier (shining)
Monday, 11 August 2008, 22:32 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Old ticket with no activity and no real reproducible test case, so this is impossible to fix.
Feel free to re-open if you have valuable information to add.
Comment by Dan McGee (toofishes) - Tuesday, 18 September 2007, 01:20 GMT
This might be a bit easier to track down by using the --debug or --debug=3 option, if you can still duplicate it.
Comment by Aaron Griffin (phrakture) - Friday, 28 September 2007, 05:22 GMT
For myself, I think there's two potential issues here:

a) We don't regularly test the case where the mirror list is exhausted. I wonder if we hit that here?

b) It seems some/all (?) proxies don't send the Content-Length header, which means we have no total size for the progress bars. I could definitely see this causing issues.
Comment by Dan McGee (toofishes) - Wednesday, 05 December 2007, 13:58 GMT
  • Field changed: Due in Version (3.1.0 → 3.1.1)
Punting to a 3.1 bugfix release.
Comment by Dan McGee (toofishes) - Sunday, 09 December 2007, 08:13 GMT
Should be fixed here:

<http://projects.archlinux.org/git/?p=pacman.git;a=commit;h=97fe3d3f5adecfbf9d6bf201161d743361107e32>

It doesn't quite look like all related tasks are the same here, as one of them failed partway through the download and not at the beginning/end as the above fix addressed.
Comment by Dan McGee (toofishes) - Sunday, 09 December 2007, 08:14 GMT
Oops...might have posted on the wrong bug.
Comment by Aaron Griffin (phrakture) - Tuesday, 11 December 2007, 18:18 GMT
Yeah the proxy stuff is different and all out of whack - the calculations get weird and I'm not sure why, but at one point I had a file completing in 327:39:12 and was 1387213897234897% complete, if that makes it more clear 8)
Comment by Dan McGee (toofishes) - Friday, 06 June 2008, 04:27 GMT
Can this get closed? Old ticket with no activity and no real reproducible test case.
Comment by x86hemi (xhemi) - Monday, 21 July 2008, 08:55 GMT
I haven't been able to rerun my tests since my old computer got hijacked. Anyways i will redo and see if anything has changed. The original post is a reaction when trying to connect over a network with a proxy which takes a good deal of time to scan attachements. I don't know the specifics of the proxy but my solution has always been to use the debian tsocks scripts, while using SSH to an outside remote host, instead of relying on http_proxy or ftp_proxy. perhaps pacman should incorporate the tsocks lib directly?

I have a somewhat different request as well, it would be great if the archlinux installer came with 'tsocks' and 'links' by default. I recently did a x86_64 install and the packages wasn't available under /src/ which made me have to use a different computer to find the urls and then use wget.
Comment by Aaron Griffin (phrakture) - Monday, 21 July 2008, 18:36 GMT
Edward, please file the last request as a separate report so that it doesn't get lost way down in the bottom of the comments.
Comment by Gavin Bisesi (Daenyth) - Monday, 11 August 2008, 17:52 GMT
Is this implemented? If not the target version should be reassigned.

Loading...