Closed Bug 457074 Opened 17 years ago Closed 17 years ago

TB won't start with Estonian ID card and OpenSC PKCS#11 module

Categories

(NSS :: Libraries, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 444974

People

(Reporter: ezh, Unassigned)

Details

Attachments

(3 files)

Attached file The broken file
1. Had the Shredder 20090924 crashed. 2. After that it would not start. It loads a thunderbird.exe process for 18,5Mb and thats all. 3. Started to delete files from profile and found that deleting secmod.db fixed the problem. 4. Returning the old file let the TB not to start, so the problem is defenetly in that file. Attaching the broken file. Maybe it helps.
secmod.db is the security database, so I expect this is more of a problem with how the security storage is working than with what Thunderbird is doing. Moving to the core security component.
Component: General → Security
Product: Thunderbird → Core
QA Contact: general → toolkit
Assignee: nobody → nobody
Component: Security → Libraries
Product: Core → NSS
QA Contact: toolkit → libraries
Version: Trunk → unspecified
The secmod.db file instructs your mozilla program to load the following shared library (.dll file) and call some of its functions. opensc-pkcs11 library name: C:\WINDOWS\system32\opensc-auth-pkcs11.dll I suspect that the problem was caused by that shared library. When you removed the secmod.db file, your program no longer attempted to load that shared library or use any of its functions, and your program worked OK. Presumably at some time in the past you installed some smart card or other crypto device on your system, and that installation configured your Mozilla program to use that shared library. Go ahead and remove that file. Toss it. Your program will generate a new one that will not try to use that shared library, and it will be happy. Perhaps reinstalling the software for the crypto device that installed that shared library will make it work again. I see no NSS problem here.
one of nss/psm needs to report missing pkcs11 modules and not treat it as a fatal error. it's probably a bug in psm, could you please help point out where the bug is?
missing modules cause no problems. Bad modules cause problems. Comment 0 doesn't really describe the failure. "That's all", whatever that means. I'm guessing it crashed when it loaded that DLL and called it. Nothing NSS/PSM can do about a crash in a module. Might also be a dup or variant of bug 444974. see bug 444974 comment 37 and later.
Yes I have Estonian ID-card installed. Using it to access online banks. onlibe voting system, medical, tax and other goverment systems etc. I assume Firefox uses the same library and it does not had any problems starting up, as TB did before crashing.
What exact version of TB crashes like this? What exact version of FF does not crash? :) Would you be willing to be a "guinea pig" (tester) for a patched file that may work around this, or may give us more information about the problem?
Summary: secmod.db prevents from starting up TB → TB won't start with Estonian ID card and OpenSC PKCS#11 module
All was fine for 3 years I'm using the ID-card, on many computers. All was fine and with Shredder 20090924. But after the crash it wont load anymore. I installed Shredder 20090925 and had the same problem, I started to figure out what may couze this and found secmod.db. Here is the ID-card homepage with software installation: http://www.id.ee/?lang=en BTW installing SH 20090924 above SH 20090919 for some reason asked for reboot, and installing SH 20090925 once again. Dunno if this relays.
May the crash just break the secmod.db in some way?
There's nothing wrong with the secmod.db file. The secmod.db file tells your program (Firefox, Thunderbird, shredder, SeaMonkey, etc.) to use the software for your Estonian ID card. The problem happens only when that software is used. When you remove the secmod.db file, your program stops using the software for the Estonian ID card, and the problem goes away. I'm working with another user who is having a similar problem to try to diagnose the problem. I'll report here if any new developments occur.
As I said I had no problem for 3 years. Only after the last crash... BTW I have a new file created in TB profile after I deleted the old one. I attach it here.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
I believe it's the same crash as FF does time to time for me...
fwiw. http://developer.mozilla.org/en/docs/How_to_get_a_stacktrace_with_WinDbg when you get that dialog, use windbg (follow the general symbols instructions above), debug>attach to process try using !analyze -v -f I'm not certain if it will work, if it fails, do this: ~* kp attach whichever gives useful output/
Attachment #340752 - Attachment description: The new created file. → The new secmod.db file.
The screen shot in comment 14 shows that the crash occurred in code that came from a source file named card.c. But there is no source file named card.c anywhere in Firefox or Thunderbird. Therefore, the crash is not occurring in Thunderbird or Firefox source code, but rather in source code from some other software, most likely the ee-id software. There is nothing that the Thunderbird or Firefox developers can do to correct a crash in the ee-id software. Please report this problem to the makers of that software.
The crash shown in comment 14 is NOT a duplicate of bug 444974. Bug 444974 is a crash in Mozilla code. The crash shown in comment 14 is not in Mozilla code.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: