Closed Bug 1703824 Opened 4 years ago Closed 7 months ago

Segmentation fault at start up - Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 75)

Categories

(Thunderbird :: Security, defect)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: voodoo81people, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36

Steps to reproduce:

From command line:

thunderbird --safe-mode

Actual results:

[calBackendLoader] Using Thunderbird's libical backend
console.debug: "Successfully loaded OpenPGP library librnp.so from /usr/lib/thunderbird/librnp.so"
console.debug: "public keys: 0, secret keys: 0"
console.debug: "Successfully loaded optional OpenPGP library libgpgme.so.11 from system's standard library locations"
console.debug: "gpgme version: 1.13.1-unknown"
console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 75))
Segmentation fault (core dumped)

Expected results:

Just start as usual.
Using: Thunderbird 78.7.1 20210203182138 20210203182138

No relevant output from journalctl, I started it again after 30 minutes and it didn't crash...What could be happened?

Component: Untriaged → General
Summary: Segmentation fault at start up → Segmentation fault at start up - Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 75)

Possibly a clash between the libgcrypt that's statically linked into libotr and the one that's linked with libgpgme?

Component: General → Security

Christian,
Is this still affected you and/or did you find the cause of the problem?

Flags: needinfo?(voodoo81people)

I see a similar message on macOS with thunderbird-102.0.1 on every start.

Error: Cannot load required OTR library OTR.jsm:126:15
loadExternalOTRLib resource:///modules/OTRLib.jsm:109
init resource:///modules/OTRLib.jsm:115
once resource:///modules/OTR.jsm:117
init resource:///modules/OTR.jsm:138
init resource:///modules/OTRUI.jsm:255

Is this related or should I open a separate bug for this?

I see a similar message on macOS with thunderbird-102.0.1 on every start.

Probably different since I think the original report was on Linux. Let's go with a different bug for now. Thanks!

On up to date Archlinux (kernel 6.0.2-arch1-1) with TB 102.3.3 (64-bit)

> journactl -b -o short-precise | grep -i thunderbird
Oct 20 11:19:50.494649 HOST thunderbird.desktop[...]: console.debug: "Trying to load /usr/lib/thunderbird/libotr.so"
Oct 20 11:19:50.494965 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so from system's standard library locations"                                                                                                   Oct 20 11:19:50.494965 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so.5 from system's standard library locations"
Oct 20 11:19:50.495134 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so from system's standard library locations"
Oct 20 11:19:50.495267 HOST thunderbird.desktop[...]: console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 109))

This is logged everytime I launch thunderbird.

Sorry my comment #6 above had a somewhat garbled line formatting and editing it is not an option apparently.

On up to date Archlinux (kernel 6.0.2-arch1-1) with TB 102.3.3 (64-bit)

> journactl -b -o short-precise | grep -i thunderbird
Oct 20 11:19:50.494649 HOST thunderbird.desktop[...]: console.debug: "Trying to load /usr/lib/thunderbird/libotr.so"
Oct 20 11:19:50.494965 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so from system's standard library locations"
Oct 20 11:19:50.494965 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so.5 from system's standard library locations"
Oct 20 11:19:50.495134 HOST thunderbird.desktop[...]: console.debug: "Trying to load libotr.so from system's standard library locations"
Oct 20 11:19:50.495267 HOST thunderbird.desktop[...]: console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 109))

This is logged everytime I launch TB.

Is there a libotr package available on your OS? If yes, try to install it.

I think the package maintainer of the Thundebird package on your OS should add a dependency, to automatically install libotr when installing TB.

On Arch, libotr is listed as an optional dependency for Thunderbird. It needs to be installed manually. (Usually pacman will say something about optional dependencies, but it is easy to miss.)

(In reply to Kai Engert (:KaiE:) from comment #8)

Is there a libotr package available on your OS? If yes, try to install it.
I think the package maintainer of the Thunderbird package on your OS should add a dependency, to automatically
install libotr when installing TB.
Yes and yes.

(In reply to Rob Lemley [:rjl] from comment #9)

On Arch, libotr is listed as an optional dependency for Thunderbird. It needs to be installed manually. (Usually pacman will say something about optional dependencies, but it is easy to miss.)
... as I did apparently.

Thank you both @Kai and @Rob for chiming in... will report after rebooting .
(still on Archlinux but now with kernel 6.1.7-arch-1 and running TB 102.7.0)

(In reply to Kai Engert (:KaiE:) from comment #8)
(In reply to Rob Lemley [:rjl] from comment #9)

Installed libotr (4.1.1-3). Solved it for me although I think the issue was different from OP's.
(sorry for the thread-highjacking.)

Duplicate of this bug: 1832763
No longer duplicate of this bug: 1832763
Flags: needinfo?(voodoo81people)

Do you still see this with version 115?

Flags: needinfo?(voodoo81people)
Whiteboard: [closeme 2024-03-01]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Flags: needinfo?(voodoo81people)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2024-03-01]
You need to log in before you can comment on or make changes to this bug.