Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
LTTNG_UST_REGISTER_TIMEOUT: 0
NUGET_XMLDOC_MODE: skip
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
METACALL_INSTALL_OPTIONS: root base python ruby netcore5 nodejs typescript file rpc wasm java c cobol rust rapidjson funchook swig pack
METACALL_INSTALL_OPTIONS: root base python ruby netcore5 nodejs typescript file rpc wasm java c cobol rust rapidjson funchook swig pack backtrace

- name: Configure
run: |
Expand Down
9 changes: 8 additions & 1 deletion source/plugins/backtrace_plugin/source/backtrace_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <backward.hpp>

#include <log/log.h>

static backward::SignalHandling signal_handling;

int backtrace_plugin(void *loader, void *handle, void *context)
Expand All @@ -30,5 +32,10 @@ int backtrace_plugin(void *loader, void *handle, void *context)
(void)handle;
(void)context;

return signal_handling.loaded() == true ? 0 : 1;
if (signal_handling.loaded() == false)
{
log_write("metacall", LOG_LEVEL_ERROR, "Backtrace plugin failed to load, you need unwind/libunwind for stacktracing and libbfd/libdw/libdwarf for the debug information. Install the required libraries and recompile to utilise the backtrace plugin. For more information visit https://github.com/bombela/backward-cpp");
return 1;
}
return 0;
}
2 changes: 1 addition & 1 deletion tools/metacall-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ sub_cobol(){

# Backtrace (this only improves stack traces verbosity but backtracing is enabled by default)
sub_backtrace(){
echo "configure cobol"
echo "configure backtrace"

sub_apt_install_hold libdw1
}
Expand Down