[LLVMbugs] [Bug 18671] New: Detect dispatch_once_t in per-thread storage.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 30 05:16:44 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18671
Bug ID: 18671
Summary: Detect dispatch_once_t in per-thread storage.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: iamleeg at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The contrived case at this gist (https://gist.github.com/iamleeg/8707968) uses
dispatch_once(), but because the dispatch_once_t token is in thread-local
storage the block will get executed multiple times. Perhaps the analyzer should
be able to report on this situation, because while I *might* want to do it, I
*probably* don't.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140130/b775840b/attachment.html>
More information about the llvm-bugs
mailing list