Skip to content

ASAN: Disable memory leak detection by default. v7.0.8#4154

Merged
winlinvip merged 3 commits intoossrs:developfrom
winlinvip:feature/asan-daemon
Aug 22, 2024
Merged

ASAN: Disable memory leak detection by default. v7.0.8#4154
winlinvip merged 3 commits intoossrs:developfrom
winlinvip:feature/asan-daemon

Conversation

@winlinvip
Copy link
Copy Markdown
Member

By setting the env ASAN_OPTIONS=halt_on_error=0, we can ignore memory leaks, see https://github.com/google/sanitizers/wiki/AddressSanitizerFlags

By setting env ASAN_OPTIONS=detect_leaks=0, we can disable memory leaking detection in parent process when forking for daemon.

@winlinvip winlinvip linked an issue Aug 22, 2024 that may be closed by this pull request
@winlinvip winlinvip changed the title ASAN: Disalbe memory leak detection by default. ASAN: Disabbe memory leak detection by default. Aug 22, 2024
@winlinvip winlinvip changed the title ASAN: Disabbe memory leak detection by default. ASAN: Disable memory leak detection by default. Aug 22, 2024
@winlinvip winlinvip changed the title ASAN: Disable memory leak detection by default. ASAN: Disable memory leak detection by default. v7.0.8 Aug 22, 2024
@winlinvip winlinvip added the RefinedByAI Refined by AI/GPT. label Aug 22, 2024
@winlinvip winlinvip merged commit d424850 into ossrs:develop Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RefinedByAI Refined by AI/GPT.

Development

Successfully merging this pull request may close these issues.

ERROR: LeakSanitizer: detected memory leaks for daemon

1 participant