Skip to content

[#1799] Support pgmoneta_backtrace_string() on macOS - #1800

Open
lookslikeameya wants to merge 1 commit into
pgmoneta:mainfrom
lookslikeameya:backtrace-macos
Open

lookslikeameya wants to merge 1 commit into
pgmoneta:mainfrom
lookslikeameya:backtrace-macos

Conversation

@lookslikeameya

Copy link
Copy Markdown
Contributor

closes #1799.

The Linux code finds each frame through /proc/self/maps, which macOS doesn't have. On macOS pgmoneta_backtrace_string() now uses backtrace_symbols(), which gives function names and offsets, but no file and line numbers. The code compiled on Linux is unchanged.

This is the test_utils_misc failure I mentioned in #1497.

Tested:

  • macOS 26.5.2 (arm64), PG17, test/check.sh -m utils: 67/67 pass, including test_utils_misc, which fails on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_utils_misc fails on macOS: pgmoneta_backtrace_string() only works on Linux

1 participant