Open Bug 1533422 Opened 6 years ago Updated 7 months ago

Crash in [@ libpkcs11-dnietif.so@0xb364]

Categories

(External Software Affecting Firefox :: Other, defect, P3)

Unspecified
macOS

Tracking

(firefox-esr60 affected, firefox65 wontfix, firefox66 wontfix, firefox67 fix-optional, firefox68 wontfix, firefox69 fix-optional, firefox70 fix-optional)

REOPENED
Tracking Status
firefox-esr60 --- affected
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- fix-optional
firefox68 --- wontfix
firefox69 --- fix-optional
firefox70 --- fix-optional

People

(Reporter: marcia, Unassigned)

Details

(4 keywords)

Crash Data

Attachments

(2 files)

This bug is for crash report bp-941a9a81-71a6-49f7-b4a9-715e30190307.

Seen while looking at 65 release crash stats: https://bit.ly/2VOabt1. Although not new to 65, this signature seems to have risen over time and is at the top of Mac specific crashes in 65.0.2. Lots of the comments are from users in the ES-ES locale.

Comments:

  • Mozilla has closed suddenly on my MacBook Pro (mid 2014) with macOS X v. 10.14.3 (Mojave) when trying to login with my DNIe
  • working with smart card reader
Top 10 frames of crashing thread:

0 libpkcs11-dnietif.so libpkcs11-dnietif.so@0xb364 
1 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x2e8c0 
2 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x3794 
3 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x2e38e 
4 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x11825 
5 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x115cb 
6 libpkcs11-dnietif.so libpkcs11-dnietif.so@0x2fa13 
7 libnss3.dylib PK11_GetTokenInfo security/nss/lib/pk11wrap/pk11slot.c:1855
8 XUL nsPK11Token::refreshTokenInfo security/manager/ssl/nsPK11TokenDB.cpp:56
9 XUL nsNSSCertificate::GetTokenName security/manager/ssl/nsPK11TokenDB.cpp:25

Ruben and Isabel - Do either of you use a DNIe and a Mac, and if so are you crashing? Thanks in advance.

Flags: needinfo?(nukeador)
Flags: needinfo?(irios.mozilla)

Sorry I don't use the DNIe or a Mac.

Flags: needinfo?(nukeador)

Another PKCS#11 module crash. We probably need to determine the company responsible for this module and contact them.

I don't use it in a regular basis but I have it and a mac, I don't have a smart scan though but I will get one...
I'm not very familiar with those crash reports, trying to understand the steps for reproducing the bug, is there anything I should do specifically?
Any info about the smart scan used? is it always the same model?
Thanks!

Flags: needinfo?(irios.mozilla) → needinfo?(mozillamarcia.knous)

Isabel: There are some comments in the crash reports but I don't think we have exact STR. Mac 10.14, 10.13 and 10.12 are affected. Most of the users are on the release channel and are using 65.x. Here are some of the comments:

  • I installed the electronic din and put the password and restart firefox and it gives me the notice to re-enter the password
  • I'm trying to install digital certificates from the DNIe and the browser closes
Crash Signature: [@ libpkcs11-dnietif.so@0xb364] → [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5]
Flags: needinfo?(mozillamarcia.knous)

Marcia, I think I was able to reproduce the crash.
These are the steps:
-Install dnie
-With the smart card and the dnie in it close all tabs
-Close firefox

Then the message attached is shown, logs attached too.

Please let me know how I can help to debug this issue further if it looks like the one reported.
Thanks!

Flags: needinfo?(mozillamarcia.knous)

Thanks very much Isabel. Dana - How do we find out the company responsible for the module? Thanks.

Flags: needinfo?(mozillamarcia.knous) → needinfo?(dkeeler)

Let me know if you need more info about the smart scan, this is Coolbox and has a serial number...

That's the national police website which is where you go to get your DNIe and passport but not sure they are responsible for the module. I can see there is a technical office support contact where you can send an email, that might be a good site to ask: oficinatecnica@dnielectronico.es

(In reply to Isabel Rios[:isabel_rios] from comment #12)

That's the national police website which is where you go to get your DNIe and passport but not sure they are responsible for the module. I can see there is a technical office support contact where you can send an email, that might be a good site to ask: oficinatecnica@dnielectronico.es

We probably need someone who speaks Spanish to help here especially for any outreach - but I think we need to understand exactly what we need to ask for. I don't know much about DNIe and how it works.

Dana, if we get in touch with the site, do we have more info for them? Do we understand the crash? Not sure what's typical or useful in cases like these.

Flags: needinfo?(dkeeler)

From what I can tell, their PKCS#11 module (basically a third-party library that gets loaded into Firefox's memory space) crashes when Firefox calls various functions the module is supposed to implement (so far I've seen C_GetSlotInfo, C_GetTokenInfo, C_CloseSession, and C_CloseAllSessions).

Flags: needinfo?(dkeeler)

(In reply to Marcia Knous [:marcia - needinfo? me] from comment #13)

We probably need someone who speaks Spanish to help here especially for any outreach - but I think we need to understand exactly what we need to ask for. I don't know much about DNIe and how it works.

Let me know if you need help from my side on this or anything else I could do...Thanks

Crash Signature: [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] → [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-fnmtdnie.so@0xb364]

Adding 68 as affected. Still a relatively small volume crash on 66.

Component: Security: PSM → Other
Product: Core → External Software Affecting Firefox
Version: 65 Branch → unspecified

The priority flag is not set for this bug.
:marcia, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mozillamarcia.knous)
Flags: needinfo?(mozillamarcia.knous)
Priority: -- → P3

Bulk change of P3 carryover bugs to wontfix for 68.

I was asked for an update regarding this bug at the All hands. We are still having crashes, but in small volume. Until or unless the volume increases, I assume this will remain a low priority bug.

In this case, 3rd party code is crashing. Since that code is loaded in Firefox's process space, it causes Firefox to crash. We can't directly fix it, but something like bug 1396030 would at least mitigate the issue. That's a lot of work and we're a long way from shipping it, unfortunately. I suppose we could at least inform the user that loading this module may cause Firefox to be unstable, but that's more of a product/front-end decision.

Happy to take a patch for 70 but since this is triaged and set to P3 priority I'm setting it as fix-optional.
That will remove the bug from weekly regression triage.

Crash Signature: [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-fnmtdnie.so@0xb364] → [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-dnietif.so@0xb2c4] [@ libpkcs11-dnietif.so@0x2f885] [@ libpkcs11-fnmtdnie.so@0xb364]

These crashes are still happening, almost entirely in the es-ES locale. As noted above, they're associated with use of the Spanish government's "DNIe" -- an "electronic" equivalent of the Spanish national identity card. After some digging around, I found a page from which to download current versions of the module that's crashing:

https://www.dnielectronico.es/PortalDNIe/PRF1_Cons02.action?pag=REF_1113

After running the installer for one of these, it brings up a page of instructions (in Spanish) on (among other things) how to load the libpkcs11-dnietif.so driver (which you've just installed) into Firefox as a "security device".

I'm not sure, though, how you'd go about triggering this bug's crashes without actually possessing a Spanish "electronic national identity card".

Someone from Mozilla should try contacting the Cuerpo Nacional de Policía (https://www.dnielectronico.es).

As best I can tell, the email address for the Servicio de Atención al Usuario del DNI/DNI User Support Service is sac@dnielectronico.es.

https://support.mozilla.org/en-US/questions/1249821
https://www.dnielectronico.es/PortalDNIe/PRF1_Cons02.action?pag=REF_2110&id_menu=41

Severity: critical → S2

Since the crash volume is low (less than 15 per week), the severity is downgraded to S3. Feel free to change it back if you think the bug is still critical.

For more information, please visit auto_nag documentation.

Severity: S2 → S3
Keywords: spain

Although the volume is low, it affects only Spanish citizens running macOS during a sensitive operation mostly on ESR like creating official documents, paying taxes… so regionally this may be more impacting than it looks. gstoll, is there something we could do to mitigate these crashes? Maybe blocking the loading of outdated modules?

Flags: needinfo?(gstoll)
Crash Signature: [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-dnietif.so@0xb2c4] [@ libpkcs11-dnietif.so@0x2f885] [@ libpkcs11-fnmtdnie.so@0xb364] → [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-dnietif.so@0xb2c4] [@ libpkcs11-dnietif.so@0x2f885] [@ libpkcs11-fnmtdnie.so@0xb364] [@ libpkcs11-dnie.so@0xb6b3 ]

These crashes happen overwhelmingly on ESR versions of Firefox, and on one very old version of macOS (10.13). That's odd, since there's no reason to think this is a bug in Mozilla code, or an OS bug. At a guess, the crashes happen mostly on "institutional" machines -- ones whose owners strictly control software upgrades, and rarely perform them.

https://crash-stats.mozilla.org/search/?modules_in_stack=~dnie&platform=Mac%20OS%20X&date=%3E%3D2024-01-15T14%3A55%3A00.000Z&date=%3C2024-04-15T14%3A55%3A00.000Z&_facets=signature&_facets=version&_facets=platform_version&_facets=proto_signature&_sort=-date&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-platform_version

Unfortunately our options are limited here - we don't have the ability to block libraries on Mac, although bug 1858573 might allow this. We are in the process of reaching out to the DNI User Support Service to see if they can address this.

Flags: needinfo?(gstoll)

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME

This bug still has crashes. Socorro changed how unsymbolicated signatures are recorded.

Status: RESOLVED → REOPENED
Crash Signature: [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-dnietif.so@0xb2c4] [@ libpkcs11-dnietif.so@0x2f885] [@ libpkcs11-fnmtdnie.so@0xb364] [@ libpkcs11-dnie.so@0xb6b3 ] → [@ libpkcs11-dnietif.so@0xb364] [@ libpkcs11-dnietif.so@0x2f8b5] [@ libpkcs11-dnietif.so@0xb2c4] [@ libpkcs11-dnietif.so@0x2f885] [@ libpkcs11-fnmtdnie.so@0xb364] [@ libpkcs11-dnie.so@0xb6b3 ] [@ libpkcs11-dnietif.so ]
Resolution: WORKSFORME → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: