Bug 2140799

Summary: [abrt] libreport-plugin-bugzilla: module(): problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: libreportAssignee: Michal Srb <msrb>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: abrt-devel-list, abrt-sig, jakub, mgrabovs, michal.toman, msrb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/3b67fc0bcb226888de0b658eb14e321c8757bc7
Whiteboard: abrt_hash:1c4e30ea3be508eba9646be9804c27c464c17b1c;VARIANT_ID=workstation;
Fixed In Version: libreport-2.17.7-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-01 03: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:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Mikhail 2022-11-07 21:09:11 UTC
Version-Release number of selected component:
libreport-plugin-bugzilla-2.17.4-1.fc38

Additional info:
reporter:       libreport-2.17.6
kernel:         6.0.0-0.rc6.20220922gitdc164f4fb00a.43.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.fedoraproject.Setroubleshootd
uid:            1000
reason:         problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.4-1.fc38
runlevel:       N 5
exception_type:   File "/usr/lib64/python3.11/site-packages/reportclient/internal/problem_formatter.py", line 316, in generate_report
crash_function: module
interpreter:    python3-3.11.0~rc2-1.fc38.x86_64

Truncated backtrace:
problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 709, in <module>
    report = pf.generate_report()
             ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/problem_formatter.py", line 316, in generate_report
    section['items'] = self.process_section_items(section)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/problem_formatter.py", line 291, in process_section_items
    child['items'] = self.process_section_items(child)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/problem_formatter.py", line 270, in process_section_items
    processed_items.append({'name': short_bt['name'],
                                    ~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Local variables in innermost frame:
self: <reportclient.internal.problem_formatter.ProblemFormatter object at 0x7fbbd5bee5d0>
section: {'name': 'Truncated backtrace', 'items': ['%bare_%short_backtrace'], 'children': []}
processed_items: []
short_bt: None
item: 'short_backtrace'

Comment 1 Mikhail 2022-11-07 21:09:15 UTC
Created attachment 1922868 [details]
File: os_info

Comment 2 Mikhail 2022-11-07 21:09:17 UTC
Created attachment 1922869 [details]
File: environ

Comment 3 Mikhail 2022-11-07 21:09:18 UTC
Created attachment 1922870 [details]
File: mountinfo

Comment 4 Mikhail 2022-11-07 21:09:19 UTC
Created attachment 1922871 [details]
File: open_fds

Comment 5 Mikhail 2022-11-07 21:09:21 UTC
Created attachment 1922872 [details]
File: namespaces

Comment 6 Mikhail 2022-11-07 21:09:23 UTC
Created attachment 1922873 [details]
File: backtrace

Comment 7 Mikhail 2022-11-07 21:09:24 UTC
Created attachment 1922874 [details]
File: cpuinfo

Comment 8 Ian Laurie 2022-12-19 04:29:49 UTC
Trying to report an SELINUX issue.


reporter:       libreport-2.17.6
kernel:         6.1.0-65.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-dbus\x2d:1.2\x2dorg.fedoraproject.Setroubleshootd.slice/dbus-:1.2-org.fedoraproject.Setroubleshootd
uid:            1000
reason:         problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.6-1.fc38
runlevel:       N 5
exception_type: TypeError
crash_function: process_section_items
interpreter:    python3-3.11.1-1.fc38.x86_64
comment:        Trying to report an SELINUX issue.

Comment 9 Ian Laurie 2022-12-23 04:23:17 UTC
Tried to report an SELINUX issue.


reporter:       libreport-2.17.6
kernel:         6.1.0-65.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-dbus\x2d:1.2\x2dorg.fedoraproject.Setroubleshootd.slice/dbus-:1.2-org.fedoraproject.Setroubleshootd
uid:            1000
reason:         problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.6-1.fc38
runlevel:       N 5
exception_type: TypeError
crash_function: process_section_items
interpreter:    python3-3.11.1-1.fc38.x86_64
comment:        Tried to report an SELINUX issue.

Comment 10 Ian Laurie 2023-01-31 23:40:13 UTC
Trying to report an SELINUX issue using the SELINUX reporting mechanism.


reporter:       libreport-2.17.6
kernel:         6.2.0-0.rc6.44.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -A /etc/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf -F /etc/libreport/plugins/bugzilla_format_analyzer_libreport.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-dbus\x2d:1.2\x2dorg.fedoraproject.Setroubleshootd.slice/dbus-:1.2-org.fedoraproject.Setroubleshootd
uid:            1000
reason:         problem_formatter.py:270:process_section_items:TypeError: 'NoneType' object is not subscriptable
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.6-2.fc38
runlevel:       N 5
exception_type: TypeError
crash_function: process_section_items
interpreter:    python3-3.11.1-4.fc38.x86_64
comment:        Trying to report an SELINUX issue using the SELINUX reporting mechanism.

Comment 11 Ben Cotton 2023-02-07 15:11:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.