Skip to content

Clean-up stack traces on MacOS, fix demangling on Linux, and add EXPORT_DYNAMIC_SYMBOLS flag which enables stack traces on Linux#15587

Merged
Mytherin merged 7 commits intoduckdb:mainfrom
Mytherin:cleanupstacktrace
Jan 7, 2025
Merged

Clean-up stack traces on MacOS, fix demangling on Linux, and add EXPORT_DYNAMIC_SYMBOLS flag which enables stack traces on Linux#15587
Mytherin merged 7 commits intoduckdb:mainfrom
Mytherin:cleanupstacktrace

Conversation

@Mytherin
Copy link
Collaborator

@Mytherin Mytherin commented Jan 7, 2025

  • Clean up stack traces on MacOS by removing the pointers and excess spacing
  • Fix demangling on Linux by correctly finding the mangled symbol in the stack trace information
  • Add EXPORT_DYNAMIC_SYMBOLS flag which exports symbols, allowing stack traces to be printed on Linux as well

@Mytherin Mytherin merged commit 5705d13 into duckdb:main Jan 7, 2025
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Jan 7, 2025
Clean-up stack traces on MacOS, fix demangling on Linux, and add `EXPORT_DYNAMIC_SYMBOLS` flag which enables stack traces on Linux (duckdb/duckdb#15587)
HTTPFS test - no longer check for IS NOT NULL filter as this is no longer necessary (duckdb/duckdb#15585)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Jan 7, 2025
Clean-up stack traces on MacOS, fix demangling on Linux, and add `EXPORT_DYNAMIC_SYMBOLS` flag which enables stack traces on Linux (duckdb/duckdb#15587)
HTTPFS test - no longer check for IS NOT NULL filter as this is no longer necessary (duckdb/duckdb#15585)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
@Mytherin Mytherin deleted the cleanupstacktrace branch January 16, 2025 16:52
Mytherin added a commit that referenced this pull request Jul 22, 2025
Not sure if we want to do the same for the main distribution binaries?

Currently, linux stack traces look like this:
```
./dist/myprogram() [0x25c97a6]
./dist/myprogram() [0x25c9864]
./dist/myprogram() [0x25cc6b9]
./dist/myprogram() [0x1e5ee8e]
```

See this PR, which added the flag:
#15587

Related issue: duckdblabs/duckdb-internal#5364
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.

1 participant