This is the mail archive of the 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]

[Bug 1001732] New: fs-ecos bug/assertion

Please do not reply to this email. Use the web interface provided at:

           Summary: fs-ecos bug/assertion
           Product: eCos
           Version: unknown
          Platform: nios2_stratix2_2s60_rohs_tseplus (Stratix II, TSE+
        OS/Version: Nios II
            Status: UNCONFIRMED
          Severity: major
          Priority: low
         Component: Filesystem support
             Class: Advice Request

Created an attachment (id=2034)
 --> (
snapshot of debug window

I have encountered an issue where opening a file in write mode with
O_WRONLY|O_CREAT|O_TRUNC flags set is causing the code in fs-ecos.c (function
jffs2_to_os_mode()) to hit BUG(). I have an onboard CFI flash and an offboard
SPI flash. The problem is very intermittent and appears on both the flashes
(more often on SPI flash). So far I have been able to reproduce it by erasing
the SPI flash and then copying a file to it. The copy command sequence is as

copy->creat(destFile, filePermissions)->open( path, O_WRONLY | O_CREAT |
O_TRUNC, mode )->jffs2_open()->jffs2_truncate_file(uint32_t osmode).

When the error happens the argument osmode is either 0 or 10. In normal case
osmode is usually 0x16F0008 or 0x16F0001. I have attached snapshot of nios
debugger here for reference. 

Kindly let me know what could be the potential issue or areas to look at.
Appreciate your help.


Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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