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

Re: [microblaze-uclinux] Uart lite hanging



On Tue, November 18, 2008 09:43, Giulio Mazzoleni wrote:
> Hi Olof,
> looks like your are taking this problem very seriously!

Yes, we have to make this work. And it looks like the patch kit from Michal is
needed...

>> I'm currently investigating this and it looks like
>> it's not the uartlite driver to blame but the memory allocation
> system.
>
> I agree with you. As already written some posts ago I tried replacing
> the original uartlite driver with a completely new custom one (and very
> badly written - this is why I have not posted it yet), using the proc
> filesystem as input/output to userland applications.
> Strangely enough I could crash my test application in the usual way and
> on the same address.
>
>> It seems harder to encounter the hang if the sprintf statements are
> removed.
>
> Well, I don't know if it is impossible. What I can say is that if I put
> a call to sprintf, pow, exp (these are what I tried) I could crash the
> application very easly. I was not able to do the same without that call.

If you use anything that is using malloc() et all then you will most likely run into
this. That's why I'm trying to apply Michal's patch kit.

> I'll try to apply the gigantic patch, even if I could not find it yet.

It's been posted on the mailinglist as of June 2008. You'll find v2 and v4 - I can't
find any traces of v3. And Michal's git-server is currently off line, so it seems
that we have to apply them by hand. And I'm currently taking my first steps in
advanced git!

Keep you all posted, Olof
-- 
Olof Backing
CAG Contactor AB                              Office: +46 (0)8 752 81 00
Finlandsgatan 14                             Mobile: +46 (0)70 995 98 99
SE-164 74  KISTA                                 Fax: +46 (0)8 752 05 30

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/