New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clickhouse Crashes When Trying To Read google/protobuf/struct.proto #62467
Comments
Can you share the logs of the crash? All I get is:
Which is not a crash. |
Ok, I was missing the default protos. With them it reproduces an infinite loop in |
The problem comes from how struct.proto is defined and how we get data types:
When reviewing the types we are doing: Value -> ListValue -> Value -> ListValue -> Value eternally (until we run out of stack) |
I'm not sure we can support recursive structures in the current CH type system. Maybe we could detect if recursion is found and throw in those cases. WDYT @Avogar? |
I also think so.
Yes, let's do it. |
Thanks @Algunenano for looking at this, glad that my instructions meant you could reproduce the issue 🙂 and for the PR fix |
@Algunenano I was trying this in the new 24.x version released yesterday. I'm not sure how Clickhouse does it's releasing, should this be fixed within this new v24.x? I'm still seeing in docker |
v24.4.1.2088-stable.md:* Avoid crash when reading protobuf with recursive types #62506 (Raúl Marín). fixed only in 24.4.1.2088 |
ahh, thanks @den-crane |
Hi
I am using Clickhouse with Kafka & Protobuf, but it seems that the
google/protobuf/struct.proto
causes Clickhouse to crash. This is happening on Docker in MacOS on ARM and also in Kubernetes in GKE, also on ARM. I have tried this on both the24.3.2.23
andlatest
clickhouse versions. I am also aware that these were relatively recently added to Clickhouse through this #56741, which includes support forstruct.proto
. But it seems that Clickhouse doesn't like it. I can outline the steps and reproducible steps.Create Dockerfile
Add these schemas and mount them
a.proto
b.proto
Try and describe the schema:
The system will crash
Expected behavior
That Clickhouse parses the schema correctly and at least doesn't crash.
The text was updated successfully, but these errors were encountered: