On Thu, Apr 02, 2015 at 06:37:12AM -0400, Jiri B wrote:
> On Thu, Apr 02, 2015 at 11:05:34AM +0200, Landry Breuil wrote:
> > On Thu, Apr 02, 2015 at 05:02:23AM -0400, Jiri B wrote:
> > > Stuart pointed out to use gdb from ports, so...:
> > > 
> > > #0  0x000018989a959c6f in SHA512_Update () from 
> > > /usr/local/lib/libfreebl3.so.36.0
> > 
> > This is from NSS, while the previous frame is in libssl/libcrypto.
> > 
> > this rings a bell about
> > security/nss/patches/patch-nss_lib_freebl_blapi_h .... maybe the same
> > symbol conflict problem ?
> > 
> > (just a wild uncaffeinated guess)
> > Landry
> 
> I submitted bug upstream 
> https://bugs.documentfoundation.org/show_bug.cgi?id=90409
> Maybe they would help.

Can you try rebuilding nss with the following diff and see if it still
crashes in the same place ?

Landry
? nss-3.15.3.1-libfreebl3.so.33.3
? nss-3.15.3.1-libnss3.so.33.3
? nss-3.15.3.1-libnssckbi.so.33.3
? nss-3.15.3.1-libnssdbm3.so.33.3
? nss-3.15.3.1-libnssutil3.so.33.3
? nss-3.15.3.1-libsmime3.so.33.3
? nss-3.15.3.1-libsoftokn3.so.33.3
? nss-3.15.3.1-libssl3.so.33.3
? nss-3.15.4-libfreebl3.so.33.3
? nss-3.15.4-libnss3.so.33.3
? nss-3.15.4-libnssckbi.so.33.3
? nss-3.15.4-libnssdbm3.so.33.3
? nss-3.15.4-libnssutil3.so.33.3
? nss-3.15.4-libsmime3.so.33.3
? nss-3.15.4-libsoftokn3.so.33.3
? nss-3.15.4-libssl3.so.33.3
? nss-3.16-libfreebl3.so.34.1
? nss-3.16-libnss3.so.34.1
? nss-3.16-libnssckbi.so.34.1
? nss-3.16-libnssdbm3.so.34.1
? nss-3.16-libnssutil3.so.34.1
? nss-3.16-libsmime3.so.34.1
? nss-3.16-libsoftokn3.so.34.1
? nss-3.16-libssl3.so.34.1
? nss-3.17.3-libfreebl3.so.36.0
? nss-3.17.3-libnss3.so.36.0
? nss-3.17.3-libnssckbi.so.36.0
? nss-3.17.3-libnssdbm3.so.36.0
? nss-3.17.3-libnssutil3.so.36.0
? nss-3.17.3-libsmime3.so.36.0
? nss-3.17.3-libsoftokn3.so.36.0
? nss-3.17.3-libssl3.so.36.0
? nss-3.17.4-libfreebl3.so.36.0
? nss-3.17.4-libnss3.so.36.0
? nss-3.17.4-libnssckbi.so.36.0
? nss-3.17.4-libnssdbm3.so.36.0
? nss-3.17.4-libnssutil3.so.36.0
? nss-3.17.4-libsmime3.so.36.0
? nss-3.17.4-libsoftokn3.so.36.0
? nss-3.17.4-libssl3.so.36.0
? nss-sha-update.diff
? regress-amd64-3.15.4.log
? regress-amd64-3.16.log
? regress-amd64-3.17.4.log
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/nss/Makefile,v
retrieving revision 1.49
diff -u -r1.49 Makefile
--- Makefile    16 Mar 2015 19:15:44 -0000      1.49
+++ Makefile    2 Apr 2015 11:59:56 -0000
@@ -6,6 +6,7 @@
 
 VERSION=               3.17.4
 DISTNAME =             nss-${VERSION}
+REVISION =     0
 
 SO_VERSION=            36.0
 .for _lib in freebl3 nss3 nssckbi nssdbm3 nssutil3 smime3 softokn3 ssl3
Index: patches/patch-nss_lib_freebl_blapi_h
===================================================================
RCS file: /cvs/ports/security/nss/patches/patch-nss_lib_freebl_blapi_h,v
retrieving revision 1.2
diff -u -r1.2 patch-nss_lib_freebl_blapi_h
--- patches/patch-nss_lib_freebl_blapi_h        9 Jan 2014 20:09:44 -0000       
1.2
+++ patches/patch-nss_lib_freebl_blapi_h        2 Apr 2015 11:59:56 -0000
@@ -3,13 +3,19 @@
 From firefox in pkgsrc:
 SHA1_Update conflicts with openssl which may be dynamically loaded
 
---- nss/lib/freebl/blapi.h.orig        Fri Jan  3 20:59:10 2014
-+++ nss/lib/freebl/blapi.h     Mon Jan  6 22:46:56 2014
-@@ -1189,6 +1189,8 @@ extern void SHA1_DestroyContext(SHA1Context *cx, PRBoo
+--- nss/lib/freebl/blapi.h.orig        Thu Jan 22 20:49:26 2015
++++ nss/lib/freebl/blapi.h     Thu Apr  2 13:59:37 2015
+@@ -1189,6 +1189,14 @@ extern void SHA1_DestroyContext(SHA1Context *cx, PRBoo
  */
  extern void SHA1_Begin(SHA1Context *cx);
  
 +#define SHA1_Update NSS_SHA1_Update
++#define SHA224_Update NSS_SHA224_Update
++#define SHA256_Update NSS_SHA256_Update
++#define SHA384_Update NSS_SHA384_Update
++#define SHA512_Update NSS_SHA512_Update
++#define MD5_Update NSS_MD5_Update
++#define MD2_Update NSS_MD2_Update
 +
  /*
  ** Update the SHA-1 hash function with more data.

Reply via email to