You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2023/10/18 15:25:19 UTC

[I] [Python] Logging memory pool crashes if set as the default memory pool [arrow]

jorisvandenbossche opened a new issue, #38328:
URL: https://github.com/apache/arrow/issues/38328

   This crashes:
   
   ```
   In [1]: pa.set_memory_pool(pa.logging_memory_pool(pa.default_memory_pool()))
   
   In [2]: pa.array([1, 2, 3])
   Segmentation fault (core dumped)
   ```
   
   while passing it as an argument to the function allocating the data works fine:
   
   ```
   In [1]: pa.array([1, 2, 3], memory_pool=pa.logging_memory_pool(pa.default_memory_pool()))
   Allocate: size = 256, alignment = 64
   Allocate: size = 64, alignment = 64
   Reallocate: old_size = 256, new_size = 64, alignment = 64
   Free: size = 64, alignment = 64
   Out[1]: 
   <pyarrow.lib.Int64Array object at 0x7f365b0568c0>
   [
     1,
     2,
     3
   ]
   ```


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] Logging memory pool crashes if set as the default memory pool [arrow]

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #38328:
URL: https://github.com/apache/arrow/issues/38328#issuecomment-1775348212

   And actually passing it as an argument still crashes when the data gets cleaned up:
   
   ```
   In [1]: res = pa.array([1, 2, 3], memory_pool=pa.logging_memory_pool(pa.default_memory_pool()))
   Allocate: size = 256, alignment = 64
   Allocate: size = 64, alignment = 64
   Reallocate: old_size = 256, new_size = 64, alignment = 64
   Free: size = 64, alignment = 64
   
   In [2]: del res
   Segmentation fault (core dumped)
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org