Comments (7)
I'm seeing this issue as well w/ PHP 5.5.1 and APCu 4.0.1 on OS X 10.8.4. Crash log gist: https://gist.github.com/anonymous/6090467
from apcu.
It's happening to me as well
from apcu.
I'm working on a database containing items which has data that needs to be fetched from an API. I want to store this API data in the cache.
On a specific page with these items, I am trying to store about a hundred data objects from the API. The first two objects are stored in cache and at the third it fails. My browser gives me a "No data received" message. When I reload the non-working page, the hit count for the first two cached items increase.
As it seems, it depends on the data stored into the cache, wether it crashes or not. The only big difference I noticed between the first two and the third object is the size. The first two are 549 and 554 bytes when serialized and the third is 349 bytes.
On other pages (with different API data) it doesn't store anything, or maybe one or two items before it crashes.
The error I get when running gdb is the same as the errors described above:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000101ba74d8 in make_slot ()
This is in my php config:
[apcu]
extension="/usr/local/Cellar/php55-apcu/4.0.1/apcu.so"
apc.enabled=1
apc.shm_size=128M
apc.ttl=7200
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
Versions: PHP 5.5.1, APCu 4.0.1, Apache 2.2.22 (Default mac installation), OSX 10.8.4
from apcu.
This issue is still happening in HEAD as well.
from apcu.
I'm not able to track this down, nobody has provided a reproduce script that I can catch with and much as I've tried to reproduce it I cannot ... can anyone at all put together a simple test case that reliably fails, even if I gotta run it a million times before it does ??
from apcu.
I finally git-bisect
'd this and found the issue started at d192f60. Specifically, the part that deals with the aligned
attribute is the problem.
The default C compiler (cc
) on OS X 10.8 is clang from LLVM--Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn). This compiler appears to have issues with the aligned attribute without the alignment factor. I added a pull at #32, but I'm not sure if it works with 32-bit compilers too.
I should mention that forcing compilation with gcc
on OS X 10.8 via make CC=gcc CPP='gcc -E'
also fixed the problem.
from apcu.
Excellent work, attribute removed, we were only testing, lesson learned :D
from apcu.
Related Issues (20)
- Could OOM Killer cause APCU deadlock ? HOT 1
- Valgrind Use of uninitialised value of size 8 in php_var_unserialize_internal() via php_apc_unserializer() HOT 2
- start_time in apcu_cache_info() HOT 2
- Test tests/typed_prop.phpt fails on PHP 8.3 HOT 1
- Enable igbinary as serializer Cause PHP 8.2 exited on signal 4 HOT 1
- segmentation fault when calling phpinfo() in ZTS builds HOT 2
- Unable to install on Mac M2 HOT 2
- compliation error on RedHat 8.2: zend_signal.h:46:2: error: unknown type name ‘siginfo_t’ HOT 4
- DLL missing HOT 2
- Create new release HOT 4
- apc.php shows wrong timestamps HOT 1
- DLL for PHP 8.3 (Windows) missing HOT 1
- %d printf specifier for key_t fails if the type is actually long (which is allowed by POSIX)
- apc_cache.c has two format specifier bugs (with patch) HOT 1
- Windows DLL for APCu 5.1.23 HOT 1
- Introduce documentation for setting "apc.smart"
- Store an \SplPriorityQueue HOT 1
- Windows DLL available to download HOT 1
- Expunges happen without hitting limits HOT 1
- `apcu_fetch` returns `success` for missing keys HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apcu.