<div dir="ltr">Hello All,<div><br></div><div>I am trying to use RSA_generate_key_ex function to generate the RSA key pairs on RHEL 7.2 PPCle. I am observing crash when i link the source code with Openssl 3.0 whereas same works if i link with Openssl 1.0.2</div><div><br></div><div>Below is configure command used for compiling openssl</div><div>./Configure no-shared threads --prefix=/home/testuser/OpenSSL/Build --openssldir=/home/testuser/OpenSSL/Build --libdir=lib linux-ppc64le -Wa,--noexecstack<br clear="all"><div><br></div><div>I am attaching the source code I am using for reference. </div><div>Below is stack trace observed </div><div><br></div><div>Program received signal SIGILL, Illegal instruction.<br></div><div>#0  0x0000000010000004 in ?? ()<br>#1  0x000000001005afdc in ossl_pool_acquire_entropy ()<br>#2  0x00000000101fed14 in seed_get_seed ()<br>#3  0x00000000102be844 in get_entropy ()<br>#4  0x00000000102bee8c in ossl_prov_drbg_instantiate ()<br>#5  0x00000000101f9b2c in drbg_ctr_instantiate_wrapper ()<br>#6  0x00000000100ff2e0 in EVP_RAND_instantiate ()<br>#7  0x0000000010031c18 in rand_new_drbg ()<br>#8  0x0000000010032bd0 in RAND_get0_primary ()<br>#9  0x00000000100333f8 in RAND_get0_private ()<br>#10 0x0000000010033558 in RAND_priv_bytes_ex ()<br>#11 0x00000000100926cc in BN_priv_rand_ex ()<br>#12 0x0000000010090b78 in BN_generate_prime_ex2 ()<br>#13 0x0000000010035a90 in RSA_generate_multi_prime_key ()<br>#14 0x00000000100361b4 in RSA_generate_key_ex ()<br>#15 0x00000000100048b8 in generate_key (keysize=1024, pub_key=0x7fffffffef38, pri_key=0x7fffffffef40) at generatekey.c:25<br>#16 0x0000000010004b78 in main () at generatekey.c:74<br></div><div><br></div><div>I am compiling both 1.0.2j and 3.0 with same configure command and on the same machine(i.e. RHEL 7).  </div><div><br></div><div>Any suggestion or pointer would be highly helpful.</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Regards, <br>MINAL PATIL<br>Mail :<a href="mailto:minu.patil@gmail.com" target="_blank">minu.patil@gmail.com</a></div></div></div></div></div>