Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#2205 - pacman segfault

Attached to Project: Pacman
Opened by Askadar (askadar) - Sunday, 13 February 2005, 12:51 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Pacman crashed with a segmentation fault.

[root@invisible-university askadar]# pacman -Syu
:: Synchronizing package databases...
current [################] 100% 44K 19.2K/s 00:00:02
extra [################] 100% 190K 79.4K/s 00:00:02

Remove: nss-nspr

Targets: bash-3.0-6 epiphany-1.4.7-4 evolution-2.0.3-2
evolution-data-server-1.0.3-2 gnome-common-2.8.0-6 gnome-panel-2.8.2-2
gnome-themes-extras-0.8.1-1 gstreamer-0.8.9-1 inkscape-0.41-1
mozilla-1.7.5-2 mozilla-firefox-1.0-3 nss-nspr-3.9.2-1 readline-5.0-3

Total Package Size: 55.9 MB

Proceed with upgrade? [Y/n] y

:: Retrieving packages from current...
bash-3.0-6 [################] 100% 387K 70.8K/s 00:00:05
mozilla-firefox-1.0-3 [################] 100% 9267K 103.4K/s 00:01:29
nss-nspr-3.9.2-1 [################] 100% 1306K 94.4K/s 00:00:13
readline-5.0-3 [################] 100% 247K 62.9K/s 00:00:03

:: Retrieving packages from extra...
epiphany-1.4.7-4 [################] 100% 2901K 107.7K/s 00:00:26
evolution-2.0.3-2 [################] 100% 10579K 112.6K/s 00:01:33
evolution-data-server-1. [################] 100% 1324K 108.8K/s 00:00:12
gnome-common-2.8.0-6 [################] 100% 8K 12.9K/s 00:00:00
gnome-panel-2.8.2-2 [################] 100% 2773K 111.5K/s 00:00:24
gnome-themes-extras-0.8. [################] 100% 4123K 112.3K/s 00:00:36
gstreamer-0.8.9-1 [################] 100% 1550K 108.6K/s 00:00:14
inkscape-0.41-1 [################] 100% 6115K 112.0K/s 00:00:54
mozilla-1.7.5-2 [################] 100% 16692K 113.8K/s 00:02:26

checking package integrity... done.
removing nss-nspr... done.
loading package data... done.
checking for file conflicts... done.
upgrading bash... done.
upgrading epiphany... done.
Updating scrollkeeper catalogue ... done.
upgrading evolution... done.
updating scrollkeeper catalogue...
upgrading evolution-data-server... done.
upgrading gnome-common... done.
upgrading gnome-panel... done.
updating scrollkeeper catalogue ...
upgrading gnome-themes-extras... done.
upgrading gstreamer... done.
upgrading inkscape... done.
update desktop mime database...
upgrading mozilla... done.
upgrading mozilla-firefox... done.
installing nss-nspr... done.
sh: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
upgrading readline... done.
Segmentation fault
This task depends upon

Closed by  Judd Vinet (judd)
Thursday, 21 April 2005, 22:10 GMT
Reason for closing:  Fixed
Comment by Dale Blount (dale) - Sunday, 13 February 2005, 14:57 GMT
Happened to me also.
Comment by Judd Vinet (judd) - Sunday, 13 February 2005, 19:38 GMT
That's strange. Why was pacman removing nss-nspr, then re-installing it?
Comment by Askadar (askadar) - Sunday, 13 February 2005, 20:11 GMT
Don't know. I did not specify any further options. I have a vanilla pacman.conf .
Comment by Jan de Groot (JGC) - Monday, 14 February 2005, 08:59 GMT
Hmm, mozilla conflicts with nss-nspr now, and nss-nspr had an upgrade. Seems pacman upgrades it, even when it's conflicting.
Comment by Jan de Groot (JGC) - Monday, 14 February 2005, 10:13 GMT
This segfault stuff seems to happen when a lib moves from prefix. I've seen the same with gnome-terminal when vte moved from /opt/gnome to /usr.
Comment by Johannes Jordan (FoPref) - Sunday, 20 February 2005, 02:06 GMT
I had that segfault, too. It complained about that readline thing before, too.
Comment by Simo Leone (neotuli) - Sunday, 03 April 2005, 02:42 GMT
I've been seeing that readline complaint a lot lately.
Comment by Andy Roberts (arooaroo) - Tuesday, 19 April 2005, 18:48 GMT
I too received my first pacman problems today.

1) Kept seeing "error: anonymous login failed"
2) Segfault after everything's been installed.

nss-nspr package features here too. Here's the output:

:: Synchronizing package databases...
error: anonymous login failed
failed to synchronize punkrockguy318
error: anonymous login failed
current [################] 100% 45K 99.2K/s 00:00:00
extra [################] 100% 201K 89.9K/s 00:00:02
:: kernel26-2.6.10-3: ignoring package upgrade (2.6.11.7-1)
:: Above packages will be skipped. To manually upgrade use 'pacman -S <pkg>'

Remove: nss-nspr gecko-sdk

Targets: apache-2.0.54-1 gecko-sdk-1.7.7-1 gettext-0.14.4-1 gnome-vfs-2.10.1-1
kde-common-3.4.0-7 libidn-0.5.15-1 libieee1284-0.2.10-1 lilo-22.7-1
lm_sensors-2.9.1-1 man-pages-2.02-1 mozilla-firefox-1.0.3-1
mplayer-plugin-2.80-2 openoffice-base-1.1.4-4 openssl-0.9.7g-1
orbit2-2.12.2-1 phpbb-2.0.14-1 samba-3.0.14-1 udev-057-1

Total Package Size: 99.2 MB

Proceed with upgrade? [Y/n] y

:: Retrieving packages from current...
error: anonymous login failed
apache-2.0.54-1 [################] 100% 1214K 873.8K/s 00:00:01
gettext-0.14.4-1 [################] 100% 1681K 930.5K/s 00:00:01
lilo-22.7-1 [################] 100% 108K 216.3K/s 00:00:00
man-pages-2.02-1 [################] 100% 3668K 1207K/s 00:00:03
mozilla-firefox-1.0.3-1 [################] 100% 11837K 1430K/s 00:00:08
openssl-0.9.7g-1 [################] 100% 1859K 1083K/s 00:00:01
samba-3.0.14-1 [################] 100% 15150K 1461K/s 00:00:10
udev-057-1 [################] 100% 102K 187.6K/s 00:00:00

:: Retrieving packages from extra...
gecko-sdk-1.7.7-1 [################] 100% 1121K 35.7K/s 00:00:31
gnome-vfs-2.10.1-1 [################] 100% 1380K 37.8K/s 00:00:36
kde-common-3.4.0-7 [################] 100% 121K 12.4K/s 00:00:09
libidn-0.5.15-1 [################] 100% 185K 44.1K/s 00:00:04
libieee1284-0.2.10-1 [################] 100% 76K 7.0K/s 00:00:10
lm_sensors-2.9.1-1 [################] 100% 249K 25.7K/s 00:00:09
mplayer-plugin-2.80-2 [################] 100% 73K 27.9K/s 00:00:02
openoffice-base-1.1.4-4 [################] 100% 61695K 39.4K/s 00:00:28
orbit2-2.12.2-1 [################] 100% 530K 30.6K/s 00:00:17
phpbb-2.0.14-1 [################] 100% 523K 33.5K/s 00:00:15

checking package integrity... done.
removing nss-nspr... done.
removing gecko-sdk... done.
loading package data... done.
checking for file conflicts... done.
upgrading apache... done.
installing gecko-sdk... done.
upgrading gettext... done.
upgrading gnome-vfs... done.
upgrading kde-common... done.
For more info on KDE please have a look at:
'http://wiki2.archlinux.org/index.php/KDE'
upgrading libidn... done.
upgrading libieee1284... done.
upgrading lilo...
warning: extracting /etc/lilo.conf as /etc/lilo.conf.pacnew
done.

If you use the LILO bootloader, you should run 'lilo' after upgrading.

upgrading lm_sensors... done.
upgrading man-pages... done.
upgrading mozilla-firefox... done.
upgrading mplayer-plugin... done.
upgrading openoffice-base... done.
==> For more information about OpenOffice. Please have a look at:
==> 'http://wiki2.archlinux.org/index.php/OpenOffice'
upgrading openssl... done.
upgrading orbit2... done.
upgrading phpbb... done.
upgrading samba... done.
upgrading udev... done.
Segmentation fault
[andyr@roo ~]$
Comment by Judd Vinet (judd) - Tuesday, 19 April 2005, 18:57 GMT
If anyone can reproduce this reliably, please send me the gzipped-tarball of your /var/lib/pacman directory.
Comment by Dale Blount (dale) - Tuesday, 19 April 2005, 19:22 GMT
Just a hunch, but it seems to me it only happens on a "desktop" type install. I'm not sure if that's because of the number or the type of packages installed, but I've seen it on just all (I think) of my systems with X (4) and none (that I can remember) without (70ish).

I'm not saying that it's X, but more likely something mozilla or nss-nspr based. My attempts to reproduce the bug failed.
Comment by Judd Vinet (judd) - Thursday, 21 April 2005, 22:09 GMT
Found (and fixed) the problem. It had to do with the hash table caching of db_scan() calls. When a package was removed (or replaced) the hash table entry was not removed. So when a sync was propagating requiredby fields to the new packages, it segfaulted when referencing the old package.

Will be fixed in 2.9.6

Loading...