This happened after a slightly broken upgrade, but it can be reproduced with
$ sudo cp /etc/pkcs11/modules/gnome-keyring-module /etc/pkcs11/modules/gnome-keyring-module.dpkg-new
$ sudo apt-get update
p11-kit: duplicate configured module: gnome-keyring-module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
E: Method https has died unexpectedly!
E: Sub-process https received a segmentation fault.
There are two bugs here, I suppose. One is that pkcs11 should ignore *.dpkg-new files (usually this would be done by reading, e.g., /etc/pkcs11/modules/*.conf instead of /etc/pkcs11/modules/*), and the other is that a duplicate file shouldn’t cause a crash.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: apt-transport-https 0.8.16~exp5ubuntu14.1
ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
Uname: Linux 3.2.0-7-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Tue Jan 3 15:17:28 2012
ExecutablePath: /usr/lib/apt/methods/https
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
ProcCmdline: /usr/lib/apt/methods/https
SegvAnalysis:
Segfault happened at: 0x1dd4460: add %al,(%rax)
PC (0x01dd4460) in non-executable VMA region: 0x01db9000-0x01dda000 rw-p [heap]
source "%al" ok
destination "(%rax)" (0x000078b1) not located in a known VMA region (needed writable region)!
SegvReason:
executing writable VMA [heap]
writing NULL VMA
Signal: 11
SourcePackage: apt
StacktraceTop:
?? ()
?? () from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0
?? () from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0
?? () from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0
p11_kit_initialize_registered () from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0
Title: https crashed with SIGSEGV in p11_kit_initialize_registered()
UpgradeStatus: Upgraded to precise on 2011-11-16 (48 days ago)
UserGroups:
StacktraceTop: or_create_ bucket (map=0x1dd4320, key=0x7fa730361f00, create=0) at hashmap.c:109 and_load_ module_ unlocked (config= 0x7fff41124950, name=0x7fff4112 4948) at modules.c:412 d_modules_ unlocked () at modules.c:462
?? ()
lookup_
_p11_hash_get (map=<optimized out>, key=<optimized out>) at hashmap.c:139
take_config_
load_registere