trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2015

Re: [trinity-users] R14 Kpilot and KOrganizer Reminder Daemon Problems.

From: Michele Calgaro <michele.calgaro@...>
Date: Fri, 09 Jan 2015 11:27:58 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/09/2015 08:44 AM, Will Hill wrote:
> On Thursday 08 January 2015, Timothy Pearson wrote:
>> Sounds like a serious bug; can you file a report on our bugtracker so that we don't lose track of this?
>> 
>> Something you can do in the meantime is to install the kpilot debugging symbols along with tdelibs-trinity-dbg,
>> then when the daemon goes into its CPU loop do the following: 1.) Get the PID of the process consuming all the
>> CPU (use top or similar) 2.) gdb --pid <pid obtained above> 3.) thread apply all bt
>> 
>> Once that is done post the output on the bug report; we'll be able to tell what's going wrong fairly readily.
> 
> That's the sort advice I was looking for, thank you.
> 
> [long list of symbols found and not found, all TDE seem to be found] TQGListIterator::operator++ (this=0xbfb0dd08)
> at tools/qglist.cpp:1524 1524    tools/qglist.cpp: No such file or directory.

Try to type thison gdb command prompt:

directory /path/to/your/tde/main/repo/dependencies/tqt3/src

This should solve the "tools/qglist.cpp: No such file or directory." error.
For example, on my system it is
directory /home/tde_src/1_git/tde/main/dependencies/tqt3/src

> (gdb) thread apply all bt
> 
> Thread 2 (Thread 0xb54afb70 (LWP 24717)): #0  0xb778c424 in __kernel_vsyscall () #1  0xb6b35733 in
> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 #2  0xb71996a0 in
> thread_sleep (ti=ti@entry=0xb54af288) at kernel/qthread_unix.cpp:255 #3  0xb7199be4 in TQThread::sleep (secs=2) at
> kernel/qthread_unix.cpp:273 #4  0xb76ff34c in DeviceCommThread::run() () from /opt/trinity/lib/libkpilot.so.0 #5
> 0xb7199937 in TQThreadInstance::start (_arg=0x9241c8c) at kernel/qthread_unix.cpp:142 #6  0xb6e7deb3 in ?? () from
> /lib/i386-linux-gnu/libglib-2.0.so.0 #7  0xb6b30c39 in start_thread () from
> /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 #8  0xb5e199fe in clone () from
> /lib/i386-linux-gnu/i686/cmov/libc.so.6
> 
> Thread 1 (Thread 0xb5668710 (LWP 24716)): #0  TQGListIterator::operator++ (this=0xbfb0dd08) at
> tools/qglist.cpp:1524 ---Type <return> to continue, or q <return> to quit---
> 
Uhm, after a quick look at the rules file, it looks like debug symbol are not generated for kpilot. Will have to fix
that to have more info.

A first rough guess is that the code may actually be stuck in KPilotDeviceLink.cc:517
	while (!fDone)
	{
		TQThread::sleep(sleepBetweenPoll);
	}

Cheers
  Michele
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJUrzytAAoJECp1t8qK3tXP88UQAL7G4wnvw3KW4GNpz/6YCHG6
4+RN7ZgDWdn5cZpugzqpiVVpPwF4VENsBWU3Y1IQPO8QNIlI4TkSy8MS9pLtSMIA
gcMNw0QJ8g3/OFxtUxhOFRq6Ef9M7PZ9ZvHQ5rEOhh7w2hcPWI6tX3fzAkEPDxiW
IX+evdhCrcsFEVjXMvhlyINH7UR5SWXtXsTYSMW/j3DJgN4Uev/35Ruk/FqiZq11
uEOupzNzyDj5g48uVC+MoflCbMWyMTwcs7O65oQUUSsUak3MRaUwJ6HPOV7KD+tJ
ViyrSh0NU70ELVg3QwbRZj9riXUp9HxaZdYbVMek9vj3YdaiCXq+5NQl1Ks3WZLj
TzyZWyWnGK2dXEtuDUO4t9h8d0C1cFepEExqbmKbvMTbfWWzQTkTnNcP7NXQdPIW
JAu8nCxZGQd6MAeIIh7bRNKw5EJB8je2QLBQV9Td3hZp34WG297mYj9R4LecTsmJ
24wU3SgS529AtWPyL0VaCNc8XDOVrLYHd61YWrhthbFRftnrL/eIbOKIz6PvFpHA
GTE7S4Yl01jaiwgXAKC0+qL2Y3WnPE1dYSTW2lL5RoU2Hp+keM1Naq/WZYaEmiFz
IwGgVTNA/lx2sPCxlwBLwDdb4mGkezaJuf/keamAa2UUguPjdDBqd5AcQ9Wo1x+2
9ccY84xMpzQV/MsgiVah
=3Dxp
-----END PGP SIGNATURE-----