SRU: Fix libtsan0 (10.5.0-1ubuntu1~20.04) missing libtsan_preinit.o
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-9 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Focal |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The libtsan0 package built from gcc-10 used to ship the libtsan_preinit.o file in the shared library package libtsan0. That was correctly fixed with the update to GCC 10.5.0, moving it into libgcc-10-dev's private GCC libdir, however then making it unavailable for gcc-9. This patch ships the .o file in libgcc-9-dev as well.
Test case:
echo "int main(){}" | gcc -fsanitize=thread -x c -
fails linking before the fix, and succeeds after.
The regression potential is low, there are no changes to code, and the change only affects the thread sanitizer which is not in use by default.
The packages are pre-built in a PPA with just the security pocket enabled.
Original report:
================
When running sudo apt-get install libtsan0, the file libtsan_preinit.o which is supposed to be installed is not installed.
I had to compile it from gcc source code and add it manually.
I am running unfortunately running Pop!
But the same issue happens on my friends Ubuntu.
And it has been re-created on several Docker images of Ubuntu 20.04.
$ lsb_release -rd
Description: Pop!_OS 20.04 LTS
Release: 20.04
$ apt-cache policy libtsan0
libtsan0:
Installed: 10.5.0-
Candidate: 10.5.0-
Version table:
*** 10.5.0-
500 http://
500 http://
100 /var/lib/
10-
500 http://
Let me know if you need any more info or if this is sufficient to re-create the issue.
Best regards,
A
affects: | gcc-10 (Ubuntu) → gcc-9 (Ubuntu) |
summary: |
- libtsan0 (10.5.0-1ubuntu1~20.04) missing libtsan_preinit.o + SRU: Fix libtsan0 (10.5.0-1ubuntu1~20.04) missing libtsan_preinit.o |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.