Closed Bug 1333715 Opened 7 years ago Closed 7 years ago

ASAN build stops immediately with asan_rtl.cc:407 "((!asan_init_is_running && "ASan init calls itself!")) != (0)"

Categories

(Firefox :: Untriaged, defect)

52 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1311119

People

(Reporter: L.Bonnaud, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170123004004

Steps to reproduce:

I downloaded:

https://index.taskcluster.net/v1/task/gecko.v2.mozilla-central.latest.firefox.linux64-asan-opt/artifacts/public/build/target.tar.bz2

and tried to run it.


Actual results:

$ ./firefox
==18808==AddressSanitizer CHECK failed: /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_rtl.cc:407 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)
    <empty stack>



Expected results:

firefox ASAN starts and is useable
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
This is on an Ubuntu 16.10 system with mainline kernel 4.9.5.
The same problem exists with the ASAN debug build.
User Agent  Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID  20170129185945

Hi Laurent,
I wasn't able to reproduce the issue you are experiencing on Ubuntu 14.04 and Ubuntu 16.04. For me Firefox starts up as expected.

I did find some pages that might be of interest:
https://bugs.archlinux.org/task/50366
https://llvm.org/bugs/show_bug.cgi?id=27310

Could you try to upgrade glibc and see if the issue is reproducible after that?
Flags: needinfo?(L.Bonnaud)
Thanks for the pointers!

Unfortunately upgrading glibc is not an option at the moment and the upcoming Ubuntu 17.04 still has glibc 2.24.

Note that ASAN is not completely broken in Debian/Ubuntu: I successfully compiled and ran a small test program with ASAN on Ubuntu 16.10 and Debian sid.

Since ASAN works in Debian/Ubuntu for binaries compiled on those systems I do not see how I could report a bug there.

Another way to fix this would be for Mozilla to build their ASAN binaries with a more recent toolchain that produces binaries compatible with glibc 2.24.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(L.Bonnaud)
You need to log in before you can comment on or make changes to this bug.