Closed
Bug 1182378
Opened 10 years ago
Closed 2 years ago
Building with ASan on Mac: Undefined symbol "___lsan_ignore_object"
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | affected |
People
(Reporter: jruderman, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Setup:
* Mac
* mozilla-central rev 2c91d57441fd (trunk from today)
* LLVM rev r241643 (trunk from yesterday)
* mozconfig with "-fsanitize=address" in {CC,CXX} as well as {CFLAGS,CXXFLAGS,LDFLAGS} to work around an NSS build issue
> Undefined symbols for architecture x86_64:
> "___lsan_ignore_object", referenced from:
> mozilla::nsTerminator::StartWriter() in nsTerminator.o
> mozilla::(anonymous namespace)::RunWriter(void*) in nsTerminator.o
> mozilla::nsTerminator::Observe(nsISupports*, char const*, char16_t const*) in nsTerminator.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
The macro that calls __lsan_ignore_object was added in bug 1075134.
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Comment 2•10 years ago
|
||
If I work around this by making MOZ_LSAN_INTENTIONALLY_LEAK_OBJECT a no-op, my build succeeds. Somehow the __asan_* symbols are linking fine and only the __lsan_* symbol is having trouble.
Comment 3•10 years ago
|
||
I just pulled the latest compiler-rt, and __lsan_ignore_object seems still present in compiler-rt//lib/lsan/lsan_common.cc. It doesn't seem #ifdefed away.
Comment 4•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Severity: blocker → --
Comment 5•2 years ago
|
||
AFAICT, ASan builds work on mac and have for a while. Let's call this WFM.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•