-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #659 Adds backtrace printing to SIGSEGV signal handling. Tries to print file and line number with libbacktrace, falls back to using standard backtrace when debug info is unavailable. Before: <img width="715" alt="Screenshot 2024-07-11 at 15 58 52" src="https://github.com/urbit/vere/assets/22086553/3ba89d96-c50c-40a5-8fd4-f6e636b8aec3"> After (with dsyms): <img width="715" alt="Screenshot 2024-07-24 at 17 11 56" src="https://github.com/user-attachments/assets/b333516f-c36f-48ce-afd2-95de9f812843"> After (without dsyms): <img width="715" alt="Screenshot 2024-07-24 at 17 14 31" src="https://github.com/user-attachments/assets/59956429-2fc7-478e-a05d-1807db21b18f">
- Loading branch information
Showing
14 changed files
with
301 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make") | ||
|
||
filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
configure_make( | ||
name = "libbacktrace", | ||
args = [ | ||
] + select({ | ||
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"], | ||
"//conditions:default": ["--jobs=`nproc`"], | ||
}), | ||
configure_options = [ | ||
] + select({ | ||
"@//:linux_aarch64": ["--host=aarch64-linux-musl"], | ||
"@//:linux_x86_64": ["--host=x86_64-linux-musl"], | ||
"//conditions:default": [], | ||
}), | ||
copts = ["-O3"], | ||
lib_source = ":all", | ||
out_static_libs = ["libbacktrace.a"], | ||
visibility = ["//visibility:public"], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make") | ||
|
||
filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
configure_make( | ||
name = "libunwind", | ||
args = select({ | ||
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"], | ||
"//conditions:default": ["--jobs=`nproc`"], | ||
}), | ||
configure_options = [ | ||
"--enable-debug-frame", | ||
] + select({ | ||
"@//:linux_aarch64": ["--host=aarch64-linux-musl"], | ||
"@//:linux_x86_64": ["--host=x86_64-linux-musl"], | ||
"//conditions:default": [], | ||
}), | ||
copts = ["-O3 -g"], | ||
lib_source = ":all", | ||
out_static_libs = ["libunwind.a"], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ configure_make( | |
copts = [ | ||
"-Wall", | ||
"-g", | ||
"-O3", | ||
"-O2", | ||
], | ||
deps = [ | ||
"@aes_siv", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.