Closed zsilbi closed 3 years ago
@zsilbi Yes, it is doesn't help :( We'll need a code to reproduce as small as possible.
Don't add backtrace without debug version and symbols, it doesn't tell anything. Also reproduce it without and dependencies.
Thanks, @Jurigag. I modified the backtrace (debug mode and symbols)
@zsilbi Does it still occur on latest Zephir?
I tried a slightly customized version of EagerLoading from the incubator with the current Phalcon 4.0.x branch. Everything works very well, but in some cases I got SEGFAULT errors.
I noticed, that there are strange
= null
lines before passing the actual values in some cases.I thought that this must have been done like this to avoid bugs in the earlier versions, but in the end, I had to add another of this (
= null
) to avoid the SEGFAULT error.https://github.com/phalcon/incubator/blob/4883d9009a9d651308bfc201a0e9440c0ff692e2/Library/Phalcon/Mvc/Model/EagerLoading/EagerLoad.php#L195-L209
This is the backtrace I got.
Before the error occurs, these are the values:
I actually changed
$records[0]
tonew Languages()
and the error remains. I tried removing everything from the initialization of that model, didn't help. But if I changenew Languages
to any other model, it works well.If this doesn't help, I'll try to reproduce this issue in a clean example, but it seems like a pretty time consuming task to do so.
PHP 7.3.11-1+ubuntu18.04.1 Phalcon current 4.0.x branch Zephir 0.12.12