Closed GoogleCodeExporter closed 9 years ago
Try to prefix the command with
$ setarch x86_64 -R
i.e.
$ TSAN_OPTIONS="..." setarch x86_64 -R out/Release/base_unittests ...
it must be due to address space randomization.
Original comment by dvyu...@google.com
on 17 Dec 2012 at 9:57
same output :|
Original comment by miaubiz@gmail.com
on 17 Dec 2012 at 10:02
0x55555555 happens when ASRL is *on*, so we need to turn in *off*.
Hmmm. How?
Original comment by konstant...@gmail.com
on 17 Dec 2012 at 10:05
I am confused. Let me try again.
0x55555555 happens when ASRL is *off*, so we need to turn in *on*.
grrrrrrrr
Original comment by konstant...@gmail.com
on 17 Dec 2012 at 10:06
You need to *enable* ASLR:
http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-11/msg13003.html
http://stackoverflow.com/questions/11238457/disable-and-re-enable-address-space-
layout-randomization-only-for-mysef
Original comment by dvyu...@google.com
on 17 Dec 2012 at 10:13
@dvyukov: ok thanks got it now :D
it 'works' now.
it says this instead of the original:
GLib (gthread-posix.c): Unexpected error from C library during
'pthread_cond_init': Invalid argument. Aborting.
zsh: abort (core dumped) TSAN_OPTIONS= out/Release/base_unittests
Original comment by miaubiz@gmail.com
on 17 Dec 2012 at 10:16
This is fixed in upstream ThreadSanitizer in llvm, but Chrome updates tsan
~every 2 weeks. We will be able to iterate much faster if you switch to
upstream llvm tsan.
http://code.google.com/p/thread-sanitizer/wiki/Development
http://clang.llvm.org/docs/ThreadSanitizer.html
Original comment by dvyu...@google.com
on 17 Dec 2012 at 10:20
ok. thanks for the help <3
Original comment by miaubiz@gmail.com
on 17 Dec 2012 at 10:28
We are currently in process of deploying it for Chrome. It may be easier for
you to try when at least basic tests are green:
http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20TSan%20v2
Original comment by dvyu...@google.com
on 17 Dec 2012 at 3:12
Should be fixed by now.
Original comment by dvyu...@google.com
on 10 Jun 2013 at 1:03
Original issue reported on code.google.com by
miaubiz@gmail.com
on 17 Dec 2012 at 9:52