Skip to content

make check fails on Mac OS X #600

@adamretter

Description

@adamretter

On HEAD of master when running make clean jclean check I get a build failure on Mac OS X about too many open files:

[ RUN      ] DBTest.DynamicCompactionOptions
db/db_test.cc:11417: Failure
Put(Key(start + stride * i), RandomString(&rnd, 1024))
IO error: /tmp/rocksdbtest-501/db_test/004108.sst: Too many open files
libc++abi.dylib: terminating with uncaught exception of type testing::internal::GoogleTestFailureException: db/db_test.cc:11417: Failure
Put(Key(start + stride * i), RandomString(&rnd, 1024))
IO error: /tmp/rocksdbtest-501/db_test/004108.sst: Too many open files
Received signal 6 (Abort trap: 6)
#0   0x7fff50ca5c38 
#1   abort (in libsystem_c.dylib) + 129 
#2   __cxa_bad_cast (in libc++abi.dylib) + 0    
#3   default_terminate_handler() (in libc++abi.dylib) + 243 
#4   _objc_terminate() (in libobjc.A.dylib) + 124   
#5   std::__terminate(void (*)()) (in libc++abi.dylib) + 8  
#6   __cxa_rethrow (in libc++abi.dylib) + 99    
#7   bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (in db_test) (gtest-all.cc:3863)    
#8   testing::UnitTest::Run() (in db_test) (gtest-all.cc:5678)  
#9   main (in db_test) (db_test.cc:12722)   
#10  start (in libdyld.dylib) + 1   
#11  0x00000001 (in db_test)    
/bin/sh: line 1: 27736 Abort trap: 6           ./$t
make: *** [check] Error 1

This is a relatively recent development and did not occur previously.

sysctl kern.maxfiles reports 12288 on my system, and after the build fails lsof | wc -l reports 11481. Is it possible that building rocks and running check requires opening another 807 files? Or is rocks leaking file handles?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions