This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new d73744f5c5d [Fix](thirdparty) fix that BE can not start when use JDK17 
(#29570)
d73744f5c5d is described below

commit d73744f5c5d20f5471e1c17f1ed1df47a69c54f4
Author: Tiewei Fang <[email protected]>
AuthorDate: Tue Jan 9 10:18:29 2024 +0800

    [Fix](thirdparty) fix that BE can not start when use JDK17 (#29570)
    
    An error occurred when starting BE with JDK17
    
    ```java
    Exception: java.lang.StackOverflowError thrown from the 
UncaughtExceptionHandler in thread "process reaper"
    ```
    
    This error occurs when BE's java code calls Runtime.exec() to fork the 
child process.
    It turned out that Doris was calling the `glog` library in the C++ layer to 
cause this problem.
    
    
    The solution comes from: https://github.com/google/glog/issues/975
---
 thirdparty/build-thirdparty.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 65224886d7b..dd965f9b022 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -484,7 +484,8 @@ build_glog() {
             -DCMAKE_BUILD_TYPE=Release \
             -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
             -DWITH_UNWIND=OFF \
-            -DBUILD_SHARED_LIBS=OFF
+            -DBUILD_SHARED_LIBS=OFF \
+            -DWITH_TLS=OFF
 
         cmake --build build --target install
     fi


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to