Skip to content

Commit f3736ec

Browse files
authored
Merge pull request #63 from flavorjones/flavorjones-ulimit-file-descriptors
Lower the limit on file descriptors with `ulimit -n`
2 parents a921926 + 98d7949 commit f3736ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/ruby_memcheck/configuration.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ def command(*args)
101101
# ruby_init_stack (thread_pthread.c:871)
102102
# main (main.c:48)
103103
"ulimit -s unlimited && ",
104+
# On some distros, and in some Docker containers, the number of file descriptors is set to a
105+
# very high number like 1073741816 that valgrind >= 3.21.0 will error out on:
106+
# --184100:0:libcfile Valgrind: FATAL: Private file creation failed.
107+
# The current file descriptor limit is 1073741804.
108+
# If you are running in Docker please consider
109+
# lowering this limit with the shell built-in limit command.
110+
# --184100:0:libcfile Exiting now.
111+
# See https://bugs.kde.org/show_bug.cgi?id=465435 for background information.
112+
"ulimit -n 8192 && ",
104113
valgrind,
105114
valgrind_options,
106115
valgrind_suppression_files.map { |f| "--suppressions=#{f}" },

0 commit comments

Comments
 (0)