Opened 8 years ago

Closed 8 years ago

Last modified 2 years ago

#9 closed task (fixed)

/dev/zero disapearing after starting apache

Reported by: jfbustarret@… Owned by: moo
Priority: critical Milestone: 1.1
Component: cacher Version: 1.0
Keywords: Cc:
Application: PHP Version:
Other Exts: SAPI: Irrelevant
Probability: Blocked By:
Blocking:

Description

When using the default ini settings (xcache.mmap_path = "/dev/zero"), xcache removes /dev/zero :

strace gives this :
[pid 28606] open("/dev/zero", O_RDWR) = 18
[pid 28606] ftruncate(18, 33554432) = -1 EINVAL (Invalid argument)
[pid 28606] mmap2(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_SHARED, 18, 0) = 0xb47b9000
[pid 28606] munmap(0, 33554432) = 0
[pid 28606] close(18) = 0
[pid 28606] unlink("/dev/zero") = 0
[pid 28606] getuid32() = 0
[pid 28606] open("/tmp/.xcache.0.0.1804289383.lock", O_RDWR|O_CREAT, 0666) = 18
[pid 28606] unlink("/tmp/.xcache.0.0.1804289383.lock") = 0
[pid 28606] open("/dev/zero", O_RDWR) = -1 ENOENT (No such file or directory)

Platform is : Linux (Suse 9.2)/PHP 5.1.4

Change History (5)

comment:1 Changed 8 years ago by moo

  • Owner changed from somebody to moo
  • Status changed from new to assigned

comment:2 Changed 8 years ago by moo

oops, i changed the correct code to wrong before rc1 is out. to bring back /dev/zero

$ su
# mknod /dev/zero char 1 5

i'll fix it asap

comment:3 Changed 8 years ago by moo

  • Resolution set to fixed
  • Status changed from assigned to closed

in [57] and rc4.

comment:4 Changed 8 years ago by anonymous

Milestone milestone1 deleted

comment:5 Changed 2 years ago by moo

  • Component changed from component2 to cacher
  • Milestone set to 1.1
  • pending set to 0
  • SAPI set to Irrelevant
Note: See TracTickets for help on using tickets.