Bug 679253

Summary: segmentation fault in cmd_unselect()
Product: Red Hat Enterprise Linux 5 Reporter: Masahiro Matsuya <mmatsuya>
Component: cyrus-imapdAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: high    
Version: 5.8CC: azelinka, jmarko, ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 10:32:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Masahiro Matsuya 2011-02-22 03:37:10 UTC
Description of problem:

There is a bug in cmd_unselect(), which leads a segmentation fault.

void cmd_unselect(char *tag)
{
    if (backend_current) {
        ...
        backend_current = NULL; ## set NULL to backend_current

        /* remove backend_current from the protgroup */
        protgroup_delete(protin, backend_current->in); 
                                ## access backend_current->in and segfault

Upstream has a fix for this issue.

http://git.cyrusimap.org/cyrus-imapd/commit/?h=cyrus-imapd-2.3&id=375d5d27cd112ae53684f1a1599d987c4a82984b

Version-Release number of selected component (if applicable):
cyrus-imapd-2.3.7-7.el5_4.3

How reproducible:
Always

Steps to Reproduce:
1. run unselect command on proxy mode
  
Actual results:
segmentation fault

Expected results:
segmentaion fault doesn't occur.

Comment 4 errata-xmlrpc 2011-07-21 10:32:40 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-1075.html

Comment 5 errata-xmlrpc 2011-07-21 12:20:08 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-1075.html