ycsongtcs opened a new issue, #38573:
URL: https://github.com/apache/doris/issues/38573

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.1.2-rc04
   
   ### What's Wrong?
   
   我改动benchmark_tool.cpp的如下部分:(通过给这行加了注释跑起来的//    
doris::StoragePageCache::create_global_cache(1 << 30, 10, 0);)
   
   NormalHashMap<uint64_t, uint64_t> map;
   class CustomBenchmark : public BaseBenchmark {
   public:
       CustomBenchmark(const std::string& name, int iterations, 
std::function<void()> init_func,
                       std::function<void()> run_func)
               : BaseBenchmark(name, iterations), _init_func(init_func), 
_run_func(run_func) {
           for (uint64_t i = 0; i < NUM_ELEMENTS; i++)
           {
               map[i] = i;
           }
   
       }
       virtual ~CustomBenchmark() override {}
   
       virtual void init() override { _init_func(); }
       virtual void run() override { _run_func(); }
   
   private:
       std::function<void()> _init_func;
       std::function<void()> _run_func;
   };
   
   void custom_init() {
   
   }
   void custom_run_plus() {
       for (uint64_t i = 0; i < NUM_ELEMENTS; ++i)
       {
           auto it = map.find(200001);
           benchmark::DoNotOptimize(it);
       }
   }
   void custom_run_mod() {
       for (uint64_t i = 0; i < NUM_ELEMENTS; i++)
       {
           map[i] = i;
       }
   }
   
   
然后编译完成后,执行/opt/mydocker/dorisut/doris/be/ut_build_ASAN/test/benchmark_tool报错如下
   
   WARNING: Logging before InitGoogleLogging() is written to STDERR
   F20240731 14:55:25.657887 1383142 mem_info.h:69] Check failed: _s_initialized
   *** Check failure stack trace: ***
   已中止 (核心已转储)
   
   
   
   ### What You Expected?
   
   正常执行benchmark程序
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to