Hello,

One thing that immediately comes to mind is the old OpenSSL version [0.9.7]. Doesn't SLES9 offer OpenSSL 0.9.8 of any version? Is 0.9.7 as high as it gets in their official repos? If so, I'd compile the latest OpenSSL on my own [0.9.8l] and try, also, what is the OpenSSL version on the SLES10SP2?

The attached trace is not really useful as there are no debug symbols, if you want to go that road they will be necessary.

May the source be with you,
Best regards,
Jess Portnoy



Karl Pflästerer wrote:
Hi,
I wanted to install php-5.2.12 on a 32-Bit SLES9 SP4. I had no problems
with the 64-Bit SLES10SP2 but with the 32-Bit I can't use pecl.

Whenever I try to install a library I only get a seg. fault. I tried
also php-5.2.11 and there is also the same problem. php-5.2.9 works.

pecl install pdflib expands to:

/usr/local/php-5.2.12/bin/php -C -n -q -d 
include_path=/usr/local/php-5.2.12/lib/php -d output_buffering=1 -d 
variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On 
/usr/local/php-5.2.12/lib/php/peclcmd.php install pdflib

If I run that with gdb I see:

(gdb) run
Starting program: /usr/local/php-5.2.12/bin/php -C -n -q -d 
include_path=/usr/local/php-5.2.12/lib/php -d output_buffering=1 -d 
variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On 
/usr/local/php-5.2.12/lib/php/peclcmd.php install pdflib
[Thread debugging using libthread_db enabled]
[New Thread 1080940768 (LWP 32645)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1080940768 (LWP 32645)]
0x402fb9f4 in SSL_SESSION_hash () from /usr/lib/libssl.so.0.9.7
(gdb) bt
#0  0x402fb9f4 in SSL_SESSION_hash () from /usr/lib/libssl.so.0.9.7
#1  0x402fba3b in SSL_SESSION_hash_LHASH_HASH () from /usr/lib/libssl.so.0.9.7
#2  0x40016a6c in d2i_X509 () from /lib/ld-linux.so.2
#3  0x403fceac in __JCR_LIST__ () from /usr/lib/libcrypto.so.0.9.7
#4  0x403d171d in getrn () from /usr/lib/libcrypto.so.0.9.7
#5  0x00000000 in ?? ()
(gdb)


And there I'm lost.  How can I debug further what the problem might be.

On another server (also SLES9SP4 32-bit Linux) I see:

(gdb) run
Starting program: /usr/local/php-5.2.12/bin/php -C -n -q -d 
include_path=/usr/local/php-5.2.12/lib/php -d output_buffering=1 -d 
variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On 
/usr/local/php-5.2.12/lib/php/peclcmd.php install pdflib
[Thread debugging using libthread_db enabled]
[New Thread 1082827648 (LWP 25177)]
*** glibc detected *** double free or corruption (out): 0x4083f088 ***
*** glibc detected *** double free or corruption (out): 0x4083f090 ***

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1082827648 (LWP 25177)]
0x4053e498 in ASN1_STRING_free () from /usr/lib/libcrypto.so.0.9.7
(gdb) bt
#0  0x4053e498 in ASN1_STRING_free () from /usr/lib/libcrypto.so.0.9.7
#1  0x4083f05e in main_arena () from /lib/tls/libc.so.6
#2  0x4053b565 in ASN1_primitive_free () from /usr/lib/libcrypto.so.0.9.7
#3  0x08068afb in ?? ()
#4  0x405d3eac in __JCR_LIST__ () from /usr/lib/libcrypto.so.0.9.7
#5  0xf0604082 in ?? ()
#6  0x405d3eac in __JCR_LIST__ () from /usr/lib/libcrypto.so.0.9.7
#7  0x405cefe8 in X509_seq_tt () from /usr/lib/libcrypto.so.0.9.7
#8  0x4053b61b in asn1_item_combine_free () from /usr/lib/libcrypto.so.0.9.7
#9  0x405cf72c in ASN1_OCTET_STRING_it () from /usr/lib/libcrypto.so.0.9.7
#10 0x405bd330 in gdImageCreateFromPngCtx () at gd_png.c:124
#11 0x00000000 in ?? ()



  KP



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to