llvm / llvm/llvm-project

[flang] Add support of sanitizers

Open
#171,911 4 comments 0 reactions 0 assignees View on GitHub
flang:driver
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

At the current moment, flang does not support:

- [ ] AddressSanitizer: https://godbolt.org/z/K5dKxYEnb
- [ ] LeakSanitizer: https://godbolt.org/z/s1nWfjYjh
- [ ] MemorySanitizer: https://godbolt.org/z/7674EK3a7
- [ ] UndefinedSanitizer: https://godbolt.org/z/nP6dPbMsE
- [ ] ThreadSanitizer: https://godbolt.org/z/GTKM3c5Tf

It would be nice to see their support with flang.

Hope I mentioned all available sanitizers in LLVM.

Contributor guide

Open the contributing guide

Research direction

Start by running the five linked Godbolt examples with flang and compare the current behavior for AddressSanitizer, LeakSanitizer, MemorySanitizer, UndefinedSanitizer, and ThreadSanitizer. Done means flang supports the sanitizers listed in the issue, with behavior that can be demonstrated for each example.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.