aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.com>2023-08-01 21:40:04 +0300
committeriaz1607 <iaz1607@yandex-team.com>2023-08-01 21:40:04 +0300
commit09314f260becbee2ec69323d37d55b53783fa855 (patch)
treeda8b5fc159bd4c14d15568e20e8587501b02c978
parentbaecdfd14aad6967a2c9846b975b031f3f55edca (diff)
downloadydb-09314f260becbee2ec69323d37d55b53783fa855.tar.gz
Fix gdb shell
-rw-r--r--library/python/cores/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/python/cores/__init__.py b/library/python/cores/__init__.py
index f8c54b8fd3..7197a40553 100644
--- a/library/python/cores/__init__.py
+++ b/library/python/cores/__init__.py
@@ -125,6 +125,8 @@ def recover_core_dump_file(binary_path, cwd, pid, core_pattern=None):
def get_gdb_full_backtrace(binary, core, gdb_path):
+ # XXX ya tool gdb uses shell script as wrapper so we need directory with shell binary in PATH
+ os.environ["PATH"] = os.pathsep.join(filter(None, [os.environ.get("PATH"), "/bin"]))
cmd = [
gdb_path, binary, core,
"--eval-command", "set print thread-events off",