From eb49fae02080f2b2e34fe4d771dba464be626fea Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Thu, 11 Jul 2019 20:10:58 +0900 Subject: [PATCH] reloc: provide libthread_db.so.1 to debug thread on gdb In scylla-debuginfo package, we have /usr/lib/debug/opt/scylladb/libreloc/libthread_db-1.0.so-666.development-0.20190711.73a1978fb.el7.x86_64.debug but we actually does not have libthread_db.so.1 in /opt/scylladb/libreloc since it's not available on ldd result with scylla binary. To debug thread, we need to add the library in a relocatable package manually. Fixes #4673 Signed-off-by: Takuya ASADA Message-Id: <20190711111058.7454-1-syuu@scylladb.com> (cherry picked from commit 842f75d066e6ae8226b9b7cf48304dbc1abe539c) --- scripts/create-relocatable-package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/create-relocatable-package.py b/scripts/create-relocatable-package.py index 32fe19dbb2..d4b93a362c 100755 --- a/scripts/create-relocatable-package.py +++ b/scripts/create-relocatable-package.py @@ -76,6 +76,9 @@ libs = {} for exe in executables: libs.update(ldd(exe)) +# manually add libthread_db for debugging thread +libs.update({'libthread_db-1.0.so': '/lib64/libthread_db-1.0.so'}) + ld_so = libs['ld.so'] have_gnutls = any([lib.startswith('libgnutls.so')