From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 05 May 2010 14:59:52 +0200 Subject: [U-Boot] [PATCH] ubifsmount fails due to not initialized list In-Reply-To: References: <1271836039-19586-1-git-send-email-sbabic@denx.de> Message-ID: <4BE16BC8.7040903@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Quotient Remainder wrote: > Out of interest, how did something like this get away with only causing > an occasional failure? Well, there are some explanations. MMU is normally off and a Null Pointer does not cause an exception in u-boot. If we get a failure, it depends on the architecture we are using. On PowerPC, address 0 is accessible and then we get no failure. In this particular case (ubifsmount), the list is set but not used by the calling function. Because writing to address 0 is allowed, the bug is not noticeable. Different is on arm, where I have found the problem. Because in this case address 0 is not accessible at all, u-boot hangs and it is not possible to avoid to see that we have a problem.... Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================