You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/12/30 12:36:53 UTC

DO NOT REPLY [Bug 46449] New: Output out of order from SSI include virtual

https://issues.apache.org/bugzilla/show_bug.cgi?id=46449

           Summary: Output out of order from SSI include virtual
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: worker
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: leandro@pangea.org


With the following files:
$ cat test.shtml 
<p>first</p>
<!--#include virtual="test.php"-->
$ cat test.php 
<?php
echo "<p>second</p>";
?>

A request for http://host/test.shtml produces the following erroneous result:
GET /test.shtml HTTP/1.1
Host: www.xxxxxxx.org

HTTP/1.1 200 OK
Date: Tue, 30 Dec 2008 11:21:00 GMT
Server: Apache DAV/2 mod_python/3.3.1 Python/2.5.2
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html

d
<p>second</p>
e
<p>first</p>


0
An on the browser:

second

first


Our configuration:
 /usr/sbin/apache2 -V
Server version: Apache/2.2.9 (Debian)
Server built:   Oct  1 2008 14:34:07
Server's Module Magic Number: 20051115:15
Server loaded:  APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture:   64-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT=""
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46449] Output out of order from SSI include virtual

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46449


Leandro Navarro <le...@pangea.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|worker                      |mod_include




--- Comment #3 from Leandro Navarro <le...@pangea.org>  2009-01-28 13:14:45 PST ---
Looking at the code for mod_include, I think that the problem seems to be with
ap_sub_req_lookup_uri(), that the output is not flushed before this call is
invoked and therefore the output is garbled.

I found this mail related:
http://mail-archives.apache.org/mod_mbox/httpd-dev/200009.mbox/raw/%3C20000913192658.L23617@lyra.org%3E/

If that is the source of the problem, how can I modify mod_include to flush the
output before a sub_req is invoked? The code is not that readable to see
clearly how to modify.

Any suggestion?

Best regards, Leandro.(In reply to comment #2)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46449] Output out of order from SSI include virtual

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46449


Leandro Navarro <le...@pangea.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |leandro@pangea.org




--- Comment #2 from Leandro Navarro <le...@pangea.org>  2008-12-30 11:16:50 PST ---
(In reply to comment #1)
> It works correctly with mpm-prefork and mod_php.
> 
> In what way do you call the php interpreter?
Fast-cgi, with suexec.

AddType application/x-httpd-php .php3 .phtml .php .phps
SuexecUserGroup user group
Action php-fcgi /fcgi-bin/php-fcgi-wrapper
Alias /fcgi-bin/ /home/httpd/fcgi-bin.d/php5-user/

/home/httpd/fcgi-bin.d/php5-user$ more php-fcgi-wrapper 
#!/bin/sh
export PHPRC=/etc/php5/cgi
exec /usr/bin/php5-cgi

> Do you have any special output filters configured? 
Only includes:
mods-enabled/mime.conf:AddOutputFilter INCLUDES .shtml

> What is the output of apache2ctl -M?

/usr/sbin/apache2ctl -M
[Tue Dec 30 19:38:35 2008] [warn] worker http://xxx.yyyyyyy.org already used by
another worker
[Tue Dec 30 19:38:36 2008] [warn] worker http://www.xxxxxxxx.org/~zzzz already
used by another worker
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_worker_module (static)
 http_module (static)
 so_module (static)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 auth_pam_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgid_module (shared)
 dav_module (shared)
 dir_module (shared)
 env_module (shared)
 fcgid_module (shared)
 headers_module (shared)
 include_module (shared)
 mime_module (shared)
 security2_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_http_module (shared)
 python_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 status_module (shared)
 suexec_module (shared)
 unique_id_module (shared)
 userdir_module (shared)
Syntax OK


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46449] Output out of order from SSI include virtual

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46449


Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sf@sfritsch.de




--- Comment #1 from Stefan Fritsch <sf...@sfritsch.de>  2008-12-30 10:09:50 PST ---
It works correctly with mpm-prefork and mod_php.

In what way do you call the php interpreter? Do you have any special output
filters configured? What is the output of apache2ctl -M?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org