ARexx - potential bug or just a badly written script?

A forum for general AmigaOS 4.x support questions that are not platform-specific
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: ARexx - potential bug or just a badly written script?

Post by chris »

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.
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
Posts: 1185
Joined: Sun Jun 19, 2011 1:06 am

Re: ARexx - potential bug or just a badly written script?

Post by xenic »

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.
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.
AmigaOne X1000 with 2GB memory - OS4.1 FE
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: ARexx - potential bug or just a badly written script?

Post by chris »

xenic wrote:The problem must go deeper than newlib because I'm pretty sure ARexx (which is still 68k) doesn't use newlib.
It probably doesn't, but then I thought you'd eliminated ARexx as the cause by reproducing the problem with a DOS script?
I agree it's quite likely the realloc bug is actually a bug somewhere in Exec's memory handling.
Post Reply