Skip to content

 fix: only pass libscrapli a logger callback when a logger is configured  - #20

Merged
araustin01 merged 7 commits into
mainfrom
callback-patch
Sep 30, 2026
Merged

araustin01 merged 7 commits into
mainfrom
callback-patch

Conversation

@araustin01

@araustin01 araustin01 commented Sep 28, 2026 •

Copy link
Copy Markdown

Description

Ksqueegee agent processes regularly panic with an unrecoverable whole-process memory-corruption fault.

Solution

Options.Apply set opts.loggerCallback unconditionally on every Open, regardless of whether the caller ever supplied a logger. This change makes both the dispatcher registration and the callback pointer conditional on o.Logger != nil.

Libscrapli adds the SA_ONSTACK flag to the two signal handlers Zig installs.

@araustin01 araustin01 self-assigned this Sep 28, 2026
@araustin01 araustin01 added bug 🐛 Indicates an unexpected problem or unintended behavior do not merge ⏸️ This PR should not be merged yet labels Sep 28, 2026
@araustin01
araustin01 marked this pull request as ready for review September 30, 2026 12:11
Copilot AI balanced review requested due to automatic review settings September 30, 2026 12:11
@araustin01 araustin01 removed the do not merge ⏸️ This PR should not be merged yet label Sep 30, 2026
@araustin01
araustin01 merged commit 979d524 into main Sep 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐛 Indicates an unexpected problem or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants