Bug 2156830

Summary: [abrt] abrt-tui: call_blocking(): connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened
Product: [Fedora] Fedora Reporter: Sergio Basto <sergio>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: abrt-devel-list, abrt-sig, mgrabovs, michal.toman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/dd3169f3217672bd3f32ae937742dc719ca5d7f3
Whiteboard: abrt_hash:aac17a15db6fa8c99db8bb6558479c25f4700768;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Sergio Basto 2022-12-28 22:57:43 UTC
Description of problem:
on startup 

Version-Release number of selected component:
abrt-tui-2.15.1-6.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-67dcc8897c5440ffad573c87037ad4d1.scope
cmdline:        /usr/bin/python3 /usr/bin/abrt status --since=1672268141 --not-reported --quiet
crash_function: call_blocking
exception_type: dbus.exceptions.DBusException
executable:     /usr/bin/abrt
interpreter:    python3-3.11.1-1.fc37.x86_64
kernel:         6.0.15-300.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened

Traceback (most recent call last):
  File "/usr/bin/abrt", line 41, in <module>
    namespace.func(namespace)
  File "/usr/lib/python3.11/site-packages/abrtcli/cli/status.py", line 22, in run
    problems = match_lookup(['*'],
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/abrtcli/match.py", line 72, in match_lookup
    problems = problem.list(auth=authenticate)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/__init__.py", line 356, in list
    return [tools.problemify(prob, __proxy) for prob in fun()]
                                                        ^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/proxies.py", line 91, in list
    return [str(prob) for prob in self._dbus_call('GetProblems')]
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/problem/proxies.py", line 53, in _dbus_call
    return getattr(self._iface, fun_name)(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened

Local variables in innermost frame:
self: <dbus._dbus.SystemBus (system) at 0x7f9f530ada30>
bus_name: dbus.String(':1.83')
object_path: '/org/freedesktop/problems'
dbus_interface: 'org.freedesktop.problems'
method: 'GetProblems'
signature: ''
args: ()
timeout: -1.0
byte_arrays: False
kwargs: {}
get_args_opts: {'byte_arrays': False}
message: <dbus.lowlevel.MethodCallMessage path: /org/freedesktop/problems, iface: org.freedesktop.problems, member: GetProblems dest: :1.83>

Comment 1 Sergio Basto 2022-12-28 22:57:45 UTC
Created attachment 1934799 [details]
File: backtrace

Comment 2 Sergio Basto 2022-12-28 22:57:47 UTC
Created attachment 1934800 [details]
File: cpuinfo

Comment 3 Sergio Basto 2022-12-28 22:57:48 UTC
Created attachment 1934801 [details]
File: environ

Comment 4 Sergio Basto 2022-12-28 22:57:49 UTC
Created attachment 1934802 [details]
File: mountinfo

Comment 5 Sergio Basto 2022-12-28 22:57:50 UTC
Created attachment 1934803 [details]
File: namespaces

Comment 6 Sergio Basto 2022-12-28 22:57:52 UTC
Created attachment 1934804 [details]
File: open_fds

Comment 7 Sergio Basto 2023-07-12 18:27:20 UTC
Similar problem has been detected:

I startup my kde envoirment with on konsole with more than 10 tabs , which are more than 10 shells 
so it try to run abrt-cli more than 10 times in same second 

reporter:       libreport-2.17.11
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-c173760161ed4096916eab639aaa46c1.scope
cmdline:        /usr/bin/python3 /usr/bin/abrt status --since=1688929449 --not-reported --quiet
crash_function: call_blocking
exception_type: dbus.exceptions.DBusException
executable:     /usr/bin/abrt
interpreter:    python3-3.11.4-1.fc37.x86_64
kernel:         6.3.12-100.fc37.x86_64
package:        abrt-tui-2.17.1-1.fc37
reason:         connection.py:634:call_blocking:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Too many sessions opened
runlevel:       N 5
type:           Python3
uid:            1000