Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-04 Thread Wayming Zhang via RT
You need to run "ldd -v" on your executable to check why your binary has dependency on libptcorsdk.so.2, and then check your linking command if the dependency could be removed. A workaround you could give a try is to set LD_PRELOAD to forcibly load libssl before libptcoresdk if the dependency

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-04 Thread Wayming Zhang
You need to run "ldd -v" on your executable to check why your binary has dependency on libptcorsdk.so.2, and then check your linking command if the dependency could be removed. A workaround you could give a try is to set LD_PRELOAD to forcibly load libssl before libptcoresdk if the dependency

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-04 Thread Wayming Zhang
You need to run "ldd -v" on your executable to check why your binary has dependency on libptcorsdk.so.2, and then check your linking command if the dependency could be removed. A workaround you could give a try is to set LD_PRELOAD to forcibly load libssl before libptcoresdk if the dependency

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-01 Thread Matt Caswell via RT
On 01/10/15 15:18, Tiantian Liu via RT wrote: > Hi, > > Good morning! Thanks for your response. > > I configured my OpenSSL with '-d' option to enable the debugging information. > Where I don't know how to use it during my application running. Which version of OpenSSL did you download? My

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-01 Thread Tiantian Liu via RT
[mailto:r...@openssl.org] Sent: October-01-15 10:58 AM To: Tiantian Liu Cc: openssl-dev@openssl.org Subject: Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function You have just leaked your credit card number to the internet. I'd suggest you cancel your card

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-01 Thread Tiantian Liu via RT
eded)... > make[1]: Entering directory `/home/tyler28/openssl-1.0.1p/test' > make[1]: Nothing to be done for `generate'. > make[1]: Leaving directory `/home/tyler28/openssl-1.0.1p/test' > > Configured for debug-linux-elf. > >

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-01 Thread Viktor Dukhovni
On Thu, Oct 01, 2015 at 06:43:17PM +, Tiantian Liu via RT wrote: > #3 0x004c5e98 in tls1_new (s=0xb4964ec8) at t1_lib.c:154 > #4 0x00300376 in SSL_new () from /usr/lib/libptcoresdk.so.2 > > I found my application called SSL_new from /usr/lib/libptcoresdk.so.2, which > is third party

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-10-01 Thread Tiantian Liu via RT
like /usr/lib/libssl.so.1.0.0. right? Thanks, Tyler -Original Message- From: Matt Caswell via RT [mailto:r...@openssl.org] Sent: October-01-15 10:52 AM To: Tiantian Liu Cc: openssl-dev@openssl.org Subject: Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-30 Thread Wayming Zhang
September-29-15 10:55 AM To: Tiantian Liu Cc: openssl-dev@openssl.org Subject: Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function On 29/09/15 15:45, Tiantian Liu via RT wrote: Hi Matt, Thanks for prompt response! While I confirm with you that my applicatio

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-30 Thread Wayming Zhang via RT
eference to 'pthread_mutex_trylock' > Then I added '-lpthread' into the FLAG in Makefile. Then I went through and > compiled successfully. > > Then I will ran my application again to see how SSL_connect() crash > Any requirement for me to start my application with OpenSSL (with

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Matt Caswell via RT
I agree with everything Viktor said. In particular that you should continue to use SSLv23_method. Some additional comments below: On 28/09/15 16:31, Tiantian Liu via RT wrote: > sslerror = SSL_get_error(ssl, res); > if (sslerror == SSL_ERROR_WANT_READ)

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Matt Caswell via RT
On 29/09/15 14:56, Tiantian Liu via RT wrote: > Hi Matt & Vi > > I tried the SSLv23_method(), and precluded/excluded all SSLv2, SSLv3, TLSv1. > I only enabled the TLSv1.2 by SSL_CTX_set_option(). > You can see my previous code: > > /*setup up by SSLv23_method*/ > meth = SSLv23_method(); >

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Tiantian Liu via RT
-dev@openssl.org Subject: Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function I agree with everything Viktor said. In particular that you should continue to use SSLv23_method. Some additional comments below: On 28/09/15 16:31, Tiantian Liu via RT w

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Matt Caswell via RT
On 29/09/15 15:45, Tiantian Liu via RT wrote: > Hi Matt, > Thanks for prompt response! > While I confirm with you that my application crashed INSIDE the SSL_connect() > function. Your previous email indicated it was not crashing with SSLv23_method(): "While the above code didn't work. I

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Tiantian Liu via RT
32 >._D...2 Start Time: 1443544275 Timeout : 7200 (sec) Verify return code: 20 (unable to get local issuer certificate) --- closed Thanks, Tyler -Original Message- From: Matt Caswell via RT [mailto:r...@openssl.org] Sent: September-29-15 10:05 AM To: Tiantia

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-29 Thread Tiantian Liu via RT
...@openssl.org] Sent: September-29-15 10:55 AM To: Tiantian Liu Cc: openssl-dev@openssl.org Subject: Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function On 29/09/15 15:45, Tiantian Liu via RT wrote: > Hi Matt, > Thanks for prompt response! > While I

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-28 Thread Tiantian Liu via RT
Hi, I updated the ticket [openssl.org #4060] with some code and log file. I have to tell you, the previous SSLv23_method, I commented it out this time, worked fine with me and SSL server. I just changed that line to TLSv1_2_method. Now my application always crash when I call SSL_connect(). At

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-28 Thread Tiantian Liu via RT
Hi, Good morning! I want to know how it's going with the ticket [openssl.org #4060]? The ticket is : "a crash happened inside SSL_Connect function" Thanks, Tyler -Original Message- From: The default queue via RT [mailto:r...@openssl.org] Sent: September-24-15 12:08 PM To: Tiantian

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-28 Thread Salz, Rich via RT
> I want to know how it's going with the ticket [openssl.org #4060]? Nobody's looked at it yet. You need to include a backtrace. And a way to reproduce it (sample code) before anyone will really be interested. ___ openssl-dev mailing list To

Re: [openssl-dev] [openssl.org #4060] AutoReply: a crash happened inside SSL_Connect function

2015-09-28 Thread Viktor Dukhovni
On Mon, Sep 28, 2015 at 03:31:40PM +, Tiantian Liu via RT wrote: > I updated the ticket [openssl.org #4060] with some code and log file. > I have to tell you, the previous SSLv23_method, I commented it out this > time, worked fine with me and SSL server. I just changed that line to >