javascript crypto.signText makes Iceweasel crash



Hello!

I'm trying to use the _javascript_ function crypto.signText().
My code is :
<html>
<head>
<script>
var foo = crypto.signText("Test signature", "ask");
</script>
</head>
<body>
This is an HTML page<p>
<script>
document.write(foo);
</script>
</body>
</html>

I have imported successfully several certificates and my CA certificate in Iceweasel.
When I choose a user in the dialog box with the list of certificates and enter the right password, Iceweasel just crashes without an error message.

I tried to uninstall and reinstall Iceweasel, to delete and readd my certificates, to use others certificates, but nothing worked.

I have Iceweasel version 3.5.16.

I tried to launch Iceweasel in the debug mode and printed backtrace of all stack frames :
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb7d82751 in raise () from /lib/i686/cmov/libc.so.6
#2  0xb7d85b82 in abort () from /lib/i686/cmov/libc.so.6
#3  0xb24a2e7a in SECITEM_CopyItem_stub (arena=0x0, to=0xabd2a5c8, from=0xabd42028) at stubs.c:474
#4  0xb249008b in init_blinding_params (key=<value optimized out>, output=<value optimized out>, input=0xabd24900 "", check=1) at rsa.c:582
#5  get_blinding_params (key=<value optimized out>, output=<value optimized out>, input=0xabd24900 "", check=1) at rsa.c:653
#6  rsa_PrivateKeyOp (key=<value optimized out>, output=<value optimized out>, input=0xabd24900 "", check=1) at rsa.c:726
#7  0xb24f8fd0 in RSA_PrivateKeyOpDoubleChecked (key=0xabd42018,
    output=0xabd24880 "\327 R\325\024\314\323f\022\360\301\306E\215\037\066\224\021\227\360\337|0gp\301v\033Չ\252\310\003!\346l\235\066t+\271\265\307\fsy\270\237x\aȔ~\b,\322#s\237\275\203}\201\375\320\342\071\070k\260q\236\035\261\263\232\370.>\353u\361\366cɮ[>4\211^\264n5\262\274\306e^\230;FN\300/j\311P\360\316)\311GK\257\306Ʋ\256\311-", <incomplete sequence \336>, input=0xabd24900 "") at loader.c:244
#8  0xb24ed7a8 in RSA_Sign (key=0xabd42010,
    output=0xabd24880 "\327 R\325\024\314\323f\022\360\301\306E\215\037\066\224\021\227\360\337|0gp\301v\033Չ\252\310\003!\346l\235\066t+\271\265\307\fsy\270\237x\aȔ~\b,\322#s\237\275\203}\201\375\320\342\071\070k\260q\236\035\261\263\232\370>\353u\361\366cɮ[>4\211^\264n5\262\274\306e^\230;FN\300/j\311P\360\316)\311GK\257\306Ʋ\256\311-", <incomplete sequence \336>, output_len=0xbfff8268, maxOutputLen=128, input=0xabd23010 "0!0\t\006\005+\016\003\002\032\005",
    input_len=35) at rsawrapr.c:483
#9  0xb24e2fae in NSC_Sign (hSession=16777219, pData=0xabd23010 "0!0\t\006\005+\016\003\002\032\005", ulDataLen=35,
    pSignature=0xabd24880 "\327 R\325\024\314\323f\022\360\301\306E\215\037\066\224\021\227\360\337|0gp\301v\033Չ\252\310\003!\346l\235\066t+\271\265\307\fsy\270\237x\aȔ~\b,\322#s\237\275\203}\201\375\320\342\071\070k\260q\236\035\261\263\232\370>\353u\361\366cɮ[>4\211^\264n5\262\274\306e^\230;FN\300/j\311P\360\316)\311GK\257\306Ʋ\256\311-", <incomplete sequence \336>, pulSignatureLen=0xbfff82dc) at pkcs11c.c:2292
#10 0xb6c2dabe in PK11_Sign (key=0xabd2d010, sig=0xbfff8368, hash=0xbfff8374) at pk11obj.c:768
#11 0xb6c1616a in SGN_End (cx=0xabd13100, result=0xbfff8448) at secsign.c:246
#12 0xb6c163a8 in SEC_SignData (res=0xbfff8448,
    buf=0xabd09ac0 "1]0\030\006\t*\206H\206\367\r\001\t\003\061\v\006\t*\206H\206\367\r\001\a\001\060\034\006\t*\206H\206\367\r\001\t\005\061\017\027\r110329121510Z0#\006\t*\206H\206\367\r\001\t\004\061\026\004\024\v\356\273IF\n\376\276\241%\227N1\314\f\203d\275P", <incomplete sequence \335>, len=95,
    pk=0xabd2d010, algid=SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION) at secsign.c:300
#13 0xb6ce36ad in sec_pkcs7_encoder_sig_and_certs (cinfo=<value optimized out>, pwfn=<value optimized out>, pwfnarg=0xad003c50) at p7encode.c:1009
#14 0xb6ce394c in SEC_PKCS7PrepareForEncode (cinfo=0xabd70810, bulkkey=0x0, pwfn=0, pwfnarg=0xad003c50) at p7encode.c:1198
#15 0xb6ce39d7 in SEC_PKCS7Encode (cinfo=0xabd70810, outputfn=0xb76a5942, outputarg=0xbfff88c4, bulkkey=0x0, pwfn=0, pwfnarg=0xad003c50) at p7encode.c:1239
#16 0xb76a57a8 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#17 0xb78511e7 in NS_InvokeByIndex_P () from /usr/lib/xulrunner-1.9.1/libxul.so
#18 0xb705f4c6 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#19 0xb70665a4 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#20 0xb6d5b6b7 in js_Invoke () from /usr/lib/libmozjs.so.2d
#21 0xb6d4ba5b in ?? () from /usr/lib/libmozjs.so.2d
#22 0xb6d5afad in ?? () from /usr/lib/libmozjs.so.2d
#23 0xb6d21577 in JS_EvaluateUCScriptForPrincipals () from /usr/lib/libmozjs.so.2d
#24 0xb74340c1 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#25 0xb73275cf in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#26 0xb732770a in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#27 0xb73286a1 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#28 0xb732648e in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#29 0xb73937e1 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#30 0xb7392854 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#31 0xb73aeb22 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#32 0xb73af5bf in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#33 0xb73af7c7 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#34 0xb714fb3a in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#35 0xb71517b9 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#36 0xb7152c39 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so
#37 0xb7151199 in ?? () from /usr/lib/xulrunner-1.9.1/libxul.so


Anyone can help me?

Marion
-- To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx Archive: http://lists.debian.org/ea-mime-4d92de7f-376d-2f2cc8b0@xxxxxxxxxxxxxxxxxxxxxx

Relevant Pages

  • Re: javascript crypto.signText makes Iceweasel crash
    ... (ugh, please, avoid using html formatted messages) ... of certificates and enter the right password, Iceweasel just crashes ... certificates, to use others certificates, but nothing worked. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: risks of using net apps as a user in wheel or adm?
    ... Would it be better to have a separate user not a member of any special ... some risk having any user on a box run iceweasel, javascript, and flash? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Iceweasel annoyance
    ... the web page Iceweasel pops up a little box that says "This link needs ... And you MUST use this browser window to ... in a box like you can when you edit your Applications menu. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Iceweasel: Cant find helper application
    ... I have a default installation of Iceweasel 3.0.6 on Lenny and when I go to ... You didn't mention anything about which version of either Iceweasel ... Applications which would force an 'ask' dialogue next time that MIME type ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • problem with libxul.so
    ... I get issue when i try to launch both application Epiphany and Iceweasel. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)