[Bug sanitizer/59302] tsan: Unexpected mmap in InternalAllocator!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59302 Joost VandeVondele changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Joost VandeVondele --- I suppose this is fixed by now, haven't seen it again.
[Bug sanitizer/59302] tsan: Unexpected mmap in InternalAllocator!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59302 Dmitry Vyukov dvyukov at google dot com changed: What|Removed |Added CC||dvyukov at google dot com --- Comment #4 from Dmitry Vyukov dvyukov at google dot com --- The referenced issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59194 is marked as fixed. I propose to fix this issue, but I don't see an option to change status.
[Bug sanitizer/59302] tsan: Unexpected mmap in InternalAllocator!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59302 --- Comment #1 from Kostya Serebryany kcc at gcc dot gnu.org --- This isn't expected to happen and so we did not write a better warning message. We may be able to fix it, but the underlying problem is in your tests: it has a race that tsan is trying to report and which is suppressed (probably because a similar races was reported before). How many race reports do you see before tsan crashes? Did you suppress any of those?
[Bug sanitizer/59302] tsan: Unexpected mmap in InternalAllocator!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59302 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added CC||Joost.VandeVondele at mat dot ethz ||.ch --- Comment #2 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch --- (In reply to Kostya Serebryany from comment #1) This isn't expected to happen and so we did not write a better warning message. We may be able to fix it, but the underlying problem is in your tests: it has a race that tsan is trying to report and which is suppressed (probably because a similar races was reported before). How many race reports do you see before tsan crashes? Did you suppress any of those? yes, I have a suppression in place to workaround PR59194. As it is an atomic update in a hot loop, it will be triggered millions of times.
[Bug sanitizer/59302] tsan: Unexpected mmap in InternalAllocator!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59302 --- Comment #3 from Kostya Serebryany kcc at gcc dot gnu.org --- (In reply to Joost VandeVondele from comment #2) (In reply to Kostya Serebryany from comment #1) This isn't expected to happen and so we did not write a better warning message. We may be able to fix it, but the underlying problem is in your tests: it has a race that tsan is trying to report and which is suppressed (probably because a similar races was reported before). How many race reports do you see before tsan crashes? Did you suppress any of those? yes, I have a suppression in place to workaround PR59194. As it is an atomic update in a hot loop, it will be triggered millions of times. Suppressing a race that happens so many times is no good. Even if we fix the crash above (which I'd prefer not to; instead we should emit a more descriptive message and die; we'll do that) tsan will remain very slow. The right solution is of course to fix the code to not have that race. The next good solution is to annotate the function with __attribute__((no_sanitize_thread)) -- but I don't know if fortran has anything like this. The next somewhat good solution is to blacklist the function (https://code.google.com/p/thread-sanitizer/wiki/Flags?ts=1385538776updated=Flags#Blacklist_Format) but that is not supported by GCC and will have to be implemented first.