[En-Nut-Discussion] tcpsm crash on socket timeouts

Marti Raudsepp marti at voicecom.ee
Thu Oct 21 12:32:53 CEST 2010


On Thu, Oct 21, 2010 at 12:35,  <uprinz2 at netscape.net> wrote:
> there are coming in broken packages at that moment that might cause this race condition you discovered.

Well that's easy to determine: is your socket thread priority higher than tcpsm?

> What is a bit astonishing is the fact, that I expect the ARM7 to enter bus-fault or hard-fault if adressing unsupported memory addresses.

In my case, most of the time it fails with undefined instruction
(__undef), sometimes data abort (__data_abort). It seems that there is
some randomness in the address it's trying to jump to. In some
unfortunate situations it jumps to real code. Maybe that's specific to
our application.

> But if I remember my last development on ARM7 this CPU is very tolerant.

Yeah, the Atmel AT91SAM7 series is pretty frustrating to debug. I hope
that other ARM vendors are better at raising bus errors in response to
erroneus memory accesses.

Regards,
Marti Raudsepp
Voicecom OÜ



More information about the En-Nut-Discussion mailing list