This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new b580ccce2 fix: use libgcc instead of generic_fp as default stacktrace
(#1690)
b580ccce2 is described below
commit b580ccce2969232e0eed23641f01f2fa222b3a2e
Author: Yingchun Lai <[email protected]>
AuthorDate: Thu Nov 23 18:18:05 2023 +0800
fix: use libgcc instead of generic_fp as default stacktrace (#1690)
This is a compromised method to resolve the crash in
`stacktrace_generic_fp` as
mentioned in https://github.com/apache/incubator-pegasus/issues/1685.
Remember to set the environment variable `TCMALLOC_STACKTRACE_METHOD` to
other value if
you see this crash stack in your environment.
I will research more about this issue to fix it fully.
---
run.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/run.sh b/run.sh
index ad0206f8e..74d44b4b4 100755
--- a/run.sh
+++ b/run.sh
@@ -28,6 +28,10 @@ export THIRDPARTY_ROOT=$ROOT/thirdparty
export
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:${BUILD_LATEST_DIR}/output/lib:${THIRDPARTY_ROOT}/output/lib:${LD_LIBRARY_PATH}
# Disable AddressSanitizerOneDefinitionRuleViolation, see
https://github.com/google/sanitizers/issues/1017 for details.
export ASAN_OPTIONS=detect_odr_violation=0
+# See
https://github.com/gperftools/gperftools/wiki/gperftools'-stacktrace-capturing-methods-and-their-issues.
+# Now we choose libgcc, because of
https://github.com/apache/incubator-pegasus/issues/1685.
+export TCMALLOC_STACKTRACE_METHOD=libgcc # Can be generic_fp,
generic_fp_unsafe, libunwind or libgcc
+export TCMALLOC_STACKTRACE_METHOD_VERBOSE=1
function usage()
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]