Ticket #9 (closed task: fixed)

Opened 2 years ago

Last modified 21 months ago

/dev/zero disapearing after starting apache

Reported by: jfbustarret@… Owned by: moo
Priority: critical Milestone:
Component: component2 Version: 1.0
Keywords: Cc:
PHP Version: Application:
Need User Feedback: Other Exts:
SAPI: 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 2 years ago by moo

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

Changed 2 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 2 years ago by moo

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

in [57] and rc4.

Changed 2 years ago by anonymous

Milestone milestone1 deleted

Note: See TracTickets for help on using tickets.