zanmato1984 commented on issue #39332: URL: https://github.com/apache/arrow/issues/39332#issuecomment-1870930871
@tmaxwell-anthropic As you mentioned: > I believe this corresponds to [`apache-arrow-12.0.1`/cpp/src/arrow/compute/light_array.cc#L329-L331](https://github.com/apache/arrow/blob/apache-arrow-12.0.1/cpp/src/arrow/compute/light_array.cc?rgh-link-date=2023-12-20T23%3A20%3A15Z#L329-L331). Suppose `min_new_size` is slightly larger than 2^30. If `new_size` is initially some power of two, it will double until it hits 2^30; and then it will try to double again, but overflow to -2147483648; and then try to double again, and become 0. This is another problem independent of what I discovered for the segmentation fault. I found this when I was debugging the UT for my fix. Now I've included the fix for the infinite loop in my PR as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
