On Mon, 22 Nov 2004, Ronald Park wrote: > I'm investigating a difficult to diagnose problem and I came across the > following code in core_output_filter():
Yuck. I HATE the core_output_filter. I probably know that code as well as anybody, and yet every time I look at it, it makes my brain hurt so bad I want to scream. It's just a big pile of jumbled up intertwined heuristics. I can see I'm going to have to just break down and rewrite the damned thing as a series of (gasp) SMALLER FUNCTIONS, rather than one big monolithic beast. But first, this bug. It would be very helpful if you could do one or both of the following: * compile with bucket debugging enabled (see slide 17 of http://www.cs.virginia.edu/~jcw5q/talks/apache/apache2moddebugging.ppt) * give me a list of the buckets in each brigade that gets passed in to the core output filter in response to the request that reproduces the problem. (set a breakpoint on the line: 4026 while (b && !APR_BRIGADE_EMPTY(b)) { and then run "dump_brigade b" in gdb each time the breakpoint gets hit) --Cliff
