Project

General

Profile

Actions

Bug #2677

closed

lighttpd-1.4.37:mmap() call fails in handling POST request

Added by murugesh about 9 years ago. Updated about 9 years ago.

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

Description

Hi,

In lighttpd 1.4.29, upload-dir pointing /var2/tmp/, POST works fine.

But after upgrade to 1.4.37, POST did not work, with /var2/tmp.
strace points, mmap() is failing If upload-dir is pointing to /var2/tmp :

read(8, "POST /cgi-bin/hslogin.cgi HTTP/1"..., 1279) = 1254
gettimeofday({1443655521, 477080}, NULL) = 0
open("/var2/tmp/lighttpd-upload-FYiddC", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 10
write(10, "f_name=ms&f_email=murugeshs%40gm"..., 358) = 358
stat(0x100c19f8, 0x7fe01170) = 0
open("/usr/hotspot/htdocs/cgi-bin/hslogin.cgi", O_RDONLY|O_LARGEFILE) = 11
close(11) = 0
pipe([268717456, 0]) = 11
pipe([268555212, 0]) = 13
clone(Process 1845 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0) = 1845
[pid 1807] close(14) = 0
[pid 1807] close(11) = 0
[pid 1807] fstat(0xa, 0x7fe01020) = 0
[pid 1807] mmap(NULL, 358, PROT_READ, MAP_SHARED, 10, 0) = -1 EINVAL (Invalid argument)
[pid 1807] stat(0x2ae12c38, 0x7fe00e90 <unfinished ...>

Trying to understand the root cause of this issue and find out If this is a known issue in 1.4.37 ?

Any help for this issue is appreciated.

Thanks & Regards,
Murugesh.


Files

strace_lighty_1_4_37_mmap.txt (42.5 KB) strace_lighty_1_4_37_mmap.txt murugesh, 2015-10-06 21:26

Related issues 1 (0 open1 closed)

Is duplicate of Feature #2666: handle filesystems without mmap() supportFixed2015-08-21Actions
Actions #1

Updated by stbuehler about 9 years ago

  • Is duplicate of Feature #2666: handle filesystems without mmap() support added
Actions #2

Updated by stbuehler about 9 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom