Hi All, Please let me know shall I need to take care the memory separately for the fips mode. Only in FIPS mode i am getting the below error while calling i2d_x509_sig(). Program received signal SIGSEGV, Segmentation fault. 0x00d9d045 in __memcpy_ssse3_rep () from /lib/libc.so.6 Thanks, Gayathri On Fri, Jan 30, 2015 at 7:09 PM, Gayathri Manoj <gayathri.annur at gmail.com> wrote: > Hi All, > > I am getting segfault while using i2d_X509_SIG() in FIPS mode. > (gdb) bt > #0 0x01f95045 in __memcpy_ssse3_rep () from /lib/libc.so.6 > #1 0x00466837 in asn1_ex_i2c () from /usr/local/cm/lib/libcrypto.so.1.0.1 > #2 0x00466a36 in asn1_i2d_ex_primitive () from > /usr/local/cm/lib/libcrypto.so.1.0.1 > #3 0x00466c4c in ASN1_item_ex_i2d () from > /usr/local/cm/lib/libcrypto.so.1.0.1 > #4 0x0046727a in asn1_template_ex_i2d () from > /usr/local/cm/lib/libcrypto.so.1.0.1 > #5 0x00466eb3 in ASN1_item_ex_i2d () from > /usr/local/cm/lib/libcrypto.so.1.0.1 > #6 0x004675f3 in ASN1_item_i2d () from > /usr/local/cm/lib/libcrypto.so.1.0.1 > #7 0x0045fb3e in i2d_X509_SIG () from /usr/local/cm/lib/libcrypto.so.1.0.1 > > unsigned char *ptr, *tmp=NULL; > len=i2d_X509_SIG(&sig,NULL); --> No issue > sig.algor->algorithm=OBJ_nid2obj(NID_sha1); > tmp = (unsigned char*) malloc(512+1); > ptr=tmp; > i2d_X509_SIG(&sig, &p); -->while calling secod time gettign core file. > > Its working fine in nonfips mode. But in FIPS getting core files. Please > let me know how can i solve this issue. > > Thanks, > Gayathri > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150202/615d8916/attachment.html>