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

   ### 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.7
   
   ### What's Wrong?
   
   #22683
   When compiling for the ARM version with use_unwind=off, but get_stack_trace 
still defaults to using libunwind for stack trace printing. 
   
   
   std::string get_stack_trace(int start_pointers_index, std::string 
dwarf_location_info_mode) {
   #ifdef ENABLE_STACKTRACE
       if (dwarf_location_info_mode.empty()) {
           dwarf_location_info_mode = config::dwarf_location_info_mode;
       }
       auto tool = config::get_stack_trace_tool;
       if (tool == "glog") {
           return get_stack_trace_by_glog();
       } else if (tool == "boost") {
           return get_stack_trace_by_boost();
       } else if (tool == "glibc") {
           return get_stack_trace_by_glibc();
       } else if (tool == "libunwind") {
   #if defined(__APPLE__) // TODO
           return get_stack_trace_by_glog();
   #endif
           return get_stack_trace_by_libunwind(start_pointers_index, 
dwarf_location_info_mode);
       } else {
           return "no stack";
       }
   #endif
       return "no enable stack";
   }
   
   ### What You Expected?
   
   add a condition #if USE_UNWIND
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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