Problems with APC

php.internals

Sara Golemon

20 years ago
> I get a segfault with PHP 5.2.0RC2 in > CLI mode (Apache module seems to work) > and APC 3.0.11 (without APC it works > fine). Is this a known problem (maybe > even fixed in CVS) or is it worth > investigating? >
Yes, it's a known problem. http://blog.libssh2.org/index.php?/archives/20-Doctor!-Doctor!-It-hurts-when-I-do-this!.html But it's an EXTREMELY edge case one. (Only happens with ZTS enabled, in CLI mode, with enable_cli *not* turned on). I came across this some time ago when mixing Runkit_Sandbox with APC, just turn on enable_cli. It won't materially impact your command line experience. -Sara

Jared Williams

20 years ago
> -----Original Message----- > From: Sara Golemon [mailto:pollita@php.net] > Sent: 27 August 2006 20:17 > To: internals@lists.php.net; cschneid@cschneid.com; rasmus@lerdorf.com > Subject: [PHP-DEV] Problems with APC > > > I get a segfault with PHP 5.2.0RC2 in > > CLI mode (Apache module seems to work) > > and APC 3.0.11 (without APC it works > > fine). Is this a known problem (maybe > > even fixed in CVS) or is it worth > > investigating? > > > Yes, it's a known problem. > > http://blog.libssh2.org/index.php?/archives/20-Doctor!-Doctor! > -It-hurts-when-I-do-this!.html > > But it's an EXTREMELY edge case one. (Only happens with ZTS > enabled, in > CLI mode, with enable_cli *not* turned on). > > I came across this some time ago when mixing Runkit_Sandbox with APC, > just turn on enable_cli. It won't materially impact your > command line > experience.
PHP 5.1.6 & APC 3.0.11-dev crashes on shutdown irrespective of apc.enable_cli. Jared apc APC Support => enabled Version => 3.0.11-dev MMAP Support => Disabled Revision => $Revision: 3.90 $ Build Date => May 4 2006 00:20:07 Directive => Local Value => Master Value apc.cache_by_default => On => On apc.enable_cli => On => On apc.enabled => On => On apc.file_update_protection => 2 => 2 apc.filters => no value => no value apc.gc_ttl => 3600 => 3600 apc.max_file_size => 1M => 1M apc.num_files_hint => 1000 => 1000 apc.optimization => Off => Off apc.shm_segments => 1 => 1 apc.shm_size => 30 => 30 apc.slam_defense => Off => Off apc.stat => On => On apc.ttl => 0 => 0 apc.user_entries_hint => 100 => 100 apc.user_ttl => 0 => 0

Jared Williams

20 years ago
> > > I get a segfault with PHP 5.2.0RC2 in > > > CLI mode (Apache module seems to work) > > > and APC 3.0.11 (without APC it works > > > fine). Is this a known problem (maybe > > > even fixed in CVS) or is it worth > > > investigating? > > > > > Yes, it's a known problem. > > > > http://blog.libssh2.org/index.php?/archives/20-Doctor!-Doctor! > > -It-hurts-when-I-do-this!.html > > > > But it's an EXTREMELY edge case one. (Only happens with ZTS > > enabled, in > > CLI mode, with enable_cli *not* turned on). > > > > I came across this some time ago when mixing Runkit_Sandbox > with APC, > > just turn on enable_cli. It won't materially impact your > > command line > > experience. > > PHP 5.1.6 & APC 3.0.11-dev crashes on shutdown irrespective of > apc.enable_cli. >
Forgot to add the bug report, http://pecl.php.net/bugs/bug.php?id=8574 Jared