Bug 9289 - lighttpd mod_cgi fails to load with "undefined symbol: chunkqueue_written"
Summary: lighttpd mod_cgi fails to load with "undefined symbol: chunkqueue_written"
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.0
Hardware: All Multiple
: Medium+ normal
Target Milestone: 2.1 M4
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-17 10:21 UTC by Nick Leverton
Modified: 2016-03-21 22:46 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Remove the faulty patch (13.99 KB, patch)
2016-03-17 15:24 UTC, Nick Leverton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.