[Bug 655751] New: gdbus aborting due to unauthorized socket in DBUS_SESSION_BUS_ADDRESS
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c0 Summary: gdbus aborting due to unauthorized socket in DBUS_SESSION_BUS_ADDRESS Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: gber@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=402008) --> (http://bugzilla.novell.com/attachment.cgi?id=402008) minimal example to trigger the bug User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 When DBUS_SESSION_BUS_ADDRESS is set to the valid socket of another user glib will abort due to an assertion failure when more than one connection attempt via gdbus is made. In practice this often happens when users try to execute GTK applications which use GConf through su/sudo without properly clearing the environment (e.g. starting YaST with xdg-su xterm+su). A minimal example which triggers the problem is attached. This bug affects glib2 verion 2.27.x in Factory, openSUSE 11.3 is not affected since it uses an older glib version without GDBus. The bug has been reported upstream: https://bugzilla.gnome.org/show_bug.cgi?id=635694 Backtrace: Starting program: /home/gber/gdbus-test [New Thread 0xb7b3bb70 (LWP 24927)] Program received signal SIGABRT, Aborted. 0xffffe430 in __kernel_vsyscall () #0 0xffffe430 in __kernel_vsyscall () #1 0xb7bf37cf in raise () from /lib/libc.so.6 #2 0xb7bf5110 in abort () from /lib/libc.so.6 #3 0xb7db8132 in g_assertion_message (domain=0xb7f7f1e1 "GLib-GIO", file=0xb7f96c19 "gdbusconnection.c", line=2152, func=0xb7f98c68 "initable_init", message=<value optimized out>) at gtestutils.c:1358 #4 0xb7db875f in g_assertion_message_expr (domain=0xb7f7f1e1 "GLib-GIO", file= 0xb7f96c19 "gdbusconnection.c", line=2152, func=0xb7f98c68 "initable_init", expr= 0xb7f98314 "connection->initialization_error == NULL") at gtestutils.c:1369 #5 0xb7f4f41b in initable_init (initable=0x8055000, cancellable=0x0, error=0xbffff278) at gdbusconnection.c:2152 #6 0xb7ef2822 in g_initable_init (initable=0x8055000, cancellable=0x0, error=0xbffff278) at ginitable.c:105 #7 0xb7f4fc65 in g_bus_get_sync (bus_type=G_BUS_TYPE_SESSION, cancellable=0x0, error=0xbffff278) at gdbusconnection.c:6121 #8 0x080486f8 in try_connect () at gdbus-test.c:14 #9 0x08048755 in main (argc=1, argv=0xbffff344) at gdbus-test.c:36 A debugging session is active. Inferior 1 [process 24924] will be killed. Quit anyway? (y or n) Reproducible: Always Steps to Reproduce: 1. point DBUS_SESSION_BUS_ADDRESS to the valid socket of another user 2. execute the attached example -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c1 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@novell.com --- Comment #1 from Guido Berhörster <gber@opensuse.org> 2010-11-24 14:42:20 UTC --- *** Bug 648558 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=648558 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c2 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |terje@nordland-teknikk.no --- Comment #2 from Vincent Untz <vuntz@novell.com> 2011-03-10 09:47:20 UTC --- *** Bug 672793 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=672793 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c3 John Harmon <joharmon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joharmon@novell.com --- Comment #3 from John Harmon <joharmon@novell.com> 2011-03-14 17:09:53 UTC --- Fresh install of 11.4, and I receive this error when trying to launch yast as root from a shell GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL) I can get you a supportconfig if desired. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c4 Jeremy Meldrum <jmeldrum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmeldrum@novell.com --- Comment #4 from Jeremy Meldrum <jmeldrum@novell.com> 2011-03-15 16:41:42 UTC --- I also see the same issue and can get you whatever you need. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c5 Martin Seidler <Martin.Seidler@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Martin.Seidler@web.de --- Comment #5 from Martin Seidler <Martin.Seidler@web.de> 2011-03-16 21:22:53 UTC --- Is the issue described in Thread: After zypper dup to 11.4 , most of the (graphical) YaST modules do not start via YaST http://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/... a result of the issue of this bugreport? Should I open a new bugreport or do anything to give data to the bugreport 655751 here? If it would be only me and my former factory-tested installation I would just make a fresh reinstall. I the forums have tree other users written that they have the same issue. Regards Martin (pistazienfresser) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c6 --- Comment #6 from Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> 2011-03-16 22:18:37 UTC --- Martin: please try if the other plugins (ncurses, qt) work for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c7 --- Comment #7 from Guido Berhörster <gber@opensuse.org> 2011-03-16 23:02:30 UTC --- (In reply to comment #5)
http://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/... a result of the issue of this bugreport?
That seems to be a separate bug in xdg-su (which like the other xdg-* stuff is total crap) triggering this one. It does some guesswork on what the current desktop is and falls back to calling an xterm with su, of course without properly requesting a login shell. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c8 --- Comment #8 from Guido Berhörster <gber@opensuse.org> 2011-03-16 23:08:35 UTC --- (In reply to comment #3)
Fresh install of 11.4, and I receive this error when trying to launch yast as root from a shell
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
I can get you a supportconfig if desired.
Anyone running into this is doing something wrong anyway, if you properly log in as root or request a login shell with su via "-" or "-l" you should not see this. No more data is needed, a backtrace is already on this and the upstream report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c9 --- Comment #9 from John Harmon <joharmon@novell.com> 2011-03-17 17:59:44 UTC --- You are right. I wasn't using "-" before. I tested it and it worked. While I k now that is the standard way of doing things, previous versions of Suse didn't require it--made me lazy I guess. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c10 --- Comment #10 from Guido Berhörster <gber@opensuse.org> 2011-03-17 18:51:17 UTC --- (In reply to comment #9)
You are right. I wasn't using "-" before. I tested it and it worked. While I k now that is the standard way of doing things, previous versions of Suse didn't require it--made me lazy I guess.
You shouldn't do that, GNU coreutils su has in contrast to other implementations like Solaris su no security precautions at all and if you don't request a login shell, $PATH and any $LD_* variables are happily passed along. But this is getting offtopic, this bug is about glib not handling an invalid $DBUS_SESSION_BUS_ADDRESS gracefully. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Martin: please try if the other plugins (ncurses, qt) work for you. Thanks, Ricardo. Yes. they are working. Also are the YaST modules working properly if I start
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c11 --- Comment #11 from Martin Seidler <Martin.Seidler@web.de> 2011-03-22 14:34:47 UTC --- (In reply to comment #6) them individually and with gnomesu instead of Compare: Bug 681078 - xdg-utils: calling xdg-su inside "su -" fails formerly known as: Bug 681078 - yast2-control-center-gnome: After zypper dup to 11.4, most of the (graphical) YaST modules do not start via YaST on GNOME Regards Martin (pistazienfresser) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c12 --- Comment #12 from Martin Seidler <Martin.Seidler@web.de> 2011-03-25 17:10:02 UTC --- (In reply to comment #10)
(In reply to comment #9)
You are right. I wasn't using "-" before. I tested it and it worked. While I k now that is the standard way of doing things, previous versions of Suse didn't require it--made me lazy I guess.
You shouldn't do that, GNU coreutils su has in contrast to other implementations like Solaris su no security precautions at all and if you don't request a login shell, $PATH and any $LD_* variables are happily passed along. But this is getting offtopic, this bug is about glib not handling an invalid $DBUS_SESSION_BUS_ADDRESS gracefully.
Compare: Bug 682726 - Reference suggests only "su" instead of "su -"/su -l/su --login "make the shell a login shell" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c13 Ryan Bach <ryanbach@adelphia.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #13 from Ryan Bach <ryanbach@adelphia.net> 2011-04-09 03:48:52 UTC --- This should be added as a 11.4 patch update when fixed, because without this clicking any yast2 icon does nothing. That would be very problematic for new users that don't know the command line yet. Changing the priority. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c14 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |koenig@linux.de --- Comment #14 from Guido Berhörster <gber@opensuse.org> 2011-04-19 08:51:22 UTC --- *** Bug 682563 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=682563 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c15 --- Comment #15 from Guido Berhörster <gber@opensuse.org> 2011-04-19 09:23:17 UTC --- (In reply to comment #13)
This should be added as a 11.4 patch update when fixed, because without this clicking any yast2 icon does nothing. That would be very problematic for new users that don't know the command line yet. Changing the priority.
This bug does not affect YaST when called via gnomesu or kdesu (which is what happens when you start it though the KDE/GNOME/LXDE/Xfce menu). It is only a problem with the YaST GTK frontend (and other GTK applications) when starting it from a root shell which has not had the environment properly cleared, i.e. mostly the usage of "su" instead of "su -/-l". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c16 --- Comment #16 from Guido Berhörster <gber@opensuse.org> 2011-04-19 09:24:45 UTC --- BTW, this bug has been fixed upstream, see https://bugzilla.gnome.org/show_bug.cgi?id=635694 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c17 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |caf4926@opensuse-forums.org --- Comment #17 from Duncan Mac-Vicar <dmacvicar@novell.com> 2011-04-26 07:32:54 UTC --- *** Bug 675053 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=675053 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c18 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #18 from Dirk Mueller <dmueller@suse.com> 2011-08-15 13:23:14 CEST --- accepted as an update for 11.4 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=655751 https://bugzilla.novell.com/show_bug.cgi?id=655751#c19 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.4:42528 --- Comment #19 from Swamp Workflow Management <swamp@suse.de> 2011-08-15 11:24:11 UTC --- Update released for: glib2, glib2-branding-upstream, glib2-debugsource, glib2-devel, glib2-devel-debuginfo, glib2-devel-debuginfo-32bit, glib2-devel-debuginfo-x86, glib2-devel-static, glib2-lang, glib2-tools, glib2-tools-32bit, glib2-tools-debuginfo, glib2-tools-debuginfo-32bit, glib2-tools-debuginfo-x86, glib2-tools-x86, libgio-2_0-0, libgio-2_0-0-32bit, libgio-2_0-0-debuginfo, libgio-2_0-0-debuginfo-32bit, libgio-2_0-0-debuginfo-x86, libgio-2_0-0-x86, libgio-fam, libgio-fam-32bit, libgio-fam-debuginfo, libgio-fam-debuginfo-32bit, libgio-fam-debuginfo-x86, libgio-fam-x86, libglib-2_0-0, libglib-2_0-0-32bit, libglib-2_0-0-debuginfo, libglib-2_0-0-debuginfo-32bit, libglib-2_0-0-debuginfo-x86, libglib-2_0-0-x86, libgmodule-2_0-0, libgmodule-2_0-0-32bit, libgmodule-2_0-0-debuginfo, libgmodule-2_0-0-debuginfo-32bit, libgmodule-2_0-0-debuginfo-x86, libgmodule-2_0-0-x86, libgobject-2_0-0, libgobject-2_0-0-32bit, libgobject-2_0-0-debuginfo, libgobject-2_0-0-debuginfo-32bit, libgobject-2_0-0-debuginfo-x86, libgobject-2_0-0-x86, libgthread-2_0-0, libgthread-2_0-0-32bit, libgthread-2_0-0-debuginfo, libgthread-2_0-0-debuginfo-32bit, libgthread-2_0-0-debuginfo-x86, libgthread-2_0-0-x86 Products: openSUSE 11.4 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com