Bug 690886

Summary: ipa-submit crashed
Product: Red Hat Enterprise Linux 6 Reporter: Yi Zhang <yzhang>
Component: certmongerAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: ckannan, dpal, jgalipea, kchamart, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: certmonger-0.39-1.el6 Doc Type: Bug Fix
Doc Text:
After installation of the ipa-client package, the ipa-client-install script runs the ipa-getcert command. As a consequence, the certmonger daemon runs its ipa-submit helper. The helper contacts the IPA server. Previously, if it received a fault message response from the server, it terminated with a segmentation fault and created a core dump; the installation failed. This happened because it attempted to dereference an uninitialized pointer while processing the fault message. With this update, the helper handles the fault message correctly and the enrollment process completes successfully.
Story Points: ---
Clone Of:
: 690892 (view as bug list) Environment:
Last Closed: 2011-05-19 13:07:22 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:
Bug Depends On:    
Bug Blocks: 690892    

Description Yi Zhang 2011-03-25 17:07:54 UTC
Description of problem:
After ipa-client-install finished and success. /var/log/message reports crash for "ipa-submit".


Version-Release number of selected component (if applicable):
[i386.b root@dhcp-119 ~] rpm -qi certmonger
Name        : certmonger                   Relocations: (not relocatable)
Version     : 0.38                              Vendor: (none)
Release     : 1.20110325T0538z.el6          Build Date: Thu 24 Mar 2011 10:44:40 PM PDT
Install Date: Fri 25 Mar 2011 09:35:13 AM PDT      Build Host: goofy-vm16.dsdev.sjc.redhat.com
Group       : System Environment/Daemons    Source RPM: certmonger-0.38-1.20110325T0538z.el6.src.rpm
Size        : 640954                           License: GPLv3+
Signature   : (none)
URL         : http://certmonger.fedorahosted.org
Summary     : Certificate status monitor and PKI enrollment client
Description :
Certmonger is a service which is primarily concerned with getting your
system enrolled with a certificate authority (CA) and keeping it enrolled.
[i386.b root@dhcp-119 ~] rpm -qa | grep certmonger
certmonger-0.38-1.20110325T0538z.el6.i686

How reproducible: always


Steps to Reproduce:
1. install ipa-server on hostA
2. install ipa-client on hostB
3. run "ipa-client-install" on hostB
=== when ipa-client-install finished, check /var/log/message, ipa-submit crash message logged here. and it will have core-dump message there as well.
  
Actual results:


Expected results:


Additional info:

Comment 1 Yi Zhang 2011-03-25 17:15:31 UTC
bt info:

Core was generated by `/usr/libexec/certmonger/ipa-submit -k host/dhcp-119.sjc.redhat.com.C'.
Program terminated with signal 11, Segmentation fault.
#0  0x006cfcf1 in _IO_vfprintf_internal (s=Cannot access memory at address 0xffffffff
) at vfprintf.c:1593
1593		  process_string_arg (((struct printf_spec *) NULL));
(gdb) bt
#0  0x006cfcf1 in _IO_vfprintf_internal (s=Cannot access memory at address 0xffffffff
) at vfprintf.c:1593
#1  0x00782cb6 in ___printf_chk (flag=1, format=0x804c480 "Server failed request, will retry: %d (%s).\n")
    at printf_chk.c:37
#2  0x0804a193 in printf (argc=3, argv=0xbfc45934) at /usr/include/bits/stdio2.h:105
#3  main (argc=3, argv=0xbfc45934) at ipa.c:264

Comment 7 Eva Kopalova 2011-05-02 17:04:09 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
After installation of the ipa-client package, the ipa-client-install script runs the ipa-getcert command. As a consequence, the certmonger daemon runs its ipa-submit helper. The helper contacts the IPA server. Previously, if it received a fault message response from the server, it terminated with a segmentation fault and created a core dump; the installation failed. This happened because it attempted to dereference an uninitialized pointer while processing the fault message. With this update, the helper handles the fault message correctly and the enrollment process completes successfully.

Comment 8 errata-xmlrpc 2011-05-19 13:07:22 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0570.html