-----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