Mailing List Archive

[Bug 64834] Sporadic file truncation or excessive NULL bytes at the end
https://bz.apache.org/bugzilla/show_bug.cgi?id=64834

--- Comment #1 from Ruediger Pluem <rpluem@apache.org> ---
Have you tried setting

EnableMMAP Off

http://httpd.apache.org/docs/2.4/mod/core.html#enablemmap

for the directory that contains the file?

<Directory /directory>
EnableMMAP Off
</Directory>

or

<Location /replication/minute>
EnableMMAP Off
</Location>

--
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
[Bug 64834] Sporadic file truncation or excessive NULL bytes at the end [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=64834

--- Comment #2 from Joe Orton <jorton@redhat.com> ---
I think this is the race (e.g. bug 47693, I think there are more bugs on this)
between the stat() which is used to determine content-length and then opening
the file to send it. It's a bug but it's designed in, fairly nasty really.
Padding the file to a constant length would work around it. Or somehow
ensuring the file is streamed as if it doesn't have a fixed C-L. It would be a
very simple replacement for the default_handler which doesn't have this bug,
but not sure how to do it efficiently with the code as shipped.

--
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
[Bug 64834] Sporadic file truncation or excessive NULL bytes at the end [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=64834

--- Comment #3 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
Also see bug 54962 which looks to be similar.
A patch is pending there.

--
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
[Bug 64834] Sporadic file truncation or excessive NULL bytes at the end [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=64834

Joe Orton <jorton@redhat.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE

--- Comment #4 from Joe Orton <jorton@redhat.com> ---
Thanks, let's just track this in one place then.

*** This bug has been marked as a duplicate of bug 54962 ***

--
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