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





--- Comment #5 from rahul <[EMAIL PROTECTED]>  2008-07-30 13:32:07 PST ---
Created an attachment (id=22333)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22333)
a binary file that reproduces the bug

The bug seems to be connected with the size of the file
in that it is reproducible in Solaris 11 (i86 & sparc) And Linux (ubuntu)
with a small size file but not with a large one.

|du  htdocs/test.pdf                                                            
2 htdocs/test.pdf


|uname -a
Linux vaishnavam 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686
GNU/Linux
|./bin/httpd -V
Server version: Apache/2.3.0-dev (Unix)
Server built:   Jul 22 2008 15:05:28
Server's Module Magic Number: 20080528:1
Server loaded:  APR 1.4.0-dev, APR-UTIL 1.4.0-dev
Compiled using: APR 1.4.0-dev, APR-UTIL 1.4.0-dev
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -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="/space/store/apache.22.Jul/install"
 -D SUEXEC_BIN="/space/store/apache.22.Jul/install/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
|(echo "GET /test.pdf HTTP/1.0\n\n";sleep 5)|telnet 0 8080
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
��}>^#����uV�
            
��~�&�<�����jˇ(ߕoܩ�h�Z;�2�_�?[ɇ��
Connection closed by foreign host.

A little more info:
================================================================
I commented these out in apr, cleaned,rebuilt and ran again,

./include/arch/unix/apr_private.h:/* Define if TCP_CORK is defined in
netinet/tcp.h */
./include/arch/unix/apr_private.h:/*#define HAVE_TCP_CORK 1*/
./include/arch/unix/apr_private.h:/* Define if TCP_NODELAY and TCP_CORK can be
enabled at the same time */
./include/apr.h:/*#define APR_TCP_NOPUSH_FLAG       TCP_CORK*/

it is reproducible again.

|truss -p 16007
accept(4, 0xFFBFE530, 0xFFBFE51C, SOV_DEFAULT) (sleeping...)
accept(4, 0xFFBFE530, 0xFFBFE51C, SOV_DEFAULT)  = 12
getsockname(12, 0x001ADEF0, 0x001ADEDC, SOV_DEFAULT) = 0
fcntl(12, F_GETFL)                              = 2
fcntl(12, F_SETFL, FWRITE|FNONBLOCK)            = 0
read(12, 0x001B1E70, 8000)                      Err#11 EAGAIN
pollsys(0xFFBFE104, 1, 0xFFBFE080, 0x00000000)  = 1
read(12, " G E T   / t e s t . p d".., 8000)    = 28
stat64("/space/store/apache.30.Jul/install/htdocs/test.pdf", 0xFFBFE138) = 0
getpid()                                        = 16007 [16006]
open("/space/store/apache.30.Jul/install/htdocs/test.pdf",
O_RDONLY|O_LARGEFILE) = 13
writev(12, 0xFFBFE2BC, 1)                       = 261
sendfilev64(1, 12, 0x001AE7D0, 1, 0xFFBFE1A0)   = 313
write(9, " 1 2 7 . 0 . 0 . 1   -  ".., 76)      = 76
shutdown(12, SHUT_WR, SOV_DEFAULT)              = 0
pollsys(0xFFBFE3B4, 1, 0xFFBFE330, 0x00000000)  = 1
read(12, 0xFFBFE4A8, 512)                       = 0
close(12)                                       = 0
read(7, 0xFFBFE6A3, 1)                          Err#11 EAGAIN
close(13)                                       = 0
accept(4, 0xFFBFE530, 0xFFBFE51C, SOV_DEFAULT) (sleeping...)

(I am uploading a small test.pdf which reproduces this,
The pdf is not a valid pdf (truncated to small length
it to make it reproduce the bug)
)


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to