Segmentation Faults
I have some kind of corruption in my btrfs file system that causes kernel segmentation faults when I try to delete files in my browser cache. Let me know if you are interested in having any additional information besides what is below. Thanks.
root@berna:~# uname -a Linux berna 2.6.38-bpo.2-amd64 #1 SMP Mon Jun 6 15:24:02 UTC 2011 x86_64 GNU/Linux
root@berna:/usr/local/src/btrfs-progs# ./btrfsck -s 1 /dev/sda using SB copy 1, bytenr 67108864 failed to read /dev/sr0: No medium found ERROR: unable to scan the device '/dev/sdd' - Device or resource busy failed to read /dev/sr0: No medium found ERROR: unable to scan the device '/dev/sdd' - Device or resource busy leaf parent key incorrect 1782596403200 bad block 1782596403200 incorrect offsets 3942 17510 bad block 1782603522048 warning, start mismatch 1778178670592 1778178764800 Aborted
root@berna:/home/tjc# rm -rf .cache/chromium Segmentation fault root@berna:/home/tjc# Message from syslogd@localhost at Nov 16 11:19:35 ... kernel:[ 66.877568] ------------[ cut here ]------------
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877572] invalid opcode: 0000 [#1] SMP
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877573] last sysfs file: /sys/devices/virtual/block/md0/uevent
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877633] Stack:
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877640] Call Trace:
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877703] Code: 24 24 48 8b 74 24 28 48 8d 54 24 50 41 b9 01 00
00 00 48 89 d9 4c 89 e7 e8 80 6e ff ff 83 f8 00 41 89 c5 0f 8c c5 02 00 00 74 04 <0f> 0b eb fe 4c 8b 2b 8b 73 40 4c 89 ef e8 a3 e5 ff ff 41 89 c6
(I was going to include some log entries, but the lines are longer than 80 characters and your system will not accept them.)
Hi,
Quoted 3 lines · Tim Crone
root@berna:~# uname -a Linux berna 2.6.38-bpo.2-amd64 #1 SMP Mon Jun 6 15:24:02 UTC 2011 x86_64 GNU/Linux
2.6.38 is quite old from btrfs perspective and it's highly possible that the bug you've hit is already fixed. Try newer (like 3.1) kernel and if you still hit some sort of crash, please send the report.
Quoted 15 lines
root@berna:/home/tjc# rm -rf .cache/chromium Segmentation fault root@berna:/home/tjc# Message from syslogd@localhost at Nov 16 11:19:35 ... kernel:[ 66.877568] ------------[ cut here ]------------Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877572] invalid opcode: 0000 [#1] SMPMessage from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877573] last sysfs file:/sys/devices/virtual/block/md0/ueventMessage from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877633] Stack:
Quoted 7 lines
Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877640] Call Trace:Message from syslogd@localhost at Nov 16 11:19:35 ...
kernel:[ 66.877703] Code: 24 24 48 8b 74 24 28 48 8d 54 24 50 41 b9 01 00
00 00 48 89 d9 4c 89 e7 e8 80 6e ff ff 83 f8 00 41 89 c5 0f 8c c5 02 00 00 74 04 <0f> 0b eb fe 4c 8b 2b 8b 73 40 4c 89 ef e8 a3 e5 ff ff 41 89 c6
btw such output is printed to every console when the crash occurs, but lacks important information like stacktrace and names of functions. without that it's very hard to get a clue what happened.
Quoted 2 lines
(I was going to include some log entries, but the lines are longer than 80 characters and your system will not accept them.)
As for stacktrace and line length, I personally want to see the lines not wrapped at 80 (except the eg. byte dump of instructions), it helps readability.
david
Okay, I installed 3.1.1 and continue to oops when trying to delete a directory. Please let me know if you would like any additional information. I'm going to rebuild from a backup later today. Cheers,Tim
Quoted 8 lines · David Sterba
Hi,
Quoted 3 lines · Tim Crone
root@berna:~# uname -a Linux berna 2.6.38-bpo.2-amd64 #1 SMP Mon Jun 6 15:24:02 UTC 2011 x86_64 GNU/Linux2.6.38 is quite old from btrfs perspective and it's highly possible t=
hat
Quoted 1 line
the bug you've hit is already fixed. Try newer (like 3.1) kernel and =
if
Quoted 13 lines
you still hit some sort of crash, please send the report.
Quoted 11 lines
root@berna:/home/tjc# rm -rf .cache/chromium Segmentation fault root@berna:/home/tjc# Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877568] ------------[ cut here ]------------Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877572] invalid opcode: 0000 [#1] SMP
Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877573] last sysfs file: /sys/devices/virtual/blo=
ck/md0/uevent
Quoted 9 lines
Quoted 9 lines
Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877633] Stack:
Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877640] Call Trace:
Message from syslogd@localhost at Nov 16 11:19:35 ... =A0kernel:[ =A0 66.877703] Code: 24 24 48 8b 74 24 28 48 8d 54 24 50=
41 b9 01 00
Quoted 1 line
Quoted 1 line
00 00 48 89 d9 4c 89 e7 e8 80 6e ff ff 83 f8 00 41 89 c5 0f 8c c5 02=
00 00 74
Quoted 3 lines
Quoted 1 line
04 <0f> 0b eb fe 4c 8b 2b 8b 73 40 4c 89 ef e8 a3 e5 ff ff 41 89 c6
btw such output is printed to every console when the crash occurs, bu=
t
Quoted 4 lines
lacks important information like stacktrace and names of functions. without that it's very hard to get a clue what happened.
Quoted 1 line
(I was going to include some log entries, but the lines are longer t=
han
Quoted 4 lines
Quoted 1 line
80 characters and your system will not accept them.)
As for stacktrace and line length, I personally want to see the lines not wrapped at 80 (except the eg. byte dump of instructions), it help=
s
Quoted 5 lines
readability.
david
--=20
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
http://www.fluidcontinuity.org
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Timothy Crone
Okay, I installed 3.1.1 and continue to oops when trying to delete a directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
If you tell me the best way to generate them for you, I will do that. It doesn't seem that anything is printed to /var/log/messages, and my machine locks up pretty soon after the segfault, so I haven't been able to get a detailed stack trace.
Quoted 10 lines · David Sterba
Quoted 3 lines · Timothy Crone
Okay, I installed 3.1.1 and continue to oops when trying to delete a directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
Signature · 8 lines
Timothy J. Crone Lamont-Doherty Earth Observatory Columbia University 61 Route 9W Palisades, NY 10964 Tel: 845-365-8687 http://www.fluidcontinuity.org
Okay, I got it. Dmesg had what I think you need. Some relavent commands then the trace follow. I was trying to delete my Chrome cache, because I determined that this part of the file system was possibly causing my problems. I've heard of others having issues with Chrome and btrfs. Not sure if this is related. If you figure out what is going on, I would be interested to hear back. Cheers.
root@berna:~# uname -a Linux berna 3.1.1 #1 SMP Thu Nov 17 13:51:31 EST 2011 x86_64 GNU/Linux
root@berna:/home/myusername/.cache# rm -rf chromium
Nov 22 16:37:18 localhost kernel: [11287.116968] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116973] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116977] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116980] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116983] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116997] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116999] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117001] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117003] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117004] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:20 localhost kernel: [11288.764956] btrfs: corrupt leaf, slot offset bad: block=1782603522048,root=1, slot=0 Nov 22 16:37:20 localhost kernel: [11288.764979] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 Nov 22 16:37:20 localhost kernel: [11288.764983] IP: [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.764999] PGD 313061067 PUD 31c39f067 PMD 0 Nov 22 16:37:20 localhost kernel: [11288.765001] Oops: 0000 [#1] SMP Nov 22 16:37:20 localhost kernel: [11288.765003] CPU 5 Nov 22 16:37:20 localhost kernel: [11288.765004] Modules linked in:
parport_pc ppdev lp parport bridge stp rfcomm bnep xt_tcpudp ipt_LOG xt_recent nf_conntrack_ipv4 nf_defrag_ipv4 xt_state bluetooth nf_conntrack cpufreq_conservative cpufreq_userspace cpufreq_powersave xt_multiport rfkill crc16 cpufreq_stats iptable_filter mperf ip_tables x_tables binfmt_misc fuse nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc firewire_sbp2 loop nvidia(P) snd_hda_codec_analog i2c_i801 i2c_core asus_atk0110 psmouse processor tpm_tis i7core_edac edac_core pcspkr thermal_sys tpm serio_raw snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer snd_seq_device mxm_wmi wmi snd soundcore snd_page_alloc evdev button tpm_bios joydev ext3 jbd mbcache dm_mod btrfs zlib_deflate crc32c libcrc32c raid1 md_mod sg hid_microsoft usbhid hid sr_mod cdrom sd_mod crc_t10dif ata_generic uhci_hcd ata_piix firewire_ohci e1000 libata firewire_core ehci_hcd crc_itu_t scsi_mod usbcore sky2 [last unloaded: scsi_wait_scan]
Nov 22 16:37:20 localhost kernel: [11288.765038] Nov 22 16:37:20 localhost kernel: [11288.765040] Pid: 3232, comm: rm Tainted: P 3.1.1 #1 System manufacturer System Product Name/P6T DELUXE V2 Nov 22 16:37:20 localhost kernel: [11288.765042] RIP: 0010:[<ffffffffa00d8d3f>] [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765049] RSP: 0018:ffff88031ea69b48 EFLAGS: 00010296 Nov 22 16:37:20 localhost kernel: [11288.765050] RAX: 0000160000000000 RBX: 0000000000000000 RCX: 0000019f0b733000 Nov 22 16:37:20 localhost kernel: [11288.765052] RDX: ffff8803099c5c80 RSI: 0000000000000000 RDI: ffff88032f91c800 Nov 22 16:37:20 localhost kernel: [11288.765053] RBP: ffff880000000000 R08: ffff88031ea69fd8 R09: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765054] R10: 000000000000003a R11: ffff88033fcae230 R12: 0000160000000000 Nov 22 16:37:20 localhost kernel: [11288.765055] R13: 0000000000000005 R14: ffff88032f91c800 R15: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765057] FS: 00007f5628162700(0000) GS:ffff88033fca0000(0000) knlGS:0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765058] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Nov 22 16:37:20 localhost kernel: [11288.765060] CR2: 0000000000000020 CR3: 0000000321ba4000 CR4: 00000000000006e0 Nov 22 16:37:20 localhost kernel: [11288.765061] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765062] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Nov 22 16:37:20 localhost kernel: [11288.765064] Process rm (pid: 3232, threadinfo ffff88031ea68000, task ffff88032eaf5f60) Nov 22 16:37:20 localhost kernel: [11288.765065] Stack: Nov 22 16:37:20 localhost kernel: [11288.765065] ffffffff0000a000 ffff88032f91c800 0000000000000000 0000019e0330b000 Nov 22 16:37:20 localhost kernel: [11288.765068] 0000019e03294000 ffff88031ea69c60 0000019e0330b000 00000000001000a8 Nov 22 16:37:20 localhost kernel: [11288.765070] 000000001168a000 ffffffff810f3272 0000019e0328a000 ffff880321178000 Nov 22 16:37:20 localhost kernel: [11288.765072] Call Trace: Nov 22 16:37:20 localhost kernel: [11288.765076] [<ffffffff810f3272>] ? kmem_cache_alloc+0x2a/0xe1 Nov 22 16:37:20 localhost kernel: [11288.765083] [<ffffffffa00d6bae>] ? __btrfs_free_extent+0x28a/0x5e8 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765089] [<ffffffffa00d75d2>] ? run_clustered_refs+0x6c6/0x716 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765096] [<ffffffffa00d76ef>] ? btrfs_run_delayed_refs+0xcd/0x16c [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765103] [<ffffffffa00e3610>] ? __btrfs_end_transaction+0x83/0x1e2 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765111] [<ffffffffa00ec9cd>] ? btrfs_evict_inode+0x184/0x20d [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765115] [<ffffffff81110500>] ? evict+0x9a/0x14e Nov 22 16:37:20 localhost kernel: [11288.765117] [<ffffffff81108d6f>] ? do_unlinkat+0x10a/0x15e Nov 22 16:37:20 localhost kernel: [11288.765118] [<ffffffff8110ac88>] ? vfs_readdir+0x91/0xa7 Nov 22 16:37:20 localhost kernel: [11288.765121] [<ffffffff81129f63>] ? fsnotify_find_inode_mark+0x23/0x2e Nov 22 16:37:20 localhost kernel: [11288.765124] [<ffffffff81343052>] ? system_call_fastpath+0x16/0x1b Nov 22 16:37:20 localhost kernel: [11288.765125] Code: 21 26 e1 41 57 41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 00 00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58 Nov 22 16:37:20 localhost kernel: [11288.765140] RIP [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765146] RSP <ffff88031ea69b48> Nov 22 16:37:20 localhost kernel: [11288.765147] CR2: 0000000000000020 Nov 22 16:37:20 localhost kernel: [11288.765148] ---[ end trace
6db8d0a7667ab7d9 ]---
Quoted 29 lines · Timothy Crone
If you tell me the best way to generate them for you, I will do that. It doesn't seem that anything is printed to
/var/log/messages, and my machine locks up pretty soon after the segfault, so I haven't been able to get a detailed stack trace.Quoted 10 lines · David Sterba
Quoted 3 lines · Timothy Crone
Okay, I installed 3.1.1 and continue to oops when trying to delete a directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
--
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
Signature · 8 lines
Timothy J. Crone Lamont-Doherty Earth Observatory Columbia University 61 Route 9W Palisades, NY 10964 Tel: 845-365-8687 http://www.fluidcontinuity.org
Quoted 35 lines · Timothy Crone
Okay, I got it. Dmesg had what I think you need. Some relavent commands then the trace follow. I was trying to delete my Chrome cache, because I determined that this part of the file system was possibly causing my problems. I've heard of others having issues with Chrome and btrfs. Not sure if this is related. If you figure out what is going on, I would be interested to hear back. Cheers.
root@berna:~# uname -a Linux berna 3.1.1 #1 SMP Thu Nov 17 13:51:31 EST 2011 x86_64 GNU/Linuxroot@berna:/home/myusername/.cache# rm -rf chromiumNov 22 16:37:18 localhost kernel: [11287.116968] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116973] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116977] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116980] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116983] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116997] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.116999] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117001] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117003] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:18 localhost kernel: [11287.117004] parent transid verify failed on 1782596403200 wanted 25633 found 44577 Nov 22 16:37:20 localhost kernel: [11288.764956] btrfs: corrupt leaf, slot offset bad: block=1782603522048,root=1, slot=0 Nov 22 16:37:20 localhost kernel: [11288.764979] BUG: unable to handle
Quoted 1 line
kernel NULL pointer dereference at 0000000000000020
Hi,
I've seen that you have updated to v3.1, but I'm afraid that is not enough...
Apparently the latest code can provide us more debug info(Not just a NULL pointer).
Could you please update to the latest code and see what is going on?
Here it is:git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus
thanks,
liubo
Quoted 128 lines
Nov 22 16:37:20 localhost kernel: [11288.764983] IP: [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.764999] PGD 313061067 PUD 31c39f067 PMD 0 Nov 22 16:37:20 localhost kernel: [11288.765001] Oops: 0000 [#1] SMP Nov 22 16:37:20 localhost kernel: [11288.765003] CPU 5 Nov 22 16:37:20 localhost kernel: [11288.765004] Modules linked in:
parport_pcppdev lp parport bridge stp rfcomm bnepxt_tcpudpipt_LOGxt_recentnf_conntrack_ipv4nf_defrag_ipv4xt_statebluetoothnf_conntrackcpufreq_conservativecpufreq_userspacecpufreq_powersavext_multiportrfkill crc16cpufreq_statsiptable_filtermperfip_tablesx_tablesbinfmt_miscfuse nfsd nfs lockd fscacheauth_rpcgssnfs_aclsunrpcfirewire_sbp2loop nvidia(P)snd_hda_codec_analogi2c_i801i2c_coreasus_atk0110psmouse processortpm_tisi7core_edacedac_corepcspkrthermal_systpmserio_rawsnd_hda_intelsnd_hda_codecsnd_hwdepsnd_pcmsnd_seqsnd_timersnd_seq_devicemxm_wmiwmi snd soundcoresnd_page_allocevdev buttontpm_biosjoydev ext3 jbd mbcachedm_modbtrfszlib_deflatecrc32c libcrc32c raid1md_modsghid_microsoftusbhid hidsr_modcdromsd_modcrc_t10difata_genericuhci_hcdata_piixfirewire_ohcie1000 libatafirewire_coreehci_hcdcrc_itu_tscsi_modusbcore sky2 [last unloaded:scsi_wait_scan]Nov 22 16:37:20 localhost kernel: [11288.765038] Nov 22 16:37:20 localhost kernel: [11288.765040] Pid: 3232, comm: rm Tainted: P 3.1.1 #1 System manufacturer System Product Name/P6T DELUXE V2 Nov 22 16:37:20 localhost kernel: [11288.765042] RIP: 0010:[<ffffffffa00d8d3f>] [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765049] RSP: 0018:ffff88031ea69b48 EFLAGS: 00010296 Nov 22 16:37:20 localhost kernel: [11288.765050] RAX: 0000160000000000 RBX: 0000000000000000 RCX: 0000019f0b733000 Nov 22 16:37:20 localhost kernel: [11288.765052] RDX: ffff8803099c5c80 RSI: 0000000000000000 RDI: ffff88032f91c800 Nov 22 16:37:20 localhost kernel: [11288.765053] RBP: ffff880000000000 R08: ffff88031ea69fd8 R09: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765054] R10: 000000000000003a R11: ffff88033fcae230 R12: 0000160000000000 Nov 22 16:37:20 localhost kernel: [11288.765055] R13: 0000000000000005 R14: ffff88032f91c800 R15: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765057] FS: 00007f5628162700(0000) GS:ffff88033fca0000(0000) knlGS:0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765058] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Nov 22 16:37:20 localhost kernel: [11288.765060] CR2: 0000000000000020 CR3: 0000000321ba4000 CR4: 00000000000006e0 Nov 22 16:37:20 localhost kernel: [11288.765061] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765062] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Nov 22 16:37:20 localhost kernel: [11288.765064] Process rm (pid: 3232, threadinfo ffff88031ea68000, task ffff88032eaf5f60) Nov 22 16:37:20 localhost kernel: [11288.765065] Stack: Nov 22 16:37:20 localhost kernel: [11288.765065] ffffffff0000a000 ffff88032f91c800 0000000000000000 0000019e0330b000 Nov 22 16:37:20 localhost kernel: [11288.765068] 0000019e03294000 ffff88031ea69c60 0000019e0330b000 00000000001000a8 Nov 22 16:37:20 localhost kernel: [11288.765070] 000000001168a000 ffffffff810f3272 0000019e0328a000 ffff880321178000 Nov 22 16:37:20 localhost kernel: [11288.765072] Call Trace: Nov 22 16:37:20 localhost kernel: [11288.765076] [<ffffffff810f3272>] ? kmem_cache_alloc+0x2a/0xe1 Nov 22 16:37:20 localhost kernel: [11288.765083] [<ffffffffa00d6bae>] ? __btrfs_free_extent+0x28a/0x5e8 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765089] [<ffffffffa00d75d2>] ? run_clustered_refs+0x6c6/0x716 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765096] [<ffffffffa00d76ef>] ? btrfs_run_delayed_refs+0xcd/0x16c [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765103] [<ffffffffa00e3610>] ? __btrfs_end_transaction+0x83/0x1e2 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765111] [<ffffffffa00ec9cd>] ? btrfs_evict_inode+0x184/0x20d [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765115] [<ffffffff81110500>] ? evict+0x9a/0x14e Nov 22 16:37:20 localhost kernel: [11288.765117] [<ffffffff81108d6f>] ? do_unlinkat+0x10a/0x15e Nov 22 16:37:20 localhost kernel: [11288.765118] [<ffffffff8110ac88>] ? vfs_readdir+0x91/0xa7 Nov 22 16:37:20 localhost kernel: [11288.765121] [<ffffffff81129f63>] ? fsnotify_find_inode_mark+0x23/0x2e Nov 22 16:37:20 localhost kernel: [11288.765124] [<ffffffff81343052>] ? system_call_fastpath+0x16/0x1b Nov 22 16:37:20 localhost kernel: [11288.765125] Code: 21 26 e1 41 57 41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 00 00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58 Nov 22 16:37:20 localhost kernel: [11288.765140] RIP [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765146] RSP <ffff88031ea69b48> Nov 22 16:37:20 localhost kernel: [11288.765147] CR2: 0000000000000020 Nov 22 16:37:20 localhost kernel: [11288.765148] ---[ end trace
6db8d0a7667ab7d9]---Quoted 27 lines · Timothy Crone
If you tell me the best way to generate them for you, I will do that. It doesn't seem that anything is printed to
/var/log/messages, and my machine locks up pretty soon after the segfault, so I haven't been able to get a detailed stack trace.Quoted 9 lines · David Sterba
Quoted 3 lines · Timothy Crone
Okay, I installed 3.1.1 and continue to oops when trying to delete a directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
--
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
Okay, I built the version you sent me. I am guessing that this has the newest btrfs code in it even though it is labeled 3.1.0? Is that because it has not been merged? Relevant commands and a stack trace below. Still says something about a null pointer.
root@berna:~# uname -a Linux berna 3.1.0+ #3 SMP Wed Nov 23 08:27:28 EST 2011 x86_64 GNU/Linux
root@berna:~# rm -rf /home/myusername/.cache/chromium
[180054.695188] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695264] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695337] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695409] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695482] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695562] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695635] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695708] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695780] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695852] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180059.285139] btrfs: corrupt leaf, slot offset bad: block=3D1782603522048,root=3D1, slot=3D0 [180059.285229] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 [180059.285366] IP: [<ffffffffa020ad3f>] btrfs_print_leaf+0x28/0x766 [b= trfs] [180059.285465] PGD 31a5c5067 PUD 31c6c6067 PMD 0 [180059.285614] Oops: 0000 [#1] SMP [180059.285730] CPU 6 [180059.285765] Modules linked in: parport_pc ppdev lp parport bridge
stp bnep rfcomm cpufreq_conservative bluetooth xt_tcpudp cpufreq_userspace ipt_LOG cpufreq_powersave xt_recent cpufreq_stats nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack rfkill crc16 xt_multiport mperf iptable_filter ip_tables x_tables binfmt_misc fuse nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc firewire_sbp2 loop snd_hda_codec_analog mxm_wmi wmi tpm_tis tpm psmouse snd_hda_intel snd_hda_codec tpm_bios snd_hwdep snd_pcm snd_seq snd_timer i7core_edac snd_seq_device edac_core snd soundcore asus_atk0110 processor snd_page_alloc pcspkr button i2c_i801 i2c_core serio_raw evdev joydev thermal_sys ext3 jbd mbcache dm_mod btrfs zlib_deflate crc32c libcrc32c raid1 md_mod sg hid_microsoft usbhid hid sd_mod sr_mod cdrom crc_t10dif ata_generic uhci_hcd firewire_ohci ata_piix firewire_core crc_itu_t libata ehci_hcd scsi_mod usbcore usb_common [last unloaded:scsi_wait_scan]
[180059.289277] [180059.289325] Pid: 11097, comm: rm Not tainted 3.1.0+ #3 System manufacturer System Product Name/P6T DELUXE V2 [180059.289497] RIP: 0010:[<ffffffffa020ad3f>] [<ffffffffa020ad3f>] btrfs_print_leaf+0x28/0x766 [btrfs] [180059.289609] RSP: 0018:ffff88031cd8db48 EFLAGS: 00010296 [180059.289664] RAX: 0000160000000000 RBX: 0000000000000000 RCX: 0000019f0b733000 [180059.289735] RDX: ffff8802cb879500 RSI: 0000000000000000 RDI: ffff88031cb25000 [180059.289806] RBP: ffff880000000000 R08: ffff88031cd8dfd8 R09: 0000000000000000 [180059.289877] R10: 000000000000003a R11: ffff88033fcce7f0 R12: 0000160000000000 [180059.289948] R13: 0000000000000005 R14: ffff88031cb25000 R15: 0000000000000000 [180059.290020] FS: 00007f23410ee700(0000) GS:ffff88033fcc0000(0000) knlGS:0000000000000000 [180059.290092] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [180059.290148] CR2: 0000000000000020 CR3: 000000031c4c7000 CR4: 00000000000006e0 [180059.290219] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [180059.290290] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [180059.290362] Process rm (pid: 11097, threadinfo ffff88031cd8c000, task ffff88031ad76d00) [180059.290434] Stack: [180059.290483] ffffffff0000a000 ffff88031cb25000 0000000000000000 0000019e0330b000 [180059.290682] 0000019e03294000 ffff88031cd8dc60 0000019e0330b000 00000000001000a8 [180059.290881] 000000001168a000 ffffffff810f705e 0000019e0328a000 ffff8802cb4ec000 [180059.291081] Call Trace: [180059.291134] [<ffffffff810f705e>] ? kmem_cache_alloc+0x2a/0xe2 [180059.291195] [<ffffffffa0208bae>] ? __btrfs_free_extent+0x28a/0x5e8= [btrfs] [180059.291253] [<ffffffff810f6a64>] ? __slab_free+0xdb/0x245 [180059.291314] [<ffffffffa02095d2>] ? run_clustered_refs+0x6c6/0x716 = [btrfs] [180059.291376] [<ffffffffa02096ef>] ? btrfs_run_delayed_refs+0xcd/0x16c [btrfs] [180059.291454] [<ffffffffa0215610>] ? __btrfs_end_transaction+0x83/0x1e2 [btrfs] [180059.291532] [<ffffffffa021e9cb>] ? btrfs_evict_inode+0x184/0x20d [= btrfs] [180059.291591] [<ffffffff811141c8>] ? evict+0x9a/0x14e [180059.291647] [<ffffffff8110ce79>] ? do_unlinkat+0x10a/0x15e [180059.291703] [<ffffffff8110e950>] ? vfs_readdir+0x91/0xa7 [180059.291759] [<ffffffff8112dd97>] ? fsnotify_find_inode_mark+0x23/0= x2e [180059.291817] [<ffffffff8134f052>] ? system_call_fastpath+0x16/0x1b [180059.291873] Code: c1 13 e1 41 57 41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 00 00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58 [180059.293313] 03 46 20 48 c1 f8 06 48 c1 e0 0c 8b 44 28 60 89 44 24 = 2c e8 [180059.294084] RIP [<ffffffffa020ad3f>] btrfs_print_leaf+0x28/0x766 [= btrfs] [180059.294178] RSP <ffff88031cd8db48> [180059.294230] CR2: 0000000000000020 [180059.294286] ---[ end trace a7d81066cd58d1c9 ]---
On Tue, Nov 22, 2011 at 8:14 PM, Liu Bo <[email protected]> wrot= e:
Quoted 5 lines · Timothy Crone
Quoted 4 lines
Okay, I got it. Dmesg had what I think you need. Some relavent commands then the trace follow. I was trying to delete my Chrome cache, because I determined that this part of the file system was possibly causing my problems. I've heard of others having issues wit=
h
Quoted 1 line
Quoted 1 line
Chrome and btrfs. Not sure if this is related. If you figure out wha=
t
Quoted 4 lines
Quoted 4 lines
is going on, I would be interested to hear back. Cheers.
root@berna:~# uname -a Linux berna 3.1.1 #1 SMP Thu Nov 17 13:51:31 EST 2011 x86_64 GNU/Lin=
ux
Quoted 4 lines
Quoted 4 lines
root@berna:/home/myusername/.cache# rm -rf chromiumNov 22 16:37:18 localhost kernel: [11287.116968] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116973] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116977] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116980] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116983] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116997] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116999] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117001] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117003] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117004] parent transid veri=
fy
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:20 localhost kernel: [11288.764956] btrfs: corrupt leaf=
,
Quoted 2 lines
Quoted 2 lines
slot offset bad: block=3D1782603522048,root=3D1, slot=3D0
Nov 22 16:37:20 localhost kernel: [11288.764979] BUG: unable to hand=
le
Quoted 6 lines
Quoted 1 line
kernel NULL pointer dereference at 0000000000000020
Hi,
I've seen that you have updated to v3.1, but I'm afraid that is not e=
nough...
Quoted 2 lines
Apparently the latest code can provide us more debug info(Not just a =
NULL pointer).
Quoted 5 lines
Could you please update to the latest code and see what is going on?
Here it is:
git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.gitf=
or-linus
Quoted 15 lines
thanks,
liuboQuoted 10 lines
Nov 22 16:37:20 localhost kernel: [11288.764983] IP: [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.764999] PGD 313061067 PUD 31c39f067 PMD 0 Nov 22 16:37:20 localhost kernel: [11288.765001] Oops: 0000 [#1] SMP Nov 22 16:37:20 localhost kernel: [11288.765003] CPU 5 Nov 22 16:37:20 localhost kernel: [11288.765004] Modules linked in:
parport_pcppdev lp parport bridge stp rfcomm bnepxt_tcpudpipt_LOGxt_recentnf_conntrack_ipv4nf_defrag_ipv4xt_statebluetoothnf_conntrackcpufreq_conservativecpufreq_userspacecpufreq_powersav=
e
Quoted 1 line
Quoted 1 line
xt_multiportrfkill crc16cpufreq_statsiptable_filtermperf ip_tabl=
es
Quoted 3 lines
Quoted 3 lines
x_tablesbinfmt_miscfuse nfsd nfs lockd fscacheauth_rpcgssnfs_aclsunrpcfirewire_sbp2loop nvidia(P)snd_hda_codec_analogi2c_i801i2c_coreasus_atk0110psmouse processortpm_tisi7core_edacedac_cor=
e
Quoted 1 line
Quoted 1 line
pcspkr
thermal_systpmserio_rawsnd_hda_intelsnd_hda_codecsnd_hwd=
ep
Quoted 9 lines
Quoted 9 lines
snd_pcmsnd_seqsnd_timersnd_seq_devicemxm_wmiwmi snd soundcoresnd_page_allocevdev buttontpm_biosjoydev ext3 jbd mbcachedm_modbtrfszlib_deflatecrc32c libcrc32c raid1md_modsghid_microsoftusbhid hidsr_modcdromsd_modcrc_t10difata_genericuhci_hcdata_piixfirewire_ohcie1000 libatafirewire_coreehci_hcdcrc_itu_tscsi_modusbcore sky2 [last unloaded:scsi_wait_scan]Nov 22 16:37:20 localhost kernel: [11288.765038] Nov 22 16:37:20 localhost kernel: [11288.765040] Pid: 3232, comm: rm Tainted: P =A0 =A0 =A0 =A0 =A0 =A03.1.1 #1 System manufacturer Syste=
m Product
Quoted 7 lines
Quoted 7 lines
Name/P6T DELUXE V2
Nov 22 16:37:20 localhost kernel: [11288.765042] RIP: 0010:[<ffffffffa00d8d3f>] =A0[<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765049] RSP: 0018:ffff88031ea69b48 =A0EFLAGS: 00010296 Nov 22 16:37:20 localhost kernel: [11288.765050] RAX: 00001600000000=
00
Quoted 2 lines
Quoted 2 lines
RBX: 0000000000000000 RCX:
0000019f0b733000Nov 22 16:37:20 localhost kernel: [11288.765052] RDX: ffff8803099c5c=
80
Quoted 2 lines
Quoted 2 lines
RSI: 0000000000000000 RDI:
ffff88032f91c800Nov 22 16:37:20 localhost kernel: [11288.765053] RBP: ffff8800000000=
00
Quoted 2 lines
Quoted 2 lines
R08:
ffff88031ea69fd8R09: 0000000000000000Nov 22 16:37:20 localhost kernel: [11288.765054] R10: 00000000000000=
3a
Quoted 2 lines
Quoted 2 lines
R11:
ffff88033fcae230R12: 0000160000000000Nov 22 16:37:20 localhost kernel: [11288.765055] R13: 00000000000000=
05
Quoted 5 lines
Quoted 5 lines
R14:
ffff88032f91c800R15: 0000000000000000Nov 22 16:37:20 localhost kernel: [11288.765057] FS: 00007f5628162700(0000) GS:ffff88033fca0000(0000) knlGS:0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765058] CS: =A00010 DS: 000=
0
Quoted 2 lines
Quoted 2 lines
ES: 0000 CR0:
000000008005003bNov 22 16:37:20 localhost kernel: [11288.765060] CR2: 00000000000000=
20
Quoted 2 lines
Quoted 2 lines
CR3:
0000000321ba4000CR4:00000000000006e0Nov 22 16:37:20 localhost kernel: [11288.765061] DR0: 00000000000000=
00
Quoted 2 lines
Quoted 2 lines
DR1: 0000000000000000 DR2: 0000000000000000
Nov 22 16:37:20 localhost kernel: [11288.765062] DR3: 00000000000000=
00
Quoted 4 lines
Quoted 4 lines
DR6:
00000000ffff0ff0DR7: 0000000000000400Nov 22 16:37:20 localhost kernel: [11288.765064] Process rm (pid: 3232, threadinfo ffff88031ea68000, task ffff88032eaf5f60) Nov 22 16:37:20 localhost kernel: [11288.765065] Stack:
Quoted 8 lines
Quoted 8 lines
Nov 22 16:37:20 localhost kernel: [11288.765065] =A0ffffffff0000a000 ffff88032f91c800 0000000000000000 0000019e0330b000 Nov 22 16:37:20 localhost kernel: [11288.765068] =A00000019e03294000 ffff88031ea69c60 0000019e0330b000 00000000001000a8 Nov 22 16:37:20 localhost kernel: [11288.765070] =A0000000001168a000 ffffffff810f3272 0000019e0328a000 ffff880321178000 Nov 22 16:37:20 localhost kernel: [11288.765072] Call Trace: Nov 22 16:37:20 localhost kernel: [11288.765076] =A0[<ffffffff810f32=
72>]
Quoted 2 lines
Quoted 2 lines
?
kmem_cache_alloc+0x2a/0xe1Nov 22 16:37:20 localhost kernel: [11288.765083] =A0[<ffffffffa00d6b=
ae>]
Quoted 2 lines
Quoted 2 lines
?
__btrfs_free_extent+0x28a/0x5e8[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765089] =A0[<ffffffffa00d75=
d2>]
Quoted 2 lines
Quoted 2 lines
?
run_clustered_refs+0x6c6/0x716[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765096] =A0[<ffffffffa00d76=
ef>]
Quoted 2 lines
Quoted 2 lines
?
btrfs_run_delayed_refs+0xcd/0x16c[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765103] =A0[<ffffffffa00e36=
10>]
Quoted 2 lines
Quoted 2 lines
?
__btrfs_end_transaction+0x83/0x1e2[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765111] =A0[<ffffffffa00ec9=
cd>]
Quoted 2 lines
Quoted 2 lines
?
btrfs_evict_inode+0x184/0x20d[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765115] =A0[<ffffffff811105=
00>]
Quoted 2 lines
Quoted 2 lines
?
evict+0x9a/0x14eNov 22 16:37:20 localhost kernel: [11288.765117] =A0[<ffffffff81108d=
6f>]
Quoted 2 lines
Quoted 2 lines
?
do_unlinkat+0x10a/0x15eNov 22 16:37:20 localhost kernel: [11288.765118] =A0[<ffffffff8110ac=
88>]
Quoted 2 lines
Quoted 2 lines
?
vfs_readdir+0x91/0xa7Nov 22 16:37:20 localhost kernel: [11288.765121] =A0[<ffffffff81129f=
63>]
Quoted 2 lines
Quoted 2 lines
?
fsnotify_find_inode_mark+0x23/0x2eNov 22 16:37:20 localhost kernel: [11288.765124] =A0[<ffffffff813430=
52>]
Quoted 2 lines
Quoted 2 lines
?
system_call_fastpath+0x16/0x1bNov 22 16:37:20 localhost kernel: [11288.765125] Code: 21 26 e1 41 5=
7
Quoted 5 lines
Quoted 5 lines
41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 00 00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58
Nov 22 16:37:20 localhost kernel: [11288.765140] RIP [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765146] =A0RSP <ffff88031ea=
69b48>
Quoted 1 line
Quoted 1 line
Nov 22 16:37:20 localhost kernel: [11288.765147] CR2: 00000000000000=
20
Quoted 8 lines
Quoted 8 lines
Nov 22 16:37:20 localhost kernel: [11288.765148] ---[ end trace
6db8d0a7667ab7d9]---On Tue, Nov 22, 2011 at 1:28 PM, Timothy Crone <[email protected]> w=
rote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
If you tell me the best way to generate them for you, I will do tha=
t.
Quoted 1 line
Quoted 1 line
Quoted 1 line
It doesn't seem that anything is printed to
/var/log/messages, and =
my
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
machine locks up pretty soon after the segfault, so I haven't been able to get a detailed stack trace.
On Tue, Nov 22, 2011 at 12:14 PM, David Sterba <[email protected]> wrot=
e:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Timothy Crone
Quoted 1 line
Okay, I installed 3.1.1 and continue to oops when trying to delet=
e a
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 7 lines
Quoted 2 lines
directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
--
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
--=20
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
http://www.fluidcontinuity.org
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Dear David and Liu,
I need to reclaim the drive space being taken up by this perhaps corrupt btrfs file system. Is there any additional information you would like before this problem will no longer be reproducible?
Thanks,
Tim
On Fri, Nov 25, 2011 at 11:25 AM, Timothy Crone <[email protected]> wro= te:
Quoted 1 line
Okay, I built the version you sent me. I am guessing that this has th=
e
Quoted 6 lines
newest btrfs code in it even though it is labeled 3.1.0? Is that because it has not been merged? Relevant commands and a stack trace below. Still says something about a null pointer.
root@berna:~# uname -a Linux berna 3.1.0+ #3 SMP Wed Nov 23 08:27:28 EST 2011 x86_64 GNU/Lin=
ux
Quoted 20 lines
root@berna:~# rm -rf /home/myusername/.cache/chromium[180054.695188] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695264] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695337] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695409] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695482] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695562] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695635] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695708] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180054.695780] parent transid verify failed on 1782596403200 wanted
Quoted 8 lines
25633 found 44577
[180054.695852] parent transid verify failed on 1782596403200 wanted 25633 found 44577 [180059.285139] btrfs: corrupt leaf, slot offset bad: block=3D1782603522048,root=3D1, slot=3D0 [180059.285229] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 [180059.285366] IP: [<ffffffffa020ad3f>] btrfs_print_leaf+0x28/0x766 =
[btrfs]
Quoted 11 lines
[180059.285465] PGD 31a5c5067 PUD 31c6c6067 PMD 0 [180059.285614] Oops: 0000 [#1] SMP [180059.285730] CPU 6 [180059.285765] Modules linked in: parport_pc ppdev lp parport bridgestp bnep rfcomm
cpufreq_conservativebluetoothxt_tcpudpcpufreq_userspaceipt_LOGcpufreq_powersavext_recentcpufreq_statsnf_conntrack_ipv4nf_defrag_ipv4xt_statenf_conntrackrfkill crc16xt_multiportmperfiptable_filterip_tablesx_tablesbinfmt_miscfuse nfsd nfs lockd fscacheauth_rpcgssnfs_aclsunrpcfirewire_sbp2loopsnd_hda_codec_analogmxm_wmiwmitpm_tistpm psmousesnd_hda_intelsnd_hda_codectpm_biossnd_hwdepsnd_pcmsnd_seqsnd_timeri7core_eda=
c
Quoted 4 lines
snd_seq_deviceedac_coresnd soundcoreasus_atk0110processorsnd_page_allocpcspkr buttoni2c_i801i2c_coreserio_rawevdev joydevthermal_sysext3 jbd mbcachedm_modbtrfszlib_deflatecrc32c libcrc32c raid1md_modsghid_microsoftusbhid hidsd_modsr_modcdro=
m
Quoted 7 lines
crc_t10difata_genericuhci_hcdfirewire_ohciata_piixfirewire_corecrc_itu_tlibataehci_hcdscsi_modusbcoreusb_common[last unloaded:scsi_wait_scan][180059.289277] [180059.289325] Pid: 11097, comm: rm Not tainted 3.1.0+ #3 System manufacturer System Product Name/P6T DELUXE V2 [180059.289497] RIP: 0010:[<ffffffffa020ad3f>] =A0[<ffffffffa020ad3f>=
]
Quoted 13 lines
btrfs_print_leaf+0x28/0x766[btrfs][180059.289609] RSP: 0018:ffff88031cd8db48 =A0EFLAGS: 00010296 [180059.289664] RAX: 0000160000000000 RBX: 0000000000000000 RCX: 0000019f0b733000 [180059.289735] RDX: ffff8802cb879500 RSI: 0000000000000000 RDI: ffff88031cb25000 [180059.289806] RBP: ffff880000000000 R08: ffff88031cd8dfd8 R09: 0000000000000000 [180059.289877] R10: 000000000000003a R11: ffff88033fcce7f0 R12: 0000160000000000 [180059.289948] R13: 0000000000000005 R14: ffff88031cb25000 R15: 0000000000000000 [180059.290020] FS: =A000007f23410ee700(0000) GS:ffff88033fcc0000(000=
0)
Quoted 12 lines
knlGS:0000000000000000
[180059.290092] CS: =A00010 DS: 0000 ES: 0000 CR0: 000000008005003b [180059.290148] CR2: 0000000000000020 CR3: 000000031c4c7000 CR4: 00000000000006e0 [180059.290219] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [180059.290290] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [180059.290362] Process rm (pid: 11097, threadinfo ffff88031cd8c000, task ffff88031ad76d00) [180059.290434] Stack: [180059.290483] =A0ffffffff0000a000 ffff88031cb25000 0000000000000000
Quoted 8 lines
0000019e0330b000[180059.290682] =A00000019e03294000 ffff88031cd8dc60 0000019e0330b000 00000000001000a8 [180059.290881] =A0000000001168a000 ffffffff810f705e 0000019e0328a000 ffff8802cb4ec000 [180059.291081] Call Trace: [180059.291134] =A0[<ffffffff810f705e>] ? kmem_cache_alloc+0x2a/0xe2 [180059.291195] =A0[<ffffffffa0208bae>] ? __btrfs_free_extent+0x28a/0=
x5e8 [btrfs]
Quoted 2 lines
[180059.291253] =A0[<ffffffff810f6a64>] ? __slab_free+0xdb/0x245 [180059.291314] =A0[<ffffffffa02095d2>] ? run_clustered_refs+0x6c6/0x=
716 [btrfs]
Quoted 5 lines
[180059.291376] =A0[<ffffffffa02096ef>] ? btrfs_run_delayed_refs+0xcd/0x16c [btrfs] [180059.291454] =A0[<ffffffffa0215610>] ? __btrfs_end_transaction+0x83/0x1e2 [btrfs] [180059.291532] =A0[<ffffffffa021e9cb>] ? btrfs_evict_inode+0x184/0x2=
0d [btrfs]
Quoted 4 lines
[180059.291591] =A0[<ffffffff811141c8>] ? evict+0x9a/0x14e [180059.291647] =A0[<ffffffff8110ce79>] ? do_unlinkat+0x10a/0x15e [180059.291703] =A0[<ffffffff8110e950>] ? vfs_readdir+0x91/0xa7 [180059.291759] =A0[<ffffffff8112dd97>] ? fsnotify_find_inode_mark+0x=
23/0x2e
Quoted 1 line
[180059.291817] =A0[<ffffffff8134f052>] ? system_call_fastpath+0x16/0=
x1b
Quoted 4 lines
[180059.291873] Code: c1 13 e1 41 57 41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 00 00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58 [180059.293313] =A003 46 20 48 c1 f8 06 48 c1 e0 0c 8b 44 28 60 89 44=
24 2c e8
Quoted 1 line
[180059.294084] RIP =A0[<ffffffffa020ad3f>] btrfs_print_leaf+0x28/0x7=
66 [btrfs]
Quoted 6 lines
[180059.294178] =A0RSP <ffff88031cd8db48> [180059.294230] CR2: 0000000000000020 [180059.294286] ---[ end trace a7d81066cd58d1c9 ]---On Tue, Nov 22, 2011 at 8:14 PM, Liu Bo <[email protected]> wr=
ote:
Quoted 5 lines
Quoted 5 lines · Timothy Crone
Quoted 4 lines
Okay, I got it. Dmesg had what I think you need. Some relavent commands then the trace follow. I was trying to delete my Chrome cache, because I determined that this part of the file system was possibly causing my problems. I've heard of others having issues wi=
th
Quoted 1 line
Quoted 1 line
Quoted 1 line
Chrome and btrfs. Not sure if this is related. If you figure out wh=
at
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
is going on, I would be interested to hear back. Cheers.
root@berna:~# uname -a Linux berna 3.1.1 #1 SMP Thu Nov 17 13:51:31 EST 2011 x86_64 GNU/Li=
nux
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
root@berna:/home/myusername/.cache# rm -rf chromiumNov 22 16:37:18 localhost kernel: [11287.116968] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116973] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116977] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116980] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116983] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116997] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.116999] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117001] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117003] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:18 localhost kernel: [11287.117004] parent transid ver=
ify
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed on 1782596403200 wanted 25633 found 44577
Nov 22 16:37:20 localhost kernel: [11288.764956] btrfs: corrupt lea=
f,
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
slot offset bad: block=3D1782603522048,root=3D1, slot=3D0
Nov 22 16:37:20 localhost kernel: [11288.764979] BUG: unable to han=
dle
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
kernel NULL pointer dereference at 0000000000000020
Hi,
I've seen that you have updated to v3.1, but I'm afraid that is not =
enough...
Quoted 2 lines
Quoted 2 lines
Apparently the latest code can provide us more debug info(Not just a=
NULL pointer).
Quoted 5 lines
Quoted 5 lines
Could you please update to the latest code and see what is going on?
Here it is:
git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git=
for-linus
Quoted 10 lines
Quoted 10 lines
thanks,
liuboQuoted 5 lines
Nov 22 16:37:20 localhost kernel: [11288.764983] IP: [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.764999] PGD 313061067 PUD 31c39f067 PMD 0 Nov 22 16:37:20 localhost kernel: [11288.765001] Oops: 0000 [#1] SM=
P
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Nov 22 16:37:20 localhost kernel: [11288.765003] CPU 5 Nov 22 16:37:20 localhost kernel: [11288.765004] Modules linked in:
parport_pcppdev lp parport bridge stp rfcomm bnepxt_tcpudpipt_LO=
G
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
xt_recentnf_conntrack_ipv4nf_defrag_ipv4xt_statebluetoothnf_conntrackcpufreq_conservativecpufreq_userspacecpufreq_powersa=
ve
Quoted 1 line
Quoted 1 line
Quoted 1 line
xt_multiportrfkill crc16cpufreq_statsiptable_filtermperf ip_tab=
les
Quoted 1 line
Quoted 1 line
Quoted 1 line
x_tablesbinfmt_miscfuse nfsd nfs lockd fscacheauth_rpcgssnfs_ac=
l
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
sunrpc
firewire_sbp2loop nvidia(P)snd_hda_codec_analogi2c_i801i2c_coreasus_atk0110psmouse processortpm_tisi7core_edacedac_co=
re
Quoted 1 line
Quoted 1 line
Quoted 1 line
pcspkr
thermal_systpmserio_rawsnd_hda_intelsnd_hda_codecsnd_hw=
dep
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
snd_pcmsnd_seqsnd_timersnd_seq_devicemxm_wmiwmi snd soundcoresnd_page_allocevdev buttontpm_biosjoydev ext3 jbd mbcachedm_modbtrfszlib_deflatecrc32c libcrc32c raid1md_modsghid_microsoftusbhid hidsr_modcdromsd_modcrc_t10difata_genericuhci_hcdata_piixfirewire_ohcie1000 libatafirewire_coreehci_hcdcrc_itu_=
t
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
scsi_modusbcore sky2 [last unloaded:scsi_wait_scan]Nov 22 16:37:20 localhost kernel: [11288.765038] Nov 22 16:37:20 localhost kernel: [11288.765040] Pid: 3232, comm: r=
m
Quoted 1 line
Quoted 1 line
Quoted 1 line
Tainted: P =A0 =A0 =A0 =A0 =A0 =A03.1.1 #1 System manufacturer Syst=
em Product
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Name/P6T DELUXE V2
Nov 22 16:37:20 localhost kernel: [11288.765042] RIP: 0010:[<ffffffffa00d8d3f>] =A0[<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765049] RSP: 0018:ffff88031ea69b48 =A0EFLAGS: 00010296 Nov 22 16:37:20 localhost kernel: [11288.765050] RAX: 0000160000000=
000
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
RBX: 0000000000000000 RCX:
0000019f0b733000Nov 22 16:37:20 localhost kernel: [11288.765052] RDX: ffff8803099c5=
c80
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
RSI: 0000000000000000 RDI:
ffff88032f91c800Nov 22 16:37:20 localhost kernel: [11288.765053] RBP: ffff880000000=
000
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
R08:
ffff88031ea69fd8R09: 0000000000000000Nov 22 16:37:20 localhost kernel: [11288.765054] R10: 0000000000000=
03a
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
R11:
ffff88033fcae230R12: 0000160000000000Nov 22 16:37:20 localhost kernel: [11288.765055] R13: 0000000000000=
005
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
R14:
ffff88032f91c800R15: 0000000000000000Nov 22 16:37:20 localhost kernel: [11288.765057] FS: 00007f5628162700(0000) GS:ffff88033fca0000(0000) knlGS:0000000000000000 Nov 22 16:37:20 localhost kernel: [11288.765058] CS: =A00010 DS: 00=
00
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ES: 0000 CR0:
000000008005003bNov 22 16:37:20 localhost kernel: [11288.765060] CR2: 0000000000000=
020
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
CR3:
0000000321ba4000CR4:00000000000006e0Nov 22 16:37:20 localhost kernel: [11288.765061] DR0: 0000000000000=
000
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
DR1: 0000000000000000 DR2: 0000000000000000
Nov 22 16:37:20 localhost kernel: [11288.765062] DR3: 0000000000000=
000
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
DR6:
00000000ffff0ff0DR7: 0000000000000400Nov 22 16:37:20 localhost kernel: [11288.765064] Process rm (pid: 3232, threadinfo ffff88031ea68000, task ffff88032eaf5f60) Nov 22 16:37:20 localhost kernel: [11288.765065] Stack: Nov 22 16:37:20 localhost kernel: [11288.765065] =A0ffffffff0000a00=
0
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ffff88032f91c80000000000000000000000019e0330b000Nov 22 16:37:20 localhost kernel: [11288.765068] =A00000019e0329400=
0
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ffff88031ea69c600000019e0330b00000000000001000a8Nov 22 16:37:20 localhost kernel: [11288.765070] =A0000000001168a00=
0
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
ffffffff810f32720000019e0328a000ffff880321178000Nov 22 16:37:20 localhost kernel: [11288.765072] Call Trace: Nov 22 16:37:20 localhost kernel: [11288.765076] =A0[<ffffffff810f3=
272>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
kmem_cache_alloc+0x2a/0xe1Nov 22 16:37:20 localhost kernel: [11288.765083] =A0[<ffffffffa00d6=
bae>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
__btrfs_free_extent+0x28a/0x5e8[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765089] =A0[<ffffffffa00d7=
5d2>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
run_clustered_refs+0x6c6/0x716[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765096] =A0[<ffffffffa00d7=
6ef>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
btrfs_run_delayed_refs+0xcd/0x16c[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765103] =A0[<ffffffffa00e3=
610>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
__btrfs_end_transaction+0x83/0x1e2[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765111] =A0[<ffffffffa00ec=
9cd>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
btrfs_evict_inode+0x184/0x20d[btrfs]Nov 22 16:37:20 localhost kernel: [11288.765115] =A0[<ffffffff81110=
500>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
evict+0x9a/0x14eNov 22 16:37:20 localhost kernel: [11288.765117] =A0[<ffffffff81108=
d6f>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
do_unlinkat+0x10a/0x15eNov 22 16:37:20 localhost kernel: [11288.765118] =A0[<ffffffff8110a=
c88>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
vfs_readdir+0x91/0xa7Nov 22 16:37:20 localhost kernel: [11288.765121] =A0[<ffffffff81129=
f63>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
fsnotify_find_inode_mark+0x23/0x2eNov 22 16:37:20 localhost kernel: [11288.765124] =A0[<ffffffff81343=
052>]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
?
system_call_fastpath+0x16/0x1bNov 22 16:37:20 localhost kernel: [11288.765125] Code: 21 26 e1 41 =
57
Quoted 1 line
Quoted 1 line
Quoted 1 line
41 56 41 55 41 54 49 bc 00 00 00 00 00 16 00 00 4c 89 e0 55 48 bd 0=
0
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
00 00 00 00 88 ff ff 53 48 89 f3 48 83 ec 58
Nov 22 16:37:20 localhost kernel: [11288.765140] RIP [<ffffffffa00d8d3f>] btrfs_print_leaf+0x28/0x766 [btrfs] Nov 22 16:37:20 localhost kernel: [11288.765146] =A0RSP <ffff88031e=
a69b48>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Nov 22 16:37:20 localhost kernel: [11288.765147] CR2: 0000000000000=
020
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Nov 22 16:37:20 localhost kernel: [11288.765148] ---[ end trace
6db8d0a7667ab7d9]---On Tue, Nov 22, 2011 at 1:28 PM, Timothy Crone <[email protected]> =
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
If you tell me the best way to generate them for you, I will do th=
at.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
It doesn't seem that anything is printed to
/var/log/messages, and=
my
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
machine locks up pretty soon after the segfault, so I haven't been able to get a detailed stack trace.
On Tue, Nov 22, 2011 at 12:14 PM, David Sterba <[email protected]> wro=
te:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Timothy Crone
Quoted 1 line
Okay, I installed 3.1.1 and continue to oops when trying to dele=
te a
Quoted 35 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 7 lines
Quoted 2 lines
directory. Please let me know if you would like any additional information.
Do you have more detailed stacktraces from the crash?
david
--
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
--
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
Quoted 2 lines
--=20
Timothy J. Crone
Lamont-Doherty Earth Observatory
Columbia University
61 Route 9W
Palisades, NY 10964
Tel: 845-365-8687
http://www.fluidcontinuity.org
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html