Project

General

Profile

Actions

Bug #4319

closed

Most administration GUIs cannot be activated

Added by Jean-Pierre André almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Desktop (JDS)
Target version:
-
Start date:
2013-11-13
Due date:
2013-12-25
% Done:

100%

Estimated time:
4.00 h
Difficulty:
Medium
Tags:
jds

Description

In oi151a8 and recent hipster releases, most administration GUIs fail to acknowledge administration rights. They appear to hang (no error message to screen or to /var/adm/messages) or to wait permanently after the root password has been entered (from a user account with profile "Primary Administrator").

Probably all the ones which open an authentication window fail :
- Package Manager
- Services
- Shared Folders
- Time and Date
- Users and Groups

Actions #1

Updated by Garrett D'Amore almost 8 years ago

  • Project changed from illumos gate to OpenIndiana Distribution
Actions #2

Updated by Ken Mays almost 8 years ago

  • Due date set to 2013-12-25
  • Category set to Desktop (JDS)
  • Assignee set to Milan Jurik
  • Estimated time set to 4.00 h
  • Tags changed from needs-triage to jds
Actions #3

Updated by Udo Grabowski over 7 years ago

Not fixed in a9, e.g. Time and Users/Groups are still inactive after root password.

Actions #4

Updated by Udo Grabowski over 7 years ago

Fails in gksu-context-free, here's a trace when starting as root from
command line :
ro ~# dbx `which users-admin`
Reading users-admin
Reading ld.so.1
Reading libc.so.1
Reading libxml2.so.2
Reading libpthread.so.1
Reading libz.so.1
Reading libm.so.2
Reading libsocket.so.1
Reading libnsl.so.1
(dbx) run
Running: users-admin
(process id 5450)
Reading libgnomeui-2.so.0.2400.4
Reading libart_lgpl_2.so.2.3.21
Reading libgconf-2.so.4.1.5
Reading libORBit-2.so.0.1.0
Reading libgobject-2.0.so.0.2800.8
Reading libglib-2.0.so.0.2800.8
Reading libgtk-x11-2.0.so.0.2200.1
Reading libgdk-x11-2.0.so.0.2200.1
Reading libcairo.so.2.11000.2
Reading libXrender.so.1
Reading libX11.so.4
Reading libXext.so.0
Reading libgio-2.0.so.0.2800.8
Reading libresolv.so.2
Reading libbonoboui-2.so.0.0.0
Reading libbonobo-2.so.0.0.0
Reading libORBitCosNaming-2.so.0.1.0
Reading libbonobo-activation.so.4.0.0
Reading libgnome-2.so.0.3000.0
Reading libpopt.so.0.0.0
Reading libgthread-2.0.so.0.2800.8
Reading libICE.so.6
Reading libgmodule-2.0.so.0.2800.8
Reading libgnomecanvas-2.so.0.3000.3
Reading libgailutil.so.18.0.1
Reading libsecdb.so.1
Reading libtsol.so.2
Reading libatk-1.0.so.0.3209.1
Reading libpangocairo-1.0.so.0.2800.4
Reading libXinerama.so.1
Reading libXi.so.5
Reading libXrandr.so.2
Reading libXcursor.so.1
Reading libXcomposite.so.1
Reading libXdamage.so.1
Reading libgdk_pixbuf-2.0.so.0.2200.1
Reading libXfixes.so.1
Reading libpng14.so.14.12.0
Reading libpangoft2-1.0.so.0.2800.4
Reading libpango-1.0.so.0.2800.4
Reading libfreetype.so.6
Reading libfontconfig.so.1
Reading libglade-2.0.so.0.0.7
Reading libgksu2.so.0.0.2
Reading libstartup-notification-1.so.0.0.0
Reading libgnome-keyring.so.0.1.1
Reading libgtop-2.0.so.7.2.0
Reading libgcrypt.so.11.5.3
Reading libmp.so.2
Reading libmd.so.1
Reading libgnomevfs-2.so.0.2400.4
Reading libSM.so.6
Reading libpixman-1.so.0
Reading libXau.so.6
Reading libXdmcp.so.6
Reading libbz2.so.1
Reading libexpat.so.1.6.0
Reading libdbus-1.so.3.4.3
Reading librt.so.1
Reading libgpg-error.so.0.8.0
Reading libkstat.so.1
Reading libdbus-glib-1.so.2.1.0
Reading libssl.so.0.9.8
Reading libcrypto.so.0.9.8
Reading libavahi-glib.so.1.0.2
Reading libavahi-common.so.3.5.3
Reading libavahi-client.so.3.2.9
Reading libbsm.so.1
Reading libdns_sd.so.1
Reading libdl.so.1
Reading libinetutil.so.1
Reading libscf.so.1
Reading libuutil.so.1
Reading libgen.so.1
Reading libnvpair.so.1
Reading libsmbios.so.1
Reading xlcUTF8Load.so.2
Reading libclearlooks.so
Reading libcanberra-gtk-module.so
Reading libgnome.so
Reading libbonobo.so

(users-admin:5450): GLib-GObject-CRITICAL **: file gobject.c: line 2668: assertion `G_IS_OBJECT (object)' failed
Reading libpixbufloader-png.so
Reading pango-basic-fc.so

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(users-admin:5450): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Reading libgioremote-volume-monitor.so
Reading libgsettingsgconfbackend.so
Reading libgvfsdbus.so
Reading libmlib.so.2
Reading libmlib_sse2.so.2
Reading im-xim.so
Reading xiiimp.so.2
Reading libiiimcf.so.3.0.0
Reading libiiimp.so.1.0.0
Reading ximcp.so.2

sys::begin::Start of work report.
t@1 (l@1) signal SEGV (no mapping at the fault address) in gksu_context_free at 0xfd697d47
0xfd697d47: gksu_context_free+0x0097: pushl (%eax,%edi)
(dbx) where
current thread: t@1
=>[1] gksu_context_free(0x83c1968, 0x80475cc, 0x8047588, 0xfd6980fa), at 0xfd697d47
[2] gksu_su(0x82afb90, 0x80475cc, 0x82afb90, 0xfd698f3c), at 0xfd69815f
[3] gksu_run(0x82afb90, 0x80475cc, 0x80475d8, 0xfe6f549a), at 0xfd698f51
[4] gst_auth_do_authentication(0x8118018, 0x80475f0), at 0x806d07b
[5] gst_auth_do_su_authentication(0x8118018), at 0x806d31a
[6] tool_main_do(0x8118018, 0x0, 0x1, 0x805bf02, 0x8109008, 0x226), at 0x806a152
[7] gst_tool_main(0x8118018, 0x0, 0x8047678, 0x805bf81, 0x8047660, 0x8047780), at 0x806a1c7
[8] main(0x1, 0x80476a4, 0x80476ac, 0x805bb1f), at 0x805bfa6
(dbx)

Actions #5

Updated by Alexander Pyhalov over 7 years ago

At least this particular segmentation fault is caused by the following. At http://hg.opensolaris.cz/oi-jds/file/cc5807d26ec5/patches/libgksu-05-rbac-support.diff#l601

we do

 for ( int i = 0; i<context->msg_num; i++ ) {
      g_free (context->pam_message[i].msg);
      g_free (context->pam_response[i].resp);
 }
 ....

after g_free(context);

1) we should do it before g_free(context)
2) if we look at http://hg.opensolaris.cz/oi-jds/file/cc5807d26ec5/patches/libgksu-05-rbac-support.diff#l1426 , we can see that
context->pam_response is allocated only in one case, so it can be NULL and should be checked for NULL at http://hg.opensolaris.cz/oi-jds/file/cc5807d26ec5/patches/libgksu-05-rbac-support.diff#l605.

But eliminating this core dump doesn't solve the mentioned hang.

Actions #6

Updated by Alexander Pyhalov over 7 years ago

It seems that the bug itself is caused by "seeing" gksu at compilation time. If we just change #ifdef HAVE_GKSU to #ifdef notHAVE_GKSU
in gst_auth_do_authentication, everything works... I think it's not a proper fix, but an acceptable workaround.

Actions #7

Updated by Alexander Pyhalov over 7 years ago

Fix for gksu crash problem is applied in , workaround for gnome-system-tools hang is applied in .

Actions #8

Updated by Ken Mays over 7 years ago

  • Status changed from New to Closed
  • Assignee changed from Milan Jurik to OI JDS
  • % Done changed from 0 to 100

Tested hipster-070114. No hang issues as seen in this ticket. Resolved.

Actions

Also available in: Atom PDF