View Single Post
Posts: 42 | Thanked: 37 times | Joined on Nov 2010
#12
Originally Posted by n900-dk View Post
BUMP.. Did you find a solution for this problem? I also see the same loop over and over again..
I'm now in CSSU and still have the same looping problem.

Going a little further, I've tested running as-daemon directly from command line terminal, and discovered something: it ends abruptly with a segmentation fault in any case.
- if executed from "user" profile, it cannot connect to dcop, but there isn't any as-daemon process running, and segfault at the end


~ $ as-daemon -?
I: DaemonApplication created
W: AS-DAEMON: QWarning: Could not listen for qcop connections on "qcop-server-0" ; another qcop server may already be running.
I: ASDAEMON: ICListener constructor start
I: Certificates: loading certificate exception from /apps/activesync/ActiveSyncAccount1/certex ...
I: CurlConnectionManager::CurlConnectionManager(ICLis tener&)
I: Calendar::Calendar(ICalendarDB&)
I: StoreProxyImpl: constructor enter
I: int AddressBook:pen()
I: ASDAEMON-EBOOK: AddressBook is not opened yet. Openning....
I: Executing async AddressBook operation e_book_async_open
I: Async AddressBook operation e_book_async_open completed
I: Executing async AddressBook operation e_book_async_get_book_view
I: Async AddressBook operation e_book_async_get_book_view completed
I: AddressBook:pen end
I: StoreProxyImpl::createAccount(, )
I: StoreProxyImpl::createAccount initialize migration data
I: AS-DAEMON: QDebug: Db is ok
Segmentation fault
~ $
~ $ ps ax |grep as-daemon
29214 user 2088 S grep as-daemon


- if executed as root, it doesn't complain about dcop, but about not finding address book (normal, root doesn't have address book :-) ), and segfault at the end.


Nokia-N900:~# as-daemon --help
I: DaemonApplication created
I: ASDAEMON: ICListener constructor start
I: Certificates: loading certificate exception from /apps/activesync/ActiveSyncAccount1/certex ...
I: CurlConnectionManager::CurlConnectionManager(ICLis tener&)
I: Calendar::Calendar(ICalendarDB&)
I: StoreProxyImpl: constructor enter
I: int AddressBook:pen()
I: ASDAEMON-EBOOK: AddressBook is not opened yet. Openning....
I: Executing async AddressBook operation e_book_async_open
E: Async AddressBook operation e_book_async_open completed with error 8
E: ASDAEMON-EBOOK: Unable to open EBook code=8 ('AddressBook error 8')
E: ASDAEMON-INIT: failed to open AddressBook
I: StoreProxyImpl::createAccount(, )
I: StoreProxyImpl::createAccount initialize migration data
I: AS-DAEMON: QDebug: Db is ok
Segmentation fault
Nokia-N900:~#


- if as-daemon is marked SUID to be executed as user but with root permissions, no error about dcop or abook is printed, but segfault is at the end.

Nokia-N900:~# which as-daemon
/usr/sbin/as-daemon
Nokia-N900:~# ls -l /usr/sbin/as-daemon
-rwxr-xr-x 1 root root 1415196 Aug 6 2010 /usr/sbin/as-daemon
Nokia-N900:~# chmod +s /usr/sbin/as-daemon
Nokia-N900:~# ls -l /usr/sbin/as-daemon
-rwsr-sr-x 1 root root 1415196 Aug 6 2010 /usr/sbin/as-daemon
Nokia-N900:~#
~ $ as-daemon -?
I: DaemonApplication created
I: ASDAEMON: ICListener constructor start
I: Certificates: loading certificate exception from /apps/activesync/ActiveSyncAccount1/certex ...
I: CurlConnectionManager::CurlConnectionManager(ICLis tener&)
I: Calendar::Calendar(ICalendarDB&)
I: StoreProxyImpl: constructor enter
I: int AddressBook:pen()
I: ASDAEMON-EBOOK: AddressBook is not opened yet. Openning....
I: Executing async AddressBook operation e_book_async_open
I: Async AddressBook operation e_book_async_open completed
I: Executing async AddressBook operation e_book_async_get_book_view
I: Async AddressBook operation e_book_async_get_book_view completed
I: AddressBook:pen end
I: StoreProxyImpl::createAccount(, )
I: StoreProxyImpl::createAccount initialize migration data
I: AS-DAEMON: QDebug: Db is ok
Segmentation fault
~ $


My guess is that loop happens when as-daemon is constantly re-launched after each segfault that isn't recorded in logs.

I'll check with a colleague which MfE is working to see versions, installed packages, etc.
Stay tuned.

Rafa.