aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-07-31 22:29:54 +0200
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-08-02 20:08:38 +0200
commitbeff8a8ebe1b413b4b572b93ddca24aaeb904f7a (patch)
treebb699afae3a2dabe4b2261dcbf3b2cf9e042cc8e
parentcb7c16acbf138e613b851b7fcc1f4b5fabd5ddcd (diff)
downloadlibfuse-beff8a8ebe1b413b4b572b93ddca24aaeb904f7a.tar.gz
Fix program-path in util/parse-backtrace and dump_stack function
The option to the path of the binary had been accidentally removed in the scripts that can parse backtraces. The dump_stack() function had left over debug messages.
-rw-r--r--lib/fuse_signals.c3
-rwxr-xr-xutil/parse-backtrace.sh5
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/fuse_signals.c b/lib/fuse_signals.c
index 99af700..fb1304c 100644
--- a/lib/fuse_signals.c
+++ b/lib/fuse_signals.c
@@ -32,15 +32,12 @@ static void *backtrace_buffer[BT_STACK_SZ];
static void dump_stack(void)
{
- fprintf(stderr, "%s:%d\n", __func__, __LINE__);
#ifdef HAVE_BACKTRACE
char **strings;
int nptrs = backtrace(backtrace_buffer, BT_STACK_SZ);
strings = backtrace_symbols(backtrace_buffer, nptrs);
- fprintf(stderr, "%s: nptrs=%d\n", __func__, nptrs);
-
if (strings == NULL) {
fuse_log(FUSE_LOG_ERR, "Failed to get backtrace symbols: %s\n",
strerror(errno));
diff --git a/util/parse-backtrace.sh b/util/parse-backtrace.sh
index adf706d..3db96f8 100755
--- a/util/parse-backtrace.sh
+++ b/util/parse-backtrace.sh
@@ -23,7 +23,7 @@ if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then
print_help
fi
-while getopts "hf:t:" opt; do
+while getopts "hf:t:p:" opt; do
case $opt in
h)
print_help
@@ -34,6 +34,9 @@ while getopts "hf:t:" opt; do
t)
TRACE="$OPTARG"
;;
+ p)
+ PROGRAM_PATH="$OPTARG"
+ ;;
*)
print_help
;;