pitrou commented on issue #47015:
URL: https://github.com/apache/arrow/issues/47015#issuecomment-3045686189

   This comment gives us a clue: 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60662#c5
   
   And indeed, if I apply this hack, then `arrow-acero-fetch-node-test ` 
doesn't crash anymore:
   ```diff
   diff --git a/cpp/src/arrow/acero/test_nodes.cc 
b/cpp/src/arrow/acero/test_nodes.cc
   index d95c22ca45..b1b2f4d831 100644
   --- a/cpp/src/arrow/acero/test_nodes.cc
   +++ b/cpp/src/arrow/acero/test_nodes.cc
   @@ -17,10 +17,12 @@
    
    #include "arrow/acero/test_nodes.h"
    
   +#include <chrono>
    #include <deque>
    #include <iostream>
    #include <mutex>
    #include <string>
   +#include <thread>
    #include <vector>
    
    #include "arrow/acero/exec_plan.h"
   @@ -357,6 +359,7 @@ struct GatedNode : public ExecNode, public TracedNode {
    }  // namespace
    
    void RegisterTestNodes() {
   +  std::this_thread::sleep_for(std::chrono::nanoseconds(1));
      static std::once_flag registered;
      std::call_once(registered, [] {
        ExecFactoryRegistry* registry = default_exec_factory_registry();
   
   ```


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to