Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

D-Bus running on ARM Platform (ERROR: Couldn't connect to session bus)

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


soni.trilok at gmail

Feb 15, 2008, 9:05 PM

Post #1 of 4 (897 views)
Permalink
D-Bus running on ARM Platform (ERROR: Couldn't connect to session bus)

Hi All,

I am trying to run D-BUS 1.0.2 (same version as maemo package except
debian/patches) cross-compiled under scratchbox Apophis R4 on ARM9
DaVinci platform,
and I am not able to connect any d-bus client application to session
bus. I have posted question to dbus mailing list, but as I am sure
that many people here configured d-bus from scratch on OMAP platform,
can quickly point out the source of the problem or some tips.
Kimmo[at]Nokia?

Link:
http://lists.freedesktop.org/archives/dbus/2008-February/009305.html
http://lists.freedesktop.org/archives/dbus/2008-February/009312.html

Even I have tried to run those "dbus-daemon" binaries under sbox-qemu
and tried connect with dbus-monitor but no success but same error
messages. Any tips regarding this would be great help.

--
--Trilok Soni
_______________________________________________
maemo-developers mailing list
maemo-developers[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


juha.kuikka at gmail

Feb 17, 2008, 12:35 AM

Post #2 of 4 (792 views)
Permalink
Re: D-Bus running on ARM Platform (ERROR: Couldn't connect to session bus) [In reply to]

Hi,

I ran into a compiler problem with D-BUS 1.0.2 on ARM (albeit mine was
ARMv6) where dbus daemon would crash whenever client connected.

Just a pointer, check that d-bus is actually running after the client fails.

- Juha

On Feb 15, 2008 9:05 PM, Trilok Soni <soni.trilok[at]gmail.com> wrote:

> Hi All,
>
> I am trying to run D-BUS 1.0.2 (same version as maemo package except
> debian/patches) cross-compiled under scratchbox Apophis R4 on ARM9
> DaVinci platform,
> and I am not able to connect any d-bus client application to session
> bus. I have posted question to dbus mailing list, but as I am sure
> that many people here configured d-bus from scratch on OMAP platform,
> can quickly point out the source of the problem or some tips.
> Kimmo[at]Nokia?
>
> Link:
> http://lists.freedesktop.org/archives/dbus/2008-February/009305.html
> http://lists.freedesktop.org/archives/dbus/2008-February/009312.html
>
> Even I have tried to run those "dbus-daemon" binaries under sbox-qemu
> and tried connect with dbus-monitor but no success but same error
> messages. Any tips regarding this would be great help.
>
> --
> --Trilok Soni
> _______________________________________________
> maemo-developers mailing list
> maemo-developers[at]maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>



--
Madness takes it's toll. Please have exact change.


soni.trilok at gmail

Feb 17, 2008, 9:41 PM

Post #3 of 4 (793 views)
Permalink
Re: D-Bus running on ARM Platform (ERROR: Couldn't connect to session bus) [In reply to]

Hi Juha,

On Feb 17, 2008 2:05 PM, Juha Kuikka <juha.kuikka[at]gmail.com> wrote:
> Hi,
>
> I ran into a compiler problem with D-BUS 1.0.2 on ARM (albeit mine was
> ARMv6) where dbus daemon would crash whenever client connected.

Thanks for the reply. I think behavior is same as yours, dbus-daemon
disappears from the "ps" list,
whenever client (here dbus-monitor) tries to connect to it through
session bus. I have even seen it segfaulting
when putting it under "strace" with "--nofork" and connecting to bus
through opening the terminal using
"telnet" and running "dbus-monitor" there.

>
> Just a pointer, check that d-bus is actually running after the client fails.

No. d-bus daemon is not running after client fails to connect. So, did
you solved your problem after upgrading
to some new compiler version for ARMv6? How did you found that it is
compiler problem?

--
--Trilok Soni
_______________________________________________
maemo-developers mailing list
maemo-developers[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


soni.trilok at gmail

Feb 18, 2008, 5:56 AM

Post #4 of 4 (780 views)
Permalink
Re: D-Bus running on ARM Platform (ERROR: Couldn't connect to session bus) [In reply to]

Hi Juha,

On Feb 18, 2008 11:23 AM, Juha Kuikka <juha.kuikka[at]gmail.com> wrote:
> Hi Trilok,
>
> I found on that it is a compiler problem by reading the assembler it
> generates from the C-code. I started suspecting it when a values of a struct
> were different on caller and callee.
>
> Problem was caused by a struct copy in the style:
>
> void function( struct foo *parameter)
> {
> struct foo local_foo;
>
> local_foo = *parameter;
> ...
> }
>
> I had to hastily work around the problem by doing the copy with inline
> assembler. Replacing it with memcpy did not help as compiler optimized it
> into inline copy as well.
>
> Additionally disabling optinizations in compile (-O0) also fixed it.
>
> I don't remember the GCC version we worked with.

Thanks for the reply. My GCC version is 3.4.6 with glibc-2.3.6. Your
suggested trick to disable optimization worked for me :). So, looks
like my toolchain is buggy somewhere in code generation. Now session
bus is working on board under normal user, and also dbus-monitor
executed from this normal user account is able to connect to this
session bus.

But session bus started from the "root" account, doesn't allow to
connect clients from the normal user, looks like some permission
issues of socket file, I will check this in more details.

Thanks again for great help.

--
--Trilok Soni
_______________________________________________
maemo-developers mailing list
maemo-developers[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.