This is the mail archive of the
mailing list for the eCos project.
[Bug 1001732] New: fs-ecos bug/assertion
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Fri, 18 Jan 2013 17:14:27 +0000
- Subject: [Bug 1001732] New: fs-ecos bug/assertion
- Auto-submitted: auto-generated
Please do not reply to this email. Use the web interface provided at:
Summary: fs-ecos bug/assertion
Platform: nios2_stratix2_2s60_rohs_tseplus (Stratix II, TSE+
OS/Version: Nios II
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: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.