<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Malhar,<div class=""><br class=""></div><div class="">I just sent this privately, but I’ll repeat it here on the list. Here is a suggested starter bug on the clang static analyzer codebase: </div><div class=""><br class="">“False Positive PthreadLockChecker Use destroyed lock” <<a href="https://bugs.llvm.org/show_bug.cgi?id=32455" class="">https://bugs.llvm.org/show_bug.cgi?id=32455</a>><br class=""><br class="">The analyzer has a checker (PthreadLockChecker.cpp) that emits a diagnostic when the programmer tries to acquire a mutex twice or lock a mutex that has already been destroyed. Unfortunately, it has a false positive: if the programmer calls pthread_destroy_lock() and that call fails (returns a non-zero value) and then later the programmer tries to acquire the lock then the analyzer incorrectly warns that the mutex has been destroyed. There is an example of the false positive in the linked bugzilla URL above.<br class=""><br class="">Fixing this false positive is a good starter bug to get you familiar with the checker side of the analyzer. If you haven’t seen it already, a good place to start would be the Checker Development Manual <<a href="https://clang-analyzer.llvm.org/checker_dev_manual.html" class="">https://clang-analyzer.llvm.org/checker_dev_manual.html</a>>.<br class=""><br class="">And please don’t hesitate to email if you have any questions or want to discuss approaches to fixing the bug!<br class=""><br class="">Devin</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 6, 2017, at 1:48 PM, Malhar Thakkar via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello everyone,<div class=""><br class=""></div><div class="">My name is Malhar Thakkar. I am a final year undergraduate studying at the Indian Institute of Technology Hyderabad. </div><div class=""><br class=""></div><div class="">I have recently started looking into the Clang Static Analyzer and I want to contribute to the community.</div><div class="">So, could anyone point me to some beginner level(easy to fix) bugs for which I can submit a patch?</div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Malhar Thakkar</div></div><div hspace="streak-pt-mark" style="max-height:1px" class=""><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY3MxM2IxMDMxQGlpdGguYWMuaW4%3D&type=zerocontent&guid=d04e8066-02da-4550-b293-f68be8b9fe41" class=""><font color="#ffffff" size="1" class="">ᐧ</font></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>