Closed Hunrik closed 1 year ago
Hey @Hunrik,
~Thanks for the report, are you able to confirm on what line exactly the infinite loop occurs? If you attach gdb on such a process (e.g. gdb -p <pid>
) while it hangs in that loop, it should give you a line number.~
We found it must occur in serializer.c:849. We're checking what could cause a span to be its own parent.
Bug description
Hi We have a CLI sqs consumer process, which after a couple of minutes, gets stuck and starts running at 100% CPU. NOTE: It is also impacting web requests, but it occurs less frequently
We created the following profile with bpf-trace
From this, it seems stuck in a loop in dd-trace-php/ext/serializer.c ddtrace_serialize_span_to_array, which I'm suspecting that got added in this change
After reverting to 0.80.0 from 0.81.1 the issue is gone.
PHP version
Tracer version
0.81.1
Installed extensions
OS info
php:8.1.12-fpm -> Debian GNU/Linux 11 (bullseye)
Diagnostics and configuration
Output of phpinfo() (ddtrace >= 0.47.0)