Project

General

Profile

Actions

Bug #2521

closed

mod_cgi memory leak

Added by yung_huang over 7 years ago. Updated over 7 years ago.

Status:
Invalid
Priority:
Normal
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:

Description

lighttpd version : 1.4.25
I use lighttpd to exe cgi file
lighttpd daemon memory will increase 16 byte after access much times
cgi file example:
int main() {
fprintf(stdout, "{\"r\":\"t\"}");
}

If my stdout string is json string, the problem will occur.
Otherwise it is OK.

Does someone know what happen?

Actions #1

Updated by spaam over 7 years ago

Can you use the latest version and see you still see the problem? 1.4.25 is a bit old

Actions #2

Updated by yung_huang over 7 years ago

I use version 1.4.33
It seems it is OK.
Do you know why the problem happens?
I want to run base on 1.4.25, and modified few codes on it.
Or is there any patch files?
Because moving from 25 to 33, it wiil be a big migration, then I need more tests on it.
Thanks.

Actions #3

Updated by stbuehler over 7 years ago

  • Status changed from New to Invalid
  • Target version deleted (1.4.x)

There were some memory leaks in the past (check the changelog for details), and there still might be some of course. But what you are seeing is most likely buffer reusing and memory fragmentation.

Given the old version, and the fact that you have custom code in it I'm closing this as Invalid (you could also read it as "Wontfix/Already Fixed if there was a bug in 1.4.25, as it isn't present in 1.4.33 according to you").

PS: The new versions contain many fixes, including security fixes. Running old versions without backporting those is a very bad idea.

Actions

Also available in: Atom