You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "Z1Wu (via GitHub)" <gi...@apache.org> on 2024/08/27 13:02:28 UTC

[I] [VL][VCPKG] error stacktrace empty string problem when build with vcpkg [incubator-gluten]

Z1Wu opened a new issue, #7037:
URL: https://github.com/apache/incubator-gluten/issues/7037

   ### Problem description
   
   > Please describe how you were trying to build velox and what issue occured
   
   When running with gluten library build with vcpkg, exeception stacktrace threw from velox side will by empty. The problem exists in current CI pipeline:
   
   ![image](https://github.com/user-attachments/assets/a9d34984-3caf-4e0f-b408-1c734b4fc595)
   
   The reason of empty stack is lack of libdwarf. According to the code in velox, it needs folly built with libdrawf and libelf to get symbol from address. 
   
   https://github.com/facebookincubator/velox/blob/763c19c0c767035ce03573ca2dc852b1303eeb6f/velox/common/process/StackTrace.cpp#L17-L25
   
   https://github.com/facebookincubator/velox/blob/763c19c0c767035ce03573ca2dc852b1303eeb6f/velox/common/process/StackTrace.cpp#L158-L184
   
   But in current vcpkg , folly does not build with libdrawf, as we can see in folly-config.h created by cmake.
   
   ```
   /* #undef FOLLY_HAVE_DWARF */
   #define FOLLY_HAVE_ELF 1
   #define FOLLY_HAVE_SWAPCONTEXT 1
   #define FOLLY_HAVE_BACKTRACE 1
   #define FOLLY_USE_SYMBOLIZER 1
   #define FOLLY_DEMANGLE_MAX_SYMBOL_SIZE 1024
   ```
   
   A possible fix is add libdwarf dependcy in folly vcpkg.json manifest which was removed in PR https://github.com/apache/incubator-gluten/pull/5314/files
   
   
   
   
   ### System information
   
   Velox System Info v0.0.2
   Commit: d4d3bee96dd40d127545d513bd7a688123c2ff14
   CMake Version: 3.17.5
   System: Linux-3.10.0-957.el7.x86_64
   Arch: x86_64
   CPU Name: Model name: Intel Core Processor (Skylake, IBRS)
   C++ Compiler: /opt/rh/devtoolset-9/root/usr/bin/c++
   C++ Compiler Version: 9.3.1
   C Compiler: /opt/rh/devtoolset-9/root/usr/bin/cc
   C Compiler Version: 9.3.1
   CMake Prefix Path: /usr/local;/usr;/;/usr;/usr/local;/usr/X11R6;/usr/pkg;/opt
   
   
   
   ### CMake log
   
   _No response_


-- 
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-unsubscribe@gluten.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [I] [VL][VCPKG] error stacktrace empty string problem when build with vcpkg [incubator-gluten]

Posted by "zhztheplayer (via GitHub)" <gi...@apache.org>.
zhztheplayer commented on issue #7037:
URL: https://github.com/apache/incubator-gluten/issues/7037#issuecomment-2313897398

   Thanks for your findings. And AFAIK we still need to switch to e.g., `RelWithDebInfo` build to obtain the symbols in CI. We are using `Release` so far if I remember correctly.


-- 
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-unsubscribe@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [I] [VL][VCPKG] error stacktrace empty string problem when build with vcpkg [incubator-gluten]

Posted by "Z1Wu (via GitHub)" <gi...@apache.org>.
Z1Wu commented on issue #7037:
URL: https://github.com/apache/incubator-gluten/issues/7037#issuecomment-2314342803

   AFAIK, cmake build with `Release` does not strip `.symtab` section of output file. I guess velox only needs  `.symtab` section to get the symbol of address , and doesn't need debug info.
   https://github.com/facebookincubator/velox/blob/763c19c0c767035ce03573ca2dc852b1303eeb6f/velox/common/process/StackTrace.cpp#L158-L184 
   
   Sample error stacktrace looks like below :
   <img width="1089" alt="image" src="https://github.com/user-attachments/assets/2968c0d8-31ef-4f42-a33f-df00eecf159d">
   


-- 
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-unsubscribe@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org