This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Memory leak in ecosynth in abnormal situation.
On Wed, 21 Jan 2004, Bart Veer wrote:
> >>>>> "John" == John Carter <john.carter@tait.co.nz> writes:
>
> John> We have found a strong memory leak in ecosynth that occurs
> John> in an abnormal situation.
>
> Obviously this should not be happening. In ecosynth.tcl, when an EOF
> has been detected it calls:
>
> fileevent $synth::_channel_from_app readable ""
>
> which should disconnect the channel from the event loop and hence from
> select().
OK, solved it.
The device code one of our guys had written didn't check for eof on
a channel in a read event handler. All that was required to fix it
was to check for EOF and close it.
I don't believe the problem has anything to do with eCos or eCos
examples or documentation.
Sorry and Thank you,
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter@tait.co.nz
New Zealand
A Million Monkeys can inflict worse things than just Shakespeare on
your system.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss