Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455202 - sys-devel/llvm: test runner often exceeds open file limit when run by pypy
Summary: sys-devel/llvm: test runner often exceeds open file limit when run by pypy
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-02 22:35 UTC by Michał Górny
Modified: 2016-06-17 08:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-02 22:35:41 UTC
I was just testing if sys-devel/llvm could be built using pypy, and the test runner hit open file limit a few times. The end result being:

Testing Time: 390.20s
  Expected Passes    : 5028
  Expected Failures  : 37
  Unsupported Tests  : 17
  Unresolved Tests   : 1759
make[1]: *** [check-local] Error 1


I think that gets triggered by the GC algorithm difference -- files don't get closed immediately when they go out of scope and open descriptors accumulate quickly. If I am correct, then llvm upstream should fix the test runner to close the files properly.


Example error:

******************** TEST 'LLVM :: Transforms/LoopSimplify/2010-07-15-IncorrectDomFrontierUpdate.ll' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "/var/tmp/portage/sys-devel/llvm-3.2/work/llvm-3.2.src/utils/lit/lit/main.py", line 122, in runTest
    self.litConfig)
  File "/var/tmp/portage/sys-devel/llvm-3.2/work/llvm-3.2.src/utils/lit/lit/TestFormats.py", line 125, in execute
    self.execute_external)
  File "/var/tmp/portage/sys-devel/llvm-3.2/work/llvm-3.2.src/utils/lit/lit/TestRunner.py", line 568, in executeShTest
    res = parseIntegratedTestScript(test, useExternalSh, extra_substitutions)
  File "/var/tmp/portage/sys-devel/llvm-3.2/work/llvm-3.2.src/utils/lit/lit/TestRunner.py", line 435, in parseIntegratedTestScript
    for ln in open(sourcepath):
IOError: [Errno 24] Too many open files: '/var/tmp/portage/sys-devel/llvm-3.2/work/llvm-3.2.src/test/Transforms/LoopSimplify/2010-07-15-IncorrectDomFrontierUpdate.ll'
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 08:15:23 UTC
PyPy target is no longer supported.