Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dump) with btrfsck and btrfs restore #15

Open
d4l3k opened this issue Mar 8, 2014 · 4 comments
Open

Segmentation fault (core dump) with btrfsck and btrfs restore #15

d4l3k opened this issue Mar 8, 2014 · 4 comments

Comments

@d4l3k
Copy link

d4l3k commented Mar 8, 2014

I'm having issues with btrfs and btrfs-progs. I've tried using an older kernel 3.9 and 3.13 as well as compiling btrfs-progs from git.

I'm on my phone and I couldn't tee the core dump for some reason. Here's some pictures.

http://imgur.com/IEvUIDU
http://imgur.com/HHeeocU

DMESG of running btrfsck and then mount

[   68.532113] raid6: using algorithm avx2x4 (25437 MB/s)
[   68.532114] raid6: using avx2x2 recovery algorithm
[   68.571219] bio: create slab <bio-1> at 1
[   68.571876] Btrfs loaded
[   68.572789] btrfs: device fsid 20b35509-caee-4402-89fc-0e5d6e410a0f devid 1 transid 256183 /dev/dm-2
[   79.173260] btrfsck[567]: segfault at 1d3 ip 000000000041a7c4 sp 00007fff3fc76c40 error 4 in btrfsck[400000+61000]
[  293.004797] btrfs: device fsid 20b35509-caee-4402-89fc-0e5d6e410a0f devid 1 transid 256183 /dev/mapper/storageroot-rootvol
[  293.005394] btrfs: disk space caching is enabled
[  293.007408] btrfs bad tree block start 9871045958540255856 148835315712
[  293.040087] btrfs: open_ctree failed

Background:
My laptop started acting really weird and x crashed. Systemd started spamming messages about failing to write because the filesystem was read only. Nothing would respond. I force powered it off and btrfs says it has a bad block. Booted it up with a livecd and tried to fix it according to help online. Noticed segfault.

@d4l3k
Copy link
Author

d4l3k commented Mar 8, 2014

Also, S.M.A.R.T. checks passed, and the partition is encrypted with dm-crypt.

@d4l3k
Copy link
Author

d4l3k commented Mar 8, 2014

Full kernel log

http://cwillu.com:8080/67.183.142.225/1

@d4l3k
Copy link
Author

d4l3k commented Mar 9, 2014

3,635,3621748,-;sd 1:0:0:0: [sdb] No Caching mode page found
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
3,636,3621749,-;sd 1:0:0:0: [sdb] Assuming drive cache: write through
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
3,637,3623292,-;sd 1:0:0:0: [sdb] No Caching mode page found
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
3,638,3623293,-;sd 1:0:0:0: [sdb] Assuming drive cache: write through
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
6,639,3623946,-; sdb: sdb1 sdb2
3,640,3624977,-;sd 1:0:0:0: [sdb] No Caching mode page found
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
3,641,3624978,-;sd 1:0:0:0: [sdb] Assuming drive cache: write through
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
5,642,3624980,-;sd 1:0:0:0: [sdb] Attached SCSI removable disk
 SUBSYSTEM=scsi
 DEVICE=+scsi:1:0:0:0
6,643,3963388,-;ax88179_178a 3-2:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-2, ASIX AX88179 USB 3.0 Gigabit Ethernet, a0:ce:c8:00:21:fe
 SUBSYSTEM=usb
 DEVICE=+usb:3-2:1.0
6,644,3964106,-;usbcore: registered new interface driver ax88179_178a
6,645,4183698,-;Switched to clocksource tsc
6,646,4311770,-;Console: switching to colour frame buffer device 240x67
6,647,4315732,-;i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:02.0
6,648,4315733,-;i915 0000:00:02.0: registered panic notifier
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:02.0
6,649,4342208,-;ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
6,650,4346569,-;acpi device:29: registered as cooling_device0
 SUBSYSTEM=acpi
 DEVICE=+acpi:device:29
6,651,4346651,-;input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input6
6,652,4346674,-;[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
6,653,4360412,-;[drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
7,654,4515443,-;ISO 9660 Extensions: RRIP_1991A
6,655,4522282,-;loop: module loaded
6,656,4566778,-;squashfs: version 4.0 (2009/01/31) Phillip Lougher
6,657,4572865,-;device-mapper: uevent: version 1.0.3
6,658,4573016,-;device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: [email protected]
5,659,4573309,-;random: dmsetup urandom read with 61 bits of entropy available
6,660,4574736,-;bio: create slab <bio-1> at 1
6,661,4583289,-;EXT4-fs (dm-0): mounted filesystem without journal. Opts: (null)
30,662,4870049,-;systemd[1]: systemd 208 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
30,663,4875182,-;systemd[1]: Set hostname to <archiso>.
30,664,4935297,-;systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
30,665,4935333,-;systemd[1]: Started Forward Password Requests to Wall Directory Watch.
30,666,4935340,-;systemd[1]: Starting Remote File Systems.
30,667,4935403,-;systemd[1]: Reached target Remote File Systems.
30,668,4935409,-;systemd[1]: Starting Root Slice.
30,669,4935529,-;systemd[1]: Created slice Root Slice.
30,670,4935535,-;systemd[1]: Starting User and Session Slice.
30,671,4935613,-;systemd[1]: Created slice User and Session Slice.
30,672,4935618,-;systemd[1]: Starting System Slice.
30,673,4935682,-;systemd[1]: Created slice System Slice.
30,674,4935687,-;systemd[1]: Starting system-getty.slice.
30,675,4935764,-;systemd[1]: Created slice system-getty.slice.
30,676,4935769,-;systemd[1]: Starting Slices.
30,677,4935803,-;systemd[1]: Reached target Slices.
30,678,4935808,-;systemd[1]: Starting Delayed Shutdown Socket.
30,679,4935860,-;systemd[1]: Listening on Delayed Shutdown Socket.
30,680,4935865,-;systemd[1]: Starting Device-mapper event daemon FIFOs.
30,681,4935915,-;systemd[1]: Listening on Device-mapper event daemon FIFOs.
30,682,4935920,-;systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
30,683,4935967,-;systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
30,684,4935985,-;systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
30,685,4936084,-;systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
30,686,4936092,-;systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
30,687,4936109,-;systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
30,688,4936113,-;systemd[1]: Starting Paths.
30,689,4936149,-;systemd[1]: Reached target Paths.
30,690,4936153,-;systemd[1]: Starting LVM2 metadata daemon socket.
30,691,4936204,-;systemd[1]: Listening on LVM2 metadata daemon socket.
30,692,4936211,-;systemd[1]: Starting udev Kernel Socket.
30,693,4936254,-;systemd[1]: Listening on udev Kernel Socket.
30,694,4936260,-;systemd[1]: Starting udev Control Socket.
30,695,4936304,-;systemd[1]: Listening on udev Control Socket.
30,696,4936309,-;systemd[1]: Starting Encrypted Volumes.
30,697,4936346,-;systemd[1]: Reached target Encrypted Volumes.
30,698,4936351,-;systemd[1]: Starting Journal Socket.
30,699,4936406,-;systemd[1]: Listening on Journal Socket.
30,700,4936416,-;systemd[1]: Mounting POSIX Message Queue File System...
30,701,4946062,-;systemd[1]: Starting Create list of required static device nodes for the current kernel...
30,702,4961906,-;systemd[1]: Starting Apply Kernel Variables...
30,703,4962275,-;systemd[1]: Starting udev Coldplug all Devices...
30,704,4981881,-;systemd[1]: Starting Load Kernel Modules...
30,705,5002703,-;systemd[1]: Started Set Up Additional Binary Formats.
30,706,5002723,-;systemd[1]: Starting Setup Virtual Console...
30,707,5003042,-;systemd[1]: Mounting Huge Pages File System...
30,708,5003340,-;systemd[1]: Starting Journal Service...
30,709,5003752,-;systemd[1]: Started Journal Service.
46,710,5126413,-;systemd-journald[159]: Vacuuming done, freed 0 bytes
5,711,5152987,-;FS-Cache: Loaded
6,712,5190522,-;RPC: Registered named UNIX socket transport module.
6,713,5190524,-;RPC: Registered udp transport module.
6,714,5190525,-;RPC: Registered tcp transport module.
6,715,5190526,-;RPC: Registered tcp NFSv4.1 backchannel transport module.
5,716,5234012,-;FS-Cache: Netfs 'nfs' registered for caching
30,717,5257037,-;systemd-udevd[181]: starting version 208
46,718,5261855,-;systemd-journald[159]: Received request to flush runtime journal from PID 1
4,719,5674626,-;ACPI Warning: 0x0000000000001828-0x000000000000182f SystemIO conflicts with Region \x5cPMIO 1 (20131115/utaddress-251)
6,720,5674631,-;ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
4,721,5674634,-;ACPI Warning: 0x0000000000001c30-0x0000000000001c3f SystemIO conflicts with Region \x5cGPRL 1 (20131115/utaddress-251)
4,722,5674636,-;ACPI Warning: 0x0000000000001c30-0x0000000000001c3f SystemIO conflicts with Region \x5cGPR_ 2 (20131115/utaddress-251)
6,723,5674638,-;ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
4,724,5674639,-;ACPI Warning: 0x0000000000001c00-0x0000000000001c2f SystemIO conflicts with Region \x5cGPRL 1 (20131115/utaddress-251)
4,725,5674641,-;ACPI Warning: 0x0000000000001c00-0x0000000000001c2f SystemIO conflicts with Region \x5cGPR_ 2 (20131115/utaddress-251)
6,726,5674642,-;ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
4,727,5674643,-;lpc_ich: Resource conflict(s) found affecting gpio_ich
6,728,5689486,-;shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
4,729,5763002,-;ACPI Warning: 0x000000000000f040-0x000000000000f05f SystemIO conflicts with Region \x5c_SB_.PCI0.SBUS.SMBI 1 (20131115/utaddress-251)
6,730,5763009,-;ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
5,731,5779478,-;random: nonblocking pool is initialized
7,732,5798839,-;mei_me 0000:00:16.0: irq 59 for MSI/MSI-X
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:16.0
6,733,5821636,-;thermal LNXTHERM:00: registered as thermal_zone0
 SUBSYSTEM=acpi
 DEVICE=+acpi:LNXTHERM:00
6,734,5821639,-;ACPI: Thermal Zone [TZ00] (61 C)
6,735,5821786,-;ACPI: AC Adapter [ADP1] (on-line)
6,736,5834422,-;mei_me 0000:00:16.0: NFC MEI VERSION: IVN 0x1 Vendor ID 0x1 Type 0x1
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:16.0
6,737,5875060,-;ACPI: Battery Slot [BAT0] (battery present)
6,738,5885126,-;ACPI: Battery Slot [BAT1] (battery absent)
6,739,5916871,-;input: PC Speaker as /devices/platform/pcspkr/input/input7
6,740,5923624,-;mousedev: PS/2 mouse device common for all mice
6,741,5930512,-;sony_laptop: Sony Notebook Control Driver v0.6
6,742,5930608,-;input: Sony Vaio Keys as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/SNY5001:00/input/input8
6,743,5930734,-;input: Sony Vaio Jogdial as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/SNY5001:00/input/input9
6,744,5946032,-;sony_laptop: brightness ignored, must be controlled by ACPI video driver
30,745,5952040,-;systemd-udevd[215]: renamed network interface eth0 to enp0s20u2
6,746,5952072,-;cfg80211: Calling CRDA to update world regulatory domain
6,747,6051936,-;microcode: CPU0 sig=0x40651, pf=0x40, revision=0x10
6,748,6102560,-;media: Linux media interface: v0.10
6,749,6116835,-;iTCO_vendor_support: vendor-support=0
6,750,6144397,-;iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10
6,751,6144426,-;iTCO_wdt: Found a Lynx Point_LP TCO device (Version=2, TCOBASE=0x1860)
6,752,6144517,-;iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
7,753,6145293,-;snd_hda_intel 0000:00:1b.0: irq 60 for MSI/MSI-X
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:1b.0
7,754,6151776,-;snd_hda_intel 0000:00:03.0: irq 61 for MSI/MSI-X
 SUBSYSTEM=pci
 DEVICE=+pci:0000:00:03.0
4,755,6202844,-;platform microcode: Direct firmware load failed with error -2
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
4,756,6202848,-;platform microcode: Falling back to user helper
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
6,757,6203239,-;microcode: CPU1 sig=0x40651, pf=0x40, revision=0x10
4,758,6203252,-;platform microcode: Direct firmware load failed with error -2
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
4,759,6203255,-;platform microcode: Falling back to user helper
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
6,760,6204079,-;microcode: CPU2 sig=0x40651, pf=0x40, revision=0x10
4,761,6204092,-;platform microcode: Direct firmware load failed with error -2
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
4,762,6204095,-;platform microcode: Falling back to user helper
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
6,763,6204395,-;microcode: CPU3 sig=0x40651, pf=0x40, revision=0x10
4,764,6204414,-;platform microcode: Direct firmware load failed with error -2
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
4,765,6204416,-;platform microcode: Falling back to user helper
 SUBSYSTEM=platform
 DEVICE=+platform:microcode
6,766,6204830,-;microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
6,767,6205117,-;Linux video capture interface: v2.00
6,768,6225641,-;Intel(R) Wireless WiFi driver for Linux, in-tree:
6,769,6225644,-;Copyright(c) 2003-2013 Intel Corporation
7,770,6225774,-;iwlwifi 0000:01:00.0: irq 62 for MSI/MSI-X
 SUBSYSTEM=pci
 DEVICE=+pci:0000:01:00.0
6,771,6226930,-;Bluetooth: Core ver 2.17
6,772,6226942,-;NET: Registered protocol family 31
6,773,6226943,-;Bluetooth: HCI device and connection manager initialized
6,774,6226948,-;Bluetooth: HCI socket layer initialized
6,775,6226950,-;Bluetooth: L2CAP socket layer initialized
6,776,6226952,-;Bluetooth: SCO socket layer initialized
6,777,6250270,-;nfc: nfc_init: NFC Core ver 0.1
6,778,6250293,-;NET: Registered protocol family 39
6,779,6251899,-;input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input13
6,780,6251980,-;input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input12
6,781,6252032,-;input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input11
6,782,6254357,-;input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input14
6,783,6308803,-;usbcore: registered new interface driver btusb
6,784,6321764,-;Bluetooth: hci0: read Intel version: 370710018002030d00
6,785,6371522,-;psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x126800, board id: 2699, fw id: 1401224
 SUBSYSTEM=serio
 DEVICE=+serio:serio1
6,786,6408078,-;input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input10
6,787,6410376,-;Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
6,788,6416487,-;iwlwifi 0000:01:00.0: loaded firmware version 22.15.8.0 op_mode iwlmvm
 SUBSYSTEM=pci
 DEVICE=+pci:0000:01:00.0
6,789,6443698,-;Probing NFC pn544
6,790,6503907,-;Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
6,791,6504575,-;uvcvideo: Found UVC 1.00 device USB Webcam (0bda:5727)
6,792,6513716,-;input: USB Webcam as /devices/pci0000:00/0000:00:14.0/usb2/2-5/2-5:1.0/input/input15
6,793,6513776,-;usbcore: registered new interface driver uvcvideo
6,794,6513778,-;USB Video Class driver (1.1.1)
3,795,6552506,-;kvm: disabled by bios
3,796,6579399,-;kvm: disabled by bios
6,797,6593736,-;IPv6: ADDRCONF(NETDEV_UP): enp0s20u2: link is not ready
6,798,6594073,-;cfg80211: World regulatory domain updated:
6,799,6594076,-;cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
6,800,6594078,-;cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
6,801,6594079,-;cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
6,802,6594081,-;cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
6,803,6594083,-;cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
6,804,6594084,-;cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
6,805,6594086,-;cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
6,806,6622954,-;iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless N 7260, REV=0x144
 SUBSYSTEM=pci
 DEVICE=+pci:0000:01:00.0
6,807,6623004,-;iwlwifi 0000:01:00.0: L1 Disabled; Enabling L0S
 SUBSYSTEM=pci
 DEVICE=+pci:0000:01:00.0
6,808,6623236,-;iwlwifi 0000:01:00.0: L1 Disabled; Enabling L0S
 SUBSYSTEM=pci
 DEVICE=+pci:0000:01:00.0
6,809,6815672,-;intel_rapl: domain uncore energy ctr 83737:83737 not working, skip
7,810,6818154,-;ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
 SUBSYSTEM=ieee80211
 DEVICE=+ieee80211:phy0
30,811,6839091,-;systemd-udevd[203]: renamed network interface wlan0 to wlp1s0
6,812,9612476,-;ax88179_178a 3-2:1.0 enp0s20u2: ax88179 - Link status is: 1
 SUBSYSTEM=usb
 DEVICE=+usb:3-2:1.0
6,813,9614356,-;IPv6: ADDRCONF(NETDEV_CHANGE): enp0s20u2: link becomes ready
5,814,10404761,-;type=1006 audit(1394313638.696:2): pid=199 uid=0 old auid=4294967295 new auid=0 old ses=4294967295 new ses=1 res=1
5,815,10409376,-;type=1006 audit(1394313638.703:3): pid=437 uid=0 old auid=4294967295 new auid=0 old ses=4294967295 new ses=2 res=1
6,816,68006160,-;bio: create slab <bio-2> at 2
6,817,68134198,-;xor: automatically using best checksumming function:
6,818,68165150,-;   avx       : 29996.400 MB/sec
4,819,68248571,-;raid6: sse2x1    8670 MB/s
4,820,68305265,-;raid6: sse2x2   12312 MB/s
4,821,68361978,-;raid6: sse2x4   14251 MB/s
4,822,68418688,-;raid6: avx2x1   18585 MB/s
4,823,68475402,-;raid6: avx2x2   22344 MB/s
4,824,68532112,-;raid6: avx2x4   25437 MB/s
4,825,68532113,-;raid6: using algorithm avx2x4 (25437 MB/s)
4,826,68532114,-;raid6: using avx2x2 recovery algorithm
6,827,68571219,-;bio: create slab <bio-1> at 1
6,828,68571876,-;Btrfs loaded
6,829,68572789,-;btrfs: device fsid 20b35509-caee-4402-89fc-0e5d6e410a0f devid 1 transid 256183 /dev/dm-2
6,830,79173260,-;btrfsck[567]: segfault at 1d3 ip 000000000041a7c4 sp 00007fff3fc76c40 error 4 in btrfsck[400000+61000]
6,831,293004797,-;btrfs: device fsid 20b35509-caee-4402-89fc-0e5d6e410a0f devid 1 transid 256183 /dev/mapper/storageroot-rootvol
6,832,293005394,-;btrfs: disk space caching is enabled
6,833,293007408,-;btrfs bad tree block start 9871045958540255856 148835315712
4,834,293040087,-;btrfs: open_ctree failed

@rebroad
Copy link

rebroad commented May 11, 2018

I am also getting this with 4.15.0.15-generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants