ID:               20254
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         IMAP related
 Operating System: Linux (2.4.18)
 PHP Version:      4.3.0-dev
 New Comment:

CLI (command line) php test was all right.

apache2 configured with --prefix=/usr/local/apache2 --enable-so


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

[2002-11-07 18:53:37] [EMAIL PROTECTED]

Try this with the CLI (command line) php. Maybe another thread-safety
issue..? How did you configure apache2?


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

[2002-11-06 08:42:27] [EMAIL PROTECTED]

Your second bt shows that it's not an IMAP specific problem, which is
interesting that it manifests itself in IMAP only.

Can you reproduce this with non Apache2 as well (using the latest CVS
of course)?  I know you probably hate me for asking this.

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

[2002-11-05 23:34:00] [EMAIL PROTECTED]

I deleted many html tags and php code.
Ctrl+F5(reload) gives good result or crash.

$ cat test.php
<?php
    $mailbox = imap_open("{localhost:143}"."INBOX.test",
"[EMAIL PROTECTED]", "******");
    $object = imap_fetchstructure($mailbox, 1);

    $header = imap_header($mailbox, 1);

    $from = $header->from[0]->personal;
    if(!$from) $from = $header->$from[0]->mailbox;

    $subject = htmlspecialchars(chop($header->Subject));
    if(!$subject) $subject = "Null !!";

    $to = $header->to[0]->personal;
    if(!$to) $to = $header->to[0]->mailbox;

    echo("Subject: $subject<br>");
    echo("Date : " . $header->Date . "<br>");
    echo("From : $from<br>");
    echo("To : $to<br>");

    imap_close($mailbox);
?>

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

[2002-11-05 14:29:25] [EMAIL PROTECTED]

The last error implies crash somewhere in the Apache 2 code. Does this
crash happen on any particular script, if so, could you please provide
the smallest possible version of such a script that can be used to
replicate the problem.

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

[2002-11-05 09:43:28] [EMAIL PROTECTED]

I tried above cvs version.
It worked but apache logs said,

[Wed Nov 06 00:44:50 2002] [notice] child pid 15305 exit signal
Segmentation fault (11)
[Wed Nov 06 00:44:55 2002] [notice] child pid 15371 exit signal
Segmentation fault (11)
[Wed Nov 06 00:44:58 2002] [notice] child pid 15401 exit signal
Segmentation fault (11)


and the back-trace here.

(gdb) bt
#0  0x402debd3 in chunk_alloc () from /lib/libc.so.6
#1  0x402de9d0 in malloc () from /lib/libc.so.6
#2  0x4052b06f in _emalloc (size=256, __zend_filename=0x405e8740
"/usr/local/src/php4-200211030600/Zend/zend_stack.c",
    __zend_lineno=27, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/local/src/php4-200211030600/Zend/zend_alloc.c:154
#3  0x4053d0de in zend_stack_init (stack=0x40654380) at
/usr/local/src/php4-200211030600/Zend/zend_stack.c:27
#4  0x4052c3d6 in zend_init_compiler_data_structures () at
/usr/local/src/php4-200211030600/Zend/zend_compile.c:73
#5  0x4052c4f0 in init_compiler () at
/usr/local/src/php4-200211030600/Zend/zend_compile.c:100
#6  0x4053e998 in zend_activate () at
/usr/local/src/php4-200211030600/Zend/zend.c:594
#7  0x40506bba in php_request_startup () at
/usr/local/src/php4-200211030600/main/main.c:833
#8  0x40556c1a in php_apache_request_ctor (f=0x81dcb68, ctx=0x81df000)
    at
/usr/local/src/php4-200211030600/sapi/apache2filter/sapi_apache2.c:375
#9  0x40556e67 in php_output_filter (f=0x81dcb68, bb=0x81dce60)
    at
/usr/local/src/php4-200211030600/sapi/apache2filter/sapi_apache2.c:449
#10 0x080ac5a7 in ap_pass_brigade (next=0x81dcb68, bb=0x81dcc98) at
util_filter.c:540
#11 0x080b2868 in default_handler (r=0x81dd9c8) at core.c:3317
#12 0x080a1bd6 in ap_run_handler (r=0x81dd9c8) at config.c:194
#13 0x080a20f1 in ap_invoke_handler (r=0x81dd9c8) at config.c:401
#14 0x08084e93 in ap_process_request (r=0x81dd9c8) at
http_request.c:288
#15 0x080810b8 in ap_process_http_connection (c=0x81d3578) at
http_core.c:293
#16 0x080aa6b6 in ap_run_process_connection (c=0x81d3578) at
connection.c:85
#17 0x080a0889 in child_main (child_num_arg=0) at prefork.c:696
#18 0x080a093c in make_child (s=0x812b950, slot=0) at prefork.c:736
#19 0x080a0a26 in startup_children (number_to_start=5) at
prefork.c:808
#20 0x080a0d28 in ap_mpm_run (_pconf=0x80e8690, plog=0x8126788,
s=0x812b950) at prefork.c:1024
#21 0x080a5dab in main (argc=2, argv=0xbffffa44) at main.c:643
#22 0x402821c4 in __libc_start_main () from /lib/libc.so.6

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20254

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

Reply via email to