[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] oTOSis: new MiNTLib and "virtual memory exhausted"

"Guido Flohr" <gufl0000@stud.uni-sb.de> writes:

> somebody of the oTOSis folks reported a bug that programs linked against
> the new MiNTLib fail already in the startup code with the error message
> from $Subject.  Frank has found out that the same happens under plain TOS
> because the startup code calls fdopen() which in turn calls
> Fcntl(F_GETFL). Implementing the Fcntl opcode in oTOSis should fix the
> problem.  Of course I will try to modify fdopen.c to work with plain TOS
> as well.

Sounds like that's the one. oTOSis have Fcntl(F_GETFL) implemented,
but it returned an error for this particular call to Fcntl(), which
caused fdopen() to return NULL, in which case MiNTLib prints out
virtual memory exhausted and exits.

I know now exactly what the error is, so I hope I'm able to fix this
in oTOSis. I already did a workaround in oTOSis, but not a good
solution yet. 

> Sorry for forgetting who reported the bug.

That would be me.