Detail: When writing a function to generate a CSR via OpenSSL on IA-64, the X509_REQ_set_subject_name function eventually calls x509_name_ex_d2i which causes a segmentation fault under IA-64. This code works properly on Solaris, IRIX, win32 (cygwin), and x86_64
Additional Details:
OpenSSL compiled debug allows the function to operate properly without
crashing
Inserting printf("here") statements between lines of x509_name_ex_d2i also
allows the function to operate without seg fault when built normally
Possibly Known Related Cases:
http://www.mail-archive.com/[email protected]/msg20993.html
Test Setup:
Linux 2.6.5-7.252.PTF-sn1 SMP
Openssl 0.9.7m Configured linux-ia64 -fPIC
gcc version 3.3.3 (SuSE Linux)
GDB Dump:
Program received signal SIGSEGV, Segmentation fault.
0x40000000000a58c0 in x509_name_ex_d2i ()
(gdb) where
#0 0x40000000000a58c0 in x509_name_ex_d2i ()
#1 0x40000000000ad1f0 in ASN1_item_ex_d2i ()
#2 0x40000000000ae1a0 in ASN1_item_d2i ()
#3 0x400000000011a860 in ASN1_item_dup ()
#4 0x40000000000a5b90 in X509_NAME_dup ()
#5 0x40000000000a5cb0 in X509_NAME_set ()
#6 0x40000000000bd760 in X509_REQ_set_subject_name ()
Thanks,
Brian Smith
Detail:
When writing a function to generate a CSR via OpenSSL on IA-64, the X509_REQ_set_subject_name function eventually calls x509_name_ex_d2i which causes a segmentation fault under IA-64. This code works properly on Solaris, IRIX, win32 (cygwin), and x86_64
Additional Details:
OpenSSL compiled debug allows the function to operate properly without crashing
Inserting printf("here") statements between lines of x509_name_ex_d2i also allows the function to operate without seg fault when built normally
Possibly Known Related Cases:
Test Setup:
Linux 2.6.5-7.252.PTF-sn1 SMP
Openssl 0.9.7m Configured linux-ia64 -fPIC
gcc version 3.3.3 (SuSE Linux)
GDB Dump:
Program received signal SIGSEGV, Segmentation fault.
0x40000000000a58c0 in x509_name_ex_d2i ()
(gdb) where
#0 0x40000000000a58c0 in x509_name_ex_d2i ()
#1 0x40000000000ad1f0 in ASN1_item_ex_d2i ()
#2 0x40000000000ae1a0 in ASN1_item_d2i ()
#3 0x400000000011a860 in ASN1_item_dup ()
#4 0x40000000000a5b90 in X509_NAME_dup ()
#5 0x40000000000a5cb0 in X509_NAME_set ()
#6 0x40000000000bd760 in X509_REQ_set_subject_name ()
Thanks,
Brian Smith
