https://bugs.documentfoundation.org/show_bug.cgi?id=127344

            Bug ID: 127344
           Summary: Idle LibreOffice consumes 100% CPU on i386
           Product: LibreOffice
           Version: 6.2.6.2 release
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: albrecht.dr...@arcor.de

Package: LibreOffice_6.2.6_Linux_x86_deb.tar.gz
OS: Debian Buster/i386
Hardware: MacBookPro5,5; Virtualbox 6.0.10 VM

Hi all,

after some time, LibreOffice starts to consume 100% of one CPU, although it is
completely idle.

To reproduce:
- launch LibreOffice writer
- wait for some time without touching Libreoffice

After a few minutes (typically less than ~15?), soffice.bin starts to consume
100% cpu.  Entering a few characters in writer /briefly/ reduces the cpu load
to almost 0, but after a short time (typically seconds), it again goes up to
100 %.

The effect is reproducible on an old 2009 MacBookPro5,5 (which is particularly
bad as it triggers a high fan speed and quickly drains the battery!) and in a
Virtualbox VM, both running Debian Buster/i386.  The LibreOffice packages
coming with Debian Buster (libreoffice_6.1.5-3_i386.deb) show the same effect.

I didn't notice this effect on my 64-bit Buster boxes, running the exactly the
same LibreOffice versions, so it /might/ be specific for i386.

On the VM, the soffice.bin thread consumes the 100% cpu, as reported by top:

<snip>
 3575 albrecht  20   0  268344 140700  83740 R  99,9   7,0   1:03.72
soffice.bin                                                                  
 3580 albrecht  20   0  268344 140700  83740 S   0,0   7,0   0:00.00 PipeIPC    
 3581 albrecht  20   0  268344 140700  83740 S   0,0   7,0   0:00.00
ICEConnectionWo                                                              
 3582 albrecht  20   0  268344 140700  83740 S   0,0   7,0   0:00.00
SelectionManage                                                              
 3592 albrecht  20   0  268344 140700  83740 S   0,0   7,0   0:00.00
GrammarChecking                                                              
 3595 albrecht  20   0  268344 140700  83740 S   0,0   7,0   0:00.02
UpdateCheckThre                                                              
</snip>

In gdb, I interrupted the process, and got the following information:

<snip>
Thread 1 "soffice.bin" received signal SIGINT, Interrupt.
0xb7fa7d71 in __kernel_vsyscall ()
(gdb) where
#0  0xb7fa7d71 in __kernel_vsyscall ()
#1  0xb7fa7d34 in __vdso_gettimeofday ()
#2  0xb6be1cb2 in tools::Time::GetMonotonicTicks() () from
/opt/libreoffice6.2/program/libmergedlo.so
#3  0xb6be1ce9 in tools::Time::GetSystemTicks() () from
/opt/libreoffice6.2/program/libmergedlo.so
#4  0xb6f850ba in Scheduler::ProcessTaskScheduling() () from
/opt/libreoffice6.2/program/libmergedlo.so
#5  0xb6f8546d in Scheduler::CallbackTaskScheduling() () from
/opt/libreoffice6.2/program/libmergedlo.so
#6  0xb071b4ec in ?? () from /opt/libreoffice6.2/program/libvclplug_gtklo.so
#7  0xb427be65 in g_main_dispatch (context=0x9c7a120) at
../../../glib/gmain.c:3182
#8  g_main_context_dispatch (context=0x9c7a120) at ../../../glib/gmain.c:3847
#9  0xb427c269 in g_main_context_iterate (context=context@entry=0x9c7a120,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../../../glib/gmain.c:3920
#10 0xb427c314 in g_main_context_iteration (context=0x9c7a120, may_block=1) at
../../../glib/gmain.c:3981
#11 0xb071ab19 in ?? () from /opt/libreoffice6.2/program/libvclplug_gtklo.so
#12 0xb071bff0 in ?? () from /opt/libreoffice6.2/program/libvclplug_gtklo.so
#13 0xb6f90829 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#14 0xb6f91b7f in Application::Execute() () from
/opt/libreoffice6.2/program/libmergedlo.so
#15 0xb64912ae in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#16 0xb6f9717e in ImplSVMain() () from
/opt/libreoffice6.2/program/libmergedlo.so
#17 0xb6f97285 in SVMain() () from /opt/libreoffice6.2/program/libmergedlo.so
#18 0xb64a409b in soffice_main () from
/opt/libreoffice6.2/program/libmergedlo.so
#19 0x080485ac in ?? ()
#20 0xb519cb41 in __libc_start_main (main=0x8048580, argc=3, argv=0xbfdddf04,
init=0x80486b0, fini=0x80486a0, rtld_fini=0xb7fb9520 <_dl_fini>, 
    stack_end=0xbfdddefc) at ../csu/libc-start.c:308
#21 0x080485e5 in ?? ()
(gdb) info threads
  Id   Target Id                                      Frame 
* 1    Thread 0xb0bf38c0 (LWP 3575) "soffice.bin"     0xb7fa7d71 in
__kernel_vsyscall ()
  2    Thread 0xaf2ffb40 (LWP 3580) "PipeIPC"         0xb7fa7d71 in
__kernel_vsyscall ()
  3    Thread 0xae362b40 (LWP 3581) "ICEConnectionWo" 0xb7fa7d71 in
__kernel_vsyscall ()
  4    Thread 0xad9ffb40 (LWP 3582) "SelectionManage" 0xb7fa7d71 in
__kernel_vsyscall ()
  5    Thread 0xafcd5b40 (LWP 3592) "GrammarChecking" 0xb7fa7d71 in
__kernel_vsyscall ()
  6    Thread 0xab5e8b40 (LWP 3595) "UpdateCheckThre" 0xb7fa7d71 in
__kernel_vsyscall ()
</snip>

Please let me know if you need more information – it's actually pretty easy to
reproduce the bug.

Any help for resolving this issue is highly appreciated!

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to