Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E3jxq-0004uP-J3 for mharc-grub-devel@gnu.org; Fri, 12 Aug 2005 20:33:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3jxo-0004tn-Qd for grub-devel@gnu.org; Fri, 12 Aug 2005 20:33:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3jxl-0004sW-8T for grub-devel@gnu.org; Fri, 12 Aug 2005 20:33:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3jxl-0004rt-3y for grub-devel@gnu.org; Fri, 12 Aug 2005 20:33:25 -0400 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3k8p-0004l1-68 for grub-devel@gnu.org; Fri, 12 Aug 2005 20:44:51 -0400 Received: from [192.168.0.21] (unknown [213.213.238.70]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id 388EA19C8089 for ; Sat, 13 Aug 2005 02:29:32 +0200 (CEST) Message-ID: <42FD3EE7.80903@inma.ucl.ac.be> Date: Sat, 13 Aug 2005 02:29:27 +0200 From: Vincent Guffens User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) X-Accept-Language: en MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ucl-inma-MailScanner-Information: Please contact the ISP for more information X-ucl-inma-MailScanner: Found to be clean X-MailScanner-From: guffens@inma.ucl.ac.be Subject: problem with NESTED_FUNC_ATTR : unaligned pointer X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 00:33:29 -0000 With recent version of GRUB, I have some problem when doing some ls or tab-completion commands.It says unaligned pointer or out of range pointer. I spent some time on it and I think I found the problem. In the file config.h, the NESTED_FUNC_ATTR has no value but it should be set to : #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2))) By comparing a version that work on my pc and the one that doesn't work, I found that that in aclocal.m4, the line return nestedfunc(0,0,0) was now ! nestedfunc(0,0,0). As a result, the macro NESTED_FUNC_ATTR is not defined anymore and a pointer that was pasted as a third argument of a nested function was corrupted. This appends in grub_ext2_dir() in the nested iterate() function which does a grub_free(node). The pointer node is the one that was corrupted. Maybe this is also the same problem that the one that has been reported recently for the 1.90 release although the description is quite different. -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman