You are not logged in.

#1 2011-01-06 05:04:04

melior
Member
Registered: 2010-12-04
Posts: 2

pacman -Su segfaults

Hello, I'm new to the forums though I've been using Arch for almost a year now.  Usually I'm pretty good about working through problems but this pacman segfault has me stumped.  I can successfully install packages but I can't do the system update.  Unfortunately I can't give you the exact date this started happening, but it was about a month ago, before which I would update pretty much every day.

Here is the output of pacman -Su --debug:

debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: SyncFirst: pacman
debug: config: architecture: x86_64
debug: config: new section 'core'
debug: registering sync database 'core'
debug: config file /etc/pacman.conf, line 64: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': ftp://ftp.archlinux.org/core/os/x86_64
debug: adding new server URL to database 'core': ftp://ibiblio.org/pub/linux/distributions/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://lug.mtu.edu/archlinux/ftpfull/core/os/x86_64
debug: adding new server URL to database 'core': ftp://mirrors.xmission.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://ftp.osuosl.org/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://mirror.rit.edu/archlinux/core/os/x86_64
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: config file /etc/pacman.conf, line 67: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': ftp://ftp.archlinux.org/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://ibiblio.org/pub/linux/distributions/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://lug.mtu.edu/archlinux/ftpfull/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://mirrors.xmission.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://ftp.osuosl.org/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://mirror.rit.edu/archlinux/extra/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': ftp://ftp.archlinux.org/community/os/x86_64
debug: adding new server URL to database 'community': ftp://ibiblio.org/pub/linux/distributions/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://lug.mtu.edu/archlinux/ftpfull/community/os/x86_64
debug: adding new server URL to database 'community': ftp://mirrors.xmission.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://ftp.osuosl.org/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://mirror.rit.edu/archlinux/community/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: registering sync database 'multilib'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'multilib': ftp://ftp.archlinux.org/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://ibiblio.org/pub/linux/distributions/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://lug.mtu.edu/archlinux/ftpfull/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://mirrors.xmission.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://ftp.osuosl.org/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://mirror.rit.edu/archlinux/multilib/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
debug: loading package cache for repository 'local'
debug: database path for tree local set to /var/lib/pacman/local/
debug: loading package cache for repository 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core/
:: Starting full system upgrade...
debug: checking for package upgrades
debug: loading package cache for repository 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra/
debug: loading package cache for repository 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community/
debug: loading package cache for repository 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib/
debug: new version of 'ati-dri' found (7.9-1 => 7.9.0.git20101207-2)
debug: adding package ati-dri-7.9.0.git20101207-2 to the transaction targets
debug: new version of 'attr' found (2.4.44-1 => 2.4.44-2)
debug: adding package attr-2.4.44-2 to the transaction targets
debug: new version of 'bash' found (4.1.009-1 => 4.1.009-3)
debug: adding package bash-4.1.009-3 to the transaction targets
debug: new version of 'ca-certificates' found (20090814-3 => 20090814+nmu2-1)
debug: adding package ca-certificates-20090814+nmu2-1 to the transaction targets
debug: new version of 'ca-certificates-java' found (20090629-2 => 20100412-2)
debug: adding package ca-certificates-java-20100412-2 to the transaction targets
debug: new version of 'chromium' found (8.0.552.215-1 => 8.0.552.224-1)
debug: adding package chromium-8.0.552.224-1 to the transaction targets
debug: new version of 'dbus' found (1.4.0-1 => 1.4.1-1)
debug: adding package dbus-1.4.1-1 to the transaction targets
debug: new version of 'dbus-core' found (1.4.0-1 => 1.4.1-1)
debug: adding package dbus-core-1.4.1-1 to the transaction targets
debug: new version of 'device-mapper' found (2.02.77-1 => 2.02.78-1)
debug: adding package device-mapper-2.02.78-1 to the transaction targets
debug: new version of 'dhcpcd' found (5.2.8-1 => 5.2.9-1)
debug: adding package dhcpcd-5.2.9-1 to the transaction targets
debug: new version of 'diffutils' found (3.0-1 => 3.0-2)
debug: adding package diffutils-3.0-2 to the transaction targets
debug: new version of 'django' found (1.2.3-2 => 1.2.4-1)
debug: adding package django-1.2.4-1 to the transaction targets
debug: new version of 'expat' found (2.0.1-5 => 2.0.1-6)
debug: adding package expat-2.0.1-6 to the transaction targets
debug: new version of 'filesystem' found (2010.10-1 => 2010.12-1)
debug: adding package filesystem-2010.12-1 to the transaction targets
debug: new version of 'fluidsynth' found (1.1.3-1 => 1.1.3-2)
debug: adding package fluidsynth-1.1.3-2 to the transaction targets
debug: new version of 'gen-init-cpio' found (2.6.32-1 => 2.6.36-1)
debug: adding package gen-init-cpio-2.6.36-1 to the transaction targets
debug: new version of 'ghostscript' found (9.00-1 => 9.00-2)
debug: adding package ghostscript-9.00-2 to the transaction targets
debug: new version of 'git' found (1.7.3.3-1 => 1.7.3.4-1)
debug: adding package git-1.7.3.4-1 to the transaction targets
debug: new version of 'gnutls' found (2.8.6-1 => 2.10.4-1)
debug: adding package gnutls-2.10.4-1 to the transaction targets
debug: new version of 'gparted' found (0.7.0-1 => 0.7.1-1)
debug: adding package gparted-0.7.1-1 to the transaction targets
debug: new version of 'graphicsmagick' found (1.3.7-3 => 1.3.12-1)
debug: adding package graphicsmagick-1.3.12-1 to the transaction targets
debug: new version of 'gtk-engine-murrine' found (0.98.1.1-1 => 0.98.1.1-2)
debug: adding package gtk-engine-murrine-0.98.1.1-2 to the transaction targets
debug: new version of 'heimdal' found (1.3.3-3 => 1.3.3-4)
debug: adding package heimdal-1.3.3-4 to the transaction targets
debug: new version of 'kernel26' found (2.6.36.1-3 => 2.6.36.2-1)
debug: adding package kernel26-2.6.36.2-1 to the transaction targets
debug: new version of 'kernel26-headers' found (2.6.36.1-3 => 2.6.36.2-1)
debug: adding package kernel26-headers-2.6.36.2-1 to the transaction targets
debug: new version of 'laptop-mode-tools' found (1.55-1 => 1.55-2)
debug: adding package laptop-mode-tools-1.55-2 to the transaction:: Replace pycairo with extra/python2-cairo? [Y/n]  targets
debug: new version of 'leafpad' found (0.8.17-1 => 0.8.18.1-1)
debug: adding package leafpad-0.8.18.1-1 to the transaction targets
debug: new version of 'lib32-freetype2' found (2.4.3-1 => 2.4.4-1)
debug: adding package lib32-freetype2-2.4.4-1 to the transaction targets
debug: new version of 'lib32-libdrm' found (2.4.22-1 => 2.4.22-4)
debug: adding package lib32-libdrm-2.4.22-4 to the transaction targets
debug: new version of 'lib32-libgl' found (7.9-2 => 7.9.0.git20101207-2)
debug: adding package lib32-libgl-7.9.0.git20101207-2 to the transaction targets
debug: new version of 'lib32-libx11' found (1.3.5-2 => 1.4.0-1)
debug: adding package lib32-libx11-1.4.0-1 to the transaction targets
debug: new version of 'lib32-libxdmcp' found (1.0.3-4 => 1.1.0-1)
debug: adding package lib32-libxdmcp-1.1.0-1 to the transaction targets
debug: new version of 'lib32-libxi' found (1.3.2-3 => 1.4.0-1)
debug: adding package lib32-libxi-1.4.0-1 to the transaction targets
debug: new version of 'lib32-libxv' found (1.0.5-3 => 1.0.6-1)
debug: adding package lib32-libxv-1.0.6-1 to the transaction targets
debug: new version of 'lib32-libxxf86vm' found (1.1.0-3 => 1.1.1-1)
debug: adding package lib32-libxxf86vm-1.1.1-1 to the transaction targets
debug: new version of 'lib32-ncurses' found (5.7-5 => 5.7-6)
debug: adding package lib32-ncurses-5.7-6 to the transaction targets
debug: new version of 'lib32-zlib' found (1.2.5-5 => 1.2.5-6)
debug: adding package lib32-zlib-1.2.5-6 to the transaction targets
debug: new version of 'libcap' found (2.19-1 => 2.19-2)
debug: adding package libcap-2.19-2 to the transaction targets
debug: new version of 'libdrm' found (2.4.22-1 => 2.4.22-3)
debug: adding package libdrm-2.4.22-3 to the transaction targets
debug: new version of 'libdvdcss' found (1.2.10-1 => 1.2.10-2)
debug: adding package libdvdcss-1.2.10-2 to the transaction targets
debug: new version of 'libgl' found (7.9-1 => 7.9.0.git20101207-2)
debug: adding package libgl-7.9.0.git20101207-2 to the transaction targets
debug: new version of 'libgssglue' found (0.1-2 => 0.1-3)
debug: adding package libgssglue-0.1-3 to the transaction targets
debug: new version of 'libogg' found (1.2.1-1 => 1.2.2-1)
debug: adding package libogg-1.2.2-1 to the transaction targets
debug: new version of 'libpcap' found (1.1.1-1 => 1.1.1-2)
debug: adding package libpcap-1.1.1-2 to the transaction targets
debug: new version of 'libpng' found (1.4.4-1 => 1.4.5-1)
debug: adding package libpng-1.4.5-1 to the transaction targets
debug: new version of 'libpulse' found (0.9.22-1 => 0.9.22-2)
debug: adding package libpulse-0.9.22-2 to the transaction targets
debug: new version of 'libpurple' found (2.7.7-1 => 2.7.8-1)
debug: adding package libpurple-2.7.8-1 to the transaction targets
debug: new version of 'lvm2' found (2.02.77-1 => 2.02.78-1)
debug: adding package lvm2-2.02.78-1 to the transaction targets
debug: new version of 'man-pages' found (3.31-1 => 3.32-1)
debug: adding package man-pages-3.32-1 to the transaction targets
debug: new version of 'mesa' found (7.9-1 => 7.9.0.git20101207-2)
debug: adding package mesa-7.9.0.git20101207-2 to the transaction targets
debug: new version of 'pacman-mirrorlist' found (20100825-1 => 20101223-1)
debug: adding package pacman-mirrorlist-20101223-1 to the transaction targets
debug: new version of 'pcre' found (8.10-2 => 8.11-1)
debug: adding package pcre-8.11-1 to the transaction targets
debug: new version of 'pidgin' found (2.7.7-1 => 2.7.8-1)
debug: adding package pidgin-2.7.8-1 to the transaction targets
debug: new version of 'pkg-config' found (0.25-2 => 0.25-3)
debug: adding package pkg-config-0.25-3 to the transaction targets
debug: new version of 'postgresql-libs' found (9.0.1-2 => 9.0.2-2)
debug: adding package postgresql-libs-9.0.2-2 to the transaction targets
debug: new version of 'procps' found (3.2.8-2 => 3.2.8-3)
debug: adding package procps-3.2.8-3 to the transaction targets
debug: adding package python2-cairo-1.8.10-1 to the transaction targets
debug: new version of 'python-pypdf' found (1.12-5 => 1.13-1)
debug: adding packaerror: segmentation fault
Internal pacman error: Segmentation fault.
Please submit a full bug report with --debug if appropriate.
ge python-pypdf-1.13-1 to the transaction targets
debug: new version of 'python2' found (2.7.1-2 => 2.7.1-3)
debug: adding package python2-2.7.1-3 to the transaction targets
debug: new version of 'qt' found (4.7.1-2 => 4.7.1-3)
debug: adding package qt-4.7.1-3 to the transaction targets
debug: new version of 'raptor' found (1.4.21-1 => 1.4.21-2)
debug: adding package raptor-1.4.21-2 to the transaction targets
debug: new version of 'rasqal' found (0.9.20-1 => 0.9.21-1)
debug: adding package rasqal-0.9.21-1 to the transaction targets
debug: new version of 'recode' found (3.6-5 => 3.6-6)
debug: adding package recode-3.6-6 to the transaction targets
debug: new version of 'redland' found (1.0.12-2 => 1.0.12-3)
debug: adding package redland-1.0.12-3 to the transaction targets
debug: new version of 'reiserfsprogs' found (3.6.21-2 => 3.6.21-3)
debug: adding package reiserfsprogs-3.6.21-3 to the transaction targets
debug: new version of 'rpcbind' found (0.2.0-2 => 0.2.0-3)
debug: adding package rpcbind-0.2.0-3 to the transaction targets
debug: new version of 'run-parts' found (3.2.3-1 => 3.4.1-1)
debug: adding package run-parts-3.4.1-1 to the transaction targets
debug: new version of 'schroedinger' found (1.0.9-1 => 1.0.10-1)
debug: adding package schroedinger-1.0.10-1 to the transaction targets
debug: new version of 'sqlite3' found (3.7.3-1 => 3.7.4-1)
debug: adding package sqlite3-3.7.4-1 to the transaction targets
debug: new version of 'syslog-ng' found (3.1.2-1 => 3.2.1-1)
debug: adding package syslog-ng-3.2.1-1 to the transaction targets
debug: new version of 'transmission-gtk' found (2.12-1 => 2.13-1)
debug: adding package transmission-gtk-2.13-1 to the transaction targets
debug: new version of 'twisted' found (10.1.0-1 => 10.2.0-1)
debug: adding package twisted-10.2.0-1 to the transaction targets
debug: new version of 'udev' found (164-2 => 164-3)
debug: adding package udev-164-3 to the transaction targets
debug: new version of 'unrar' found (4.0.2-1 => 4.0.3-1)
debug: adding package unrar-4.0.3-1 to the transaction targets
debug: new version of 'usbutils' found (0.91-3 => 0.91-4)
debug: adding package usbutils-0.91-4 to the transaction targets
debug: new version of 'xbitmaps' found (1.1.0-1 => 1.1.1-1)
debug: adding package xbitmaps-1.1.1-1 to the transaction targets
debug: new version of 'xorg-docs' found (1.5-1 => 1.6-1)
debug: adding package xorg-docs-1.6-1 to the transaction targets
debug: new version of 'xorg-iceauth' found (1.0.3-1 => 1.0.4-1)
debug: adding package xorg-iceauth-1.0.4-1 to the transaction targets
debug: new version of 'xorg-utils' found (7.6-5 => 7.6-6)
debug: adding package xorg-utils-7.6-6 to the transaction targets
debug: new version of 'xorg-xauth' found (1.0.4-1 => 1.0.5-1)
debug: adding package xorg-xauth-1.0.5-1 to the transaction targets
debug: new version of 'xorg-xbacklight' found (1.1.1-1 => 1.1.2-1)
debug: adding package xorg-xbacklight-1.1.2-1 to the transaction targets
debug: new version of 'xorg-xinit' found (1.3.0-1 => 1.3.0-2)
debug: adding package xorg-xinit-1.3.0-2 to the transaction targets
debug: new version of 'xproto' found (7.0.19-1 => 7.0.20-1)
debug: adding package xproto-7.0.20-1 to the transaction targets
debug: new version of 'zlib' found (1.2.5-2 => 1.2.5-3)
debug: adding package zlib-1.2.5-3 to the transaction targets

Per the wiki I downloaded the latest pacman source (3.4.1) and built it, but got pretty much the same result.  I rebuilt again with debugging symbols, and ran it through ddd.  My debugging skills are weak, but a simple backtrace provided the following:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff644bd66 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff644bd66 in strcmp () from /lib/libc.so.6
#1  0x00007ffff7bd440f in check_arch (data=0x7fffffffe5e8) at trans.c:110
#2  alpm_trans_prepare (data=0x7fffffffe5e8) at trans.c:148
#3  0x000000000040ab5d in sync_trans (targets=<value optimized out>) at sync.c:641
#4  pacman_sync (targets=<value optimized out>) at sync.c:861
#5  0x0000000000407817 in main (argc=<value optimized out>, argv=0x7fffffffeab8) at pacman.c:1240

So I put a breakpoint at trans.c:110 and stepped through...70 times (which is repeatable)...and the value that's there just before the segfault looks fine.  The string in pkgarch is "x86_64" and arch is "x86_64".

Any ideas on what it could be or what to try next?

My setup:
AMD Turion RM-70
3 GB RAM
/: 71% free
~: 12% free
Plain Openbox desktop environment

Last edited by melior (2011-01-06 05:05:58)

Offline

#2 2011-01-06 05:15:28

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: pacman -Su segfaults

Try pacman 3.4.2 and pacman from git

Offline

#3 2011-01-06 05:35:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,648
Website

Re: pacman -Su segfaults

That bug is fixed in pacman-3.4.2.   Do a  "pacman -Syyu" and you should be fine.

melior wrote:

Per the wiki I downloaded the latest pacman source (3.4.1) and built it, but got pretty much the same result.

Where in the wiki do you see that?

Offline

#4 2011-01-06 06:41:28

melior
Member
Registered: 2010-12-04
Posts: 2

Re: pacman -Su segfaults

Oh drat, my mistake.  I guess that's what I get for waiting so long to ask for help.  I'm up and running again, thanks!

Allan wrote:

Where in the wiki do you see that?

The pacman page, last question under the troubleshooting section:

https://wiki.archlinux.org/index.php/Pa … tall_it.3F

Last edited by melior (2011-01-06 06:42:05)

Offline

Board footer

Powered by FluxBB