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 2017/12/15 12:29:53 UTC

[Bug 61909] New: mod_fcgid FCGI_STDERR gets truncated

https://bz.apache.org/bugzilla/show_bug.cgi?id=61909

            Bug ID: 61909
           Summary: mod_fcgid FCGI_STDERR gets truncated
           Product: Apache httpd-2
           Version: 2.4.29
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: mod_fcgid
          Assignee: bugs@httpd.apache.org
          Reporter: merijnvdk@apache.org
  Target Milestone: ---

When a process sends large amounts of errorlog (stderr) to mod_fcgid only the
first APR_BUCKET_BUFF_SIZE (8000 bytes) get written to the log.

For me this happens when running php with mod_fcgid, sometimes i log
stacktraces to the error_log and this can easily exceed 8k when a few
notices/warnimgs/errors occur. So I am missing debug information.

It is pretty easy to reproduce by sending a large amount of data to stderr in
the handling process.

-- 
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 61909] mod_fcgid FCGI_STDERR gets truncated

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

Merijn van den Kroonenberg <me...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |merijnvdk@apache.org

--- Comment #1 from Merijn van den Kroonenberg <me...@apache.org> ---
Created attachment 35615
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35615&action=edit
fix to write the entire stderr to the logfile

fcgid_bucket.c: changed the FCGI_STDERR handling so it keeps reading STDERR
data in multiple batches if the internal buffersize of APR_BUCKET_BUFF_SIZE
(8000 bytes) is exceeded. It tries to prevent chopping up lines in stderr so
there are no broken up lines in the error log. 

We are using this in production for 2 months now.

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