From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= Date: Sat, 18 May 2013 16:24:15 +0200 Subject: [U-Boot] sandbox: block driver using host file/device as backing store, crash in ext4 In-Reply-To: References: <1368574611.32246.2.camel@localhost> <1368653371.11014.26.camel@localhost> <1368654883.11014.29.camel@localhost> <1368666556.27007.23.camel@localhost> Message-ID: <1368887055.15404.7.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de tor 2013-05-16 klockan 21:53 -0700 skrev Simon Glass: > Sorry I meant: > > =>ext4ls host 0:3 > Segmentation fault (core dumped) > > It may not be your code, but I think the segfault is there. It's crashing in ext4 for me. #0 ext4fs_set_blk_dev (rbdd=0x6434a0 , info=info at entry=0x643980 ) at dev.c:56 #0 ext4fs_set_blk_dev (rbdd=0x6434a0 , info=info at entry=0x643980 ) at dev.c:56 56 get_fs()->total_sect = (info->size * info->blksz) >> 57 get_fs()->dev_desc->log2blksz; 58 get_fs()->dev_desc = rbdd; p(gdb) p get_fs() $2 = (struct ext_filesystem *) 0x644410 (gdb) p $2->dev_desc $5 = (block_dev_desc_t *) 0x0 Looks like a generic ext4 bug in the new block size handling code. I think it just needs to be shuffled around a bit so the dev_desc is assigned before, not after. Regards Henrik