Bug 1172997

Summary: [abrt] dirmngr: pth_key_setdata(): dirmngr killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Lubo <lubomir.carik>
Component: dirmngrAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: drwu, gtwilliams, lnie, lubomir.carik, rdieter, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/74ab48ee387962aa24e02e4dae86ca39d4f864b9
Whiteboard: abrt_hash:6710e0c2565be6b62fb07296b7ee45dee1025035
Fixed In Version: dirmngr-1.1.1-6.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-20 08:42:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Lubo 2014-12-11 09:26:51 UTC
Description of problem:
after upgdade F20 to F21

Version-Release number of selected component:
dirmngr-1.1.1-5.fc21

Additional info:
reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        dirmngr --gpgconf-test
crash_function: pth_key_setdata
executable:     /usr/bin/dirmngr
kernel:         3.17.4-301.fc21.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (1 frames)
 #0 pth_key_setdata at pth_data.c:67

Comment 1 Lubo 2014-12-11 09:26:53 UTC
Created attachment 967142 [details]
File: backtrace

Comment 2 Lubo 2014-12-11 09:26:55 UTC
Created attachment 967143 [details]
File: cgroup

Comment 3 Lubo 2014-12-11 09:26:56 UTC
Created attachment 967144 [details]
File: core_backtrace

Comment 4 Lubo 2014-12-11 09:26:57 UTC
Created attachment 967145 [details]
File: dso_list

Comment 5 Lubo 2014-12-11 09:26:58 UTC
Created attachment 967146 [details]
File: environ

Comment 6 Lubo 2014-12-11 09:26:59 UTC
Created attachment 967147 [details]
File: exploitable

Comment 7 Lubo 2014-12-11 09:27:00 UTC
Created attachment 967148 [details]
File: limits

Comment 8 Lubo 2014-12-11 09:27:01 UTC
Created attachment 967149 [details]
File: maps

Comment 9 Lubo 2014-12-11 09:27:02 UTC
Created attachment 967150 [details]
File: open_fds

Comment 10 Lubo 2014-12-11 09:27:03 UTC
Created attachment 967151 [details]
File: proc_pid_status

Comment 11 Lubo 2014-12-11 09:27:04 UTC
Created attachment 967152 [details]
File: var_log_messages

Comment 12 drwu 2014-12-15 09:04:45 UTC
see http://bugs.gnupg.org/gnupg/issue1590

Comment 13 drwu 2014-12-15 09:13:21 UTC
some debug log:


(gdb) run
Starting program: /usr/bin/dirmngr 

Program received signal SIGSEGV, Segmentation fault.
0x00000030d0009b71 in pth_key_setdata (key=0, value=value@entry=0x0) at pth_data.c:67
67          if (pth_current->data_value == NULL) {
(gdb) backtrace 
#0  0x00000030d0009b71 in pth_key_setdata (key=0, value=value@entry=0x0) at pth_data.c:67
#1  0x00000000004071e2 in main (argc=1, argv=0x7fffffffdd18) at dirmngr.c:723
(gdb) l
62      {
63          if (key < 0 || key >= PTH_KEY_MAX)
64              return pth_error(FALSE, EINVAL);
65          if (!pth_keytab[key].used)
66              return pth_error(FALSE, ENOENT);
67          if (pth_current->data_value == NULL) {
68              pth_current->data_value = (const void **)calloc(1, sizeof(void *)*PTH_KEY_MAX);
69              if (pth_current->data_value == NULL)
70                  return pth_error(FALSE, ENOMEM);
71          }
(gdb) p pth_keytab[key]
$1 = {used = 1, destructor = 0x0}
(gdb) p __pth_current
$2 = (pth_t) 0x0

The pth_current has not been initialized, please fix it!

Comment 14 drwu 2014-12-15 09:59:01 UTC
Just updated to Fedora 21 at the weekend.
Temporary I've installed the dirmngr-1.1.1-2.4.1.x86_64.rpm from opensuse to avoid this bug. Otherwise I will not able to decrypt and read e-mails.

Comment 15 Fedora Update System 2014-12-15 13:21:35 UTC
dirmngr-1.1.1-6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/dirmngr-1.1.1-6.fc21

Comment 16 lnie 2014-12-16 04:53:03 UTC
dirmngr-1.1.1-6.fc21 works

Comment 17 Fedora Update System 2014-12-17 04:47:47 UTC
Package dirmngr-1.1.1-6.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dirmngr-1.1.1-6.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-17050/dirmngr-1.1.1-6.fc21
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2014-12-20 08:42:30 UTC
dirmngr-1.1.1-6.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.