There's a chance that ram-handler's buffer (or some buffer in DOS) uses realloc(), in which case it might be affected by this bug, which seems to have suspiciously similar symptoms.xenic wrote:My takeaway from this topic is that some fixes are needed in OS4. It might be interresting to see if a C program can produce the same excess memory consumption by performing a large number of consecutive data writes to a file in ram: like the ARexx and DOS scripts.
ARexx - potential bug or just a badly written script?
Re: ARexx - potential bug or just a badly written script?
Re: ARexx - potential bug or just a badly written script?
The problem must go deeper than newlib because I'm pretty sure ARexx (which is still 68k) doesn't use newlib. Perhaps it's the bug that Joerg mentioned and Solie doesn't want to reveal. Your test case and my AmigaDOS test (shown earlier in this topic) could be considered extreme cases but I think Belxjander's ARexx script would be a typical way of writing a large amount of text to a file with ARexx.chris wrote:There's a chance that ram-handler's buffer (or some buffer in DOS) uses realloc(), in which case it might be affected by this bug, which seems to have suspiciously similar symptoms.
AmigaOne X1000 with 2GB memory - OS4.1 FE
Re: ARexx - potential bug or just a badly written script?
It probably doesn't, but then I thought you'd eliminated ARexx as the cause by reproducing the problem with a DOS script?xenic wrote:The problem must go deeper than newlib because I'm pretty sure ARexx (which is still 68k) doesn't use newlib.
I agree it's quite likely the realloc bug is actually a bug somewhere in Exec's memory handling.