[ 
https://issues.apache.org/jira/browse/SPARK-62270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-62270.
----------------------------------
    Fix Version/s: connect-rust-4.4.0
       Resolution: Fixed

Issue resolved by pull request 958
[https://github.com/apache/spark-connect-rust/pull/958]

> Merge or copy a message of the Python client's protobuf runtime into a 
> message below it without growing it forever, as upb does
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62270
>                 URL: https://issues.apache.org/jira/browse/SPARK-62270
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.4.0
>
>
> In the protobuf runtime of the Python client (crates/pyspark-rs/src/pbmsg), 
> MergeFrom (and CopyFrom) of a message into a sub-message of itself recurses 
> without bound, until the process runs out of memory or panics growing its 
> stack. For example: r = proto.Relation(); r.limit.limit = 1; t = 
> r.limit.input; t.MergeFrom(r). The cause is the object source of 
> merge_into_with: mark_present attaches the destination under the source, and 
> the merge then reads the source while it adds to it. upb serializes the 
> source first and finishes. Found by the review of SPARK-62264; it predates 
> that change (one fuzz run took 114 GB). Merge or copy such a message as upb 
> does.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to