Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 2016 10:03:16 +0200
From:      Damjan Jovanovic <damjan.jov@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: libreoffice 5.x && problem with threads?
Message-ID:  <CAJm2B-mDGe6iQxjU7FNf2FhPjzD6MLoLWaRUMZanPo9JZ-N6rw@mail.gmail.com>
In-Reply-To: <20160205075252.GA3892@c720-r292778-amd64>
References:  <20160205075252.GA3892@c720-r292778-amd64>

next in thread | previous in thread | raw e-mail | index | archive | help
Some threads are in accept while others are in join - could be that
"close(socket) doesn't wake up threads in accept(socket)" deadlock I fixed
in AOO months ago. Does that patch help:
https://github.com/apache/openoffice/commit/033c508048e3cd55bdbf4476f5f35b0=
aa0fcc5c0

Damjan

On Fri, Feb 5, 2016 at 9:52 AM, Matthias Apitz <guru@unixarea.de> wrote:

>
> Hello,
>
> I'm running r292778 amd64 and ports from SVN head (December, 20) and
> have the following problem with libreoffice 5.0.4 (all compiled from
> ports). If one starts LO, anyway with or without filename or
> other args, and terminates LO with Ctrl-Q or from the file menu, the GUI
> goes away (what is expected) but the processes hang forever (well, at
> least for long time) and one must cancel them with Ctrl-C or kill. The
> processes in ps(1) look like this:
>
> $ ps ax | fgrep office
> 4725  4  I+     0:00,07 /usr/local/lib/libreoffice/program/oosplash
> 4740  4  I+     0:01,23 /usr/local/lib/libreoffice/program/soffice.bin
> --splash-pipe=3D5
>
> $ ps axl | fgrep office
> 1001 4725 4711   0  52  0   49236   6976 uwait    I+    4    0:00,07
> /usr/local/lib/libreoffice/pro
> 1001 4740 4725   0  52  0  480044  96700 uwait    I+    4    0:01,23
> /usr/local/lib/libreoffice/pro
>
> i.e. both processes are in 'uwait'.
>
> If one starts LO with --backtrace, on SIGINT a gdb backtrace is produced
> as shown below, which says that the started LWP are somehow stuck in
> functions in /lib/libthr.so.3.
>
> Any comments on this from -current@ ?
>
> There is only an open issue as:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205922
>
> Thanks
>
>         matthias
>
> (no debugging symbols found)...(no debugging symbols found)...[New LWP
> 100265]
> [New Thread 816215000 (LWP 100265/soffice.bin)]
> [New Thread 816216400 (LWP 101339/soffice.bin)]
>
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 816215000 (LWP 100265/soffice.bin)]
> 0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> Current language:  auto; currently minimal
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
> [New Thread 81dc60000 (LWP 101343/soffice.bin)]
> [New Thread 816216800 (LWP 101340/soffice.bin)]
> [New Thread 816215c00 (LWP 101338/soffice.bin)]
>
> Thread 6 (Thread 816215c00 (LWP 101338/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010be276 in _thr_umtx_timedwait_uint (mtx=3D0x800736008,
> id=3D<value optimized out>, clockid=3D<value optimized out>, abstime=3D<v=
alue
> optimized out>, shared=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212
> #2  0x00000008010c665d in cond_wait_common (cond=3D<value optimized out>,
> mutex=3D<value optimized out>, abstime=3D0x7fffdfffdf78, cancel=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_cond.c:258
> #3  0x0000000800836fa1 in rtl_secureZeroMemory () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x816215c00) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 5 (Thread 816216800 (LWP 101340/soffice.bin)):
> #0  0x0000000800de541a in _accept () from /lib/libc.so.7
> #1  0x00000008010be936 in __thr_accept (s=3D12, addr=3D0x0, addrlen=3D0x0=
) at
> /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:106
> #2  0x000000080085981b in osl_acceptPipe () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #3  0x0000000800abb902 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000800abadee in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #5  0x00000008032d4bce in salhelper::Thread::run () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #6  0x00000008032d4d8f in non-virtual thunk to
> salhelper::Thread::onTerminated() () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #7  0x000000080086237e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #8  0x00000008010bc824 in thread_start (curthread=3D0x816216800) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #9  0x0000000000000000 in ?? ()
>
> Thread 4 (Thread 81dc60000 (LWP 101343/soffice.bin)):
> #0  0x0000000800df6fea in _poll () from /lib/libc.so.7
> #1  0x00000008010bed86 in __thr_poll (fds=3D0x81a20e030, nfds=3D2, timeou=
t=3D-1)
> at /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:306
> #2  0x00000008181ffb1d in SessionManagerClient::getSessionID () from
> /usr/local/lib/libreoffice/program/libvclplug_genlo.so
> #3  0x000000080086237e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x81dc60000) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 2 (Thread 816215000 (LWP 100265/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
> (no debugging symbols found)...(no debugging symbols found)...[New LWP
> 100163]
> [New Thread 816215000 (LWP 100163/soffice.bin)]
> [New Thread 816216400 (LWP 100890/soffice.bin)]
>
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 816215000 (LWP 100163/soffice.bin)]
> 0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> Current language:  auto; currently minimal
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
> [New Thread 81dbe7c00 (LWP 100893/soffice.bin)]
> [New Thread 816216800 (LWP 100891/soffice.bin)]
> [New Thread 816215c00 (LWP 100888/soffice.bin)]
>
> Thread 6 (Thread 816215c00 (LWP 100888/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010be276 in _thr_umtx_timedwait_uint (mtx=3D0x800736008,
> id=3D<value optimized out>, clockid=3D<value optimized out>, abstime=3D<v=
alue
> optimized out>, shared=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212
> #2  0x00000008010c665d in cond_wait_common (cond=3D<value optimized out>,
> mutex=3D<value optimized out>, abstime=3D0x7fffdfffdf78, cancel=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_cond.c:258
> #3  0x0000000800836fb1 in rtl_secureZeroMemory () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x816215c00) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 5 (Thread 816216800 (LWP 100891/soffice.bin)):
> #0  0x0000000800de541a in _accept () from /lib/libc.so.7
> #1  0x00000008010be936 in __thr_accept (s=3D12, addr=3D0x0, addrlen=3D0x0=
) at
> /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:106
> #2  0x000000080085982b in osl_acceptPipe () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #3  0x0000000800abb902 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000800abadee in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #5  0x00000008032d4bce in salhelper::Thread::run () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #6  0x00000008032d4d8f in non-virtual thunk to
> salhelper::Thread::onTerminated() () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #7  0x000000080086238e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #8  0x00000008010bc824 in thread_start (curthread=3D0x816216800) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #9  0x0000000000000000 in ?? ()
>
> Thread 4 (Thread 81dbe7c00 (LWP 100893/soffice.bin)):
> #0  0x0000000800df6fea in _poll () from /lib/libc.so.7
> #1  0x00000008010bed86 in __thr_poll (fds=3D0x81e40e030, nfds=3D2, timeou=
t=3D-1)
> at /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:306
> #2  0x00000008181ffb1d in SessionManagerClient::getSessionID () from
> /usr/local/lib/libreoffice/program/libvclplug_genlo.so
> #3  0x000000080086238e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x81dbe7c00) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 2 (Thread 816215000 (LWP 100163/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
> (no debugging symbols found)...(no debugging symbols found)...[New LWP
> 100235]
> [New Thread 816215000 (LWP 100235/soffice.bin)]
> [New Thread 816216400 (LWP 101118/soffice.bin)]
>
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 816215000 (LWP 100235/soffice.bin)]
> 0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> Current language:  auto; currently minimal
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
> [New Thread 81dbe5c00 (LWP 101121/soffice.bin)]
> [New Thread 816216800 (LWP 101119/soffice.bin)]
> [New Thread 816215c00 (LWP 101117/soffice.bin)]
>
> Thread 6 (Thread 816215c00 (LWP 101117/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010be276 in _thr_umtx_timedwait_uint (mtx=3D0x800736008,
> id=3D<value optimized out>, clockid=3D<value optimized out>, abstime=3D<v=
alue
> optimized out>, shared=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212
> #2  0x00000008010c665d in cond_wait_common (cond=3D<value optimized out>,
> mutex=3D<value optimized out>, abstime=3D0x7fffdfffdf78, cancel=3D0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_cond.c:258
> #3  0x0000000800836fb1 in rtl_secureZeroMemory () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x816215c00) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 5 (Thread 816216800 (LWP 101119/soffice.bin)):
> #0  0x0000000800de541a in _accept () from /lib/libc.so.7
> #1  0x00000008010be936 in __thr_accept (s=3D12, addr=3D0x0, addrlen=3D0x0=
) at
> /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:106
> #2  0x000000080085982b in osl_acceptPipe () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #3  0x0000000800abb902 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000800abadee in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #5  0x00000008032d4bce in salhelper::Thread::run () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #6  0x00000008032d4d8f in non-virtual thunk to
> salhelper::Thread::onTerminated() () from
> /usr/local/lib/libreoffice/program/libuno_salhelpergcc3.so.3
> #7  0x000000080086238e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #8  0x00000008010bc824 in thread_start (curthread=3D0x816216800) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #9  0x0000000000000000 in ?? ()
>
> Thread 4 (Thread 81dbe5c00 (LWP 101121/soffice.bin)):
> #0  0x0000000800df6fea in _poll () from /lib/libc.so.7
> #1  0x00000008010bed86 in __thr_poll (fds=3D0x81e40e030, nfds=3D2, timeou=
t=3D-1)
> at /usr/local/r292778/src/lib/libthr/thread/thr_syscalls.c:306
> #2  0x00000008181ffb1d in SessionManagerClient::getSessionID () from
> /usr/local/lib/libreoffice/program/libvclplug_genlo.so
> #3  0x000000080086238e in osl_setThreadTextEncoding () from
> /usr/local/lib/libreoffice/program/libuno_sal.so.3
> #4  0x00000008010bc824 in thread_start (curthread=3D0x81dbe5c00) at
> /usr/local/r292778/src/lib/libthr/thread/thr_create.c:288
> #5  0x0000000000000000 in ?? ()
>
> Thread 2 (Thread 816215000 (LWP 100235/soffice.bin)):
> #0  0x00000008010c821c in _umtx_op_err () from /lib/libthr.so.3
> #1  0x00000008010c505c in join_common (pthread=3D0x816216800,
> thread_return=3D0x0, abstime=3D0x0) at
> /usr/local/r292778/src/lib/libthr/thread/thr_join.c:125
> #2  0x0000000800ab8193 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #3  0x0000000800a8f280 in ?? () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #4  0x0000000806012551 in DeInitVCL () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #5  0x0000000806011e7b in VclResId () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #6  0x0000000806012978 in SVMain () from
> /usr/local/lib/libreoffice/program/libvcllo.so
> #7  0x0000000800abc91e in soffice_main () from
> /usr/local/lib/libreoffice/program/libsofficeapp.so
> #8  0x0000000000400870 in ?? ()
> #9  0x000000000040077f in ?? ()
> #10 0x0000000800621000 in ?? ()
> #11 0x0000000000000000 in ?? ()
>
> --
> Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea=
.de/  =E2=98=8E
> +49-176-38902045
> UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
> UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJm2B-mDGe6iQxjU7FNf2FhPjzD6MLoLWaRUMZanPo9JZ-N6rw>