Closed Bug 1231394 Opened 7 years ago Closed 7 years ago

Error message "Unable to add module" does not help with diagnosing the problem.

Categories

(Core Graveyard :: Security: UI, defect)

38 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: teythoon, Unassigned)

Details

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

Steps to reproduce:

Build a security module (presumably doing something wrong), try to load it into Firefox.


Actual results:

A dialog box pops open saying "Unable to add module".

I searched for people having the same issue, but unfortunately a broad range of issues are mapped to this error message, making this very tedious.  From what I've read common problems are people trying to load 32 bit objects into a 64 bit Firefox, or vice-versa, and missing dependencies.

I went on to strace my process, and can confirm that the shared object is loaded, as well as one of the libraries it depends on, but not the second one.  From the path I see that my LD_LIBRARY_PATH is honored.


Expected results:

A dialog box pops open saying *why* it was unable to add the module.
Putting this into the Installer component as my best guess.
Component: Untriaged → Installer: XPInstall Engine
Product: Firefox → Core
This sounds more like a support issue than a bug in Firefox, you might have more luck asking in the newsgroups or on IRC.
Component: Installer: XPInstall Engine → Security: UI
Fwiw I disagree.  In the meantime I was able to build my security module (scute) in a way that Firefox could load it.  I still do not know what the issue was.

My point is that the error message is not helpful at all.
I experience this with Firefox 47.0.1 (32-bit, Windows) and the module "p11-capi": module won't load, I don't know why.  Same module loads okay in Firefox 45.2.0.
There's really nothing Firefox can say that will be helpful in figuring out what's wrong with a module when it can't load it - it basically needs to be debugged by a developer.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.