Raymond Chung
2005-04-25 19:35:42 UTC
Hi. I am getting this error and spent a day, but couldn't find.
Here is the assertion error:
===== CreatFile filepointer: 2007748
fd : 0
===== GOSFS_Close filepointer: 2007748
Failed assertion in brel: ((struct bhead *) ((char *) b - b->bh.bsize))->prevfree == 0 at ../src/geekos/bget.c, line 881, RA=13702, thread=0x0000c000
This assertion failure came from Free(file) in vfs.c
(struct File *)file pointers are the same, when I create and closing
-- as you see the pointer is 2007748.
For the test, I did following:
The last moment I return from GOSFS_Open(), Free(file) succeeded.
The first moment I convert it from Sys_Close(), Free(file) failed.
So, I assume something is happening between them.
But, /d/somefile test is calling Close() right after Open() succeeds.
Anyone had this problem?
Here is the assertion error:
===== CreatFile filepointer: 2007748
fd : 0
===== GOSFS_Close filepointer: 2007748
Failed assertion in brel: ((struct bhead *) ((char *) b - b->bh.bsize))->prevfree == 0 at ../src/geekos/bget.c, line 881, RA=13702, thread=0x0000c000
This assertion failure came from Free(file) in vfs.c
(struct File *)file pointers are the same, when I create and closing
-- as you see the pointer is 2007748.
For the test, I did following:
The last moment I return from GOSFS_Open(), Free(file) succeeded.
The first moment I convert it from Sys_Close(), Free(file) failed.
So, I assume something is happening between them.
But, /d/somefile test is calling Close() right after Open() succeeds.
Anyone had this problem?