linux-mips
[Top] [All Lists]

Re: need help on bus error problem

To: Teresa Tao <TERESAT@TTI-DM.COM>
Subject: Re: need help on bus error problem
From: Jun Sun <jsun@mvista.com>
Date: Mon, 27 Oct 2003 09:49:54 -0800
Cc: linux-mips@linux-mips.org, jsun@mvista.com
In-reply-to: <92F2591F460F684C9C309EB0D33256FA01B54329@trid-mail1.tridentmicro.com>; from TERESAT@TTI-DM.COM on Sat, Oct 25, 2003 at 09:44:35AM -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <92F2591F460F684C9C309EB0D33256FA01B54329@trid-mail1.tridentmicro.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5i
On Sat, Oct 25, 2003 at 09:44:35AM -0700, Teresa Tao wrote:
> Hi there,
> 
> I am working on an real time video playback applicaion on a mips cpu. But 
> after my video application play a while like 5 to 10 minutes, a bus error 
> happened.
> 
> We add some debug meesage in the kernel, so we know that after the do_ade 
> function inside the unalign.c, the bus error happens for the opcode lw or sw. 
> So my guess is that I have an unaligned memory pointer(not in 4 byte 
> boundary).
> But my puzzle is that if I have an unaligned memory pointer, it should happen 
> at the first loop I playback, how come it happens after it plays several 
> loops?
> 

There are many reasons for having bus error, cache, errant pointers,
unstable hardware, or some tricky kernel bugs which happens when
certain conditions happen together.

> Is there a possibility that my application's stack being trashed after a 
> while? but I don't have recursive calls inside my application.

Everything is possible.  :)

Jun

<Prev in Thread] Current Thread [Next in Thread>