public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001732] New: fs-ecos bug/assertion
@ 2013-01-18 17:14 bugzilla-daemon
  2013-01-18 17:19 ` [Bug 1001732] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-01-18 17:14 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001732

           Summary: fs-ecos bug/assertion
           Product: eCos
           Version: unknown
          Platform: nios2_stratix2_2s60_rohs_tseplus (Stratix II, TSE+
                    design)
        OS/Version: Nios II
            Status: UNCONFIRMED
          Severity: major
          Priority: low
         Component: Filesystem support
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: praveenrai@ge.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=2034)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=2034)
snapshot of debug window

Hi,
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
follows:

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.

Thanks,
Praveen

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread
* [Bug 1001732] New: fs-ecos bug/assertion
@ 2013-01-18 17:14 bugzilla-daemon
  2013-01-18 17:19 ` [Bug 1001732] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-01-18 17:14 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001732

           Summary: fs-ecos bug/assertion
           Product: eCos
           Version: unknown
          Platform: nios2_stratix2_2s60_rohs_tseplus (Stratix II, TSE+
                    design)
        OS/Version: Nios II
            Status: UNCONFIRMED
          Severity: major
          Priority: low
         Component: Filesystem support
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: praveenrai@ge.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=2034)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=2034)
snapshot of debug window

Hi,
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
follows:

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.

Thanks,
Praveen

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-01-27  3:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18 17:14 [Bug 1001732] New: fs-ecos bug/assertion bugzilla-daemon
2013-01-18 17:19 ` [Bug 1001732] " bugzilla-daemon
2013-01-24 17:09 ` bugzilla-daemon
2013-01-25  1:35 ` bugzilla-daemon
2013-01-25 15:29 ` bugzilla-daemon
2013-01-26 18:16 ` bugzilla-daemon
2013-01-26 21:44 ` bugzilla-daemon
2013-01-27  3:07 ` bugzilla-daemon
2013-01-18 17:14 [Bug 1001732] New: " bugzilla-daemon
2013-01-18 17:19 ` [Bug 1001732] " bugzilla-daemon
2013-01-24 17:09 ` bugzilla-daemon
2013-01-25  1:35 ` bugzilla-daemon
2013-01-25 15:29 ` bugzilla-daemon
2013-01-26 18:16 ` bugzilla-daemon
2013-01-26 21:44 ` bugzilla-daemon
2013-01-27  3:07 ` bugzilla-daemon

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