How to settle SIGBUS error???

View: New views
3 Messages — Rating Filter:   Alert me  

How to settle SIGBUS error???

by grachel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I encountered a SIGBUS error when I run a phoneMe advanced program on eCos platform.Because eCos only support one process,I can't kill the process which encounters the SIGBUS error.Thus,this process will continue reporting the "Process #42 received signal 10, suspending" over and over again.Then, how should I do to settle this???Anyone can help me ?????

Re: How to settle SIGBUS error???

by Andrew Lunn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Mar 19, 2008 at 02:37:49AM -0700, grachel wrote:
>
> I encountered a SIGBUS error when I run a phoneMe advanced program on eCos
> platform.Because eCos only support one process,I can't kill the process
> which encounters the SIGBUS error.Thus,this process will continue reporting
> the "Process #42 received signal 10, suspending" over and over again.Then,
> how should I do to settle this???Anyone can help me ?????

Obviously you need to find out why it is accessing memory that does
not exist. Quite likely this is a null point dereference, or maybe you
have overrun your stack. gdb should help you debug your code. Are you
on an ARM? It could also be you are doing none aligned access.

     Andrew

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Re: How to settle SIGBUS error???

by grachel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Andrew Lunn-2 wrote:
On Wed, Mar 19, 2008 at 02:37:49AM -0700, grachel wrote:
>
> I encountered a SIGBUS error when I run a phoneMe advanced program on eCos
> platform.Because eCos only support one process,I can't kill the process
> which encounters the SIGBUS error.Thus,this process will continue reporting
> the "Process #42 received signal 10, suspending" over and over again.Then,
> how should I do to settle this???Anyone can help me ?????

Obviously you need to find out why it is accessing memory that does
not exist. Quite likely this is a null point dereference, or maybe you
have overrun your stack. gdb should help you debug your code. Are you
on an ARM? It could also be you are doing none aligned access.

     Andrew

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Thank you very much,Andrew.I will try it !
LightInTheBox - Buy quality products at wholesale price!