[sage-devel] Re: Memory leaks in `while SR(float(0.5))` and in `a=gp('bnfinit(x^2+1)')`

2023-08-13 Thread Volker Braun
That is form ComplexIntervalField:

==4190879== 955,264 bytes in 39,803 blocks are still reachable in loss 
record 1,352 of 1,356
==4190879==at 0x484182F: malloc (vg_replace_malloc.c:431)
==4190879==by 0x1A6D3B07: sig_malloc (memory.c:1898)
==4190879==by 0x1A6D3B07: __pyx_f_4sage_3ext_6memory_sage_sig_malloc 
(memory.c:1517)
==4190879==by 0x153A4465: ???
==4190879==by 0x153A43F2: ???
==4190879==by 0x1C86D180: ???
==4190879==by 0x1C9F5B52: 
__pyx_pf_4sage_5rings_16complex_interval_27ComplexIntervalFieldElement___cinit__
 
(complex_interval.c:4266)
==4190879==by 0x1C9F5B52: 
__pyx_pw_4sage_5rings_16complex_interval_27ComplexIntervalFieldElement_1__cinit__
 
(complex_interval.c:4199)
==4190879==by 0x1C9F5B52: 
__pyx_tp_new_4sage_5rings_16complex_interval_ComplexIntervalFieldElement 
(complex_interval.c:21613)
==4190879==by 0x49FAE04: type_call (typeobject.c:1100)
==4190879==by 0x49A25E9: _PyObject_Call (call.c:343)
==4190879==by 0x49A25E9: _PyObject_Call (call.c:313)
==4190879==by 0x494F44B: _PyEval_EvalFrameDefault (ceval.c:5379)
==4190879==by 0x4A6F8DF: _PyEval_EvalFrame (pycore_ceval.h:73)
==4190879==by 0x4A6F8DF: _PyEval_Vector (ceval.c:6435)
==4190879==by 0x155B1F7E: __Pyx_PyObject_Call (coerce_maps.c:14540)
==4190879==by 0x155B1F7E: __Pyx_PyObject_Call2Args (coerce_maps.c:14797)
==4190879==by 0x155BF403: 
__pyx_f_4sage_9structure_11coerce_maps_24DefaultConvertMap_unique__call_ 
(coerce_maps.c:4719)

On Sunday, August 13, 2023 at 6:57:47 PM UTC+2 Georgi Guninski wrote:

> ```
> while 1: a=bool(SR(float(0.5)))
> ```
> leaks much. The stack and the global vars appear ugly to me.
> -- 
> guninski
> https://www.guninski.com/me.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/8cb18968-dbd5-4aef-862f-948a0586e307n%40googlegroups.com.


[sage-devel] Re: Memory leaks in `while SR(float(0.5))` and in `a=gp('bnfinit(x^2+1)')`

2023-08-13 Thread Georgi Guninski
```
while 1:  a=bool(SR(float(0.5)))
```
leaks much. The stack and the global vars appear ugly to me.
-- 
guninski
https://www.guninski.com/me.html

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAGUWgD-wfE_M9A%2BHB84J%3DVm97dEW7pBKSykGBqVD8mOuOfSSHA%40mail.gmail.com.