Bug 9289

Summary: lighttpd mod_cgi fails to load with "undefined symbol: chunkqueue_written"
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nick Leverton <nick>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Remove the faulty patch none

Description Nick Leverton 2016-03-17 10:21:55 UTC
lighttpd fails to load if mod_cgi is configured in at run time.  The log error is
"dlopen() failed for: /usr/lib/mod_cgi.so /usr/lib/mod_cgi.so: undefined symbol: chunkqueue_written"

Reason is that Jethro introduced a new patch "0001-mod_cgi-buffers-data-without-bound.patch" to lighttpd.  This patch is aimed at upstream issue #1264, "mod_cgi buffers data without bound (OOM on embedded system)" http://redmine.lighttpd.net/issues/1264

The patch as committed, although textually it applies against lighttpd 1.4.36 (the Jethro version), is logically based on lighttpd 1.4.35 or earlier (Dizzy).  It invokes an internal API which was substantially changed in 1.4.36 and the required functions were removed.

Quick solution would be to remove this patch.  I may try to re-work it once I've finished my board bring-up and can run the test script in the upstream bug to see if it still applies, since that bug is over eight years old in itself.
Comment 1 Nick Leverton 2016-03-17 12:11:39 UTC
Just to note, having tested, the upstream issue (lighttpd working set can grow indefinitely) still applies at least in 1.4.36.
Comment 2 Ross Burton 2016-03-17 13:00:01 UTC
Oh, great.  Can you send a patch with this summarised, removing the broken patch (for master and jethro)?
Comment 3 Nick Leverton 2016-03-17 15:24:57 UTC
Created attachment 3038 [details]
Remove the faulty patch

Sent to poky@yoctoproject.org, hope that the format is OK as I've not really worked on this sort of workflow before.

Patch also attached here for completeness.
Comment 4 Ross Burton 2016-03-21 22:46:26 UTC
Merged in oe-core 880a346bf1bc4aa6c8569c6319c141433e13e1dd.