Re: out of memory, even tho remembered nothing!

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless_ said...

See :
http://openeuphoria.org/pastey/159.wc for the source code
http://openeuphoria.org/pastey/160.wc for the err file.

Basically, open a huge file, gets() on it till done or crash. It crashed.

Windoze's Task Manager said eui.exe is using only 1,456 KB of memory. Nothing is stored, the length of the line gets()'d is added to the running total, and everything else is not remembered. Running out of memory seems a lil odd then.

So how does this work?

I ran this against a file here and I definitely saw a memory leak. I think the problem is in the call to gets(). We allocate a sequence at the beginning, but if we've hit EOF, it doesn't look like we ever free it. Actually, I think I've been chasing this for the last week or so, and this was the clue that I needed!

See ticket:799.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu