http://www.riscos.info/bugzilla3/show_bug.cgi?id=246
Summary: GCC 4.1.2 Rel 2: 'SO Manager' memory leak with
fork/exec
Product: GCC/GCCSDK
Version: other
Platform: Other
OS/Version: RISC OS
Status: NEW
Severity: normal
Priority: P1
Component: C compiler
AssignedTo: John.Tytgat@aaug.net
ReportedBy: duncan.moore@gmx.com
Estimated Hours: 0.0
GCCSDK GCC 4.1.2
SharedUnixLibrary 1.12
VRPC RISC OS 4.39
The program 'true' is:
int main(void) {return 0;}
The program 'test' is:
#include <stdio.h>
#include <stdlib.h>
int main(void) {
for (int i=0;;++i) {
if ((i&0x1F)==0) printf("%i\n",i);
system("true");
}
return 0;
}
While 'test' is running in a Task window, the 'SO Manager' and 'Module area'
memories (in 'Task Manager') continually increase.
When the 'SO Manager' memory gets to 1MB, 'test' gives the error message:
There is not enough memory to perform this operation.
Quit any unwanted applications or see the RISC OS User Guide for ways to
maximise memory.
(Memory cannot be moved)
After this, any ELF commands give the same error message.
This is the same message I've been getting after heavy use of ELF programs that
also use fork/exec.
--
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment