Ticket #138 (closed defect: fixed)

Opened 6 years ago

Last modified 10 months ago

Crash with long xcache.mmap_path

Reported by: judas_iscariote Owned by: moo
Priority: minor Milestone: 2.0.0
Component: cacher Version: 1.2.1
Keywords: Cc:
Blocked By: PHP Version:
Application: Need User Feedback: no
Other Exts: SAPI: Irrelevant
Probability: Always Blocking:

Description

we have a crash with :

php -dxcache.mmap_path="/tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" -r 'echo "foo";'

SEGV on 0x00002ac028a2c9d8 in zm_post_zend_deactivate_xcache ()

in anycase xcache.mmap_path should not be longer than MAXPATHLEN

Change History

Changed 6 years ago by moo

  • component changed from admin to cacher

Changed 5 years ago by moo

  • status changed from new to assigned

the problem is segv, "path too long" is a trigger only. we can either check path too long ourself or simply let syscall fail. the file name isn't important, but truncating it automatically might confuse the user if he want to know what file is in use.

Changed 5 years ago by moo

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone changed from 1.3.0 to 2.0.0

fixed in [516] in trunk. to be back merged

Changed 10 months ago by moo

  • milestone changed from 2.2.0 to 2.0.0
Note: See TracTickets for help on using tickets.