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#53798 - pacman -Sy SIGSEGV in X509_get_subject_name()

Attached to Project: Pacman
Opened by kralyk (kralyk) - Monday, 24 April 2017, 19:10 GMT
Last edited by Dave Reisner (falconindy) - Monday, 24 April 2017, 20:00 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
When I try to pacman -Sy, pacman segfaults.
This started happening after something happened to a system update in progress.

pacman version: 5.0.1-5

Log file before problems started happening:

...
[2017-04-24 20:05] [ALPM] upgraded sane (1.0.25-1 -> 1.0.25-2)
[2017-04-24 20:05] [ALPM] upgraded serf (1.3.9-1 -> 1.3.9-2)
[2017-04-24 20:05] [ALPM] upgraded smplayer (17.4.0-1 -> 17.4.2-1)
[2017-04-24 20:05] [ALPM] upgraded syslog-ng (3.9.1-4 -> 3.9.1-5)
[2017-04-24 20:05] [ALPM] upgraded tcpdump (4.9.0-1 -> 4.9.0-2)
[2017-04-24 20:05] [ALPM] upgraded vala (0.34.6-1 -> 0.36.1-1)
[2017-04-24 20:05] [ALPM] upgraded virtualbox-host-dkms (5.1.20-1 -> 5.1.20-2)
[2017-04-24 20:05] [ALPM] upgraded virtualbox (5.1.20-1 -> 5.1.20-2)
[2017-04-24 20:05] [ALPM] upgraded vpnc (0.5.3.svn550-1 -> 0.5.3.svn550-2)
[2017-04-24 20:05] [ALPM] upgraded webkit2gtk (2.14.5-1 -> 2.16.1-1)
[2017-04-24 20:05] [ALPM] upgraded wireshark-cli (2.2.5-1 -> 2.2.5-2)
[2017-04-24 20:05] [ALPM] upgraded wireshark-common (2.2.5-1 -> 2.2.5-2)
[2017-04-24 20:05] [ALPM] upgraded wireshark-gtk (2.2.5-1 -> 2.2.5-2)
[2017-04-24 20:05] [ALPM] upgraded zenity (3.22.0+1+gcd1647c-1 -> 3.24.0-1)
[2017-04-24 20:05] [ALPM] transaction completed
[2017-04-24 20:05] [ALPM] running '70-dkms-install.hook'...
[2017-04-24 20:05] [ALPM-SCRIPTLET] ==> dkms install vboxhost/5.1.20_OSE -k 4.10.11-1-ARCH
[2017-04-24 20:06] [ALPM] running 'gdk-pixbuf-query-loaders.hook'...
[2017-04-24 20:06] [ALPM] running 'gio-querymodules.hook'...
[2017-04-24 20:06] [ALPM] running 'glib-compile-schemas.hook'...
[2017-04-24 20:06] [ALPM] running 'gtk-query-immodules-3.0.hook'...
[2017-04-24 20:06] [ALPM] running 'gtk-update-icon-cache.hook'...
[2017-04-24 20:06] [ALPM] running 'gvfsd.hook'...
[2017-04-24 20:06] [ALPM] running 'systemd-sysusers.hook'...
[2017-04-24 20:06] [ALPM] running 'systemd-tmpfiles.hook'...
[2017-04-24 20:06] [ALPM] running 'systemd-update.hook'...
[2017-04-24 20:06] [ALPM] running 'texinfo-install.hook'...
[2017-04-24 20:06] [ALPM] running 'update-ca-trust.hook'...
[2017-04-24 20:06] [ALPM] running 'update-desktop-database.hook'...
[2017-04-24 20:06] [ALPM] running 'update-mime-database.hook'...
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-alchemy'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cache'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cactvs-ascii'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cactvs-binary'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cactvs-table'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cdx'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cdxml'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-chem3d'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cif'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-cml'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-daylight-smiles'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-dmol'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-gamess-input'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-gamess-output'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-gaussian-input'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-gaussian-log'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-genbank'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-gulp'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-hin'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-inchi'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-inchi-xml'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-jcamp-dx'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-macromodel-input'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mdl-molfile'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mdl-rdfile'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mdl-rxnfile'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mdl-sdfile'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mdl-tgf'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mmcif'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mol2'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mopac-graph'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mopac-input'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-mopac-out'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-msi-car'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-msi-hessian'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-msi-mdf'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-msi-msi'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-ncbi-asn1'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-ncbi-asn1-binary'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-ncbi-asn1-xml'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-pdb'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-shelx'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-vmd'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'chemical/x-xyz'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'all/all'
[2017-04-24 20:06] [ALPM-SCRIPTLET] Unknown media type in type 'all/allfiles'
[2017-04-24 20:53] [PACMAN] Running 'pacman -Sy' ... The one to segfault


Backtrace:
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7ffff7f984c0 (LWP 10572) "pacman" 0x00007ffff6ddad00 in X509_get_subject_name () from /usr/lib/libcrypto.so.1.1
(gdb) bt
#0 0x00007ffff6ddad00 in X509_get_subject_name () from /usr/lib/libcrypto.so.1.1
#1 0x00007ffff70ededa in ?? () from /usr/lib/libcurl.so.4
#2 0x00007ffff51bdbe5 in internal_verify () from /usr/lib/libcrypto.so.1.0.0
#3 0x00007ffff51bfada in X509_verify_cert () from /usr/lib/libcrypto.so.1.0.0
#4 0x00007ffff54f5408 in ssl_verify_cert_chain () from /usr/lib/libssl.so.1.0.0
#5 0x00007ffff54cca6c in ssl3_get_server_certificate () from /usr/lib/libssl.so.1.0.0
#6 0x00007ffff54d1baa in ssl3_connect () from /usr/lib/libssl.so.1.0.0
#7 0x00007ffff70f01c6 in ?? () from /usr/lib/libcurl.so.4
#8 0x00007ffff70f2250 in ?? () from /usr/lib/libcurl.so.4
#9 0x00007ffff70af20e in ?? () from /usr/lib/libcurl.so.4
#10 0x00007ffff70d18c6 in ?? () from /usr/lib/libcurl.so.4
#11 0x00007ffff70d257d in curl_multi_perform () from /usr/lib/libcurl.so.4
#12 0x00007ffff70cab3b in curl_easy_perform () from /usr/lib/libcurl.so.4
#13 0x00007ffff7bbb492 in ?? () from /usr/lib/libalpm.so.10
#14 0x00007ffff7bb499f in alpm_db_update () from /usr/lib/libalpm.so.10
#15 0x00000000004155a3 in ?? ()
#16 0x00000000004113de in ?? ()
#17 0x00000000004068bd in ?? ()
#18 0x00007ffff756f511 in __libc_start_main () from /usr/lib/libc.so.6
#19 0x0000000000407eda in ?? ()


pacman -Sy --debug:
debug: pacman v5.0.1 - libalpm v10.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: IgnorePkg: cuda
debug: config: new section 'core'
debug: config: SigLevel: PackageRequired
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config: SigLevel: PackageRequired
debug: config file /etc/pacman.conf, line 80: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config: SigLevel: PackageRequired
debug: config file /etc/pacman.conf, line 88: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config: SigLevel: PackageRequired
debug: config file /etc/pacman.conf, line 99: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': http://mirror.vpsfree.cz/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://gd.tuwien.ac.at/opsys/linux/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.mirror.kangaroot.net/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.dotsrc.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://ftp.klid.dk/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://ftp.eenet.ee/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.archlinux.fi/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.limun.org/core/os/x86_64
debug: adding new server URL to database 'core': http://artfiles.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.giantix-server.de/core/os/x86_64
debug: adding new server URL to database 'core': http://ftp.heanet.ie/mirrors/ftp.archlinux.org/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.goodsoft.lv/core/os/x86_64
debug: adding new server URL to database 'core': http://atviras.lt/archmirror/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.leaseweb.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.archlinux.no/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.uib.no/core/os/x86_64
debug: adding new server URL to database 'core': http://ftp.ds.hj.se/pub/os/linux/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': http://mirror.vpsfree.cz/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://gd.tuwien.ac.at/opsys/linux/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.mirror.kangaroot.net/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.dotsrc.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://ftp.klid.dk/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://ftp.eenet.ee/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.archlinux.fi/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.limun.org/extra/os/x86_64
debug: adding new server URL to database 'extra': http://artfiles.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.giantix-server.de/extra/os/x86_64
debug: adding new server URL to database 'extra': http://ftp.heanet.ie/mirrors/ftp.archlinux.org/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.goodsoft.lv/extra/os/x86_64
debug: adding new server URL to database 'extra': http://atviras.lt/archmirror/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.leaseweb.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.archlinux.no/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.uib.no/extra/os/x86_64
debug: adding new server URL to database 'extra': http://ftp.ds.hj.se/pub/os/linux/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': http://mirror.vpsfree.cz/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://gd.tuwien.ac.at/opsys/linux/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.mirror.kangaroot.net/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.dotsrc.org/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://ftp.klid.dk/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://ftp.eenet.ee/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.archlinux.fi/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.limun.org/community/os/x86_64
debug: adding new server URL to database 'community': http://artfiles.org/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.giantix-server.de/community/os/x86_64
debug: adding new server URL to database 'community': http://ftp.heanet.ie/mirrors/ftp.archlinux.org/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.goodsoft.lv/community/os/x86_64
debug: adding new server URL to database 'community': http://atviras.lt/archmirror/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.leaseweb.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.archlinux.no/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.uib.no/community/os/x86_64
debug: adding new server URL to database 'community': http://ftp.ds.hj.se/pub/os/linux/archlinux/community/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': http://mirror.vpsfree.cz/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://gd.tuwien.ac.at/opsys/linux/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.mirror.kangaroot.net/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors.dotsrc.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': ftp://ftp.klid.dk/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://ftp.eenet.ee/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.archlinux.fi/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.limun.org/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://artfiles.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.giantix-server.de/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://ftp.heanet.ie/mirrors/ftp.archlinux.org/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.goodsoft.lv/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://atviras.lt/archmirror/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.leaseweb.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.archlinux.no/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.uib.no/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://ftp.ds.hj.se/pub/os/linux/archlinux/multilib/os/x86_64
:: Synchronizing package databases...
debug: url: http://mirror.vpsfree.cz/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1493044336
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)

error: segmentation fault
Please submit a full bug report with --debug if appropriate.


How can I get my system upgradable again?
Thanks!
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 24 April 2017, 20:00 GMT
Reason for closing:  Works for me
Additional comments about closing:  old curl-git is old.
Comment by Dave Reisner (falconindy) - Monday, 24 April 2017, 19:19 GMT
> How can I get my system upgradable again?

The short term solution would be to change mirrors. http://mirror.vpsfree.cz redirects to https:// which is why libcrypto is exercised at all.
Comment by kralyk (kralyk) - Monday, 24 April 2017, 19:48 GMT
So apparently the problem was I had a stale curl-git installed for some reason. After installing regular curl package, pacman works.
Sorry for the noise.

Loading...