tarantool-php
tarantool-php copied to clipboard
zend_mm_heap corrupted on updates or upserts with parallel extension
See https://github.com/tarantool/tarantool-php/pull/148#issuecomment-544684011 for the reproducer.
NB: Try to implement simple reproducer using parallel
extension. Tried with pthread
extension, but no luck.
Yeah, it's actually hard to localize the problem, and as I said in another issue, it may well be a bug in the ext-parallel
:
- https://github.com/krakjoe/parallel/issues/65
- https://github.com/krakjoe/parallel/issues/129
It is a bit suspectful that the problems appears only with update and upsert.
Reproducible even with two parallel workers. Tried to run under valgrind. There were some errors at the start but not relevant to the issue. Also, tried to run with USE_ZEND_ALLOC=0 which resulted in process exit with no exception.