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/033c508048e3cd55bdbf4476f5f35b0aa0fcc5c0 Damjan On Fri, Feb 5, 2016 at 9:52 AM, Matthias Apitz <guru_at_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=5 > > $ 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_at_ ? > > There is only an open issue as: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205922 > > 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=0x816216800, > thread_return=0x0, abstime=0x0) 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=0x800736008, > id=<value optimized out>, clockid=<value optimized out>, abstime=<value > optimized out>, shared=0) at > /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 > #2 0x00000008010c665d in cond_wait_common (cond=<value optimized out>, > mutex=<value optimized out>, abstime=0x7fffdfffdf78, cancel=0) 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=0x816215c00) 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=12, addr=0x0, addrlen=0x0) 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=0x816216800) 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=0x81a20e030, nfds=2, timeout=-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=0x81dc60000) 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=0x816216800, > thread_return=0x0, abstime=0x0) 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=0x816216800, > thread_return=0x0, abstime=0x0) 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=0x800736008, > id=<value optimized out>, clockid=<value optimized out>, abstime=<value > optimized out>, shared=0) at > /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 > #2 0x00000008010c665d in cond_wait_common (cond=<value optimized out>, > mutex=<value optimized out>, abstime=0x7fffdfffdf78, cancel=0) 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=0x816215c00) 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=12, addr=0x0, addrlen=0x0) 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=0x816216800) 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=0x81e40e030, nfds=2, timeout=-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=0x81dbe7c00) 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=0x816216800, > thread_return=0x0, abstime=0x0) 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=0x816216800, > thread_return=0x0, abstime=0x0) 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=0x800736008, > id=<value optimized out>, clockid=<value optimized out>, abstime=<value > optimized out>, shared=0) at > /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 > #2 0x00000008010c665d in cond_wait_common (cond=<value optimized out>, > mutex=<value optimized out>, abstime=0x7fffdfffdf78, cancel=0) 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=0x816215c00) 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=12, addr=0x0, addrlen=0x0) 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=0x816216800) 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=0x81e40e030, nfds=2, timeout=-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=0x81dbe5c00) 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=0x816216800, > thread_return=0x0, abstime=0x0) 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, ✉ guru_at_unixarea.de, ⌂ http://www.unixarea.de/ ☎ > +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_at_freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"Received on Fri Feb 05 2016 - 07:03:37 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:02 UTC