Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1361479 - preupg crashes if next program in pipe closes stdin
Summary: preupg crashes if next program in pipe closes stdin
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: preupgrade-assistant
Version: 6.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Michal Bocek
QA Contact: Alois Mahdal
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-29 07:02 UTC by Alois Mahdal
Modified: 2018-09-30 22:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Alois Mahdal 2016-07-29 07:02:30 UTC
Description of problem

preupg crashes if next program in pipe closes stdin.

For example:

    [0 root@qeos-61 ~]# preupg --list-rules | head
    List of all available rules:
    RHEL6_7: xccdf_preupg_rule_backup_NoverifyConfigs_noverifycfg
    RHEL6_7: xccdf_preupg_rule_backup_UntrackedFiles_untracked
    RHEL6_7: xccdf_preupg_rule_backup_bacula_check
    RHEL6_7: xccdf_preupg_rule_databases_mysql_configuration_changes_configuration
    RHEL6_7: xccdf_preupg_rule_databases_mysql_data_migration_migration
    RHEL6_7: xccdf_preupg_rule_databases_mysql_general_changes_general
    RHEL6_7: xccdf_preupg_rule_databases_postgresql_pre
    RHEL6_7: xccdf_preupg_rule_desktop_GNOME_gnome
    RHEL6_7: xccdf_preupg_rule_desktop_KDE_kde
    Usage: preupg [options]

    preupg: error: [Errno 32] Broken pipe
    [0 root@qeos-61 ~]# 

Version-Release number of selected component


How reproducible


Steps to Reproduce

 1. call `preupg | head`
 2. observe output tail

Actual results

error is printed

Expected results

no error

Comment 2 Petr Hracek 2016-07-29 08:43:58 UTC
Can you please attach also `preupg --list-rules --debug?

Comment 3 Alois Mahdal 2016-07-29 16:46:49 UTC
(In reply to Petr Hracek from comment #2)
> Can you please attach also `preupg --list-rules --debug?

'ere you go:

    [0 root@qeos-251 ~]# preupg --debug --list-rules | head
    List of all available rules:
    RHEL6_7: xccdf_preupg_rule_others_configchanges_check
    RHEL6_7: xccdf_preupg_rule_others_rsyslog_check
    RHEL6_7: xccdf_preupg_rule_others_vcsrepos_check_script
    RHEL6_7: xccdf_preupg_rule_others_NoVersionChangeEtc_nochange
    RHEL6_7: xccdf_preupg_rule_selinux_RestoreConfig_restoreConfig
    RHEL6_7: xccdf_preupg_rule_selinux_general_check
    RHEL6_7: xccdf_preupg_rule_selinux_CustomPolicy_check
    RHEL6_7: xccdf_preupg_rule_selinux_samba_check_script
    RHEL6_7: xccdf_preupg_rule_storage_warnquota_configuration_checkscript
    Traceback (most recent call last):
      File "/usr/bin/preupg", line 35, in <module>
      File "/usr/bin/preupg", line 21, in main
        ret =
      File "/usr/lib/python2.6/site-packages/preup/", line 613, in run
        log_message(settings.list_rules % '\n'.join(rules))
      File "/usr/lib/python2.6/site-packages/preup/", line 65, in log_message
    IOError: [Errno 32] Broken pipe

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