Now I get this:

isaac@isaac-Inspiron-3583:~$ sudo gdb
[sudo] password for isaac: 
GNU gdb (Ubuntu 8.3-0ubuntu1) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) attach 794
Attaching to process 794
Reading symbols from target:/usr/local/libexec/bluetooth/bluetoothd...
Reading symbols from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libglib-2.0.so.0)
Reading symbols from target:/lib/x86_64-linux-gnu/libdbus-1.so.3...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libdbus-1.so.3)
Reading symbols from target:/lib/x86_64-linux-gnu/libdl.so.2...
Reading symbols from 
target:/usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.30.so...
Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6...
Reading symbols from target:/usr/lib/debug//lib/x86_64-linux-gnu/libc-2.30.so...
Reading symbols from target:/lib/x86_64-linux-gnu/libpcre.so.3...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libpcre.so.3)
Reading symbols from target:/lib/x86_64-linux-gnu/libpthread.so.0...
Reading symbols from 
/usr/lib/debug/.build-id/7f/4107df84da625f1b445ade877e1e0ab6ba823d.debug...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from target:/lib/x86_64-linux-gnu/libsystemd.so.0...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libsystemd.so.0)
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...
(No debugging symbols found in target:/lib64/ld-linux-x86-64.so.2)
Reading symbols from target:/lib/x86_64-linux-gnu/librt.so.1...
Reading symbols from 
target:/usr/lib/debug//lib/x86_64-linux-gnu/librt-2.30.so...
Reading symbols from target:/lib/x86_64-linux-gnu/liblzma.so.5...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/liblzma.so.5)
Reading symbols from target:/lib/x86_64-linux-gnu/liblz4.so.1...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/liblz4.so.1)
Reading symbols from target:/lib/x86_64-linux-gnu/libgcrypt.so.20...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libgcrypt.so.20)
Reading symbols from target:/lib/x86_64-linux-gnu/libgpg-error.so.0...
(No debugging symbols found in target:/lib/x86_64-linux-gnu/libgpg-error.so.0)
--Type <RET> for more, q to quit, c to continue without paging--
0x00007f888e505f66 in g_main_context_prepare () from 
target:/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) thread apply all bt

Thread 1 (Thread 0x7f888df97c00 (LWP 794)):
#0  0x00007f888e505f66 in g_main_context_prepare () from 
target:/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f888e5069db in ?? () from 
target:/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f888e506e33 in g_main_loop_run () from 
target:/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x000055b91a835959 in mainloop_run () at src/shared/mainloop-glib.c:79
#4  0x000055b91a835dc0 in mainloop_run_with_signal (func=<optimized out>, 
user_data=0x0) at src/shared/mainloop-notify.c:201
#5  0x000055b91a79f5fe in main (argc=<optimized out>, argv=<optimized out>) at 
src/main.c:770
(gdb) 


I actually noticed that when I attached the process (or maybe when I
backtracked it), it slowed down or even stopped and the CPU fan went
off. When I closed gdb and detached it, the process resumed once again
taking up lots of CPU power and making the fan go on.

I also noticed that this only happens if I don't use the keyboard for a
while. If the process is busy and I start typing on the keyboard, it
immediately slows down and goes back to normal. I wonder if the keyboard
has a feature that it "goes to sleep". Maybe then the bluetooth program
is  polling for the keyboard and not finding it.


Isaac Cohen

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871695

Title:
  Bluetoothd uses 100% of a CPU thread

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1871695/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to