public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "liu hua" <rongye_liu@hotmail.com>
To: andrew@lunn.ch
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] JFFS2 and cyg_thread_delay
Date: Thu, 29 Jun 2006 03:34:00 -0000	[thread overview]
Message-ID: <BAY119-F33B34F8694D0340A867CACE87C0@phx.gbl> (raw)
In-Reply-To: <20060613154659.GF15066@lunn.ch>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 3931 bytes --]

Think your help.

When I use ASSERT and trace my ecos-app, it is hanged in Cyg_Mutex::lock() 
each time. It may seem be that one mutex is not be initiated. But I cannt 
know what it is.

Following is the TRACE result:


TRACE: mlqueue.cxx         [  89] 
Cyg_Scheduler_Implementation::Cyg_Scheduler_Implementation() {{enter
TRACE: mlqueue.cxx         [ 110] 
Cyg_Scheduler_Implementation::Cyg_Scheduler_Implementation() }}return void
TRACE: except.cxx          [  95] 
Cyg_Exception_Control::Cyg_Exception_Control()               {{enter
TRACE: except.cxx          [ 107] 
Cyg_Exception_Control::Cyg_Exception_Control()               }}return void
TRACE: mutex.cxx           [  92] Cyg_Mutex::Cyg_Mutex()                    
                   {{enter
TRACE: mutex.cxx           [ 130] Cyg_Mutex::Cyg_Mutex()                    
                   }}return void
init bitbang i2c bus...ok!
TRACE: clock.cxx           [  87] Cyg_Counter::Cyg_Counter()                
                   {{enter
TRACE: clock.cxx           [  87] Cyg_Counter::Cyg_Counter()                
                   }}RETURNING UNSET!
TRACE: clock.cxx           [ 432] Cyg_Clock::Cyg_Clock()                    
                   {{enter
TRACE: clock.cxx           [ 432] Cyg_Clock::Cyg_Clock()                    
                   }}RETURNING UNSET!
TRACE: intr.cxx            [  86] Cyg_Interrupt::Cyg_Interrupt()            
                   {{enter
TRACE: intr.cxx            [  86] Cyg_Interrupt::Cyg_Interrupt()            
                     ((vector=51, priority=1, data=009ae0a4, isr=000e1a6c, 
dsr=000e1a94))
TRACE: intr.cxx            [ 109] Cyg_Interrupt::Cyg_Interrupt()            
                   }}return void
TRACE: clock.cxx           [ 838] Cyg_RealTimeClock::Cyg_RealTimeClock()    
                   {{enter
TRACE: intr.cxx            [ 395] void Cyg_Interrupt::attach()              
                     {{enter
TRACE: intr.cxx            [ 456] void Cyg_Interrupt::attach()              
                     }}return void
TRACE: intr.cxx            [ 659] static void 
Cyg_Interrupt::unmask_interrupt()                  {{enter
TRACE: intr.cxx            [ 672] static void 
Cyg_Interrupt::unmask_interrupt()                  }}return void
TRACE: clock.cxx           [ 838] Cyg_RealTimeClock::Cyg_RealTimeClock()    
                   }}RETURNING UNSET!
TRACE: mutex.cxx           [ 216] cyg_bool Cyg_Mutex::lock()                
                   {{enter
ASSERT FAIL: <FFFF>mutex.cxx[320]cyg_bool Cyg_Mutex::lock() Bad this 
pointer
ASSERT FAIL: mutex.cxx           [ 320] cyg_bool Cyg_Mutex::lock()          
                   Bad this pointer



>From: Andrew Lunn <andrew@lunn.ch>
>To: liu hua <rongye_liu@hotmail.com>
>CC: ecos-discuss@ecos.sourceware.org
>Subject: Re: [ECOS] JFFS2 and cyg_thread_delay
>Date: Tue, 13 Jun 2006 17:46:59 +0200
>
>On Tue, Jun 13, 2006 at 11:31:13PM +0800, liu hua wrote:
> > hi,
> >
> > I have met a trouble problem when using JFFS2 file system.
> >
> > My platform is ARM9 , 16M FLASH (Intel 28F128). First, it run eCos with
> > JFFS2 nomally (mount/read/write/umount,etc).
> >
> > But recent I find that when I create a file or write a file, the
> > cyg_thread_delay cannot run normally. Before I write a
> > file,cyg_thread_delay(100) can delay about 1 second. But after I write 
a
> > file and close it, cyg_thread_delay(100) or cyg_thread_delay(10000) 
return
> > without any delay!
> >
> > What happen? How I solve it? I wish get help from anyone!
>
>You have probably overflowed your stack and corrupted a thread
>structure. Enable stack checking in the infra package.
>
>            Andrew

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn/  


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

  reply	other threads:[~2006-06-29  3:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13 15:31 liu hua
2006-06-13 15:50 ` Andrew Lunn
2006-06-29  3:34   ` liu hua [this message]
     [not found] <20060614075001.68080.qmail@web32411.mail.mud.yahoo.com>
2006-06-14 10:44 ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY119-F33B34F8694D0340A867CACE87C0@phx.gbl \
    --to=rongye_liu@hotmail.com \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).