[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_6

[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 e

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

2023-08-13 Thread Georgi Guninski
This may be fixed by the fix for sqrt(2), but I don't have such build. I haven't done exact profile of the memory leak and measure it with the "task manager" of XFCE. The leak is about few megabytes per seconds. Session: ``` c=0 while SR(float(0.5)): c += 1 #leaks ``` According to my tests the