kou opened a new pull request, #15217:
URL: https://github.com/apache/arrow/pull/15217

   `Arrow::Table` refers the source input to prevent garbage collecting the 
source input. If the source input is garbage collected, `Arrow::Table` touches 
invalid memory. It causes a crash.
   
   `Arrow::Table` may return a sub object (table, record batch, chunked array 
and array) by its method. For example, `table[0].data` returns a chunked array 
of the first column. If the chunked array doesn't refer the source input and 
table is garbage collected, the chunked array touches invalid memory. It causes 
a crash.
   
   We can avoid the crash by referring the source input from sub objects too.


-- 
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]

Reply via email to