Closed Bug 1700349 Opened 3 years ago Closed 3 years ago

OTR library comm-central macOS doesn't work

Categories

(Chat Core :: Security: OTR, defect)

defect

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
89 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: KaiE, Assigned: rjl)

Details

(Keywords: regression)

Attachments

(6 files)

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.

Keywords: regression

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.

Attached image image.png

This looks like it could be the problem... That's a libgcrypt symbol, libotr was built with libgcrypt 1.9.2 in this case.

Attached patch gpg-error.patchSplinter Review
Attachment #9211286 - Flags: review?(kaie)
Attached patch libgcrypt.patchSplinter Review
Attachment #9211287 - Flags: review?(kaie)

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.

Try build: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=08c53cf474bad94e13dea3661a1a79c074efcb12

I put the third_party code patches in Bugzilla since Phabricator tends to have problems with them.

Comment on attachment 9211286 [details] [diff] [review]
gpg-error.patch

r=kaie this matches what I downloaded

Attachment #9211286 - Flags: review?(kaie) → review+

Comment on attachment 9211287 [details] [diff] [review]
libgcrypt.patch

r=kaie this matches what I downloaded

Attachment #9211287 - Flags: review?(kaie) → review+

What failure do you see when building with asm enabled?

I confirmed that libotr loads on macOS 11.x with these changes.

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

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

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.

Flags: needinfo?(rob)
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/2fb031f034ae
Follow-up: Fix linux-aarch64 libotr building. rs=bustage-fix

I verified the linux-aarch64 build is able to load libotr from this build. (Manjaro ARM, Raspi 400).

Flags: needinfo?(rob)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: