Dear Kyle,
  Many thanks for your response.
  
> There is no 'debug mode' of OpenSSL. However, please note that> OpenSSL 
> doesn't check its pointers to make sure that they're valid> before trying to 
> use them.> > So, how is it aborting? Is it aborting due to invalid memory 
> access?> Is it aborting due to a breakpoint? Or is it just failing and your> 
> code doesn't know how to handle it so it just abort()s?  
  I haven't modify any code of openssl. So I don't know why it aborted.
> Are you dealing with any kind of multiple threading? (I know embedded> 
> platforms generally don't have threads, but I have to ask.)  I don't think it 
> has multiple threading. 
 
  The version I used previously is 0.9.8a. So I tried to update it to the
latest version 0.9.8i. And it finally works fine. Maybe there are some 
enhancement or bug fix in later release.
 
I also tried some release before i. And I found the problem was disapeared 
from version 0.9.8f. I checked change log, and found following record.
 *) Changes to avoid need for function casts in OpenSSL: some compilers     
(gcc 4.2 and later) reject their use.     [Kurt Roeckx <[EMAIL PROTECTED]>, 
Peter Hartley <[EMAIL PROTECTED]>,      Steve Henson]I don't know whether the 
aborting was caused by that case. 
BTW, the c library that I used was uClibc 0.9.27.
 
Anyway, thanks very much for your help.
 
Elven
> Date: Wed, 8 Oct 2008 00:47:33 -0700> From: [EMAIL PROTECTED]> To: 
> openssl-users@openssl.org> Subject: Re: how to enable debug mode of openssl> 
> > There is no 'debug mode' of OpenSSL. However, please note that> OpenSSL 
> doesn't check its pointers to make sure that they're valid> before trying to 
> use them.> > So, how is it aborting? Is it aborting due to invalid memory 
> access?> Is it aborting due to a breakpoint? Or is it just failing and your> 
> code doesn't know how to handle it so it just abort()s?> > Are you dealing 
> with any kind of multiple threading? (I know embedded> platforms generally 
> don't have threads, but I have to ask.)> > Usually, an error like this means 
> that some data structure that the> library expects to be initialized is not, 
> in fact, initialized> properly, and is pointing to uninitialized or 
> unallocated memory.> > However, you might have a different problem. If you do 
> not have an> actual stdio implementation (many embedded systems don't provide 
> one),> you shouldn't be getting any calls to that function.> > Do you have a 
> backtrace of the function call stack?> > -Kyle H> > 2008/10/7 曹飞 <[EMAIL 
> PROTECTED]>:> > I am using openssl in arm embedded platform. I want to 
> support https, so it> > will use openssl. But I have encouterd some problem. 
> The application aborted> > for some unknown reason. I tried to trace the 
> problem and found the it> > aborted on call "PEM_read_bio_X509" (ssl_rsa.c). 
> And I can't trace deep> > more.> >> > So is there any way to enable debug 
> mode of openssl so that I can trace more> > deeply to find out the problem?> 
> >> > Thanks.> > Elven> >> > ________________________________> > 
> MSN上小游戏,工作休闲两不误! 马上就开始玩!> 
> �zt�,���-��i��0Š^��%����Һ�h���X������^��%�ǫ��^��%��&#0;��&jם.+-1�ځ��j:+v�������h�
_________________________________________________________________
新版手机MSN,满足你多彩需求!参加抢鲜体验活动,领取特色奖品!
http://mobile.msn.com.cn/

Reply via email to