public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] JFFS2: endless loop in jffs2_kill_fragtree
@ 2004-07-28 12:18 Mike Jastrebtsoff
  0 siblings, 0 replies; only message in thread
From: Mike Jastrebtsoff @ 2004-07-28 12:18 UTC (permalink / raw)
  To: ecos-discuss

Hello, All

After several operations of opening/creating files on JFFS2

fd = open("...", O_TRUNC|O_CREAT|O_RDWR);

enters the endless cycle in

jffs2_do_clear_inode(...)->jffs2_kill_fragtree(...) -> endless loop!

nodelist.c:
...
void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c)
{
        ...
        while(frag) {
                if (frag->rb.rb_left) {
                        D2(printk(KERN_DEBUG "Going left from frag (%p) %d-%d\n", 
                                  frag, frag->ofs, frag->ofs+frag->size));
                        frag = frag_left(frag);
                        continue;
                }
                if (frag->rb.rb_right) {
                        D2(printk(KERN_DEBUG "Going right from frag (%p) %d-%d\n", 
                                  frag, frag->ofs, frag->ofs+frag->size));
                        frag = frag_right(frag);
                        continue;
                }

         ...
}

After several cycles "frag" pointer becomes a trash (smth. like frag == 0xbc010001)

I am using EB55 board, GCC 3.3.3, ecos from CVS.
I've tested the memory, flash is ok.

Any ideas?
-- 
Regards,
 Mike


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-28  5:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-28 12:18 [ECOS] JFFS2: endless loop in jffs2_kill_fragtree Mike Jastrebtsoff

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).