LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 40761 - sanitizers broken on freebsd in 8.0.0-rc2
Summary: sanitizers broken on freebsd in 8.0.0-rc2
Status: RESOLVED FIXED
Alias: None
Product: compiler-rt
Classification: Unclassified
Component: compiler-rt (show other bugs)
Version: 8.0
Hardware: PC FreeBSD
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-8.0.1 release-9.0.0
  Show dependency tree
 
Reported: 2019-02-18 06:27 PST by Hans Wennborg
Modified: 2019-08-09 03:16 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Wennborg 2019-02-18 06:27:34 PST
Dimitry reported that the sanitizers are broken on FreeBsd in 8.0.0-rc2: http://lists.llvm.org/pipermail/llvm-dev/2019-February/130236.html

"Unfortunately I had to disable compiler-rt for this test run, as most of the sanitizers are totally broken.  They get into an endless recursive loop between AsanTSDGet() and the __tls_get_addr() interceptor, and crash with DEADLYSIGNAL due to stack overflow.  I haven't found the time to further diagnose this."
Comment 1 Hans Wennborg 2019-02-18 06:34:59 PST
Dimitry hit this and looked at it also in rc1: http://lists.llvm.org/pipermail/llvm-dev/2019-February/129906.html
Comment 2 Hans Wennborg 2019-02-18 06:42:34 PST
+emaste for more FreeBSD people.


I think this is currently the only *hard* blocked for the release. Do you think you'll have time to look into this any time soon, or do you know someone who could?
Comment 3 Kamil Rytarowski 2019-02-18 18:47:26 PST
It looks like this revision is related:

https://reviews.llvm.org/D55596 Reimplement Thread Static Data ASan routines with TLS

According to a tester it worked on FreeBSD. If you think that it has to be reverted for this OS, feel free to do it, but keep in mind that NetBSD must use the TLS version.
Comment 4 Hans Wennborg 2019-02-20 05:12:59 PST
Ed, Dimitry: ping? Do you think any of you will have to bisect or otherwise investigate this soon, or can you find someone who can work on it?
Comment 5 Dimitry Andric 2019-02-20 11:58:27 PST
(In reply to Hans Wennborg from comment #4)
> Ed, Dimitry: ping? Do you think any of you will have to bisect or otherwise
> investigate this soon, or can you find someone who can work on it?

I won't have time to work on it at all, unfortunately.
Comment 6 Hans Wennborg 2019-02-22 04:54:05 PST
http://lists.llvm.org/pipermail/release-testers/2019-February/000869.html has some details on the errors Dimitry was seeing.
Comment 7 Hans Wennborg 2019-02-27 05:37:03 PST
and see also http://lists.llvm.org/pipermail/llvm-dev/2019-February/130386.html
Comment 8 Hans Wennborg 2019-03-08 01:32:26 PST
Sadly we will have to release without fixes for this (see email threads). Unblocking.
Comment 9 Alexander Richardson 2019-07-24 09:53:16 PDT Comment hidden (obsolete)
Comment 10 Alexander Richardson 2019-07-25 01:04:50 PDT
Sorry that was the wrong URL. The proposed fix is https://reviews.llvm.org/D65221
If this is accepted we can hopefully get the fix into 9.0.
Comment 11 Alexander Richardson 2019-07-31 09:36:20 PDT
Fixed in https://reviews.llvm.org/rL367442. Could we also get this committed to the release branch?
Comment 12 Hans Wennborg 2019-08-01 01:34:33 PDT
(In reply to Alexander Richardson from comment #11)
> Fixed in https://reviews.llvm.org/rL367442. Could we also get this committed
> to the release branch?

Absolutely! Merged in r367524.

Dimitry: I hope this will make all tests in rc2.
Comment 13 Dimitry Andric 2019-08-01 03:03:31 PDT
(In reply to Hans Wennborg from comment #12)
> (In reply to Alexander Richardson from comment #11)
> > Fixed in https://reviews.llvm.org/rL367442. Could we also get this committed
> > to the release branch?
> 
> Absolutely! Merged in r367524.
> 
> Dimitry: I hope this will make all tests in rc2.

It looks promising, but I still have to apply a few fixes to make the sanitizer tests compile at all, and some lit-related fixups to make the dynamic library path stuff work. And TSan is still completely broken. I will follow up on the mailing list.
Comment 14 Alexander Richardson 2019-08-03 15:04:52 PDT
Fix for TSAN on FreeBSD: https://reviews.llvm.org/D65705
Comment 15 Hans Wennborg 2019-08-09 03:16:15 PDT
(In reply to Alexander Richardson from comment #14)
> Fix for TSAN on FreeBSD: https://reviews.llvm.org/D65705

That landed in r368103 and was merged to release_90 in r368426.