NetBSD Problem Report #51570

From www@NetBSD.org  Sat Oct 22 14:11:48 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8F7807A26C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 22 Oct 2016 14:11:48 +0000 (UTC)
Message-Id: <20161022141147.406FC7A2CD@mollari.NetBSD.org>
Date: Sat, 22 Oct 2016 14:11:47 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: libreoffice+cups leak fds at a high rate (cupsd not running)
X-Send-Pr-Version: www-1.0

>Number:         51570
>Category:       pkg
>Synopsis:       libreoffice+cups leak fds at a high rate (cupsd not running)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 22 14:15:00 +0000 2016
>Closed-Date:    Sun Feb 26 12:35:24 +0000 2017
>Last-Modified:  Fri Mar 03 15:10:00 +0000 2017
>Originator:     coypu
>Release:        pkgsrc-2016Q4, netbsd-7.99.39
>Organization:
>Environment:
NetBSD laptop.Home 7.99.39 NetBSD 7.99.39 (GENERIC) #1: Thu Oct 20 20:09:06 IDT 2016  fly@laptop.Home:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
don't have anything to do with cups running in the background
run libreoffice
with cups-2.2.1 installed

watch the counter increasing:
% fstat -p `pgrep soffice` | wc -l
      87
...


until the inevitable happens:
ls: tmp: Too many open files in system

(after leaving it running overnight - for one night)

from gdb:
(gdb) break connect
Breakpoint 1 at 0x7301b9c3dcf0 (2 locations)
(gdb) continue
Continuing.
[Switching to LWP 6]

Breakpoint 1, 0x00007301ba006cda in connect () from /usr/lib/libpthread.so.1
(gdb) delete 1
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x00007301b9c3dada in poll () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007301b9c3dada in poll () from /usr/lib/libc.so.12
#1  0x00007301ba007153 in poll () from /usr/lib/libpthread.so.1
#2  0x00007301a7435677 in httpAddrConnect2 (addrlist=<optimized out>, sock=sock@entry=0x7301981df000, msec=msec@entry=30000, 
    cancel=cancel@entry=0x0) at http-addrlist.c:280
#3  0x00007301a74344de in httpReconnect2 (http=http@entry=0x7301981df000, msec=msec@entry=30000, cancel=cancel@entry=0x0)
    at http.c:2413
#4  0x00007301a74579af in cupsSendRequest (http=http@entry=0x7301981df000, request=request@entry=0x730198151a20, 
    resource=resource@entry=0x7301a7463427 "/", length=length@entry=718) at request.c:715
#5  0x00007301a7457d2b in cupsDoIORequest (http=http@entry=0x7301981df000, request=request@entry=0x730198151a20, 
    resource=resource@entry=0x7301a7463427 "/", infile=infile@entry=-1, outfile=outfile@entry=-1) at request.c:211
#6  0x00007301a7458019 in cupsDoRequest (http=http@entry=0x7301981df000, request=request@entry=0x730198151a20, 
    resource=resource@entry=0x7301a7463427 "/") at request.c:301
#7  0x00007301a7427483 in _cupsGetDests (http=http@entry=0x7301981df000, op=op@entry=IPP_OP_CUPS_GET_PRINTERS, name=name@entry=0x0, 
    dests=dests@entry=0x73018dffff40, type=type@entry=0, mask=mask@entry=134217728) at dest.c:1633
#8  0x00007301a742852d in cupsGetDests2 (http=http@entry=0x7301981df000, dests=dests@entry=0x73018dffff40) at dest.c:1855
#9  0x00007301b2add975 in psp::CUPSManager::runDests (this=0x73019814b000)
    at /usr/pkgsrc/misc/libreoffice/work/libreoffice-5.1.5.2/vcl/unx/generic/printer/cupsmgr.cxx:223
#10 0x00007301ba858a0b in osl_thread_start_Impl (pData=0x73019814f800)
    at /usr/pkgsrc/misc/libreoffice/work/libreoffice-5.1.5.2/sal/osl/unx/thread.cxx:240
#11 0x00007301ba00b6c1 in ?? () from /usr/lib/libpthread.so.1
#12 0x00007301b9c89590 in ?? () from /usr/lib/libc.so.12
#13 0x00010102464c457f in ?? ()
#14 0x0000000000000000 in ?? ()

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 26 Feb 2017 12:35:24 +0000
State-Changed-Why:
Don't care if libreoffice works well on netbsd.


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51570 libreoffice+cups leak fds at a high rate (cupsd not
 running)
Date: Fri, 3 Mar 2017 15:06:09 +0000

 I wasn't able to reproduce this on -current/amd64 with

 cups-2.2.2nb2       Common UNIX Printing System
 libreoffice-5.3.0.3nb4 Office productivity suite from The Document Foundation

 so was OK to close...

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.