Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1172997 - [abrt] dirmngr: pth_key_setdata(): dirmngr killed by SIGSEGV
Summary: [abrt] dirmngr: pth_key_setdata(): dirmngr killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dirmngr
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6710e0c2565be6b62fb07296b7e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-11 09:26 UTC by Lubo
Modified: 2014-12-20 08:42 UTC (History)
6 users (show)

Fixed In Version: dirmngr-1.1.1-6.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-20 08:42:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: cgroup (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: core_backtrace (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: dso_list (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: environ (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: exploitable (deleted)
2014-12-11 09:26 UTC, Lubo
no flags Details
File: limits (deleted)
2014-12-11 09:27 UTC, Lubo
no flags Details
File: maps (deleted)
2014-12-11 09:27 UTC, Lubo
no flags Details
File: open_fds (deleted)
2014-12-11 09:27 UTC, Lubo
no flags Details
File: proc_pid_status (deleted)
2014-12-11 09:27 UTC, Lubo
no flags Details
File: var_log_messages (deleted)
2014-12-11 09:27 UTC, Lubo
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.