From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7615 invoked by alias); 18 Jan 2013 17:14:37 -0000 Received: (qmail 7599 invoked by uid 22791); 18 Jan 2013 17:14:37 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Jan 2013 17:14:30 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id 2810F4680001; Fri, 18 Jan 2013 17:14:29 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001732] New: fs-ecos bug/assertion X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Filesystem support X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: praveenrai@ge.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 18 Jan 2013 17:14:00 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2013/txt/msg00022.txt.bz2 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.