Ticket #1441 (new defect)

Opened 8 months ago

Last modified 6 months ago

mmap fails when HAVE_MEM_MMAP_ANON because of zero length

Reported by: japc Assigned to: jan
Priority: high Milestone: 1.5.0
Component: core Version: 1.5.x-svn
Severity: normal Keywords: network-backend posix_aio mmap
Cc: Blocking:
Need Feedback: 0

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)

Attachments

lighttpd-network_posix_aio-mmap.patch-2 (0.6 kB) - added by japc on 01/11/2008 10:32:30 PM.
lighttpd-network_posix_aio-mmap.patch
lighttpd-network_posix_aio-mmap.patch (0.6 kB) - added by japc on 01/11/2008 10:33:24 PM.
lighttpd-network_posix_aio-mmap.patch

Change History

11/09/2007 04:22:59 PM changed by japc

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

11/09/2007 04:29:45 PM changed by japc

  • keywords set to network-backend posix_aio.

11/09/2007 04:33:07 PM changed by japc

  • keywords changed from network-backend posix_aio to network-backend posix_aio mmap.

01/11/2008 09:40:13 PM changed by anonymous

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.

01/11/2008 10:32:30 PM changed by japc

  • attachment lighttpd-network_posix_aio-mmap.patch-2 added.

lighttpd-network_posix_aio-mmap.patch

01/11/2008 10:33:24 PM changed by japc

  • attachment lighttpd-network_posix_aio-mmap.patch added.

lighttpd-network_posix_aio-mmap.patch


Add/Change #1441 (mmap fails when HAVE_MEM_MMAP_ANON because of zero length)




Change Properties