From owner-freebsd-office@freebsd.org Sat Feb 6 16:27:10 2016 Return-Path: Delivered-To: freebsd-office@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 25822AA07EA for ; Sat, 6 Feb 2016 16:27:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A61F777 for ; Sat, 6 Feb 2016 16:27:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: by mailman.ysv.freebsd.org (Postfix) id 0A203AA07E9; Sat, 6 Feb 2016 16:27:10 +0000 (UTC) Delivered-To: office@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 09B62AA07E8 for ; Sat, 6 Feb 2016 16:27:10 +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 C4921776 for ; Sat, 6 Feb 2016 16:27:09 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.11.146] (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 1aS5hL-0002l8-Ia; Sat, 06 Feb 2016 17:26:59 +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 u16GQu7G002394 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 6 Feb 2016 17:26:57 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u16GQto9002393; Sat, 6 Feb 2016 17:26:55 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 6 Feb 2016 17:26:55 +0100 From: Matthias Apitz To: office@FreeBSD.org Subject: Re: [Bug 205922] editors/libreoffice: Does not end on Ctrl-Q or file menu (version 5.0.4) Message-ID: <20160206162655.GA2328@c720-r292778-amd64> Reply-To: Matthias Apitz References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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.11.146 X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2016 16:27:10 -0000 El día Friday, February 05, 2016 a las 09:00:29PM +0000, bugzilla-noreply@freebsd.org escribió: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205922 > > --- Comment #3 from Matthias Apitz --- > the problem is caused by closing the socket file descriptors in one thread, > while another thread is still in accept(2) on the same socket and this is not > canceled in the OS; the same is true for pipes; I'm attaching patches for this > to be placed in editors/libreoffice/files; Two remarks on this. The bugfix is based on hints from Damjan Jovanovic who fixed the same in Apache Open Office some time ago. Later, after applying my patches, I got some hint about a change in the LO sources in October 2015: http://cgit.freedesktop.org/libreoffice/core/commit/?id=309aa845a8e413519d634680aff112a3567e2e61 To be honestly, I'm sad now. This is nearly the same fix I have done now in the FreeBSD port of LO which is based on v5.0.4.2; The only diff is, that I have had to fix also the file sal/osl/unx/pipe.cxx; I’m wondering why the actual maintainer of the port in FreeBSD was not aware of this bug and fix(!) from October 2015, esp. due to the nature of the bug which makes the usage of LO from a desktop icon nearly impossible ... and I’m wondering about the zero echo after posting this bug in the FBSD’ lists and in bugzilla, maybe nobody uses LO 5.0.4 in FreeBSD at all. Anyway, lesson learned: check the original source tree before digging into something. And thanks again to Damjan for the helping hand. matthias -- 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