[packagekit] Daemon exits after `pkcon get repos`

Boyd Timothy btimothy at gmail.com
Fri Nov 16 08:00:51 PST 2007


On Nov 15, 2007 3:17 PM, Richard Hughes <hughsient at gmail.com> wrote:
> On Thu, 2007-11-15 at 14:20 -0700, Boyd Timothy wrote:
> > However, any time I run `pkcon get repos`, it lists out the
> > repositories and the PackageKit daemon exits.
>
> What's the last error or message? Do you get a segfault under gdb?

How exactly do I start up packagekitd in gdb?  `gdb packagekitd`
doesn't really work since packagekitd isn't an executable.

> > The same things happens even when using the dummy backend: sudo
> > ./run-pk.sh dummy
> >
> > Can someone else confirm this or is it just a problem on my machine?
>
> Could be either - it's fine on mine, but it could be a threading issue I
> don't use every day. Grab the backtrace and we can figure it out.

Here's the verbose output:

bht-opensuse-vm:/home/boyd/projects/PackageKit/src # ./run-pk.sh dummy
packagekitd: no process killed
[pk_debug_init] pk-debug.c:136 (16:25:09):       Verbose debugging enabled
[pk_conf_init] pk-conf.c:136 (16:25:10):         using config file
'../etc/PackageKit.conf'
[main] pk-main.c:214 (16:25:10):         daemon shutdown set to 60 seconds
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name
org.freedesktop.NetworkManager was not provided by any .service files
[pk_security_init] pk-security-polkit.c:204 (16:25:10):  Using
PolicyKit security framework
[pk_transaction_db_init] pk-transaction-db.c:383 (16:25:10):
trying to open database '${prefix}/var/lib/PackageKit/transactions.db'
*** WARNING ***
[pk_transaction_db_init] pk-transaction-db.c:386 (16:25:10):     Can't
open database: unable to open database file

[pk_engine_use_backend] pk-engine.c:161 (16:25:10):      trying backend dummy
[pk_backend_load] pk-backend.c:164 (16:25:10):   Trying to load : dummy
[pk_backend_build_library_path] pk-backend.c:140 (16:25:10):
dlopening '../backends/dummy/.libs/libpk_backend_dummy.so'
[pk_engine_reset_timer] pk-engine.c:183 (16:25:10):      reset timer
[pk_backend_finalize] pk-backend.c:1893 (16:25:10):      freeing dummy
(0x8a7a800)
[pk_inhibit_remove] pk-inhibit.c:201 (16:25:10):         cannot find
item 0x8a7a800
[pk_engine_get_transaction_list] pk-engine.c:2301 (16:25:10):
GetTransactionList method called
[pk_transaction_list_get_array] pk-transaction-list.c:320 (16:25:10):
  0 active transactions
[pk_engine_get_transaction_list] pk-engine.c:2301 (16:25:10):
GetTransactionList method called
[pk_transaction_list_get_array] pk-transaction-list.c:320 (16:25:10):
  0 active transactions
[pk_engine_get_tid] pk-engine.c:786 (16:25:20):  GetTid method called
[pk_strnumber] pk-common.c:169 (16:25:20):       not a number '
' in text!
*** WARNING ***
[pk_transaction_id_load_job_count] pk-transaction-id.c:77 (16:25:20):
  failed to convert
[pk_transaction_id_load_job_count] pk-transaction-id.c:86 (16:25:20):    job=0
[pk_transaction_id_save_job_count] pk-transaction-id.c:100 (16:25:20):
  saving 1
[pk_engine_get_tid] pk-engine.c:789 (16:25:20):  sending tid: '0;ccaacbad;data'
[pk_engine_get_repo_list] pk-engine.c:2121 (16:25:20):   GetRepoList
method called: 0;ccaacbad;data
[pk_backend_load] pk-backend.c:164 (16:25:20):   Trying to load : dummy
[pk_backend_build_library_path] pk-backend.c:140 (16:25:20):
dlopening '../backends/dummy/.libs/libpk_backend_dummy.so'
[pk_engine_reset_timer] pk-engine.c:183 (16:25:20):      reset timer
[pk_backend_set_dbus_name] pk-backend.c:1849 (16:25:20):
assiging :1.38 to 0x8a7a8a8
*** WARNING ***
[pk_backend_connection_changed_cb] pk-backend.c:1871 (16:25:20):
  client disconnected.... 1
[pk_engine_caller_active_changed_cb] pk-engine.c:613 (16:25:20):
  emitting caller-active-changed tid:0;ccaacbad;data, 0
[pk_backend_set_role] pk-backend.c:748 (16:25:20):       setting role
to get-repo-list
[pk_transaction_list_commit] pk-transaction-list.c:258 (16:25:20):
  marking transaction 0;ccaacbad;data as committed
[pk_transaction_list_commit] pk-transaction-list.c:262 (16:25:20):
  emmitting ::changed
[pk_transaction_list_get_array] pk-transaction-list.c:320 (16:25:20):
  1 active transactions
[pk_engine_transaction_list_changed_cb] pk-engine.c:200 (16:25:20):
  emitting transaction-list-changed
[pk_engine_reset_timer] pk-engine.c:183 (16:25:20):      reset timer
[pk_transaction_list_commit] pk-transaction-list.c:291 (16:25:20):
  running 0;ccaacbad;data
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail development, Fedora - Development, 1
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, development, Fedora - Development, 1
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail development-debuginfo, Fedora - Development - Debug, 1
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, development-debuginfo, Fedora -
Development - Debug, 1
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail development-source, Fedora - Development - Source, 0
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, development-source, Fedora -
Development - Source, 0
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail livna-development, Livna for Fedora Core 8 - i386 -
Development Tree, 1
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, livna-development, Livna for Fedora
Core 8 - i386 - Development Tree, 1
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail livna-development-debuginfo, Livna for Fedora Core 8 -
i386 - Development Tree - Debug, 1
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, livna-development-debuginfo, Livna
for Fedora Core 8 - i386 - Development Tree - Debug, 1
[pk_backend_repo_detail] pk-backend.c:1151 (16:25:20):   emit
repo-detail livna-development-source, Livna for Fedora Core 8 - i386 -
Development Tree - Source, 0
[pk_engine_repo_detail_cb] pk-engine.c:656 (16:25:20):   emitting
repo-detail tid:0;ccaacbad;data, livna-development-source, Livna for
Fedora Core 8 - i386 - Development Tree - Source, 0
[pk_backend_finished] pk-backend.c:1083 (16:25:20):      finished role
get-repo-list
*** WARNING ***
[pk_backend_finished] pk-backend.c:1125 (16:25:20):      GUI will
remain unchanged!
[pk_inhibit_remove] pk-inhibit.c:201 (16:25:20):         cannot find
item 0x8a7a8a8
[pk_backend_finished] pk-backend.c:1136 (16:25:20):      adding
finished 0x8a7a8a8 to timeout loop
[pk_inhibit_lock] pk-inhibit.c:86 (16:25:20):    Trying to AcquireInterfaceLock
Backends should send status <value> signals to update the UI!
If you are:
* Calling out to external tools, the compiled backend should call
pk_backend_change_status() manually.
* Using a scripted backend with dumb commands then this should be set
at the start of the runtime call
   - see helpers/yumBackend.py:self.status()
* Using a scripted backend with clever commands then a   callback
should use map values into status enums
   - see helpers/yumBackend.py:self.state_actions
[pk_inhibit_lock] pk-inhibit.c:108 (16:25:20):   emit lock 1
[pk_engine_inhibit_locked_cb] pk-engine.c:213 (16:25:20):
emitting locked 1
[pk_backend_finished_delay] pk-backend.c:1065 (16:25:20):        emit finished 0
[pk_engine_finished_cb] pk-engine.c:556 (16:25:20):      backend was
running for 56 ms
[pk_transaction_db_sql_statement] pk-transaction-db.c:195 (16:25:20):
  statement=UPDATE transactions SET succeeded = 1, duration = 56 WHERE
transaction_id = '0;ccaacbad;data'
bht-opensuse-vm:/home/boyd/projects/PackageKit/src #



More information about the PackageKit mailing list