ID:               41777
 Updated by:       [EMAIL PROTECTED]
 Reported By:      diego dot malatesta at mottaeditore dot it
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: Ubuntu Server 7.04 (Sparc)
 PHP Version:      5.2.3
 New Comment:

You really tried with that exact script you pasted here?
Try the same with CLI binary..


Previous Comments:
------------------------------------------------------------------------

[2007-06-25 10:46:44] diego dot malatesta at mottaeditore dot it

I've installed php 5.1.6 and the mail() function worked.
Then I put back php 5.2.1 and the script started crashing again.
Back to php 5.1.6 and the script works again.

For now I'm going to use 5.1.6 until there's a bugfix or I find out
what's wrong with 5.2.x

------------------------------------------------------------------------

[2007-06-25 06:50:27] diego dot malatesta at mottaeditore dot it

No I don't have any appended or prepended file nor any zend extension
enabled.

Btw, I've compiled also php version 5.2.1 and the latest snapshot, but
the script keeps crashing.

------------------------------------------------------------------------

[2007-06-24 17:04:20] [EMAIL PROTECTED]

I doubt it's mail() function that is crashing here. Check that you
don't have some auto_prepend_file (or append) in php.ini set. And that
you don't have any zend_extensions enabled either.

------------------------------------------------------------------------

[2007-06-22 08:33:25] diego dot malatesta at mottaeditore dot it

PS: Forgot to specify the Sparc platform

------------------------------------------------------------------------

[2007-06-22 07:41:43] diego dot malatesta at mottaeditore dot it

Description:
------------
When I run the script the browser asks me if I want to save the file or
view it as if I were downloading it and I get a blank page.

Reproduce code:
---------------
<?php
mail("[EMAIL PROTECTED]","bla","blabla");
?>

Expected result:
----------------
I expect the mail to be sent =)

Actual result:
--------------
Apache reports this in the error_log file:

[Fri Jun 22 10:22:01 2007] [notice] child pid 22502 exit signal
Segmentation fault (11)
[Fri Jun 22 10:22:01 2007] [notice] child pid 22503 exit signal
Segmentation fault (11)


The Backtrace:

(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread -134829856 (LWP 22573)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -134829856 (LWP 22573)]
_zval_ptr_dtor (zval_ptr=0xfff1ef9c) at
/root/php-5.2.3/Zend/zend_execute_API.c:412
412             (*zval_ptr)->refcount--;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0xfff1ef9c) at
/root/php-5.2.3/Zend/zend_execute_API.c:412
#1  0xf79541ec in zend_do_fcall_common_helper_SPEC
(execute_data=0xfff1f034) at /root/php-5.2.3/Zend/zend_execute.h:155
#2  0xf7944860 in execute (op_array=0x20af60) at
/root/php-5.2.3/Zend/zend_vm_execute.h:92
#3  0xf7922ac0 in zend_execute_scripts (type=8, retval=<value optimized
out>, file_count=3) at /root/php-5.2.3/Zend/zend.c:1134
#4  0xf78dc7dc in php_execute_script (primary_file=0xfff1f110) at
/root/php-5.2.3/main/main.c:1794
#5  0xf79ad374 in php_handler (r=0x246b40) at
/root/php-5.2.3/sapi/apache2handler/sapi_apache2.c:623
#6  0x0003fb4c in ap_run_handler (r=0x246b40) at config.c:157
#7  0x00042c28 in ap_invoke_handler (r=0x246b40) at config.c:372
#8  0x00058744 in ap_process_request (r=0x246b40) at
http_request.c:258
#9  0x000557ac in ap_process_http_connection (c=0x242b70) at
http_core.c:184
#10 0x000465b0 in ap_run_process_connection (c=0x242b70) at
connection.c:43
#11 0x0006b2d4 in child_main (child_num_arg=<value optimized out>) at
prefork.c:640
#12 0x0006b4a4 in make_child (s=<value optimized out>, slot=0) at
prefork.c:680
#13 0x0006c1c4 in ap_mpm_run (_pconf=0xa40a8, plog=<value optimized
out>, s=0xa8c80) at prefork.c:956
#14 0x0002ce3c in main (argc=2, argv=0xfff21ad4) at main.c:717


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41777&edit=1

Reply via email to