We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3978

Summary: libSDL2-2.0.so.0 - bug in some application using the D-Bus library.
Product: SDL Reporter: coringao <coringao>
Component: mainAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: icculus, sezeroz
Version: 2.0.7   
Hardware: All   
OS: Linux   
Attachments: SDL2 - dbus_current_generation

Description coringao 2017-11-24 03:23:22 UTC
Created attachment 3099 [details]
SDL2 - dbus_current_generation

It has DBus critical error in SDL2, after closing the program.

---
sistemaids@debian:~/github/jag$./bin/jag 
dbus[2545]: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../../dbus/dbus-connection.c line 2688.
This is normally a bug in some application using the D-Bus library.
sistemaids@debian:~/github/jag$
---

Running 'gdb' on the program results in this problem.

---

sistemaids@debian:~/github/jag/bin$ gdb ./jag
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./jag...(no debugging symbols found)...done.
(gdb) break dbus_shutdown
Function "dbus_shutdown" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (dbus_shutdown) pending.
(gdb) run
Starting program: /home/sistemaids/github/jag/bin/jag
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe7080700 (LWP 28073)]
[New Thread 0x7fffde677700 (LWP 28074)]
[New Thread 0x7fffdde76700 (LWP 28075)]
[New Thread 0x7fffcffff700 (LWP 28076)]
[New Thread 0x7fffe404f700 (LWP 28078)]
[New Thread 0x7fffe408f700 (LWP 28079)]
[New Thread 0x7fffbf5c4700 (LWP 28080)]
[Thread 0x7fffe408f700 (LWP 28079) exited]
[Thread 0x7fffe404f700 (LWP 28078) exited]
 
Thread 1 "jag" hit Breakpoint 1, 0x00007fffee4c73e0 in dbus_shutdown () from /lib/x86_64-linux-gnu/libdbus-1.so.3
(gdb) bt
#0  0x00007fffee4c73e0 in dbus_shutdown () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#1  0x00007ffff784af39 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#2  0x00007ffff7833876 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#3  0x00007ffff779a6d5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#4  0x00007ffff779a808 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#5  0x0000555555565aa9 in main ()
(gdb)
---

Thanks!
Comment 1 Ryan C. Gordon 2018-08-07 17:11:01 UTC
I believe this was probably fixed by several D-Bus improvements recently, if not specifically by removing the call to dbus_shutdown() in Bug #3950.

--ryan.