OTR library comm-central macOS doesn't work
Categories
(Chat Core :: Security: OTR, defect)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: KaiE, Assigned: rjl)
Details
(Keywords: regression)
Attachments
(6 files)
14.87 KB,
image/png
|
Details | |
534.00 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
211.19 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
libotr.5.dylib in comm-central is broken.
Use a current comm-central build (downloaded from treeherder, target.dmg)
On macOS, error console reports that the OTR library cannot be loaded.
For testing purposes, I took a libotr.5.dylib file from the 78.x release, copied it into a the TB Daily folder, and that library works, it's reported as loaded in error console.
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
I ran into this earlier while testing bug 1700240.
I suspect this is a problem with the macOS 10.12 SDK that we switched to a couple of versions ago. It could also be something with the enhanced permissions possibly.
I was testing on macOS 11.0.1 earlier (intel) -- I'll try 10.15.
Assignee | ||
Comment 2•3 years ago
|
||
This looks like it could be the problem... That's a libgcrypt symbol, libotr was built with libgcrypt 1.9.2 in this case.
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
With gpg-error 1.42 and libgcrypt 1.9.2, libgcrypt does not compile with
ASM enabled. This manifested as a failure to initialize libotr previously.
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D109632
Assignee | ||
Comment 7•3 years ago
|
||
I put the third_party code patches in Bugzilla since Phabricator tends to have problems with them.
Reporter | ||
Comment 8•3 years ago
|
||
Comment on attachment 9211286 [details] [diff] [review]
gpg-error.patch
r=kaie this matches what I downloaded
Reporter | ||
Comment 9•3 years ago
|
||
Comment on attachment 9211287 [details] [diff] [review]
libgcrypt.patch
r=kaie this matches what I downloaded
Reporter | ||
Comment 10•3 years ago
|
||
What failure do you see when building with asm enabled?
Assignee | ||
Comment 11•3 years ago
|
||
I confirmed that libotr loads on macOS 11.x with these changes.
Comment 12•3 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/783a94bc4803
Update libgpg-error to 1.42. r=kaie
https://hg.mozilla.org/comm-central/rev/aae1f93eb963
Update libgcrypt to 1.9.2. r=kaie
https://hg.mozilla.org/comm-central/rev/898e2c255d17
Use --disable-asm for x86_64 macOS libgcrypt. r=kaie
https://hg.mozilla.org/comm-central/rev/2370fdbabbde
Add a very simplistic test to verify OTRLib.jsm can load libotr. r=kaie
Assignee | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
The toolchain-linux-aarch64-libotr task is failing. I assume it's something to do with this bug as that's when the failure appeared. The task didn't run in your Try job so you wouldn't have seen it.
Assignee | ||
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
Pushed by thunderbird@calypsoblue.org: https://hg.mozilla.org/comm-central/rev/2fb031f034ae Follow-up: Fix linux-aarch64 libotr building. rs=bustage-fix
Assignee | ||
Comment 16•3 years ago
|
||
I verified the linux-aarch64 build is able to load libotr from this build. (Manjaro ARM, Raspi 400).
Updated•3 years ago
|
Description
•