Skip to content

pyln-testing: BitcoinD TailableProc leaking file descriptors #7130

Description

@s373nZ

Issue and Steps to Reproduce

Running pytest locally leaks file descriptors for TailableProc stdout, read/write handles opened in the __init__() constructor. This resulted in sporadic failures and was effectively addressed by raising the ulimit. Current testing strategy is:

  1. make pytest
  2. In a 2nd terminal window get the process idea with ps aux | grep pytest
  3. In a 3rd terminal window, observe the number of opened files grow with watch -n 1 'lsof -p ${PID} | wc
  4. In a 4th terminal window, periodically run lsof -p ${PID} | less +G to see the file descriptors grow for each test.

lsof reports four file descriptors hanging around for each test which are initialized in the TailableProc constructor here.

getinfo output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions