From owner-freebsd-current@freebsd.org Fri Feb 5 07:53:02 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6997A9D930C for ; Fri, 5 Feb 2016 07:53:02 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 170FC1CDD for ; Fri, 5 Feb 2016 07:53:01 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.2.166] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1aRbCK-0003GD-Hw for freebsd-current@freebsd.org; Fri, 05 Feb 2016 08:52:57 +0100 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u157qr3w004849 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 5 Feb 2016 08:52:54 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u157qrkq004848 for freebsd-current@freebsd.org; Fri, 5 Feb 2016 08:52:53 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 5 Feb 2016 08:52:52 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: libreoffice 5.x && problem with threads? Message-ID: <20160205075252.GA3892@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.2.166 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 07:53:02 -0000 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@ ? 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=, clockid=, abstime=, shared=0) at /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 #2 0x00000008010c665d in cond_wait_common (cond=, mutex=, 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=, clockid=, abstime=, shared=0) at /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 #2 0x00000008010c665d in cond_wait_common (cond=, mutex=, 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=, clockid=, abstime=, shared=0) at /usr/local/r292778/src/lib/libthr/thread/thr_umtx.c:212 #2 0x00000008010c665d in cond_wait_common (cond=, mutex=, 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@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