Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Andy Polyakov
We were using OpenSSL in our product, but lately after testing on Vista, our application was was crashing (only in Vista) in SSL_Connect(). (It worked fine in XP) After debugging through OpenSSL we found that within RAND_poll() it was crashing in a win32 api function snap(TH32CS_SNAPALL,0).

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Jeffrey Altman
Shobhit Gupta wrote: Hi, We were using OpenSSL in our product, but lately after testing on Vista, our application was was crashing (only in Vista) in SSL_Connect(). (It worked fine in XP) After debugging through OpenSSL we found that within RAND_poll() it was crashing in a win32 api

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Andy Polyakov
The purpose of the CreateToolhelp32Snapshot function is to permit walking data structures that are constantly changing by creating a read-only copy that will not change. The returned HANDLE points to a unique snapshot. Walking the contents of the data structures in this snapshot is thread safe.

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Jeffrey Altman
Andy Polyakov wrote: The purpose of the CreateToolhelp32Snapshot function is to permit walking data structures that are constantly changing by creating a read-only copy that will not change. The returned HANDLE points to a unique snapshot. Walking the contents of the data structures in this

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Andy Polyakov
Jeffrey, The purpose of the CreateToolhelp32Snapshot function is to permit walking data structures that are constantly changing by creating a read-only copy that will not change. The returned HANDLE points to a unique snapshot. Walking the contents of the data structures in this snapshot is

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Jeffrey Altman
Andy Polyakov wrote: Yes, of course. It's just that as you answered yes to question has anyone else had problem I assumed that you ran into it at some point too. I mean my where was it targeted you as potential somebody else:-) A. The 'yes' applies to the complaints that have been reported on

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Shobhit Gupta
Thanks all for responses. Andy::I will try appending your piece of code in the end of md_rand.c -- I would like to see a minidump with heap for an instance of an application crashing in this circumstance. I will require the

Re: RAnd_Poll crashes in Vista

2007-10-07 Thread Jeffrey Altman
Shobhit Gupta wrote: Thanks all for responses. Andy::I will try appending your piece of code in the end of md_rand.c -- I would like to see a minidump with heap for an instance of an application crashing in this