Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NSPR4.1.2/NSS3.3.3 versus NSPR4.7/NSS3.12

3 views
Skip to first unread message

news.mozilla.org

unread,
Aug 14, 2009, 5:43:01 PM8/14/09
to
Hi All,

I have an SSL server application and an SSL client on an Windows XP machine.

The SSL server application seems to work perfectly in NSPR4.1.2/NSS3.3.2 but
crashes in NSPR4.7/NSS3.12(I did a build using MozillaBuild).

Below is the crash stack trace.
ssl3_SendApplicationData(sslSocketStr * 0x01328be8, const unsigned char *
0x01e5b08c, int 232, int 0) line 2094 + 49 bytes
ssl_SecureSend(sslSocketStr * 0x01328be8, const unsigned char * 0x01e5b08c,
int 232, int 0) line 1180 + 22 bytes
ssl_SecureWrite(sslSocketStr * 0x01328be8, const unsigned char * 0x01e5b08c,
int 232) line 1197 + 19 bytes
ssl_Write(PRFileDesc * 0x0131d128, const void * 0x01e5b08c, int 232) line
1487 + 21 bytes
PR_Write(PRFileDesc * 0x0131d128, const void * 0x01e5b08c, int 232) line 146
+ 20 bytes
ssl_send(void * 0x0131d128, char * 0x01e5b08c, unsigned long 232) line 171 +
20 bytes

In the server application we have 2 listening servers on 2 different ports.
These are initialized from 2 different code paths.
So NSS_Init is called twice. But this doesnt seem to cause a problem on
NSPR4.1.2/NSS3.3.3. So I am wondering how this can be a problem with the
server when running with NSPR4.7/NSS3.12

I even tried with NSPR4.6.4/NSS3.11.4 but i still get a crash.

Has anybody encountered a problem like this??

Thanks,
VT

news.mozilla.org

unread,
Aug 14, 2009, 6:28:12 PM8/14/09
to
I forgot to add.

The server is written using NSPR/NSS, but the client is written using
OpenSSL.

Thanks,
VT
"news.mozilla.org" <vinu....@pass-consulting.com> wrote in message
news:_sKdnUYoN7zSRxjX...@mozilla.org...

Wan-Teh Chang

unread,
Aug 14, 2009, 7:02:45 PM8/14/09
to news.mozilla.org, dev-te...@lists.mozilla.org

I have no idea what's wrong. Sorry. I hope you can figure out
the problem.

Wan-Teh

Nelson Bolyard

unread,
Aug 18, 2009, 5:18:34 PM8/18/09
to
On 2009-08-14 14:43 , VT wrote:
> I have an SSL server application and an SSL client on an Windows XP machine.
>
> The SSL server application seems to work perfectly in NSPR4.1.2/NSS3.3.2 but
> crashes in NSPR4.7/NSS3.12 (I did a build using MozillaBuild).

3.12.0 ? or 3.12.what?
Did you build a DEBUG build? or optimized?
What was the name of the directory in which the .OBJ files were placed?

> Below is the crash stack trace.
> ssl3_SendApplicationData(sslSocketStr * 0x01328be8, const unsigned char *
> 0x01e5b08c, int 232, int 0) line 2094 + 49 bytes
> ssl_SecureSend(sslSocketStr * 0x01328be8, const unsigned char * 0x01e5b08c,
> int 232, int 0) line 1180 + 22 bytes
> ssl_SecureWrite(sslSocketStr * 0x01328be8, const unsigned char * 0x01e5b08c,
> int 232) line 1197 + 19 bytes
> ssl_Write(PRFileDesc * 0x0131d128, const void * 0x01e5b08c, int 232) line
> 1487 + 21 bytes
> PR_Write(PRFileDesc * 0x0131d128, const void * 0x01e5b08c, int 232) line 146
> + 20 bytes
> ssl_send(void * 0x0131d128, char * 0x01e5b08c, unsigned long 232) line 171 +
> 20 bytes
>
> In the server application we have 2 listening servers on 2 different ports.
> These are initialized from 2 different code paths.
> So NSS_Init is called twice. But this doesnt seem to cause a problem on
> NSPR4.1.2/NSS3.3.3. So I am wondering how this can be a problem with the
> server when running with NSPR4.7/NSS3.12
>
> I even tried with NSPR4.6.4/NSS3.11.4 but i still get a crash.
>
> Has anybody encountered a problem like this??

Assuming you built 3.12.0, then yes. But I won't say more until you
confirm that you built 3.12.0

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/nss/lib/ssl/ssl3con.c&rev=NSS_3_12_RTM&mark=2094#2094

Let's discuss this in the NSS newsgroup: mozilla.dev.tech.crypto

0 new messages