[DRE-maint] Bug#876768: Re: ruby-pygments.rb: fails to run if RLIMIT_NOFILE is very high

Adam D. Barratt adam at adam-barratt.org.uk
Sat Oct 7 12:49:31 UTC 2017


Control: block 877043 by -1

Hi,

On Mon, 2017-09-25 at 17:44 +0100, James Cowgill wrote:
> weechat recently FTBFS due to asciidoctor dying:
> https://buildd.debian.org/status/fetch.php?pkg=weechat&arch=mips64el&
> ver=1.9.1-1&stamp=1506204287&raw=0
> 
> This happens because:
> - The RLIMIT_NOFILE hard limit is set to a large value (eg 1048576).
> - On startup, ruby-pygments's mentos.py attempts to close all files.
> - Since RLIMIT_NOFILE is large, it will attempt to close 1 million
> file
>   descriptors.
> - The mips64el buildds are not powerful enough to complete this in
> the
>   timeout time set in popen.rb (default 8 seconds).
> - The pygments call fails, returns nil, and causes asciidoctor to
> crash.

This also happens on several architectures in stretch, affecting the
recent update to weechat there, which unfortunately didn't make it in
to today's point release as a result.

I'd therefore like to get this fixed in stretch. Would you like to
handle that yourself?

Regards,

Adam



More information about the Pkg-ruby-extras-maintainers mailing list