[all-commits] [llvm/llvm-project] b5d506: [obj2yaml] Return from main on error instead of ca...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Sep 30 02:09:12 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5d50687b1f2991200b9985a78e5841717f8f108
https://github.com/llvm/llvm-project/commit/b5d50687b1f2991200b9985a78e5841717f8f108
Author: Fangrui Song <i at maskray.me>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M llvm/tools/obj2yaml/obj2yaml.cpp
Log Message:
-----------
[obj2yaml] Return from main on error instead of calling exit (#227594)
The `Fatal` lambda introduced by #224965 calls exit(1) while heap
objects are live. On the "failed to open" path the pointer to the
heap-allocated ToolOutputFile is dead, so LeakSanitizer reports a leak.
PR #227444 worked around this by defining `__lsan_is_turned_off`.
Properly fix the lsan failure by making the error callback record the
failure and return 1 from main.
LLM-aided
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list