llama90 commented on issue #43164:
URL: https://github.com/apache/arrow/issues/43164#issuecomment-2216326314

   Thank you for your attention. Here it is. 
   
   BTW, Is it necessary to have AWS credentials to run the test? 
   
   I am experiencing the same error on two different laptops.
   
   ```
   lldb ./arrow-s3fs-test
   
   (lldb) target create "./arrow-s3fs-test"
   Current executable set to 
'/Users/lama/workspace/arrow-new/cpp/cmake-build-debug/debug/arrow-s3fs-test' 
(arm64).
   (lldb) run
   Process 10002 launched: 
'/Users/lama/workspace/arrow-new/cpp/cmake-build-debug/debug/arrow-s3fs-test' 
(arm64)
   Running main() from 
/Users/lama/workspace/arrow-new/cpp/cmake-build-debug/_deps/googletest-src/googletest/src/gtest_main.cc
   [==========] Running 69 tests from 7 test suites.
   [----------] Global test environment set-up.
   Assertion failed: (s_configManager), function GetCachedConfigValue, file 
ConfigAndCredentialsCacheManager.cpp, line 178.
   Process 10002 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = hit program 
assert
       frame #4: 0x0000000100462348 
arrow-s3fs-test`Aws::Config::GetCachedConfigValue(key="region") at 
ConfigAndCredentialsCacheManager.cpp:178:13
      175
      176               Aws::String GetCachedConfigValue(const Aws::String &key)
      177               {
   -> 178                   assert(s_configManager);
      179                   return 
s_configManager->GetConfig(Aws::Auth::GetConfigProfileName(), key);
      180               }
      181
   Target 0: (arrow-s3fs-test) stopped.
   (lldb) bt
   * thread #1, queue = 'com.apple.main-thread', stop reason = hit program 
assert
       frame #0: 0x000000019f0aaa60 libsystem_kernel.dylib`__pthread_kill + 8
       frame #1: 0x000000019f0e2c20 libsystem_pthread.dylib`pthread_kill + 288
       frame #2: 0x000000019efefa20 libsystem_c.dylib`abort + 180
       frame #3: 0x000000019efeed10 libsystem_c.dylib`__assert_rtn + 284
     * frame #4: 0x0000000100462348 
arrow-s3fs-test`Aws::Config::GetCachedConfigValue(key="region") at 
ConfigAndCredentialsCacheManager.cpp:178:13
       frame #5: 0x00000001004620fc 
arrow-s3fs-test`Aws::Client::setLegacyClientConfigurationParameters(clientConfig=0x000000016fdfbd40)
 at ClientConfiguration.cpp:80:27
       frame #6: 0x000000010046257c 
arrow-s3fs-test`Aws::Client::ClientConfiguration::ClientConfiguration(this=0x000000016fdfbd40)
 at ClientConfiguration.cpp:101:5
       frame #7: 0x00000001004492e4 
arrow-s3fs-test`Aws::Client::ClientConfiguration::ClientConfiguration(this=0x000000016fdfbd40)
 at ClientConfiguration.cpp:100:1
       frame #8: 0x0000000100500d00 
arrow-s3fs-test`Aws::Internal::MakeDefaultHttpResourceClientConfiguration(logtag="EC2MetadataClient")
 at AWSHttpResourceClient.cpp:51:33
       frame #9: 0x0000000100500c94 
arrow-s3fs-test`Aws::Internal::AWSHttpResourceClient::AWSHttpResourceClient(this=0x0000600003aa4f18,
 logtag="EC2MetadataClient") at AWSHttpResourceClient.cpp:94:33
       frame #10: 0x000000010050192c 
arrow-s3fs-test`Aws::Internal::EC2MetadataClient::EC2MetadataClient(this=0x0000600003aa4f18,
 endpoint="http://169.254.169.254";) at AWSHttpResourceClient.cpp:174:15
       frame #11: 0x00000001005019a4 
arrow-s3fs-test`Aws::Internal::EC2MetadataClient::EC2MetadataClient(this=0x0000600003aa4f18,
 endpoint="http://169.254.169.254";) at AWSHttpResourceClient.cpp:175:9
       frame #12: 0x00000001005062bc 
arrow-s3fs-test`std::__1::__shared_ptr_emplace<Aws::Internal::EC2MetadataClient,
 
std::__1::allocator<Aws::Internal::EC2MetadataClient>>::__shared_ptr_emplace[abi:un170006]<char
 const*>(this=0x0000600003aa4f00, 
__a=allocator<Aws::Internal::EC2MetadataClient> @ 0x000000016fdfc01f, 
__args=0x000000016fdfc140) at shared_ptr.h:303:37
       frame #13: 0x0000000100505fa4 
arrow-s3fs-test`std::__1::__shared_ptr_emplace<Aws::Internal::EC2MetadataClient,
 
std::__1::allocator<Aws::Internal::EC2MetadataClient>>::__shared_ptr_emplace[abi:un170006]<char
 const*>(this=0x0000600003aa4f00, 
__a=allocator<Aws::Internal::EC2MetadataClient> @ 0x000000016fdfc04f, 
__args=0x000000016fdfc140) at shared_ptr.h:292:5
       frame #14: 0x0000000100505ed4 
arrow-s3fs-test`std::__1::shared_ptr<Aws::Internal::EC2MetadataClient> 
std::__1::allocate_shared[abi:un170006]<Aws::Internal::EC2MetadataClient, 
std::__1::allocator<Aws::Internal::EC2MetadataClient>, char const*, 
void>(__a=0x000000016fdfc0d7, __args=0x000000016fdfc140) at shared_ptr.h:1023:55
       frame #15: 0x000000010050337c 
arrow-s3fs-test`std::__1::shared_ptr<Aws::Internal::EC2MetadataClient> 
Aws::MakeShared<Aws::Internal::EC2MetadataClient, char 
const*>(allocationTag="EC2MetadataClient", args=0x000000016fdfc140) at 
AWSAllocator.h:51:16
       frame #16: 0x0000000111320090 
libarrow.1700.dylib`Aws::Internal::InitEC2MetadataClient() at 
AWSHttpResourceClient.cpp:411:35
       frame #17: 0x00000001113041b4 
libarrow.1700.dylib`Aws::InitAPI(options=0x000000013360e760) at Aws.cpp:147:9
       frame #18: 0x00000001105c419c libarrow.1700.dylib`arrow::fs::(anonymous 
namespace)::AwsInstance::DoInitialize(this=0x000000013360e760, 
options=0x000000016fdfcd70) at s3fs.cc:3237:5
       frame #19: 0x00000001105c4018 libarrow.1700.dylib`arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(this=0x000000016fdfcc00)::'lambda'()::operator()()
 const at s3fs.cc:3161:7
       frame #20: 0x00000001105c3f00 
libarrow.1700.dylib`decltype(std::declval<arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()>()()) 
std::__1::__invoke[abi:ue170006]<arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()>(__f=0x000000016fdfcc00) at invoke.h:340:25
       frame #21: 0x00000001105c3edc libarrow.1700.dylib`void 
std::__1::__call_once_param<std::__1::tuple<arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()&&>>::__execute[abi:ue170006]<>(this=0x000000016fdfcbb0, 
(null)=__tuple_indices<> @ 0x000000016fdfcb0f) at mutex:632:9
       frame #22: 0x00000001105c3eb0 
libarrow.1700.dylib`std::__1::__call_once_param<std::__1::tuple<arrow::fs::(anonymous
 namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()&&>>::operator()[abi:ue170006](this=0x000000016fdfcbb0) at 
mutex:624:9
       frame #23: 0x00000001105c3db0 libarrow.1700.dylib`void 
std::__1::__call_once_proxy[abi:ue170006]<std::__1::tuple<arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()&&>>(__vp=0x000000016fdfcbb0) at mutex:660:5
       frame #24: 0x000000019f00ee44 
libc++.1.dylib`std::__1::__call_once(unsigned long volatile&, void*, void 
(*)(void*)) + 180
       frame #25: 0x00000001105c3d18 libarrow.1700.dylib`void 
std::__1::call_once[abi:ue170006]<arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(arrow::fs::S3GlobalOptions 
const&)::'lambda'()>(__flag=0x000000013360e968, __func=0x000000016fdfcc00) at 
mutex:677:9
       frame #26: 0x00000001105c3c9c libarrow.1700.dylib`arrow::fs::(anonymous 
namespace)::AwsInstance::EnsureInitialized(this=0x000000013360e760, 
options=0x000000016fdfcd70) at s3fs.cc:3158:5
       frame #27: 0x00000001105780d0 libarrow.1700.dylib`arrow::fs::(anonymous 
namespace)::EnsureAwsInstanceInitialized(options=0x000000016fdfcd70) at 
s3fs.cc:3252:28
       frame #28: 0x0000000110577f3c 
libarrow.1700.dylib`arrow::fs::InitializeS3(options=0x000000016fdfcd70) at 
s3fs.cc:3258:3
       frame #29: 0x000000010003c924 
arrow-s3fs-test`arrow::fs::S3Environment::SetUp(this=0x00006000010a5440) at 
s3_test_util.h:91:5
       frame #30: 0x000000010266c1c0 
libarrow_gtestd.1.11.0.dylib`testing::internal::SetUpEnvironment(env=0x00006000010a5440)
 at gtest.cc:5734:55
       frame #31: 0x00000001026a698c 
libarrow_gtestd.1.11.0.dylib`std::__1::for_each[abi:ue170006]<std::__1::__wrap_iter<testing::Environment*
 const*>, void (*)(testing::Environment*)>(__first=(item = 0x00006000010a5440), 
__last=(item = 0x0000000100756f98), 
__f=(libarrow_gtestd.1.11.0.dylib`testing::internal::SetUpEnvironment(testing::Environment*)
 at gtest.cc:5734)) at for_each.h:26:5
       frame #32: 0x000000010266a7cc libarrow_gtestd.1.11.0.dylib`void 
testing::internal::ForEach<std::__1::vector<testing::Environment*, 
std::__1::allocator<testing::Environment*>>, void 
(*)(testing::Environment*)>(c=size=2, 
functor=(libarrow_gtestd.1.11.0.dylib`testing::internal::SetUpEnvironment(testing::Environment*)
 at gtest.cc:5734)) at gtest-internal-inl.h:303:3
       frame #33: 0x0000000102669554 
libarrow_gtestd.1.11.0.dylib`testing::internal::UnitTestImpl::RunAllTests(this=0x00000001336093c0)
 at gtest.cc:5833:7
       frame #34: 0x00000001026a2d0c libarrow_gtestd.1.11.0.dylib`bool 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(object=0x00000001336093c0, 
method=(libarrow_gtestd.1.11.0.dylib`testing::internal::UnitTestImpl::RunAllTests()
 at gtest.cc:5746), location="auxiliary test code (environments or event 
listeners)") at gtest.cc:2607:10
       frame #35: 0x0000000102669080 libarrow_gtestd.1.11.0.dylib`bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(object=0x00000001336093c0, 
method=(libarrow_gtestd.1.11.0.dylib`testing::internal::UnitTestImpl::RunAllTests()
 at gtest.cc:5746), location="auxiliary test code (environments or event 
listeners)") at gtest.cc:2643:14
       frame #36: 0x0000000102668f6c 
libarrow_gtestd.1.11.0.dylib`testing::UnitTest::Run(this=0x00000001026c0120) at 
gtest.cc:5438:10
       frame #37: 0x00000001023d7ee4 
libarrow_gtest_maind.1.11.0.dylib`RUN_ALL_TESTS() at gtest.h:2490:46
       frame #38: 0x00000001023d7ec8 
libarrow_gtest_maind.1.11.0.dylib`main(argc=1, argv=0x000000016fdfd368) at 
gtest_main.cc:52:10
       frame #39: 0x000000019ed5a0e0 dyld`start + 2360
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to