Projet

Général

Profil

Bug #42522

Too many open files sur fork libreoffice

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 mai 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'OSError'>', value = '[Errno 24] Too many open files'

Stack trace (most recent call first):
  File "/usr/lib/python3.5/subprocess.py", line 1185, in _execute_child
  1183             # Data format: "exception name:hex errno:description" 
  1184             # Pickle is not used; it is complex and involves memory allocation.
> 1185             errpipe_read, errpipe_write = os.pipe()
  1186             # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  1187             low_fds_to_close = []

  locals:
     args = ['libreoffice', '--headless', '--convert-to', 'pdf', '/tmp/tmp9p_lat_d/tmp7wxd984u', '--outdir', '/tmp/tmp9p_lat_d']
     c2pread = -1
     c2pwrite = 1021
     close_fds = True
     creationflags = 0
     cwd = None
     env = None
     errread = -1
     errwrite = 1021

C'est un tas de /dev/zero pas fermés,

uwsgi     29674  1233             wcs  DEL       REG                0,5            956295054 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295053 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295052 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295051 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295050 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295049 /dev/zero
uwsgi     29674  1233             wcs  DEL       REG                0,5            956295048 /dev/zero

Fichiers

Révisions associées

Révision a3413888 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: use new subprocess.DEVNULL (#42522)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

(quand même bizarre parce qu'à part au chargement du module le /dev/null devrait être bien fermé).

Anyway, foufou, subprocess.DEVNULL, nouveau dans Python 3.3.

#2

Mis à jour par Thomas Noël il y a environ 4 ans

Je ne vois pas tellement le rapport avec /dev/zero mais c'est plus joli quand même. Je valide, si c'était bien une "solution proposée" ?

#3

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Nouveau à Solution proposée
#4

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#5

Mis à jour par Frédéric Péters il y a environ 4 ans

En effet /dev/zero vs /dev/null, mal éveillé...

commit a341388806d259810b3b4bf6d4491b80525f69b8
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed May 6 09:07:18 2020 +0200

    misc: use new subprocess.DEVNULL (#42522)
#6

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
#7

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF