Skip to content

Conversation

@korowa
Copy link

@korowa korowa commented Mar 4, 2025

Use backtrace function instead of unw_backtrace for OS_DARWIN

Bringing back capturing exception stacktraces on MacOS (missing, presumably, after switching to ClickHouse/llvmorg-16.0.6 branch)

Ref: 2a8967b

Use backtrace function instead of unw_backtrace for OS_DARWIN

Ref: 2a8967b
@rschu1ze
Copy link
Member

rschu1ze commented Mar 4, 2025

@korowa Thanks. I had two questions:

  1. can/should this patch also be sent to upstream LLVM?
  2. did you open a PR in the ClickHouse repository which updates the LLVM submodule?

#endif

#ifdef STD_EXCEPTION_HAS_STACK_TRACE
#if defined(OS_DARWIN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment here, saying that this is a ClickHouse-specific patch of LLVM + the motivation + (if possible) a reference to an issue.

@korowa
Copy link
Author

korowa commented Mar 4, 2025

@rschu1ze

can/should this patch also be sent to upstream LLVM?

Don't think so, as it's built on top of 2b214a3 which is already a ClickHouse-specific modifications

did you open a PR in the ClickHouse repository which updates the LLVM submodule?

Now yes (this PR was created before just to link submodule to the commit from this repo, not from the fork)

@rschu1ze rschu1ze merged commit d8f552f into ClickHouse:ClickHouse/release/19.x Mar 4, 2025
2 checks passed
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.

2 participants