Ticket #9 (closed task: fixed)

Opened 7 years ago

Last modified 10 months ago

/dev/zero disapearing after starting apache

Reported by: jfbustarret@… Owned by: moo
Priority: critical Milestone: 1.1
Component: cacher Version: 1.0
Keywords: Cc:
Blocked By: PHP Version:
Application: Need User Feedback: no
Other Exts: SAPI: Irrelevant
Probability: 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

Changed 7 years ago by moo

  • owner changed from somebody to moo
  • status changed from new to assigned

Changed 7 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

Changed 7 years ago by moo

  • status changed from assigned to closed
  • resolution set to fixed

in [57] and rc4.

Changed 7 years ago by anonymous

Milestone milestone1 deleted

Changed 10 months ago by moo

  • component changed from component2 to cacher
  • sapi set to Irrelevant
  • pending unset
  • milestone set to 1.1
Note: See TracTickets for help on using tickets.