This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Malloc Hanging Multiple Threads


On Mon, Feb 11, 2002 at 04:02:44PM -0700, Douglas Bush wrote:
> Would using an old redboot image cause these kinds of problems?  In
> particular I've noticed that there have been lots of changes to the
> Ethernet driver in the last 6 months.

You have at least two problems here

1) It hung
2) gdb is giving you the wrong file names/line numbers

Redboot is generally backward compatible, but it could be contributing
to the hang. This is especially true if you are using ethernet
debugging, which until recently did have known problems.

I don't see how redboot can affect your symbol table though. I would
sort this problem out first. Its hard to debug something if your
debugger is telling you rubbish.

         Andrew
 
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Andrew Lunn
> Sent: Monday, February 11, 2002 1:24 AM
> To: Douglas Bush
> Cc: eCos Discussion List
> Subject: Re: [ECOS] Malloc Hanging Multiple Threads
> 
> On Fri, Feb 08, 2002 at 02:52:18PM -0700, Douglas Bush wrote:
> Think about it. Why would the idle thread be in malloc.cxx? 
> 
> >
> /ecos-c/pa/cvs/eCosRepository/ecos/packages/services/memalloc/common/cur
> > rent/src/malloc.cxx:166
> > * 1 Thread 1 ( Name: Idle Thread, State: running, Priority: 31 )
> > idle_thread_main (data=142466)
> >     at
> >
> /ecos-c/pa/cvs/eCosRepository/ecos/packages/kernel/current/src/common/th
> > r---Type <return> to continue, or q <return> t
> > o quit---
> 
> My guess is that the image you are executing and the image gdb is
> using are not one and the same.
> 
>       Andrew
> 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> 
> 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]