Skip to contentSkip to conversation

nilfs_cpfile_delete_checkpoints: cannot delete block

DISCUSSION admin-/[email protected] 2 participants 13 messages May 5, 2009 – May 11, 2009 10 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Thank you.
I will try this patch in a few hours.
If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

Bye,
David Arendt

-original message-
Subject: Re: [NILFS users] nilfs_cpfile_delete_checkpoints: cannot delete block
From: Ryusuke Konishi <[email protected]>
Date: 05/05/2009 13:24

Hi David,

Quoted 7 lines · David Arendt

Hi,

This night. I had lots of:

nilfs_btree_propagate: key = 67, level == 0

On the parition where cleanerd has failed.

This error is related to the GC failure.

Both logs indicate that btree look-up of the 67th block on the checkpoint file failed.

I suspect inconsistency between the block on page cache and btree; the block was removed from the btree but were remaining on the page cache.

Could you try the following bugfix patch?

The patch ensures to clear dirty state of page and buffer after removal of block, and would prevent the inconsistency.

Thanks in advance,
Ryusuke Konishi
--

fs/btnode.c +1 -3
index 5e83c60..11a7305 100644
@@ -176,7 +176,6 @@ void nilfs_btnode_delete(struct buffer_head *bh)
 	struct address_space *mapping;
 	struct page *page = bh->b_page;
 	pgoff_t index = page_index(page);
-	int still_dirty;
 
 	page_cache_get(page);
 	lock_page(page);
@@ -186,12 +185,11 @@ void nilfs_btnode_delete(struct buffer_head *bh)
 		BH_DEBUG(bh, "deleting unused btnode buffer");
 
 	nilfs_forget_buffer(bh);
-	still_dirty = PageDirty(page);
 	mapping = page->mapping;
 	unlock_page(page);
 	page_cache_release(page);
 
-	if (!still_dirty && mapping)
+	if (mapping)
 		invalidate_inode_pages2_range(mapping, index, index);
 }
 
fs/mdt.c +4 -5
index 2792e76..4c9fb00 100644
@@ -327,7 +327,7 @@ int nilfs_mdt_delete_block(struct inode *inode, unsigned long block)
 
 	mdt_debug(3, "called (ino=%lu, blkoff=%lu)\n", inode->i_ino, block);
 	err = nilfs_bmap_delete(ii->i_bmap, block);
-	if (likely(!err)) {
+	if (!err || err == -ENOENT) {
 		nilfs_mdt_mark_dirty(inode);
 		nilfs_mdt_forget_block(inode, block);
 	}
@@ -357,7 +357,6 @@ int nilfs_mdt_forget_block(struct inode *inode, unsigned long block)
 	struct page *page;
 	unsigned long first_block;
 	int ret = 0;
-	int still_dirty;
 
 	mdt_debug(3, "called (ino=%lu, blkoff=%lu)\n", inode->i_ino, block);
 	page = find_lock_page(inode->i_mapping, index);
@@ -373,13 +372,13 @@ int nilfs_mdt_forget_block(struct inode *inode, unsigned long block)
 
 		bh = nilfs_page_get_nth_block(page, block - first_block);
 		nilfs_forget_buffer(bh);
+	} else {
+		__nilfs_clear_page_dirty(page);
 	}
-	still_dirty = PageDirty(page);
 	unlock_page(page);
 	page_cache_release(page);
 
-	if (still_dirty ||
-	    invalidate_inode_pages2_range(inode->i_mapping, index, index) != 0)
+	if (invalidate_inode_pages2_range(inode->i_mapping, index, index) != 0)
 		ret = -EBUSY;
 	mdt_debug(3, "done (err=%d)\n", ret);
 	return ret;
fs/page.c +2 -1
index 9cf93c3..d333fef 100644
@@ -129,7 +129,8 @@ void nilfs_forget_buffer(struct buffer_head *bh)
 
 	lock_buffer(bh);
 	clear_buffer_nilfs_volatile(bh);
-	if (test_clear_buffer_dirty(bh) && nilfs_page_buffers_clean(page))
+	clear_buffer_dirty(bh);
+	if (nilfs_page_buffers_clean(page))
 		__nilfs_clear_page_dirty(page);
 
 	clear_buffer_uptodate(bh);
#2 lore raw
In reply to a message not in the archive

Hi!

Quoted 5 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Ryusuke Konishi

#4 lore raw
In reply to a message not in the archive

Hi,

I have applied your patch now. Also the garbage collector didn't crash until now. I have chosen to not reformat for further testing as there are only temporary files on this partition where loosing them would not be a big problem.

Bye,
David Arendt

Quoted 15 lines · Ryusuke Konishi

Hi!

Quoted 6 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Ryusuke Konishi

#6 lore raw
In reply to a message not in the archive

Hi,

after cleaner was running for 2 hours and freeing up 200gbytes of space I had the following crash:

nilfs_cpfile_delete_checkpoints: cannot delete block: cno=76377, range = [75980, 76972)
NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 NILFS_PAGE_BUG(c10d67e0): cnt=2 index#=74049180 flags=0x40000835 mapping=f71d10d4 ino=0
BH[0] d3cbdb30: cnt=2 block#=74049180 state=0x2002b

------------[ cut here ]------------
kernel BUG at /home/admin/x/nilfs-2.0.12/fs/btnode.c:233!
invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 2285, comm: segctord Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<f8331680>] EFLAGS: 00010282 CPU: 2
EIP is at nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2]
EAX: 00000038 EBX: 003ba23a ECX: 00000092 EDX: 0307b000
ESI: 00000000 EDI: 00000000 EBP: f2783afc ESP: f6c13ce0
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process segctord (pid: 2285, ti=f6c12000 task=f75d5cc0 task.ti=f6c12000)

Stack:
 f83366b8 00000001 f2783af8 00000000 f71d10d4 d3cbdb30 003ba248 00000000
 f833184d 00000000 f2783ac8 f2783ad4 f71d1044 f83328c9 f2783ae8 f83436a4
 00000000 f2783a78 f71d1044 f83342fe 00000001 00000001 02783a78 f2783ac8
Call Trace:
 [<f83366b8>] nilfs_dat_prepare_entry+0x18/0x20 [nilfs2]
 [<f833184d>] nilfs_bmap_prepare_update+0x2d/0x60 [nilfs2]
 [<f83328c9>] nilfs_btree_prepare_update_v+0xe9/0x100 [nilfs2]
 [<f83342fe>] nilfs_btree_propagate_v+0x17e/0x210 [nilfs2]
 [<f833538a>] nilfs_btree_propagate+0xba/0x160 [nilfs2]
 [<f8331aa6>] nilfs_bmap_propagate+0x26/0x40 [nilfs2]
 [<f833e42e>] nilfs_collect_file_node+0x1e/0x50 [nilfs2]
 [<f833a5a1>] nilfs_segctor_apply_buffers+0x51/0xb0 [nilfs2]
 [<f833a975>] nilfs_segctor_scan_file+0x125/0x1f0 [nilfs2]
 [<f833e410>] nilfs_collect_file_node+0x0/0x50 [nilfs2]
 [<c019177b>] __getblk+0x7b/0x210
 [<f8339a5c>] nilfs_segbuf_extend_segsum+0x1c/0x50 [nilfs2]
 [<f833cb5d>] nilfs_segctor_do_construct+0x166d/0x18c0 [nilfs2]
 [<f8341898>] nilfs_palloc_commit_free_entry+0xc8/0x100 [nilfs2]
 [<c011c25b>] update_curr+0x7b/0xe0
 [<c011f9bb>] finish_task_switch+0x2b/0xa0
 [<f833199f>] nilfs_bmap_test_and_clear_dirty+0x2f/0x40 [nilfs2]
 [<f8330e2e>] nilfs_mdt_fetch_dirty+0xe/0x30 [nilfs2]
 [<f833a4c3>] nilfs_test_metadata_dirty+0x93/0xb0 [nilfs2]
 [<f833a534>] nilfs_segctor_confirm+0x54/0x70 [nilfs2]
 [<f833d009>] nilfs_segctor_construct+0x99/0xb0 [nilfs2]
 [<f833d7ba>] nilfs_segctor_thread+0x11a/0x2b0 [nilfs2]
 [<f833d310>] nilfs_construction_timeout+0x0/0x10 [nilfs2]
 [<f833d6a0>] nilfs_segctor_thread+0x0/0x2b0 [nilfs2]
 [<c0136e92>] kthread+0x42/0x70
 [<c0136e50>] kthread+0x0/0x70
 [<c010391b>] kernel_thread_helper+0x7/0x1c
Code: ff ff ff 8b 54 24 14 8b 42 08 e8 1c b8 e1 c7 89 f8 83 c4 24 5b 5e 

5f 5d c3 e8 3d 78 0d c8 eb b4 0f 0b eb fe 89 d0 e8 40 e7 ff ff <0f> 0b eb fe 89 d0 e8 25 b7 e1 c7 e9 2d ff ff ff 53 b9 ff ff ff
EIP: [<f8331680>] nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2] SS:ESP 0068:f6c13ce0

---[ end trace 0a4368694028129d ]---

note: segctord[2285] exited with preempt_count 1

Bye,
David Arendt

Quoted 35 lines · David Arendt

Hi,

I have applied your patch now. Also the garbage collector didn't crash until now. I have chosen to not reformat for further testing as there are only temporary files on this partition where loosing them would not be a big problem.

Bye,
David Arendt

Quoted 11 lines · Ryusuke Konishi

Hi!

Quoted 7 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

Quoted 6 lines

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Ryusuke Konishi

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

#8 lore raw
In reply to a message not in the archive

Hi,

The following error occurred after running cleaner once again after this error, but some more space could be freed up.

BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [<c015792e>] shrink_page_list+0x31e/0x6d0
*pdpt = 000000002bb7f001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 333, comm: kswapd0 Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<c015792e>] EFLAGS: 00010282 CPU: 3
EIP is at shrink_page_list+0x31e/0x6d0
EAX: 00000000 EBX: c158f300 ECX: 40000811 EDX: ecc48e54
ESI: f6c5df70 EDI: 00000001 EBP: f6c5debc ESP: f6c5dd84
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process kswapd0 (pid: 333, ti=f6c5c000 task=f7482000 task.ti=f6c5c000)

Stack:
 c01575a2 00000000 f6c5de0c 00000000 00000000 00000000 00000009 ecc48e54
 00000009 00000001 c1622320 c1622340 c1622360 c1624d40 c1624d60 c1624d80
 c1624da0 c1624dc0 c1624de0 00000001 c16a5d80 c158f400 00000000 c0538e1c
Call Trace:
 [<c01575a2>] shrink_active_list+0x332/0x3a0
 [<c01569a8>] isolate_pages_global+0x88/0x210
 [<c01556e9>] ____pagevec_lru_add+0x119/0x130
 [<c0157f04>] shrink_list+0x224/0x560
 [<c01584b7>] shrink_zone+0x277/0x300
 [<c0158fa8>] kswapd+0x518/0x530
 [<c0156920>] isolate_pages_global+0x0/0x210
 [<c01371b0>] autoremove_wake_function+0x0/0x50
 [<c011bb2d>] complete+0x3d/0x60
 [<c0158a90>] kswapd+0x0/0x530
 [<c0136e92>] kthread+0x42/0x70
 [<c0136e50>] kthread+0x0/0x70
 [<c010391b>] kernel_thread_helper+0x7/0x1c
Code: 00 00 8b 50 04 89 c8 c1 e8 0b 83 e0 01 29 c2 83 fa 02 0f 85 f0 fd 
ff ff 8b 44 24 1c 85 c0 0f 84 f3 01 00 00 8b 54 24 1c 8b 42 38 <8b> 00 
85 c0 0f 84 d8 fe ff ff 64 a1 00 60 5a c0 f6 40 0e 80 8b
EIP: [<c015792e>] shrink_page_list+0x31e/0x6d0 SS:ESP 0068:f6c5dd84
---[ end trace 4d2b343635092946 ]---
BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [<c015792e>] shrink_page_list+0x31e/0x6d0
*pdpt = 000000002bb7f001 *pde = 0000000000000000
Oops: 0000 [#2] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 7032, comm: nilfs_cleanerd Tainted: P D (2.6.29.2server #1)
P5QL-E
EIP: 0060:[<c015792e>] EFLAGS: 00210286 CPU: 0
EIP is at shrink_page_list+0x31e/0x6d0
EAX: 00000000 EBX: c158f420 ECX: 40000811 EDX: ecc4b9d4
ESI: ebd79d70 EDI: 00000001 EBP: ebd79cd8 ESP: ebd79ba0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 7032, ti=ebd78000 task=f755a330 task.ti=ebd78000)

Stack:
 c01575a2 00000000 ebd79c28 00000000 00000000 00000008 00000005 ecc4b9d4
 00000005 00000001 c1616360 c1612da0 c16126a0 c167b720 c167b4a0 c10a1c00
 c10a28e0 c10a28c0 c10a28a0 c10a2880 c10a2860 c15f1740 00000000 c0538e1c
Call Trace:
 [<c01575a2>] shrink_active_list+0x332/0x3a0
 [<c01569a8>] isolate_pages_global+0x88/0x210
 [<c01556e9>] ____pagevec_lru_add+0x119/0x130
 [<c0157f04>] shrink_list+0x224/0x560
 [<c022751c>] elv_merged_request+0x4c/0x50
 [<c01584b7>] shrink_zone+0x277/0x300
 [<c0151807>] rmqueue_bulk+0x67/0x80
 [<c01588ef>] try_to_free_pages+0x21f/0x340
 [<c0156920>] isolate_pages_global+0x0/0x210
 [<c015286e>] __alloc_pages_internal+0x19e/0x430
 [<c0154df0>] __do_page_cache_readahead+0x100/0x230
 [<c015531a>] do_page_cache_readahead+0x4a/0x70
 [<c014f328>] filemap_fault+0x2c8/0x480
 [<c015f482>] __do_fault+0x42/0x400
 [<c0119b13>] pte_alloc_one+0x33/0x40
 [<c0161126>] __pte_alloc+0xd6/0xe0
 [<c01612ae>] handle_mm_fault+0x17e/0x800
 [<c0165fff>] mmap_region+0x14f/0x3f0
 [<c0115caa>] do_page_fault+0x28a/0x860
 [<c0115a20>] do_page_fault+0x0/0x860
 [<c040ab12>] error_code+0x72/0x78
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: 00 00 8b 50 04 89 c8 c1 e8 0b 83 e0 01 29 c2 83 fa 02 0f 85 f0 fd 
ff ff 8b 44 24 1c 85 c0 0f 84 f3 01 00 00 8b 54 24 1c 8b 42 38 <8b> 00 
85 c0 0f 84 d8 fe ff ff 64 a1 00 60 5a c0 f6 40 0e 80 8b
EIP: [<c015792e>] shrink_page_list+0x31e/0x6d0 SS:ESP 0068:ebd79ba0
---[ end trace 4d2b343635092947 ]---

Bye,
David Arendt

Quoted 115 lines · David Arendt

Hi,

after cleaner was running for 2 hours and freeing up 200gbytes of space I had the following crash:

nilfs_cpfile_delete_checkpoints: cannot delete block: cno=76377, range = [75980, 76972)
NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 NILFS_PAGE_BUG(c10d67e0): cnt=2 index#=74049180 flags=0x40000835 mapping=f71d10d4 ino=0
BH[0] d3cbdb30: cnt=2 block#=74049180 state=0x2002b

------------[ cut here ]------------
kernel BUG at /home/admin/x/nilfs-2.0.12/fs/btnode.c:233!
invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 2285, comm: segctord Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<f8331680>] EFLAGS: 00010282 CPU: 2
EIP is at nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2]
EAX: 00000038 EBX: 003ba23a ECX: 00000092 EDX: 0307b000
ESI: 00000000 EDI: 00000000 EBP: f2783afc ESP: f6c13ce0
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process segctord (pid: 2285, ti=f6c12000 task=f75d5cc0 task.ti=f6c12000)

Stack:
 f83366b8 00000001 f2783af8 00000000 f71d10d4 d3cbdb30 003ba248 00000000
 f833184d 00000000 f2783ac8 f2783ad4 f71d1044 f83328c9 f2783ae8 f83436a4
 00000000 f2783a78 f71d1044 f83342fe 00000001 00000001 02783a78 f2783ac8
Call Trace:
 [<f83366b8>] nilfs_dat_prepare_entry+0x18/0x20 [nilfs2]
 [<f833184d>] nilfs_bmap_prepare_update+0x2d/0x60 [nilfs2]
 [<f83328c9>] nilfs_btree_prepare_update_v+0xe9/0x100 [nilfs2]
 [<f83342fe>] nilfs_btree_propagate_v+0x17e/0x210 [nilfs2]
 [<f833538a>] nilfs_btree_propagate+0xba/0x160 [nilfs2]
 [<f8331aa6>] nilfs_bmap_propagate+0x26/0x40 [nilfs2]
 [<f833e42e>] nilfs_collect_file_node+0x1e/0x50 [nilfs2]
 [<f833a5a1>] nilfs_segctor_apply_buffers+0x51/0xb0 [nilfs2]
 [<f833a975>] nilfs_segctor_scan_file+0x125/0x1f0 [nilfs2]
 [<f833e410>] nilfs_collect_file_node+0x0/0x50 [nilfs2]
 [<c019177b>] __getblk+0x7b/0x210
 [<f8339a5c>] nilfs_segbuf_extend_segsum+0x1c/0x50 [nilfs2]
 [<f833cb5d>] nilfs_segctor_do_construct+0x166d/0x18c0 [nilfs2]
 [<f8341898>] nilfs_palloc_commit_free_entry+0xc8/0x100 [nilfs2]
 [<c011c25b>] update_curr+0x7b/0xe0
 [<c011f9bb>] finish_task_switch+0x2b/0xa0
 [<f833199f>] nilfs_bmap_test_and_clear_dirty+0x2f/0x40 [nilfs2]
 [<f8330e2e>] nilfs_mdt_fetch_dirty+0xe/0x30 [nilfs2]
 [<f833a4c3>] nilfs_test_metadata_dirty+0x93/0xb0 [nilfs2]
 [<f833a534>] nilfs_segctor_confirm+0x54/0x70 [nilfs2]
 [<f833d009>] nilfs_segctor_construct+0x99/0xb0 [nilfs2]
 [<f833d7ba>] nilfs_segctor_thread+0x11a/0x2b0 [nilfs2]
 [<f833d310>] nilfs_construction_timeout+0x0/0x10 [nilfs2]
 [<f833d6a0>] nilfs_segctor_thread+0x0/0x2b0 [nilfs2]
 [<c0136e92>] kthread+0x42/0x70
 [<c0136e50>] kthread+0x0/0x70
 [<c010391b>] kernel_thread_helper+0x7/0x1c
Code: ff ff ff 8b 54 24 14 8b 42 08 e8 1c b8 e1 c7 89 f8 83 c4 24 5b 5e 

5f 5d c3 e8 3d 78 0d c8 eb b4 0f 0b eb fe 89 d0 e8 40 e7 ff ff <0f> 0b eb fe 89 d0 e8 25 b7 e1 c7 e9 2d ff ff ff 53 b9 ff ff ff
EIP: [<f8331680>] nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2] SS:ESP 0068:f6c13ce0

---[ end trace 0a4368694028129d ]---

note: segctord[2285] exited with preempt_count 1

Bye,
David Arendt

Quoted 29 lines · David Arendt

Hi,

I have applied your patch now. Also the garbage collector didn't crash until now. I have chosen to not reformat for further testing as there are only temporary files on this partition where loosing them would not be a big problem.

Bye,
David Arendt

Quoted 16 lines · Ryusuke Konishi

Hi!

Quoted 8 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Quoted 10 lines
Quoted 4 lines

Ryusuke Konishi

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

#9 lore raw
In reply to a message not in the archive

Hi,

Quoted 5 lines · David Arendt

Hi,

after cleaner was running for 2 hours and freeing up 200gbytes of space I had the following crash:

Quoted 8 lines

nilfs_cpfile_delete_checkpoints: cannot delete block: cno=76377, range = [75980, 76972)
NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 NILFS_PAGE_BUG(c10d67e0): cnt=2 index#=74049180 flags=0x40000835 mapping=f71d10d4 ino=0
BH[0] d3cbdb30: cnt=2 block#=74049180 state=0x2002b

------------[ cut here ]------------
kernel BUG at /home/admin/x/nilfs-2.0.12/fs/btnode.c:233!

The log shows a btree routine, nilfs_btree_propagate() has detected an orphan btree node in the page cache. Looks another inconsistency.

I'd like to know if this is a regression of the previous patch or not ( I guess it's not ). If you see this for new volumes, please let me know.

I'll digging into the btree code to hunt this later.

Thanks,
Ryusuke Konishi

Quoted 92 lines

invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource

Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 2285, comm: segctord Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<f8331680>] EFLAGS: 00010282 CPU: 2
EIP is at nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2]
EAX: 00000038 EBX: 003ba23a ECX: 00000092 EDX: 0307b000
ESI: 00000000 EDI: 00000000 EBP: f2783afc ESP: f6c13ce0
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process segctord (pid: 2285, ti=f6c12000 task=f75d5cc0 task.ti=f6c12000)

Stack:
 f83366b8 00000001 f2783af8 00000000 f71d10d4 d3cbdb30 003ba248 00000000
 f833184d 00000000 f2783ac8 f2783ad4 f71d1044 f83328c9 f2783ae8 f83436a4
 00000000 f2783a78 f71d1044 f83342fe 00000001 00000001 02783a78 f2783ac8
Call Trace:
 [<f83366b8>] nilfs_dat_prepare_entry+0x18/0x20 [nilfs2]
 [<f833184d>] nilfs_bmap_prepare_update+0x2d/0x60 [nilfs2]
 [<f83328c9>] nilfs_btree_prepare_update_v+0xe9/0x100 [nilfs2]
 [<f83342fe>] nilfs_btree_propagate_v+0x17e/0x210 [nilfs2]
 [<f833538a>] nilfs_btree_propagate+0xba/0x160 [nilfs2]
 [<f8331aa6>] nilfs_bmap_propagate+0x26/0x40 [nilfs2]
 [<f833e42e>] nilfs_collect_file_node+0x1e/0x50 [nilfs2]
 [<f833a5a1>] nilfs_segctor_apply_buffers+0x51/0xb0 [nilfs2]
 [<f833a975>] nilfs_segctor_scan_file+0x125/0x1f0 [nilfs2]
 [<f833e410>] nilfs_collect_file_node+0x0/0x50 [nilfs2]
 [<c019177b>] __getblk+0x7b/0x210
 [<f8339a5c>] nilfs_segbuf_extend_segsum+0x1c/0x50 [nilfs2]
 [<f833cb5d>] nilfs_segctor_do_construct+0x166d/0x18c0 [nilfs2]
 [<f8341898>] nilfs_palloc_commit_free_entry+0xc8/0x100 [nilfs2]
 [<c011c25b>] update_curr+0x7b/0xe0
 [<c011f9bb>] finish_task_switch+0x2b/0xa0
 [<f833199f>] nilfs_bmap_test_and_clear_dirty+0x2f/0x40 [nilfs2]
 [<f8330e2e>] nilfs_mdt_fetch_dirty+0xe/0x30 [nilfs2]
 [<f833a4c3>] nilfs_test_metadata_dirty+0x93/0xb0 [nilfs2]
 [<f833a534>] nilfs_segctor_confirm+0x54/0x70 [nilfs2]
 [<f833d009>] nilfs_segctor_construct+0x99/0xb0 [nilfs2]
 [<f833d7ba>] nilfs_segctor_thread+0x11a/0x2b0 [nilfs2]
 [<f833d310>] nilfs_construction_timeout+0x0/0x10 [nilfs2]
 [<f833d6a0>] nilfs_segctor_thread+0x0/0x2b0 [nilfs2]
 [<c0136e92>] kthread+0x42/0x70
 [<c0136e50>] kthread+0x0/0x70
 [<c010391b>] kernel_thread_helper+0x7/0x1c
Code: ff ff ff 8b 54 24 14 8b 42 08 e8 1c b8 e1 c7 89 f8 83 c4 24 5b 5e 

5f 5d c3 e8 3d 78 0d c8 eb b4 0f 0b eb fe 89 d0 e8 40 e7 ff ff <0f> 0b eb fe 89 d0 e8 25 b7 e1 c7 e9 2d ff ff ff 53 b9 ff ff ff
EIP: [<f8331680>] nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2] SS:ESP 0068:f6c13ce0

---[ end trace 0a4368694028129d ]---

note: segctord[2285] exited with preempt_count 1

Bye,
David Arendt

Quoted 35 lines · David Arendt

Hi,

I have applied your patch now. Also the garbage collector didn't crash until now. I have chosen to not reformat for further testing as there are only temporary files on this partition where loosing them would not be a big problem.

Bye,
David Arendt

Quoted 11 lines · Ryusuke Konishi

Hi!

Quoted 7 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

Quoted 6 lines

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Ryusuke Konishi

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

#11 lore raw
In reply to a message not in the archive

Hi,

today I had run cleanerd on 2 clean partitions.

One worked flawlessly. On the other one this error occured:

BUG: unable to handle kernel NULL pointer dereference at 00000ccd
IP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2]
*pdpt = 0000000013d32001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 8551, comm: nilfs_cleanerd Tainted: P (2.6.29.2server #1)
P5QL-E
EIP: 0060:[<f8341fcc>] EFLAGS: 00010202 CPU: 3
EIP is at nilfs_gc_iget+0x4c/0x130 [nilfs2]
EAX: 00000ccd EBX: 00000000 ECX: 00000002 EDX: f6897c00
ESI: 0000004e EDI: 00000002 EBP: 00000000 ESP: c3801ca0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 8551, ti=c3800000 task=d4d10330 task.ti=c3800000)

Stack:
 e11854c0 f6857a00 f6897c3c 00000000 00000000 00000000 e1185500 f8342e06
 00000002 00000000 c3801d60 00000044 f7450990 d4d10484 00000001 00000001
 00000000 00000000 00020050 00000202 00000000 00000000 00000000 c3801d58
Call Trace:
 [<f8342e06>] nilfs_ioctl_do_move_blocks+0x76/0x3e0 [nilfs2]
 [<f8342379>] nilfs_ioctl_wrap_copy+0x169/0x1f0 [nilfs2]
 [<f834292e>] nilfs_ioctl_prepare_clean_segments+0x6e/0x130 [nilfs2]
 [<f8342d90>] nilfs_ioctl_do_move_blocks+0x0/0x3e0 [nilfs2]
 [<f833deb3>] nilfs_clean_segments+0x83/0x200 [nilfs2]
 [<f83423c6>] nilfs_ioctl_wrap_copy+0x1b6/0x1f0 [nilfs2]
 [<f8342810>] nilfs_ioctl+0x3d0/0x480 [nilfs2]
 [<f8342c90>] nilfs_ioctl_do_get_bdescs+0x0/0xb0 [nilfs2]
 [<c0312ddf>] ehci_irq+0x17f/0x340
 [<c0168a78>] page_add_new_anon_rmap+0x28/0x60
 [<c013ddfe>] getnstimeofday+0x4e/0x120
 [<f8342440>] nilfs_ioctl+0x0/0x480 [nilfs2]
 [<c017f50b>] vfs_ioctl+0x2b/0x90
 [<c017f87b>] do_vfs_ioctl+0x1eb/0x530
 [<c012d45b>] run_timer_softirq+0x15b/0x190
 [<c0128d74>] __do_softirq+0x94/0x140
 [<c017fbfd>] sys_ioctl+0x3d/0x70
 [<c0103131>] sysenter_do_call+0x12/0x25
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: f8 69 c0 01 00 37 9e c1 e8 18 c1 e0 02 89 44 24 08 8b 92 dc 00 00 
00 01 d0 89 44 24 08 8b 00 85 c0 75 08 eb 2b 85 c9 74 27 89 c8 <8b> 08 
0f 18 01 90 3b 70 20 89 c3 75 ed 8b 50 9c 8b 40 98 31 ea
EIP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2] SS:ESP 0068:c3801ca0
---[ end trace 573da78de6d7c815 ]---

Bye,
Arendt David

Quoted 127 lines · Ryusuke Konishi

Hi,

Quoted 5 lines · David Arendt

Hi,

after cleaner was running for 2 hours and freeing up 200gbytes of space I had the following crash:

Quoted 9 lines

nilfs_cpfile_delete_checkpoints: cannot delete block: cno=76377, range = [75980, 76972)
NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 NILFS_PAGE_BUG(c10d67e0): cnt=2 index#=74049180 flags=0x40000835 mapping=f71d10d4 ino=0
BH[0] d3cbdb30: cnt=2 block#=74049180 state=0x2002b

------------[ cut here ]------------
kernel BUG at /home/admin/x/nilfs-2.0.12/fs/btnode.c:233!

The log shows a btree routine, nilfs_btree_propagate() has detected an orphan btree node in the page cache. Looks another inconsistency.

I'd like to know if this is a regression of the previous patch or not ( I guess it's not ). If you see this for new volumes, please let me know.

I'll digging into the btree code to hunt this later.

Thanks,
Ryusuke Konishi

Quoted 96 lines

invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource

Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 2285, comm: segctord Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<f8331680>] EFLAGS: 00010282 CPU: 2
EIP is at nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2]
EAX: 00000038 EBX: 003ba23a ECX: 00000092 EDX: 0307b000
ESI: 00000000 EDI: 00000000 EBP: f2783afc ESP: f6c13ce0
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process segctord (pid: 2285, ti=f6c12000 task=f75d5cc0 task.ti=f6c12000)

Stack:
 f83366b8 00000001 f2783af8 00000000 f71d10d4 d3cbdb30 003ba248 00000000
 f833184d 00000000 f2783ac8 f2783ad4 f71d1044 f83328c9 f2783ae8 f83436a4
 00000000 f2783a78 f71d1044 f83342fe 00000001 00000001 02783a78 f2783ac8
Call Trace:
 [<f83366b8>] nilfs_dat_prepare_entry+0x18/0x20 [nilfs2]
 [<f833184d>] nilfs_bmap_prepare_update+0x2d/0x60 [nilfs2]
 [<f83328c9>] nilfs_btree_prepare_update_v+0xe9/0x100 [nilfs2]
 [<f83342fe>] nilfs_btree_propagate_v+0x17e/0x210 [nilfs2]
 [<f833538a>] nilfs_btree_propagate+0xba/0x160 [nilfs2]
 [<f8331aa6>] nilfs_bmap_propagate+0x26/0x40 [nilfs2]
 [<f833e42e>] nilfs_collect_file_node+0x1e/0x50 [nilfs2]
 [<f833a5a1>] nilfs_segctor_apply_buffers+0x51/0xb0 [nilfs2]
 [<f833a975>] nilfs_segctor_scan_file+0x125/0x1f0 [nilfs2]
 [<f833e410>] nilfs_collect_file_node+0x0/0x50 [nilfs2]
 [<c019177b>] __getblk+0x7b/0x210
 [<f8339a5c>] nilfs_segbuf_extend_segsum+0x1c/0x50 [nilfs2]
 [<f833cb5d>] nilfs_segctor_do_construct+0x166d/0x18c0 [nilfs2]
 [<f8341898>] nilfs_palloc_commit_free_entry+0xc8/0x100 [nilfs2]
 [<c011c25b>] update_curr+0x7b/0xe0
 [<c011f9bb>] finish_task_switch+0x2b/0xa0
 [<f833199f>] nilfs_bmap_test_and_clear_dirty+0x2f/0x40 [nilfs2]
 [<f8330e2e>] nilfs_mdt_fetch_dirty+0xe/0x30 [nilfs2]
 [<f833a4c3>] nilfs_test_metadata_dirty+0x93/0xb0 [nilfs2]
 [<f833a534>] nilfs_segctor_confirm+0x54/0x70 [nilfs2]
 [<f833d009>] nilfs_segctor_construct+0x99/0xb0 [nilfs2]
 [<f833d7ba>] nilfs_segctor_thread+0x11a/0x2b0 [nilfs2]
 [<f833d310>] nilfs_construction_timeout+0x0/0x10 [nilfs2]
 [<f833d6a0>] nilfs_segctor_thread+0x0/0x2b0 [nilfs2]
 [<c0136e92>] kthread+0x42/0x70
 [<c0136e50>] kthread+0x0/0x70
 [<c010391b>] kernel_thread_helper+0x7/0x1c
Code: ff ff ff 8b 54 24 14 8b 42 08 e8 1c b8 e1 c7 89 f8 83 c4 24 5b 5e 

5f 5d c3 e8 3d 78 0d c8 eb b4 0f 0b eb fe 89 d0 e8 40 e7 ff ff <0f> 0b eb fe 89 d0 e8 25 b7 e1 c7 e9 2d ff ff ff 53 b9 ff ff ff
EIP: [<f8331680>] nilfs_btnode_prepare_change_key+0x170/0x180 [nilfs2] SS:ESP 0068:f6c13ce0

---[ end trace 0a4368694028129d ]---

note: segctord[2285] exited with preempt_count 1

Bye,
David Arendt

Quoted 39 lines · David Arendt

Hi,

I have applied your patch now. Also the garbage collector didn't crash until now. I have chosen to not reformat for further testing as there are only temporary files on this partition where loosing them would not be a big problem.

Bye,
David Arendt

Quoted 13 lines · Ryusuke Konishi

Hi!

Quoted 8 lines · On Tue, 5 May 2009 17:26:48 +0200, admin-/[email protected]…

Thank you.
I will try this patch in a few hours. If I see it correctly the patch will prevent this error in future and will not correct the current error, so I suppose that after applying the patch I will need to reformat the volume.

Quoted 7 lines

I expect the patch will even fix the current error on the next GC, but you had better reformat the volume for safety.

Ryusuke Konishi

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

#13 lore raw
In reply to a message not in the archive

Hi David,

Quoted 53 lines · David Arendt

Hi,

today I had run cleanerd on 2 clean partitions.

One worked flawlessly. On the other one this error occured:

BUG: unable to handle kernel NULL pointer dereference at 00000ccd
IP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2]
*pdpt = 0000000013d32001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 8551, comm: nilfs_cleanerd Tainted: P (2.6.29.2server #1)
P5QL-E
EIP: 0060:[<f8341fcc>] EFLAGS: 00010202 CPU: 3
EIP is at nilfs_gc_iget+0x4c/0x130 [nilfs2]
EAX: 00000ccd EBX: 00000000 ECX: 00000002 EDX: f6897c00
ESI: 0000004e EDI: 00000002 EBP: 00000000 ESP: c3801ca0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 8551, ti=c3800000 task=d4d10330 task.ti=c3800000)

Stack:
 e11854c0 f6857a00 f6897c3c 00000000 00000000 00000000 e1185500 f8342e06
 00000002 00000000 c3801d60 00000044 f7450990 d4d10484 00000001 00000001
 00000000 00000000 00020050 00000202 00000000 00000000 00000000 c3801d58
Call Trace:
 [<f8342e06>] nilfs_ioctl_do_move_blocks+0x76/0x3e0 [nilfs2]
 [<f8342379>] nilfs_ioctl_wrap_copy+0x169/0x1f0 [nilfs2]
 [<f834292e>] nilfs_ioctl_prepare_clean_segments+0x6e/0x130 [nilfs2]
 [<f8342d90>] nilfs_ioctl_do_move_blocks+0x0/0x3e0 [nilfs2]
 [<f833deb3>] nilfs_clean_segments+0x83/0x200 [nilfs2]
 [<f83423c6>] nilfs_ioctl_wrap_copy+0x1b6/0x1f0 [nilfs2]
 [<f8342810>] nilfs_ioctl+0x3d0/0x480 [nilfs2]
 [<f8342c90>] nilfs_ioctl_do_get_bdescs+0x0/0xb0 [nilfs2]
 [<c0312ddf>] ehci_irq+0x17f/0x340
 [<c0168a78>] page_add_new_anon_rmap+0x28/0x60
 [<c013ddfe>] getnstimeofday+0x4e/0x120
 [<f8342440>] nilfs_ioctl+0x0/0x480 [nilfs2]
 [<c017f50b>] vfs_ioctl+0x2b/0x90
 [<c017f87b>] do_vfs_ioctl+0x1eb/0x530
 [<c012d45b>] run_timer_softirq+0x15b/0x190
 [<c0128d74>] __do_softirq+0x94/0x140
 [<c017fbfd>] sys_ioctl+0x3d/0x70
 [<c0103131>] sysenter_do_call+0x12/0x25
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: f8 69 c0 01 00 37 9e c1 e8 18 c1 e0 02 89 44 24 08 8b 92 dc 00 00 
00 01 d0 89 44 24 08 8b 00 85 c0 75 08 eb 2b 85 c9 74 27 89 c8 <8b> 08 
0f 18 01 90 3b 70 20 89 c3 75 ed 8b 50 9c 8b 40 98 31 ea
EIP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2] SS:ESP 0068:c3801ca0
---[ end trace 573da78de6d7c815 ]---
Quoted 2 lines

Bye,
Arendt David

I finally gave up trailing this problem from your log because my gcc generates different assembler code with yours.

Could you send me a disassembler output of the nilfs_gc_iget function? It is acquirable as follows:

  $ cd nilfs2-module/fs
  $ objdump -D gcinode.o > gcinode.disasm

And, please let me know the gcc version you are using.

Thanks in advance,
Ryusuke Konishi

#22 lore raw
In reply to a message not in the archive

Hi,

Quoted 19 lines · Ryusuke Konishi

Hi,

Quoted 5 lines · David Arendt

Hi,

after cleaner was running for 2 hours and freeing up 200gbytes of space I had the following crash:

Quoted 8 lines

nilfs_cpfile_delete_checkpoints: cannot delete block: cno=76377, range = [75980, 76972)
NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 NILFS_PAGE_BUG(c10d67e0): cnt=2 index#=74049180 flags=0x40000835 mapping=f71d10d4 ino=0
BH[0] d3cbdb30: cnt=2 block#=74049180 state=0x2002b

------------[ cut here ]------------
kernel BUG at /home/admin/x/nilfs-2.0.12/fs/btnode.c:233!

The log shows a btree routine, nilfs_btree_propagate() has detected an orphan btree node in the page cache. Looks another inconsistency.

Quoted 8 lines

I'd like to know if this is a regression of the previous patch or not ( I guess it's not ). If you see this for new volumes, please let me know.

I'll digging into the btree code to hunt this later.

Thanks,
Ryusuke Konishi

I haven't yet identified if this is a regression or not.

The previous patch has included several changes. So, I will send a moderate patch for upstream.

Regards,
Ryusuke Konishi

#15 lore raw
In reply to a message not in the archive

Hi,

I am using gcc 4.1.2.

In the meantime, I upgraded from kernel 2.6.29.2 to 2.6.29.3 and as a result of this, I have also recompiled nilfs, so I suppose an objdump from this one would be useless in combination with the old crash log. I think I should wait until the problem appears again with 2.6.29.3. What do you think ?

Bye,
David Arendt

Quoted 74 lines · Ryusuke Konishi

Hi David,

Quoted 53 lines · David Arendt

Hi,

today I had run cleanerd on 2 clean partitions.

One worked flawlessly. On the other one this error occured:

BUG: unable to handle kernel NULL pointer dereference at 00000ccd
IP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2]
*pdpt = 0000000013d32001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 8551, comm: nilfs_cleanerd Tainted: P (2.6.29.2server #1)
P5QL-E
EIP: 0060:[<f8341fcc>] EFLAGS: 00010202 CPU: 3
EIP is at nilfs_gc_iget+0x4c/0x130 [nilfs2]
EAX: 00000ccd EBX: 00000000 ECX: 00000002 EDX: f6897c00
ESI: 0000004e EDI: 00000002 EBP: 00000000 ESP: c3801ca0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 8551, ti=c3800000 task=d4d10330 task.ti=c3800000)

Stack:
 e11854c0 f6857a00 f6897c3c 00000000 00000000 00000000 e1185500 f8342e06
 00000002 00000000 c3801d60 00000044 f7450990 d4d10484 00000001 00000001
 00000000 00000000 00020050 00000202 00000000 00000000 00000000 c3801d58
Call Trace:
 [<f8342e06>] nilfs_ioctl_do_move_blocks+0x76/0x3e0 [nilfs2]
 [<f8342379>] nilfs_ioctl_wrap_copy+0x169/0x1f0 [nilfs2]
 [<f834292e>] nilfs_ioctl_prepare_clean_segments+0x6e/0x130 [nilfs2]
 [<f8342d90>] nilfs_ioctl_do_move_blocks+0x0/0x3e0 [nilfs2]
 [<f833deb3>] nilfs_clean_segments+0x83/0x200 [nilfs2]
 [<f83423c6>] nilfs_ioctl_wrap_copy+0x1b6/0x1f0 [nilfs2]
 [<f8342810>] nilfs_ioctl+0x3d0/0x480 [nilfs2]
 [<f8342c90>] nilfs_ioctl_do_get_bdescs+0x0/0xb0 [nilfs2]
 [<c0312ddf>] ehci_irq+0x17f/0x340
 [<c0168a78>] page_add_new_anon_rmap+0x28/0x60
 [<c013ddfe>] getnstimeofday+0x4e/0x120
 [<f8342440>] nilfs_ioctl+0x0/0x480 [nilfs2]
 [<c017f50b>] vfs_ioctl+0x2b/0x90
 [<c017f87b>] do_vfs_ioctl+0x1eb/0x530
 [<c012d45b>] run_timer_softirq+0x15b/0x190
 [<c0128d74>] __do_softirq+0x94/0x140
 [<c017fbfd>] sys_ioctl+0x3d/0x70
 [<c0103131>] sysenter_do_call+0x12/0x25
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: f8 69 c0 01 00 37 9e c1 e8 18 c1 e0 02 89 44 24 08 8b 92 dc 00 00 
00 01 d0 89 44 24 08 8b 00 85 c0 75 08 eb 2b 85 c9 74 27 89 c8 <8b> 08 
0f 18 01 90 3b 70 20 89 c3 75 ed 8b 50 9c 8b 40 98 31 ea
EIP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2] SS:ESP 0068:c3801ca0
---[ end trace 573da78de6d7c815 ]---
Quoted 3 lines

Bye,
Arendt David

I finally gave up trailing this problem from your log because my gcc generates different assembler code with yours.

Could you send me a disassembler output of the nilfs_gc_iget function? It is acquirable as follows:

  $ cd nilfs2-module/fs
  $ objdump -D gcinode.o > gcinode.disasm

And, please let me know the gcc version you are using.

Thanks in advance,
Ryusuke Konishi

#17 lore raw
In reply to a message not in the archive

Hi,

Quoted 7 lines · David Arendt

Hi,

I am using gcc 4.1.2.

In the meantime, I upgraded from kernel 2.6.29.2 to 2.6.29.3 and as a result of this, I have also recompiled nilfs, so I suppose an objdump from this one would be useless in combination with the old crash log.

It's fine by me unless gcc version has changed. The difference between kernel 2.6.29.2 and 2.6.29.3 is ignorable in this case.

Regards,
Ryusuke Konishi

Quoted 82 lines

I think I should wait until the problem appears again with 2.6.29.3. What do you think ?

Bye,
David Arendt

Quoted 74 lines · Ryusuke Konishi

Hi David,

Quoted 53 lines · David Arendt

Hi,

today I had run cleanerd on 2 clean partitions.

One worked flawlessly. On the other one this error occured:

BUG: unable to handle kernel NULL pointer dereference at 00000ccd
IP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2]
*pdpt = 0000000013d32001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi 

capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 8551, comm: nilfs_cleanerd Tainted: P (2.6.29.2server #1)
P5QL-E
EIP: 0060:[<f8341fcc>] EFLAGS: 00010202 CPU: 3
EIP is at nilfs_gc_iget+0x4c/0x130 [nilfs2]
EAX: 00000ccd EBX: 00000000 ECX: 00000002 EDX: f6897c00
ESI: 0000004e EDI: 00000002 EBP: 00000000 ESP: c3801ca0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 8551, ti=c3800000 task=d4d10330 task.ti=c3800000)

Stack:
 e11854c0 f6857a00 f6897c3c 00000000 00000000 00000000 e1185500 f8342e06
 00000002 00000000 c3801d60 00000044 f7450990 d4d10484 00000001 00000001
 00000000 00000000 00020050 00000202 00000000 00000000 00000000 c3801d58
Call Trace:
 [<f8342e06>] nilfs_ioctl_do_move_blocks+0x76/0x3e0 [nilfs2]
 [<f8342379>] nilfs_ioctl_wrap_copy+0x169/0x1f0 [nilfs2]
 [<f834292e>] nilfs_ioctl_prepare_clean_segments+0x6e/0x130 [nilfs2]
 [<f8342d90>] nilfs_ioctl_do_move_blocks+0x0/0x3e0 [nilfs2]
 [<f833deb3>] nilfs_clean_segments+0x83/0x200 [nilfs2]
 [<f83423c6>] nilfs_ioctl_wrap_copy+0x1b6/0x1f0 [nilfs2]
 [<f8342810>] nilfs_ioctl+0x3d0/0x480 [nilfs2]
 [<f8342c90>] nilfs_ioctl_do_get_bdescs+0x0/0xb0 [nilfs2]
 [<c0312ddf>] ehci_irq+0x17f/0x340
 [<c0168a78>] page_add_new_anon_rmap+0x28/0x60
 [<c013ddfe>] getnstimeofday+0x4e/0x120
 [<f8342440>] nilfs_ioctl+0x0/0x480 [nilfs2]
 [<c017f50b>] vfs_ioctl+0x2b/0x90
 [<c017f87b>] do_vfs_ioctl+0x1eb/0x530
 [<c012d45b>] run_timer_softirq+0x15b/0x190
 [<c0128d74>] __do_softirq+0x94/0x140
 [<c017fbfd>] sys_ioctl+0x3d/0x70
 [<c0103131>] sysenter_do_call+0x12/0x25
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: f8 69 c0 01 00 37 9e c1 e8 18 c1 e0 02 89 44 24 08 8b 92 dc 00 00 
00 01 d0 89 44 24 08 8b 00 85 c0 75 08 eb 2b 85 c9 74 27 89 c8 <8b> 08 
0f 18 01 90 3b 70 20 89 c3 75 ed 8b 50 9c 8b 40 98 31 ea
EIP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2] SS:ESP 0068:c3801ca0
---[ end trace 573da78de6d7c815 ]---
Quoted 3 lines

Bye,
Arendt David

I finally gave up trailing this problem from your log because my gcc generates different assembler code with yours.

Could you send me a disassembler output of the nilfs_gc_iget function? It is acquirable as follows:

  $ cd nilfs2-module/fs
  $ objdump -D gcinode.o > gcinode.disasm

And, please let me know the gcc version you are using.

Thanks in advance,
Ryusuke Konishi

#19 lore raw
In reply to a message not in the archive

Hi,

ok, here the requested file

Bye,
David Arendt

Quoted 7 lines · Ryusuke Konishi

Hi,

Quoted 4 lines · David Arendt

Hi,

I am using gcc 4.1.2.

Quoted 89 lines
Quoted 2 lines

In the meantime, I upgraded from kernel 2.6.29.2 to 2.6.29.3 and as a result of this, I have also recompiled nilfs, so I suppose an objdump from this one would be useless in combination with the old crash log.

It's fine by me unless gcc version has changed. The difference between kernel 2.6.29.2 and 2.6.29.3 is ignorable in this case.

Regards,
Ryusuke Konishi

Quoted 79 lines

I think I should wait until the problem appears again with 2.6.29.3. What do you think ?

Bye,
David Arendt

Quoted 71 lines · Ryusuke Konishi

Hi David,

Quoted 48 lines · David Arendt

Hi,

today I had run cleanerd on 2 clean partitions.

One worked flawlessly. On the other one this error occured:

BUG: unable to handle kernel NULL pointer dereference at 00000ccd
IP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2]
*pdpt = 0000000013d32001 *pde = 0000000000000000
Oops: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.0/resource
Modules linked in: nvidia(P) vmnet vmblock vmci vmmon fcpci(P) capi capifs kernelcapi nilfs2 scsi_wait_scan

Pid: 8551, comm: nilfs_cleanerd Tainted: P (2.6.29.2server #1) P5QL-E
EIP: 0060:[<f8341fcc>] EFLAGS: 00010202 CPU: 3
EIP is at nilfs_gc_iget+0x4c/0x130 [nilfs2]
EAX: 00000ccd EBX: 00000000 ECX: 00000002 EDX: f6897c00
ESI: 0000004e EDI: 00000002 EBP: 00000000 ESP: c3801ca0
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process nilfs_cleanerd (pid: 8551, ti=c3800000 task=d4d10330 task.ti=c3800000)

Stack:
 e11854c0 f6857a00 f6897c3c 00000000 00000000 00000000 e1185500 f8342e06
 00000002 00000000 c3801d60 00000044 f7450990 d4d10484 00000001 00000001
 00000000 00000000 00020050 00000202 00000000 00000000 00000000 c3801d58
Call Trace:
 [<f8342e06>] nilfs_ioctl_do_move_blocks+0x76/0x3e0 [nilfs2]
 [<f8342379>] nilfs_ioctl_wrap_copy+0x169/0x1f0 [nilfs2]
 [<f834292e>] nilfs_ioctl_prepare_clean_segments+0x6e/0x130 [nilfs2]
 [<f8342d90>] nilfs_ioctl_do_move_blocks+0x0/0x3e0 [nilfs2]
 [<f833deb3>] nilfs_clean_segments+0x83/0x200 [nilfs2]
 [<f83423c6>] nilfs_ioctl_wrap_copy+0x1b6/0x1f0 [nilfs2]
 [<f8342810>] nilfs_ioctl+0x3d0/0x480 [nilfs2]
 [<f8342c90>] nilfs_ioctl_do_get_bdescs+0x0/0xb0 [nilfs2]
 [<c0312ddf>] ehci_irq+0x17f/0x340
 [<c0168a78>] page_add_new_anon_rmap+0x28/0x60
 [<c013ddfe>] getnstimeofday+0x4e/0x120
 [<f8342440>] nilfs_ioctl+0x0/0x480 [nilfs2]
 [<c017f50b>] vfs_ioctl+0x2b/0x90
 [<c017f87b>] do_vfs_ioctl+0x1eb/0x530
 [<c012d45b>] run_timer_softirq+0x15b/0x190
 [<c0128d74>] __do_softirq+0x94/0x140
 [<c017fbfd>] sys_ioctl+0x3d/0x70
 [<c0103131>] sysenter_do_call+0x12/0x25
 [<c0400000>] pci_read_bridge_bases+0x20/0x350
Code: f8 69 c0 01 00 37 9e c1 e8 18 c1 e0 02 89 44 24 08 8b 92 dc 00 00 00 01 d0 89 44 24 08 8b 00 85 c0 75 08 eb 2b 85 c9 74 27 89 c8 <8b> 08 0f 18 01 90 3b 70 20 89 c3 75 ed 8b 50 9c 8b 40 98 31 ea
EIP: [<f8341fcc>] nilfs_gc_iget+0x4c/0x130 [nilfs2] SS:ESP 0068:c3801ca0
---[ end trace 573da78de6d7c815 ]---
Quoted 4 lines

Bye,
Arendt David

I finally gave up trailing this problem from your log because my gcc generates different assembler code with yours.

Could you send me a disassembler output of the nilfs_gc_iget function? It is acquirable as follows:

  $ cd nilfs2-module/fs
  $ objdump -D gcinode.o > gcinode.disasm

And, please let me know the gcc version you are using.

Thanks in advance,
Ryusuke Konishi

gcinode.o: file format elf32-i386

Disassembly of section .text:

00000000 <nilfs_clear_gcinode>:

   0:	53                   	push   %ebx
   1:	89 c3                	mov    %eax,%ebx
   3:	e8 fc ff ff ff       	call   4 <nilfs_clear_gcinode+0x4>
   8:	89 d8                	mov    %ebx,%eax
   a:	5b                   	pop    %ebx
   b:	e9 fc ff ff ff       	jmp    c <nilfs_clear_gcinode+0xc>

00000010 <nilfs_remove_all_gcinode>:

  10:	55                   	push   %ebp
  11:	31 ed                	xor    %ebp,%ebp
  13:	57                   	push   %edi
  14:	56                   	push   %esi
  15:	53                   	push   %ebx
  16:	8b b8 dc 00 00 00    	mov    0xdc(%eax),%edi
  1c:	8d 74 26 00          	lea    0x0(%esi),%esi
  20:	8b 1f                	mov    (%edi),%ebx
  22:	85 db                	test   %ebx,%ebx
  24:	74 4a                	je     70 <nilfs_remove_all_gcinode+0x60>
  26:	8d 76 00             	lea    0x0(%esi),%esi
  29:	8d bc 27 00 00 00 00 	lea    0x0(%edi),%edi
  30:	8b 43 04             	mov    0x4(%ebx),%eax
  33:	8b 33                	mov    (%ebx),%esi
  35:	85 c0                	test   %eax,%eax
  37:	74 16                	je     4f <nilfs_remove_all_gcinode+0x3f>
  39:	85 f6                	test   %esi,%esi
  3b:	89 30                	mov    %esi,(%eax)
  3d:	74 03                	je     42 <nilfs_remove_all_gcinode+0x32>
  3f:	89 46 04             	mov    %eax,0x4(%esi)
  42:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)
  48:	c7 43 04 00 00 00 00 	movl   $0x0,0x4(%ebx)
  4f:	8d 43 f4             	lea    -0xc(%ebx),%eax
  52:	8b 4b f4             	mov    -0xc(%ebx),%ecx
  55:	8b 50 04             	mov    0x4(%eax),%edx
  58:	89 51 04             	mov    %edx,0x4(%ecx)
  5b:	89 0a                	mov    %ecx,(%edx)
  5d:	89 40 04             	mov    %eax,0x4(%eax)
  60:	89 43 f4             	mov    %eax,-0xc(%ebx)
  63:	89 d8                	mov    %ebx,%eax
  65:	89 f3                	mov    %esi,%ebx
  67:	e8 fc ff ff ff       	call   68 <nilfs_remove_all_gcinode+0x58>
  6c:	85 f6                	test   %esi,%esi
  6e:	75 c0                	jne    30 <nilfs_remove_all_gcinode+0x20>
  70:	45                   	inc    %ebp
  71:	81 fd 00 01 00 00    	cmp    $0x100,%ebp
  77:	74 09                	je     82 <nilfs_remove_all_gcinode+0x72>
  79:	83 c7 04             	add    $0x4,%edi
  7c:	8d 74 26 00          	lea    0x0(%esi),%esi
  80:	eb 9e                	jmp    20 <nilfs_remove_all_gcinode+0x10>
  82:	5b                   	pop    %ebx
  83:	5e                   	pop    %esi
  84:	5f                   	pop    %edi
  85:	5d                   	pop    %ebp

86: c3 ret
87: 89 f6 mov %esi,%esi
89: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

00000090 <nilfs_destroy_gccache>:

  90:	53                   	push   %ebx
  91:	89 c3                	mov    %eax,%ebx
  93:	8b 90 dc 00 00 00    	mov    0xdc(%eax),%edx
  99:	85 d2                	test   %edx,%edx
  9b:	74 18                	je     b5 <nilfs_destroy_gccache+0x25>
  9d:	e8 fc ff ff ff       	call   9e <nilfs_destroy_gccache+0xe>
  a2:	8b 83 dc 00 00 00    	mov    0xdc(%ebx),%eax
  a8:	e8 fc ff ff ff       	call   a9 <nilfs_destroy_gccache+0x19>
  ad:	31 c0                	xor    %eax,%eax
  af:	89 83 dc 00 00 00    	mov    %eax,0xdc(%ebx)
  b5:	5b                   	pop    %ebx
  b6:	c3                   	ret    
  b7:	89 f6                	mov    %esi,%esi

b9: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

000000c0 <nilfs_init_gccache>:

  c0:	53                   	push   %ebx
  c1:	89 c3                	mov    %eax,%ebx
  c3:	8b 88 dc 00 00 00    	mov    0xdc(%eax),%ecx
  c9:	85 c9                	test   %ecx,%ecx
  cb:	75 51                	jne    11e <nilfs_init_gccache+0x5e>
  cd:	8d 80 d4 00 00 00    	lea    0xd4(%eax),%eax
  d3:	ba 50 00 00 00       	mov    $0x50,%edx
  d8:	89 83 d4 00 00 00    	mov    %eax,0xd4(%ebx)
  de:	89 40 04             	mov    %eax,0x4(%eax)
  e1:	a1 4c 00 00 00       	mov    0x4c,%eax
  e6:	e8 fc ff ff ff       	call   e7 <nilfs_init_gccache+0x27>
  eb:	ba f4 ff ff ff       	mov    $0xfffffff4,%edx
  f0:	85 c0                	test   %eax,%eax
  f2:	89 83 dc 00 00 00    	mov    %eax,0xdc(%ebx)
  f8:	74 20                	je     11a <nilfs_init_gccache+0x5a>
  fa:	31 d2                	xor    %edx,%edx
  fc:	8d 74 26 00          	lea    0x0(%esi),%esi
 100:	8b 83 dc 00 00 00    	mov    0xdc(%ebx),%eax
 106:	c7 04 10 00 00 00 00 	movl   $0x0,(%eax,%edx,1)
 10d:	83 c2 04             	add    $0x4,%edx
 110:	81 fa 00 04 00 00    	cmp    $0x400,%edx
 116:	75 e8                	jne    100 <nilfs_init_gccache+0x40>
 118:	31 d2                	xor    %edx,%edx
 11a:	5b                   	pop    %ebx
 11b:	89 d0                	mov    %edx,%eax
 11d:	c3                   	ret    
 11e:	0f 0b                	ud2a   
 120:	eb fe                	jmp    120 <nilfs_init_gccache+0x60>

122: 8d b4 26 00 00 00 00 lea 0x0(%esi),%esi
129: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

00000130 <nilfs_gccache_wait_and_mark_dirty>:

 130:	53                   	push   %ebx
 131:	89 c3                	mov    %eax,%ebx
 133:	f6 00 04             	testb  $0x4,(%eax)
 136:	75 18                	jne    150 <nilfs_gccache_wait_and_mark_dirty+0x20>
 138:	8b 40 30             	mov    0x30(%eax),%eax
 13b:	85 c0                	test   %eax,%eax
 13d:	74 11                	je     150 <nilfs_gccache_wait_and_mark_dirty+0x20>
 13f:	f6 03 01             	testb  $0x1,(%ebx)
 142:	b8 fb ff ff ff       	mov    $0xfffffffb,%eax
 147:	75 19                	jne    162 <nilfs_gccache_wait_and_mark_dirty+0x32>
 149:	5b                   	pop    %ebx
 14a:	c3                   	ret    
 14b:	90                   	nop    
 14c:	8d 74 26 00          	lea    0x0(%esi),%esi
 150:	89 d8                	mov    %ebx,%eax
 152:	e8 fc ff ff ff       	call   153 <nilfs_gccache_wait_and_mark_dirty+0x23>
 157:	b8 fb ff ff ff       	mov    $0xfffffffb,%eax
 15c:	f6 03 01             	testb  $0x1,(%ebx)
 15f:	90                   	nop    
 160:	74 e7                	je     149 <nilfs_gccache_wait_and_mark_dirty+0x19>
 162:	f6 03 02             	testb  $0x2,(%ebx)
 165:	b8 ef ff ff ff       	mov    $0xffffffef,%eax
 16a:	75 dd                	jne    149 <nilfs_gccache_wait_and_mark_dirty+0x19>
 16c:	89 d8                	mov    %ebx,%eax
 16e:	e8 fc ff ff ff       	call   16f <nilfs_gccache_wait_and_mark_dirty+0x3f>
 173:	31 c0                	xor    %eax,%eax
 175:	5b                   	pop    %ebx
 176:	c3                   	ret    
 177:	89 f6                	mov    %esi,%esi

179: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

00000180 <nilfs_gccache_submit_read_node>:

 180:	83 ec 14             	sub    $0x14,%esp
 183:	89 5c 24 0c          	mov    %ebx,0xc(%esp)
 187:	8b 5c 24 1c          	mov    0x1c(%esp),%ebx
 18b:	8b 4c 24 18          	mov    0x18(%esp),%ecx
 18f:	89 74 24 10          	mov    %esi,0x10(%esp)
 193:	89 d6                	mov    %edx,%esi
 195:	89 da                	mov    %ebx,%edx
 197:	09 ca                	or     %ecx,%edx
 199:	75 04                	jne    19f <nilfs_gccache_submit_read_node+0x1f>
 19b:	89 f1                	mov    %esi,%ecx
 19d:	31 db                	xor    %ebx,%ebx
 19f:	31 d2                	xor    %edx,%edx
 1a1:	83 e8 60             	sub    $0x60,%eax
 1a4:	89 54 24 08          	mov    %edx,0x8(%esp)
 1a8:	8b 54 24 20          	mov    0x20(%esp),%edx
 1ac:	89 34 24             	mov    %esi,(%esp)
 1af:	89 54 24 04          	mov    %edx,0x4(%esp)
 1b3:	89 ca                	mov    %ecx,%edx
 1b5:	89 d9                	mov    %ebx,%ecx
 1b7:	e8 fc ff ff ff       	call   1b8 <nilfs_gccache_submit_read_node+0x38>
 1bc:	ba 00 00 00 00       	mov    $0x0,%edx
 1c1:	8b 5c 24 0c          	mov    0xc(%esp),%ebx
 1c5:	8b 74 24 10          	mov    0x10(%esp),%esi
 1c9:	83 f8 ef             	cmp    $0xffffffef,%eax
 1cc:	0f 44 c2             	cmove  %edx,%eax
 1cf:	83 c4 14             	add    $0x14,%esp
 1d2:	c3                   	ret    
 1d3:	8d b6 00 00 00 00    	lea    0x0(%esi),%esi

1d9: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

000001e0 <nilfs_gc_iget>:

 1e0:	55                   	push   %ebp
 1e1:	57                   	push   %edi
 1e2:	56                   	push   %esi
 1e3:	89 d6                	mov    %edx,%esi
 1e5:	53                   	push   %ebx
 1e6:	83 ec 0c             	sub    $0xc,%esp
 1e9:	8b 7c 24 20          	mov    0x20(%esp),%edi
 1ed:	89 44 24 04          	mov    %eax,0x4(%esp)
 1f1:	8d 04 95 00 00 00 00 	lea    0x0(,%edx,4),%eax
 1f8:	8b 6c 24 24          	mov    0x24(%esp),%ebp
 1fc:	8b 54 24 04          	mov    0x4(%esp),%edx
 200:	01 f8                	add    %edi,%eax
 202:	69 c0 01 00 37 9e    	imul   $0x9e370001,%eax,%eax
 208:	c1 e8 18             	shr    $0x18,%eax
 20b:	c1 e0 02             	shl    $0x2,%eax
 20e:	89 44 24 08          	mov    %eax,0x8(%esp)
 212:	8b 92 dc 00 00 00    	mov    0xdc(%edx),%edx
 218:	01 d0                	add    %edx,%eax
 21a:	89 44 24 08          	mov    %eax,0x8(%esp)
 21e:	8b 00                	mov    (%eax),%eax
 220:	85 c0                	test   %eax,%eax
 222:	75 08                	jne    22c <nilfs_gc_iget+0x4c>
 224:	eb 2b                	jmp    251 <nilfs_gc_iget+0x71>
 226:	85 c9                	test   %ecx,%ecx
 228:	74 27                	je     251 <nilfs_gc_iget+0x71>
 22a:	89 c8                	mov    %ecx,%eax
 22c:	8b 08                	mov    (%eax),%ecx
 22e:	8d 74 26 00          	lea    0x0(%esi),%esi
 232:	3b 70 20             	cmp    0x20(%eax),%esi
 235:	89 c3                	mov    %eax,%ebx
 237:	75 ed                	jne    226 <nilfs_gc_iget+0x46>
 239:	8b 50 9c             	mov    -0x64(%eax),%edx
 23c:	8b 40 98             	mov    -0x68(%eax),%eax
 23f:	31 ea                	xor    %ebp,%edx
 241:	31 f8                	xor    %edi,%eax
 243:	09 c2                	or     %eax,%edx
 245:	75 df                	jne    226 <nilfs_gc_iget+0x46>
 247:	83 c4 0c             	add    $0xc,%esp
 24a:	89 d8                	mov    %ebx,%eax
 24c:	5b                   	pop    %ebx
 24d:	5e                   	pop    %esi
 24e:	5f                   	pop    %edi
 24f:	5d                   	pop    %ebp
 250:	c3                   	ret    
 251:	8b 44 24 04          	mov    0x4(%esp),%eax
 255:	31 d2                	xor    %edx,%edx
 257:	89 f1                	mov    %esi,%ecx
 259:	c7 04 24 50 00 00 00 	movl   $0x50,(%esp)
 260:	e8 fc ff ff ff       	call   261 <nilfs_gc_iget+0x81>
 265:	85 c0                	test   %eax,%eax
 267:	89 c3                	mov    %eax,%ebx
 269:	74 dc                	je     247 <nilfs_gc_iget+0x67>
 26b:	31 c0                	xor    %eax,%eax
 26d:	31 c9                	xor    %ecx,%ecx
 26f:	89 83 94 00 00 00    	mov    %eax,0x94(%ebx)
 275:	31 c0                	xor    %eax,%eax
 277:	31 f6                	xor    %esi,%esi
 279:	89 83 98 00 00 00    	mov    %eax,0x98(%ebx)
 27f:	8b 83 a4 00 00 00    	mov    0xa4(%ebx),%eax
 285:	c7 40 38 00 00 00 00 	movl   $0x0,0x38(%eax)
 28c:	8d 83 04 ff ff ff    	lea    -0xfc(%ebx),%eax
 292:	89 b8 94 00 00 00    	mov    %edi,0x94(%eax)
 298:	89 a8 98 00 00 00    	mov    %ebp,0x98(%eax)
 29e:	c7 40 04 00 01 00 00 	movl   $0x100,0x4(%eax)
 2a5:	89 88 f8 00 00 00    	mov    %ecx,0xf8(%eax)
 2ab:	8b 40 08             	mov    0x8(%eax),%eax
 2ae:	89 b3 04 ff ff ff    	mov    %esi,-0xfc(%ebx)
 2b4:	e8 fc ff ff ff       	call   2b5 <nilfs_gc_iget+0xd5>
 2b9:	8b 54 24 08          	mov    0x8(%esp),%edx
 2bd:	8b 02                	mov    (%edx),%eax
 2bf:	85 c0                	test   %eax,%eax
 2c1:	89 03                	mov    %eax,(%ebx)
 2c3:	74 03                	je     2c8 <nilfs_gc_iget+0xe8>
 2c5:	89 58 04             	mov    %ebx,0x4(%eax)
 2c8:	8b 44 24 08          	mov    0x8(%esp),%eax
 2cc:	89 18                	mov    %ebx,(%eax)
 2ce:	89 43 04             	mov    %eax,0x4(%ebx)
 2d1:	8b 44 24 04          	mov    0x4(%esp),%eax
 2d5:	8b 4c 24 04          	mov    0x4(%esp),%ecx
 2d9:	8b 90 d4 00 00 00    	mov    0xd4(%eax),%edx
 2df:	8d 43 f4             	lea    -0xc(%ebx),%eax
 2e2:	81 c1 d4 00 00 00    	add    $0xd4,%ecx
 2e8:	89 42 04             	mov    %eax,0x4(%edx)
 2eb:	89 53 f4             	mov    %edx,-0xc(%ebx)
 2ee:	89 48 04             	mov    %ecx,0x4(%eax)
 2f1:	8b 54 24 04          	mov    0x4(%esp),%edx
 2f5:	89 82 d4 00 00 00    	mov    %eax,0xd4(%edx)
 2fb:	83 c4 0c             	add    $0xc,%esp
 2fe:	89 d8                	mov    %ebx,%eax
 300:	5b                   	pop    %ebx
 301:	5e                   	pop    %esi
 302:	5f                   	pop    %edi
 303:	5d                   	pop    %ebp

304: c3 ret
305: 8d 74 26 00 lea 0x0(%esi),%esi
309: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi

00000310 <nilfs_gccache_submit_read_data>:

 310:	57                   	push   %edi
 311:	89 c7                	mov    %eax,%edi
 313:	56                   	push   %esi
 314:	89 d0                	mov    %edx,%eax
 316:	53                   	push   %ebx
 317:	be f4 ff ff ff       	mov    $0xfffffff4,%esi
 31c:	83 ec 08             	sub    $0x8,%esp
 31f:	8b 97 a4 00 00 00    	mov    0xa4(%edi),%edx
 325:	89 4c 24 04          	mov    %ecx,0x4(%esp)
 329:	89 c1                	mov    %eax,%ecx
 32b:	89 f8                	mov    %edi,%eax
 32d:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)
 334:	e8 fc ff ff ff       	call   335 <nilfs_gccache_submit_read_data+0x25>
 339:	85 c0                	test   %eax,%eax
 33b:	89 c3                	mov    %eax,%ebx
 33d:	0f 84 d5 00 00 00    	je     418 <nilfs_gccache_submit_read_data+0x108>
 343:	f6 00 01             	testb  $0x1,(%eax)
 346:	0f 85 b4 00 00 00    	jne    400 <nilfs_gccache_submit_read_data+0xf0>
 34c:	8b 44 24 04          	mov    0x4(%esp),%eax
 350:	85 c0                	test   %eax,%eax
 352:	75 3b                	jne    38f <nilfs_gccache_submit_read_data+0x7f>
 354:	8b 87 9c 00 00 00    	mov    0x9c(%edi),%eax
 35a:	85 c0                	test   %eax,%eax
 35c:	0f 84 d7 00 00 00    	je     439 <nilfs_gccache_submit_read_data+0x129>
 362:	8b 80 88 01 00 00    	mov    0x188(%eax),%eax
 368:	8b 40 28             	mov    0x28(%eax),%eax
 36b:	8d 54 24 04          	lea    0x4(%esp),%edx
 36f:	8b 80 c4 00 00 00    	mov    0xc4(%eax),%eax
 375:	8b 4c 24 1c          	mov    0x1c(%esp),%ecx
 379:	89 14 24             	mov    %edx,(%esp)
 37c:	8b 54 24 18          	mov    0x18(%esp),%edx
 380:	e8 fc ff ff ff       	call   381 <nilfs_gccache_submit_read_data+0x71>
 385:	85 c0                	test   %eax,%eax
 387:	89 c6                	mov    %eax,%esi
 389:	0f 85 d0 00 00 00    	jne    45f <nilfs_gccache_submit_read_data+0x14f>
 38f:	f0 0f ba 2b 02       	lock btsl $0x2,(%ebx)
 394:	19 c0                	sbb    %eax,%eax
 396:	85 c0                	test   %eax,%eax
 398:	0f 85 b5 00 00 00    	jne    453 <nilfs_gccache_submit_read_data+0x143>
 39e:	8b 03                	mov    (%ebx),%eax
 3a0:	a8 01                	test   $0x1,%al
 3a2:	0f 85 88 00 00 00    	jne    430 <nilfs_gccache_submit_read_data+0x120>
 3a8:	a8 20                	test   $0x20,%al
 3aa:	75 21                	jne    3cd <nilfs_gccache_submit_read_data+0xbd>
 3ac:	8b 87 9c 00 00 00    	mov    0x9c(%edi),%eax
 3b2:	85 c0                	test   %eax,%eax
 3b4:	0f 84 8c 00 00 00    	je     446 <nilfs_gccache_submit_read_data+0x136>
 3ba:	8b 80 88 01 00 00    	mov    0x188(%eax),%eax
 3c0:	8b 40 28             	mov    0x28(%eax),%eax
 3c3:	8b 40 08             	mov    0x8(%eax),%eax
 3c6:	89 43 18             	mov    %eax,0x18(%ebx)
 3c9:	f0 80 0b 20          	lock orb $0x20,(%ebx)
 3cd:	8b 44 24 04          	mov    0x4(%esp),%eax
 3d1:	c7 43 1c 00 00 00 00 	movl   $0x0,0x1c(%ebx)
 3d8:	89 43 0c             	mov    %eax,0xc(%ebx)
 3db:	f0 ff 43 30          	lock incl 0x30(%ebx)
 3df:	31 c0                	xor    %eax,%eax
 3e1:	89 da                	mov    %ebx,%edx
 3e3:	e8 fc ff ff ff       	call   3e4 <nilfs_gccache_submit_read_data+0xd4>
 3e8:	8b 44 24 1c          	mov    0x1c(%esp),%eax
 3ec:	0b 44 24 18          	or     0x18(%esp),%eax
 3f0:	75 2f                	jne    421 <nilfs_gccache_submit_read_data+0x111>
 3f2:	8d b4 26 00 00 00 00 	lea    0x0(%esi),%esi
 3f9:	8d bc 27 00 00 00 00 	lea    0x0(%edi),%edi
 400:	8b 44 24 20          	mov    0x20(%esp),%eax
 404:	31 f6                	xor    %esi,%esi
 406:	89 18                	mov    %ebx,(%eax)
 408:	8b 43 08             	mov    0x8(%ebx),%eax
 40b:	e8 fc ff ff ff       	call   40c <nilfs_gccache_submit_read_data+0xfc>
 410:	8b 43 08             	mov    0x8(%ebx),%eax
 413:	e8 fc ff ff ff       	call   414 <nilfs_gccache_submit_read_data+0x104>
 418:	83 c4 08             	add    $0x8,%esp
 41b:	89 f0                	mov    %esi,%eax
 41d:	5b                   	pop    %ebx
 41e:	5e                   	pop    %esi
 41f:	5f                   	pop    %edi
 420:	c3                   	ret    
 421:	8b 54 24 18          	mov    0x18(%esp),%edx
 425:	89 53 0c             	mov    %edx,0xc(%ebx)
 428:	eb d6                	jmp    400 <nilfs_gccache_submit_read_data+0xf0>
 42a:	8d b6 00 00 00 00    	lea    0x0(%esi),%esi
 430:	89 d8                	mov    %ebx,%eax
 432:	e8 fc ff ff ff       	call   433 <nilfs_gccache_submit_read_data+0x123>
 437:	eb c7                	jmp    400 <nilfs_gccache_submit_read_data+0xf0>
 439:	8b 87 40 01 00 00    	mov    0x140(%edi),%eax
 43f:	8b 00                	mov    (%eax),%eax
 441:	e9 25 ff ff ff       	jmp    36b <nilfs_gccache_submit_read_data+0x5b>
 446:	8b 87 40 01 00 00    	mov    0x140(%edi),%eax
 44c:	8b 00                	mov    (%eax),%eax
 44e:	e9 70 ff ff ff       	jmp    3c3 <nilfs_gccache_submit_read_data+0xb3>
 453:	89 d8                	mov    %ebx,%eax
 455:	e8 fc ff ff ff       	call   456 <nilfs_gccache_submit_read_data+0x146>
 45a:	e9 3f ff ff ff       	jmp    39e <nilfs_gccache_submit_read_data+0x8e>
 45f:	85 db                	test   %ebx,%ebx
 461:	74 a5                	je     408 <nilfs_gccache_submit_read_data+0xf8>
 463:	89 d8                	mov    %ebx,%eax
 465:	e8 fc ff ff ff       	call   466 <nilfs_gccache_submit_read_data+0x156>
 46a:	eb 9c                	jmp    408 <nilfs_gccache_submit_read_data+0xf8>

Disassembly of section .bss:

00000000 <def_gcinode_aops>:

	...

Disassembly of section .rodata.str1.4:

00000000 <.rodata.str1.4>:

   0:	2f                   	das    
   1:	68 6f 6d 65 2f       	push   $0x2f656d6f
   6:	61                   	popa   
   7:	64                   	fs
   8:	6d                   	insl   (%dx),%es:(%edi)
   9:	69 6e 2f 78 2f 6e 69 	imul   $0x696e2f78,0x2f(%esi),%ebp
  10:	6c                   	insb   (%dx),%es:(%edi)
  11:	66                   	data16
  12:	73 2d                	jae    41 <nilfs_remove_all_gcinode+0x31>
  14:	32 2e                	xor    (%esi),%ch
  16:	30 2e                	xor    %ch,(%esi)
  18:	31 32                	xor    %esi,(%edx)
  1a:	2f                   	das    
  1b:	66                   	data16
  1c:	73 2f                	jae    4d <nilfs_remove_all_gcinode+0x3d>
  1e:	67 63 69 6e          	addr16 arpl %bp,0x6e(%bx,%di)
  22:	6f                   	outsl  %ds:(%esi),(%dx)
  23:	64 65 2e 63 00       	arpl   %ax,%cs:%fs:%gs:(%eax)

Disassembly of section __bug_table:

00000000 <__bug_table>:

   0:	1e                   	push   %ds
   1:	01 00                	add    %eax,(%eax)
   3:	00 00                	add    %al,(%eax)
   5:	00 00                	add    %al,(%eax)
   7:	00                   	.byte 0x0
   8:	ba                   	.byte 0xba
   9:	00 00                	add    %al,(%eax)
	...

Disassembly of section .altinstructions:

00000000 <.altinstructions>:

   0:	2e 02 00             	add    %cs:(%eax),%al
   3:	00 00                	add    %al,(%eax)
   5:	00 00                	add    %al,(%eax)
   7:	00 19                	add    %bl,(%ecx)
   9:	04 03                	add    $0x3,%al

Disassembly of section .altinstr_replacement:

00000000 <.altinstr_replacement>:
0: 0f 18 01 prefetchnta (%ecx)
Disassembly of section .smp_locks:

00000000 <.smp_locks>:

   0:	8f 03                	popl   (%ebx)
   2:	00 00                	add    %al,(%eax)
   4:	c9                   	leave  
   5:	03 00                	add    (%eax),%eax
   7:	00 db                	add    %bl,%bl
   9:	03 00                	add    (%eax),%eax
	...

Disassembly of section .comment:

00000000 <.comment>:

   0:	00 47 43             	add    %al,0x43(%edi)
   3:	43                   	inc    %ebx
   4:	3a 20                	cmp    (%eax),%ah
   6:	28 47 4e             	sub    %al,0x4e(%edi)
   9:	55                   	push   %ebp
   a:	29 20                	sub    %esp,(%eax)
   c:	34 2e                	xor    $0x2e,%al
   e:	31 2e                	xor    %ebp,(%esi)
  10:	32 20                	xor    (%eax),%ah
  12:	28 47 65             	sub    %al,0x65(%edi)
  15:	6e                   	outsb  %ds:(%esi),(%dx)
  16:	74 6f                	je     87 <nilfs_remove_all_gcinode+0x77>
  18:	6f                   	outsl  %ds:(%esi),(%dx)
  19:	20 34 2e             	and    %dh,(%esi,%ebp,1)
  1c:	31 2e                	xor    %ebp,(%esi)
  1e:	32 20                	xor    (%eax),%ah
  20:	70 31                	jo     53 <nilfs_remove_all_gcinode+0x43>
  22:	2e 30 2e             	xor    %ch,%cs:(%esi)
  25:	32 29                	xor    (%ecx),%ch
	...

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

#21 lore raw
In reply to a message not in the archive
Quoted 9 lines · David Arendt
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I finally gave up trailing this problem from your log because my gcc generates different assembler code with yours.

Could you send me a disassembler output of the nilfs_gc_iget function? It is acquirable as follows:

  $ cd nilfs2-module/fs
  $ objdump -D gcinode.o > gcinode.disasm
Quoted 6 lines

Hi,

ok, here the requested file

Bye,
David Arendt

Thanks!

I could identify the instruction which caused the fault.

Regards,
Ryusuke Konishi