On Wed, Sep 26, 2007, Massimiliano Pala wrote:

> Anyhow when I want to write it to a BIO (i2d_PRPQ_RESP_bio), I get
> a segmentation fault:
> 
> ==========
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1284179056 (LWP 21851)]
> 0x4186f6d5 in memcpy () from /lib/libc.so.6
> (gdb) bacltrace
> Undefined command: "bacltrace".  Try "help".
> (gdb) backtrace
> #0  0x4186f6d5 in memcpy () from /lib/libc.so.6
> #1  0x47c67c9b in asn1_ex_i2c () from /lib/libcrypto.so.6
> #2  0x47c67e61 in asn1_ex_i2c () from /lib/libcrypto.so.6
> #3  0x47c6810c in ASN1_item_ex_i2d () from /lib/libcrypto.so.6
> #4  0x47c68637 in ASN1_item_ex_i2d () from /lib/libcrypto.so.6
> #5  0x47c6829b in ASN1_item_ex_i2d () from /lib/libcrypto.so.6
> #6  0x47c6882f in ASN1_item_ex_i2d () from /lib/libcrypto.so.6
> #7  0x47c6829b in ASN1_item_ex_i2d () from /lib/libcrypto.so.6
> #8  0x47c68981 in ASN1_template_i2d () from /lib/libcrypto.so.6
> #9  0xb7fac2d9 in i2d_PRQP_RESP (a=0x805f6a0, out=0xb374ed50) at 
> asn1_res.c:112
> #10 0x47c7517c in PEM_ASN1_write_bio () from /lib/libcrypto.so.6
> #11 0xb7faeecb in PEM_write_bio_PRQP_RESP (bp=0x8088938, o=0x805f6a0)
>     at prqp_bio.c:92
> =========
> 
> Anyone can help me ? It is quite strange behavior -- I am missing something,
> but I have no idea *what* am I missing!!!!

Well it looks like you aren't using a debug version of OpenSSL. That would
give a more meaningful backtrace.

When you get that print out the ASN1_ITEM structure in some of the frames:
that should tell you exactly which field is causing the problems.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to