Bug 2130456

Summary: [abrt] policycoreutils-python-utils: parse_file(): audit2allow:376:main:OSError: [Errno 5] Input/output error
Product: [Fedora] Fedora Reporter: Robert Balejik <r.balejik>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/acf63e921b98b4407987e80c734794a2857e7efa
Whiteboard: abrt_hash:fb35b49de137ce669dc37494dd696c07cfd0a739;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 19:31:23 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: cpuinfo none

Description Robert Balejik 2022-09-28 07:52:34 UTC
Description of problem:
reboot after update

Version-Release number of selected component:
policycoreutils-python-utils-3.3-4.fc36

Additional info:
reporter:       libreport-2.17.4
crash_function: parse_file
exception_type: OSError
executable:     /usr/bin/audit2allow
kernel:         5.19.6-200.fc36.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
audit2allow:376:main:OSError: [Errno 5] Input/output error

Traceback (most recent call last):
  File "/usr/bin/audit2allow", line 367, in main
    self.__read_input()
  File "/usr/bin/audit2allow", line 167, in __read_input
    parser.parse_file(f)
  File "/usr/lib/python3.10/site-packages/sepolgen/audit.py", line 474, in parse_file
    line = input.readline()
OSError: [Errno 5] Input/output error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/audit2allow", line 381, in <module>
    app.main()
  File "/usr/bin/audit2allow", line 376, in main
    print(e)
OSError: [Errno 5] Input/output error

Local variables in innermost frame:
self: <__main__.AuditToPolicy object at 0x7f621d4477c0>

Comment 1 Robert Balejik 2022-09-28 07:52:37 UTC
Created attachment 1914776 [details]
File: backtrace

Comment 2 Robert Balejik 2022-09-28 07:52:39 UTC
Created attachment 1914777 [details]
File: cpuinfo

Comment 3 Petr Lautrbach 2022-10-05 13:03:07 UTC
It looks like the simplest solution would be to drop button pres signal from file choose dialog:

modified   python/sepolicy/sepolicy/sepolicy.glade
@@ -168,7 +168,6 @@
       <object class="GtkBox" id="filechooserdialog-vbox1">
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <signal name="button-press-event" handler="on_choose_file" swapped="no"/>
         <child internal-child="action_area">
           <object class="GtkButtonBox" id="filechooserdialog-action_area1">
             <property name="can_focus">False</property>

Comment 4 Petr Lautrbach 2022-10-05 13:04:47 UTC
eh, wrong bug, please disregard my previous comment

Comment 5 Ben Cotton 2023-04-25 18:25:23 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Ludek Smid 2023-05-25 19:31:23 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.