Bug 444494 - imsettings aborts in %post
Summary: imsettings aborts in %post
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: im-chooser
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Blocker
TreeView+ depends on / blocked
 
Reported: 2008-04-28 17:40 UTC by Bill Nottingham
Modified: 2014-03-17 03:14 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-29 14:12:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2008-04-28 17:40:39 UTC
Description of problem:

  Updating  : imsettings                   ####################### [ 7/42]
/var/tmp/rpm-tmp.51378: line 4: 21741 Aborted                 imsettings-reload
-f > /dev/null 2>&1

imsettings-0.99.6-2.fc9.x86_64

Comment 1 Akira TAGOH 2008-04-29 01:52:33 UTC
Can you reproduce it if you run imsettings-reload -f manually? I guess you were
updating on the system that doesn't have a dbus session.

Comment 2 Bill Nottingham 2008-04-29 02:15:50 UTC
Yes, I can. There is a system dbus running, but I'm upgrading over ssh.

[root@localhost ~]# imsettings-reload  -f

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new:
assertion `connection != NULL' failed

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new:
assertion `connection != NULL' failed

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new:
assertion `connection != NULL' failed

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload:
assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload:
assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed

(imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload:
assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed
Reloaded.

(imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

(imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

(imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
process 27029: arguments to dbus_connection_unref() were incorrect, assertion
"connection != NULL" failed in file dbus-connection.c line 2645.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted


Comment 3 Akira TAGOH 2008-04-29 02:34:50 UTC
Thanks. well, imsettings doesn't use the system bus but the session bus.
probably I shouldn't run it at %post in this case? or consider another way of
notifying the update. adding a sanity check more now anyway.

Comment 4 Bill Nottingham 2008-04-29 02:40:05 UTC
Well, if nothing else, silently exit instead of aborting.

You're always going to be upgrading as root anyway - will you ever be able to
access the users's system bus properly?

Comment 5 Jeremy Katz 2008-04-29 03:56:47 UTC
Unlikely, unless the "user" is root.

Comment 6 Akira TAGOH 2008-04-29 04:10:22 UTC
built 0.99.6-3. abort should be gone.

Comment 7 Bill Nottingham 2008-04-29 14:12:57 UTC
Tested, works, tagged, in the tree.


Note You need to log in before you can comment on or make changes to this bug.