DBUS Issues on ARM
Shilpa Sheoran
sheoran.shilpa at gmail.com
Thu Mar 15 15:55:49 PDT 2007
All,
I'm able to run system bus as follows but it seems that all
connections are getting disconnected. The verbose mode messages are
below. Can anyone tell me whats wrong?
STARTING THE DBUS-DAEMON
------------------------------------------------------------------
cdma-linux # ./dbus-daemon --system --print-address
unix:path=/usr/local/var/run/dbus/system_bus_socket,guid=227946ad6abb541ec7c2ee0012d58e60
------------------------------------------------------------------
SETTING ENV VARIABLES
-----------------------------------------------------------------------
cdma-linux # export
DBUS_SYSTEM_BUS_DEFAULT_ADDRESS=unix:path=/usr/local/var/run/dbus/system_bus_socket,guid=227946ad6abb541ec7c2ee0
012d58e60
cdma-linux # export
DBUS_SESSION_BUS_ADDRESS=unix:path=/usr/local/var/run/dbus/system_bus_socket,guid=227946ad6abb541ec7c2ee0012d58e
60
-----------------------------------------------------------------------
TESTING USING DBUS_SEND - get error message
-------------------------------------------------------------------------
cdma-linux # ./arm-linux-dbus-send --print-reply --system
--dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.ListNames
Failed to open connection to system message bus: Did not receive a
reply. Possible causes include: the remote application did not se
nd a reply, the message bus security policy blocked the reply, the
reply timeout expired, or the network connection was broken.
DBUS_ VERBOSE MODE:
--------------------------------------------
cdma-linux # ./arm-linux-dbus-send --print-reply --system
--dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.Lis
449: Filling in system bus address...
449: used default system bus
"unix:path=/usr/local/var/run/dbus/system_bus_socket"
449: Filling in session bus address...
449: "unix:path=/usr/local/var/run/dbus/system_bus_socket,guid=227946ad6abb541ec7c2ee0012d58e60"
449: Filling in activation bus address...
449: "none set"
449: opening shared connection to:
unix:path=/usr/local/var/run/dbus/system_bus_socket
449: checking for existing connection
449: creating shared_connections hash table
449: successfully created shared_connections
449: connecting to unix socket
/usr/local/var/run/dbus/system_bus_socket abstract=0
449: Successfully connected to unix socket
/usr/local/var/run/dbus/system_bus_socket
449: client: going from state NeedSendAuth to state WaitingForData
449: Initialized transport on address
unix:path=/usr/local/var/run/dbus/system_bus_socket
449: LOCK: _dbus_connection_new_for_transport
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_read_watch: fd = 3
449: setting read watch enabled = 0
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_write_watch(): needed = 1 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 0
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: UNLOCK: _dbus_connection_new_for_transport
449: LOCK: _dbus_connection_open_internal
449: UNLOCK: _dbus_connection_open_internal
449: LOCK: dbus_connection_set_exit_on_disconnect
449: UNLOCK: dbus_connection_set_exit_on_disconnect
449: Allocated slot 0 on allocator 0x3005abf4 total 1 slots allocated 1 used
449: LOCK: dbus_connection_get_data
449: UNLOCK: dbus_connection_get_data
449: LOCK: dbus_connection_set_data
449: UNLOCK: dbus_connection_set_data
449: LOCK: dbus_connection_send_with_reply
449: Allocated slot 0 on allocator 0x3005ac3c total 1 slots allocated 1 used
449: UNLOCK: protected_change_timeout
449: LOCK: protected_change_timeout
449: Message 0x13a18 (1 /org/freedesktop/DBus org.freedesktop.DBus
Hello '') for org.freedesktop.DBus added to outgoing queue 0x137e
8, 1 pending to send
449: Message 0x13a18 serial is 1
449: _dbus_connection_do_iteration_unlocked start
449: UNLOCK: _dbus_connection_acquire_io_path
449: _dbus_connection_acquire_io_path locking io_path_mutex
449: _dbus_connection_acquire_io_path start
connection->io_path_acquired = 0 timeout = 0
449: _dbus_connection_acquire_io_path end connection->io_path_acquired
= 1 we_acquired = 1
449: _dbus_connection_acquire_io_path unlocking io_path_mutex
449: LOCK: _dbus_connection_acquire_io_path
449: Transport iteration flags 0x1 timeout -1 connected = 1
449: iteration flags = write timeout = -1 read_watch = 0x134a8
write_watch = 0x13480 fd = 3
449: in iteration, need_read=0 need_write=1
449: exchange_credentials: do_reading = 0, do_writing = 1
449: wrote credentials byte
449: client auth state: bytes to send
449: client: Sent 18 bytes of: AUTH EXTERNAL 30
449: exchange_credentials: do_reading = 0, do_writing = 1
449: client auth state: waiting for input
449: check_read_watch: fd = 3
449: setting read watch enabled = 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_write_watch(): needed = 0 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: Not authenticated, not writing anything
449: check_write_watch(): needed = 0 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: ... leaving do_iteration()
449: _dbus_transport_do_iteration end
449: _dbus_connection_release_io_path locking io_path_mutex
449: _dbus_connection_release_io_path start connection->io_path_acquired = 1
449: _dbus_connection_release_io_path unlocking io_path_mutex
449: _dbus_connection_do_iteration_unlocked end
449: dispatch status = complete is_connected = 1
449: UNLOCK: _dbus_connection_update_dispatch_status_and_unlock
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: LOCK: _dbus_connection_lock
449: doing iteration in _dbus_connection_flush_unlocked
449: _dbus_connection_do_iteration_unlocked start
449: UNLOCK: _dbus_connection_acquire_io_path
449: _dbus_connection_acquire_io_path locking io_path_mutex
449: _dbus_connection_acquire_io_path start
connection->io_path_acquired = 0 timeout = -1
449: _dbus_connection_acquire_io_path end connection->io_path_acquired
= 1 we_acquired = 1
449: _dbus_connection_acquire_io_path unlocking io_path_mutex
449: LOCK: _dbus_connection_acquire_io_path
449: Transport iteration flags 0x7 timeout -1 connected = 1
449: iteration flags = readwrite timeout = -1 read_watch = 0x134a8
write_watch = 0x13480 fd = 3
449: unlock socket_do_iteration pre poll
449: UNLOCK: _dbus_connection_unlock
449: lock socket_do_iteration post poll
449: LOCK: _dbus_connection_lock
449: in iteration, need_read=1 need_write=0
449: exchange_credentials: do_reading = 1, do_writing = 0
449: client auth state: waiting for input
449: read 37 bytes in auth phase
449: client: got command "OK 227946ad6abb541ec7c2ee0012d58e60"
449: Got GUID '227946ad6abb541ec7c2ee0012d58e60' from the server
449: client: going from state WaitingForData to state Authenticated
449: exchange_credentials: do_reading = 1, do_writing = 0
449: client auth state: bytes to send
449: check_read_watch: fd = 3
449: setting read watch enabled = 0
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_write_watch(): needed = 1 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: do_reading: fd = 3
449: check_write_watch(): needed = 1 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: ... leaving do_iteration()
449: _dbus_transport_do_iteration end
449: _dbus_connection_release_io_path locking io_path_mutex
449: _dbus_connection_release_io_path start connection->io_path_acquired = 1
449: _dbus_connection_release_io_path unlocking io_path_mutex
449: _dbus_connection_do_iteration_unlocked end
449: doing iteration in _dbus_connection_flush_unlocked
449: _dbus_connection_do_iteration_unlocked start
449: UNLOCK: _dbus_connection_acquire_io_path
449: _dbus_connection_acquire_io_path locking io_path_mutex
449: _dbus_connection_acquire_io_path start
connection->io_path_acquired = 0 timeout = -1
449: _dbus_connection_acquire_io_path end connection->io_path_acquired
= 1 we_acquired = 1
449: _dbus_connection_acquire_io_path unlocking io_path_mutex
449: LOCK: _dbus_connection_acquire_io_path
449: Transport iteration flags 0x7 timeout -1 connected = 1
449: iteration flags = readwrite timeout = -1 read_watch = 0x134a8
write_watch = 0x13480 fd = 3
449: unlock socket_do_iteration pre poll
449: UNLOCK: _dbus_connection_unlock
449: lock socket_do_iteration post poll
449: LOCK: _dbus_connection_lock
449: in iteration, need_read=0 need_write=1
449: exchange_credentials: do_reading = 0, do_writing = 1
449: client auth state: bytes to send
449: client: Sent 7 bytes of: BEGIN
449: check_read_watch: fd = 3
449: setting read watch enabled = 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_write_watch(): needed = 1 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: check_write_watch(): needed = 1 on connection 0x137e8 watch
0x13480 fd = 3 outgoing messages exist 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: ... leaving do_iteration()
449: _dbus_transport_do_iteration end
449: _dbus_connection_release_io_path locking io_path_mutex
449: _dbus_connection_release_io_path start connection->io_path_acquired = 1
449: _dbus_connection_release_io_path unlocking io_path_mutex
449: _dbus_connection_do_iteration_unlocked end
449: doing iteration in _dbus_connection_flush_unlocked
449: _dbus_connection_do_iteration_unlocked start
449: UNLOCK: _dbus_connection_acquire_io_path
449: _dbus_connection_acquire_io_path locking io_path_mutex
449: _dbus_connection_acquire_io_path start
connection->io_path_acquired = 0 timeout = -1
449: _dbus_connection_acquire_io_path end connection->io_path_acquired
= 1 we_acquired = 1
449: _dbus_connection_acquire_io_path unlocking io_path_mutex
449: LOCK: _dbus_connection_acquire_io_path
449: Transport iteration flags 0x7 timeout -1 connected = 1
449: iteration flags = readwrite timeout = -1 read_watch = 0x134a8
write_watch = 0x13480 fd = 3
449: unlock socket_do_iteration pre poll
449: UNLOCK: _dbus_connection_unlock
449: lock socket_do_iteration post poll
449: LOCK: _dbus_connection_lock
449: in iteration, need_read=1 need_write=1
449: do_reading: fd = 3
449: check_read_watch: fd = 3
449: setting read watch enabled = 1
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: Disconnected from remote app
449: _dbus_transport_disconnect start
449: socket_disconnect
449: free_watches start
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: Setting watch fd -1 data to data = (nil) function = (nil) from
data = (nil) function = (nil)
449: UNLOCK: protected_change_watch
449: LOCK: protected_change_watch
449: Setting watch fd -1 data to data = (nil) function = (nil) from
data = (nil) function = (nil)
449: free_watches end
449: _dbus_transport_disconnect end
449: Not connected, not writing anything
449: ... leaving do_iteration()
449: _dbus_transport_do_iteration end
449: _dbus_connection_release_io_path locking io_path_mutex
449: _dbus_connection_release_io_path start connection->io_path_acquired = 1
449: _dbus_connection_release_io_path unlocking io_path_mutex
449: _dbus_connection_do_iteration_unlocked end
449: _dbus_connection_flush_unlocked middle
449: 0 unused bytes sent to message loader
449: dispatch status = complete is_connected = 0
449: Dropping 1 outgoing messages since we're disconnected
449: Message 0x13a18 (1 /org/freedesktop/DBus org.freedesktop.DBus
Hello '') removed from outgoing queue 0x137e8, 0 left to send
449: Sending disconnect message from
notify_disconnected_and_dispatch_complete_unlocked
449: Synthesized message 0x13b78 added to incoming queue 0x137e8, 1 incoming
449: UNLOCK: protected_change_timeout
449: LOCK: protected_change_timeout
449: UNLOCK: _dbus_connection_unlock
449: LOCK: free_pending_call_on_hash_removal
449: UNLOCK: _dbus_connection_unlock
449: LOCK: connection_timeout_and_complete_all_pending_calls_unlocked
449: Synthesized message 0x13870 added to incoming queue 0x137e8, 2 incoming
449: dbus_connection_send_with_reply_and_block(): will block 25000
milliseconds for reply serial 1 from 315986555 sec 68201 usec to
315986580 sec 68201 usec
449: check_for_reply_and_update_dispatch_unlocked checked for reply
449: dbus_connection_send_with_reply_and_block(): got reply
449: handing message 0x13b78 (error) to pending call serial 1
449: UNLOCK: _dbus_connection_unlock
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: LOCK: check_for_reply_and_update_dispatch_unlocked
449: UNLOCK: _dbus_connection_update_dispatch_status_and_unlock
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: LOCK: _dbus_connection_lock
449: UNLOCK: _dbus_connection_unlock
449: Freeing slot 0 on allocator 0x3005ac3c total 1 allocated 1 used
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
449: LOCK: _dbus_connection_close_possibly_shared
449: Disconnecting 0x137e8
449: _dbus_transport_disconnect start
449: UNLOCK: _dbus_connection_update_dispatch_status_and_unlock
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
449: LOCK: dbus_connection_unref
449: UNLOCK: dbus_connection_unref
Failed to open connection to system message bus: Did not receive a
reply. Possible causes include: the remote application did not se
nd a reply, the message bus security policy blocked the reply, the
reply timeout expired, or the network connection was broken.
------------SYSTEM.CONF------------
<!-- This configuration file controls the systemwide message bus.
Add a system-local.conf and edit that rather than changing this
file directly. -->
<!-- Note that there are any number of ways you can hose yourself
security-wise by screwing up this file; in particular, you
probably don't want to listen on any more addresses, add any more
auth mechanisms, run as a different user, etc. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Our well-known bus type, do not change this -->
<type>system</type>
<!-- Fork into daemon mode -->
<fork/>
<!-- Write a pid file -->
<pidfile>/usr/local/var/run/dbus/pid</pidfile>
<!-- Write a pid file -->
<pidfile>/usr/local/var/run/dbus/pid</pidfile>
<!-- Only allow socket-credentials-based authentication -->
<!-- Only listen on a local socket. (abstract=/path/to/socket
means use abstract namespace, don't really create filesystem
file; only Linux supports this. Use path=/whatever on other
systems.) -->
<listen>unix:path=/usr/local/var/run/dbus/system_bus_socket</listen>
<!-- Config files are placed here that among other things, punch
holes in the above policy for specific services. -->
<includedir>system.d</includedir>
<!-- This is included last so local configuration can override what's
in this standard file -->
<include ignore_missing="yes">system-local.conf</include>
<include if_selinux_enabled="yes"
selinux_root_relative="yes">contexts/dbus_contexts</include>
</busconfig>
----------------------------------------------------
Thanks
Shilpa
More information about the dbus
mailing list