tarantool-php icon indicating copy to clipboard operation
tarantool-php copied to clipboard

zend_mm_heap corrupted on updates or upserts with parallel extension

Open Totktonada opened this issue 4 years ago • 4 comments

See https://github.com/tarantool/tarantool-php/pull/148#issuecomment-544684011 for the reproducer.

Totktonada avatar Mar 23 '20 12:03 Totktonada

NB: Try to implement simple reproducer using parallel extension. Tried with pthread extension, but no luck.

Totktonada avatar Mar 23 '20 13:03 Totktonada

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:

  1. https://github.com/krakjoe/parallel/issues/65
  2. https://github.com/krakjoe/parallel/issues/129

rybakit avatar Mar 23 '20 14:03 rybakit

It is a bit suspectful that the problems appears only with update and upsert.

Totktonada avatar Mar 23 '20 15:03 Totktonada

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.

MariaHajdic avatar Jun 30 '20 20:06 MariaHajdic