Skip to content

lit should enforce ulimits instead of global limits set by the makefile #13970

Open
@hjl-tools

Description

@hjl-tools
Bugzilla Link 13598
Version trunk
OS Linux
CC @d0k,@modocache

Extended Description

On Fedora 17/x86-64 with 24GB RAM, I got

[hjl@gnu-mic-2 test]$ make check-all
llvm[0]: Running test suite
make[1]: Entering directory `/export/build/gnu/llvm/build-x86_64-linux/test'
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
make -C /export/build/gnu/llvm/build-x86_64-linux/test/../tools/clang/test lit.site.cfg Unit/lit.site.cfg
make[2]: Entering directory `/export/build/gnu/llvm/build-x86_64-linux/tools/clang/test'
Making Clang 'lit.site.cfg' file...
Making Clang 'Unit/lit.site.cfg' file...
make[2]: Leaving directory `/export/build/gnu/llvm/build-x86_64-linux/tools/clang/test'
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 1024000 ; \
  /export/project/llvm/llvm/utils/lit/lit.py -s -v . /export/build/gnu/llvm/build-x86_64-linux/test/../tools/clang/test )
lit.py: lit.cfg:175: note: using clang: '/export/build/gnu/llvm/build-x86_64-linux/Release+Asserts/bin/clang'
                     -- Testing: 11526 tests, 24 threads --                     
  0% [-------------------------------------------------------------------------]
Fatal Python error: Couldn't create autoTLSkey mapping                          
Clang :: ARCMT/GC-check-warn-nsalloc.m                                          /bin/sh: line 1: 26815 Aborted                 /export/project/llvm/llvm/utils/lit/lit.py -s -v . /export/build/gnu/llvm/build-x86_64-linux/test/../tools/clang/test
make[1]: *** [check-local-all] Error 134
make[1]: Leaving directory `/export/build/gnu/llvm/build-x86_64-linux/test'
make: *** [check-all] Error 2
[hjl@gnu-mic-2 test]$ 

Remove

ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 1024000 ;

fixed the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions