Project

General

Profile

Bug #1441

mmap fails when HAVE_MEM_MMAP_ANON because of zero length

Added by japc almost 12 years ago. Updated about 3 years ago.

Status:
Obsolete
Priority:
High
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:
Yes

Description

Because c->file.copy.length is not changed from 0 the mmap fails. If if it worked the assert further ahead would fail.

This patch fixes that.

To see if afected, search log files for:

network_posix_aio.c.358: (error) the mmap() failed, no way for a fallback:
connections.c.1370: (trace) (network-subsys sent us a fatal-error)

lighttpd-network_posix_aio-mmap.patch-2 (576 Bytes) lighttpd-network_posix_aio-mmap.patch-2 lighttpd-network_posix_aio-mmap.patch japc, 2008-01-11 22:32
lighttpd-network_posix_aio-mmap.patch (576 Bytes) lighttpd-network_posix_aio-mmap.patch lighttpd-network_posix_aio-mmap.patch japc, 2008-01-11 22:33

History

#1

Updated by japc almost 12 years ago

Forgot to mention that this patch is for 1.5.0-r1992.

#2

Updated by Anonymous over 11 years ago

I can confirm this fix works. I had trouble applying the patch, but it's only one line, so I copied it into the source and it worked just fine. Add to trunk please.

#3

Updated by gstrauss about 3 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes

not an issue in lighttpd 1.4.x

#4

Updated by gstrauss about 3 years ago

  • Status changed from New to Obsolete

Also available in: Atom