FS#10976 - pacman segfaults after timeout on slow connection

Attached to Project: Pacman
Opened by Michael Hrabanek (ashen) - Tuesday, 22 July 2008, 08:40 GMT
Last edited by Dan McGee (toofishes) - Thursday, 24 July 2008, 02:23 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Dan McGee (toofishes)
Architecture x86_64
Severity Low
Priority Normal
Reported Version 3.1.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
Similarly to bug #10773 pacman crashes while downloading big file using unstable and slow internet connection. It happened 6 times in last 24 hours installing different kinds of packages.

# pacman --debug -S openoffice-base-devel
<dump shorten>
Total Download Size: 138.09 MB
Total Installed Size: 351.78 MB

Proceed with installation? [Y/n]
debug: using cachedir: /var/cache/pacman/pkg/
:: Retrieving packages from extra...
debug: using 'libgsf-1.14.8-1-x86_64.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'libwpd-0.8.14-1-x86_64.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'xalan-java-2.7.0-2.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'hsqldb-java-1.8.0.9-1-x86_64.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'libxmi-1.2-1.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'plotutils-2.5-1-x86_64.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'gd-2.0.35-1.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
debug: using 'gsfonts-8.11-4.pkg.tar.gz' for download progress
debug: connected to ftp.sh.cvut.cz successfully
error: segmentation fault
error: Internal pacman error: Segmentation fault.
Please submit a full bug report with --debug if appropriate.


Steps to Reproduce:
Take your laptop for walk and try to install several big packages using your home wireless AP;o)
This task depends upon

Closed by  Dan McGee (toofishes)
Thursday, 24 July 2008, 02:23 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#10773 
Comment by Dan McGee (toofishes) - Tuesday, 22 July 2008, 12:46 GMT
So you seem to be able to actually reproduce this? It would be awesome if we could get a backtrace of the actual failure; you'll need a pacman compiled with debugging symbols not stripped to do this.

If you feel comfortable recompiling packages and getting this backtrace for us, simply grab the pacman PKGBUILD from ABS and add the !strip option to the options array and recompile. You should then be able to run:
gdb --args pacman --debug -S openoffice-base-devel

and everything will run until we get to the segmentation fault. At that point, type the command 'bt' (e.g. backtrace) to get a stack dump of where we are at.
Comment by Dan McGee (toofishes) - Tuesday, 22 July 2008, 12:52 GMT
We might have to recompile libdownload as well to get debug symbols, as I am guessing our failure is at that level...
Comment by Allan McRae (Allan) - Wednesday, 23 July 2008, 11:31 GMT
Seems likely to be the same bug as  FS#10773 .
Comment by Michael Hrabanek (ashen) - Wednesday, 23 July 2008, 17:32 GMT
Unfortunately I haven't been able to reproduce it again after recompiling pacman & libdownload with !strip option cause my connection has been fixed.

Loading...