[Btrfs-users] btrfs v0.14: kernel BUG at /home/trey/btrfs-0.14/volumes.c:1453

Gabor MICSKO gmicsko at gmail.com
Wed Apr 30 13:43:43 PDT 2008


On Wed, 2008-04-30 at 16:12 -0400, Chris Mason wrote:
> On Wednesday 30 April 2008, Chris Mason wrote:
> > On Wednesday 30 April 2008, Gabor MICSKO wrote:
> > > Hi,
> > >
> > > Kernel crash when i tried to mount btrfs:
> >
> > I'm trying to reproduce this now, but are you sure you've updated to the
> > latest btrfs-0.14 userland utilities as well?

Yes, I double checked. 

> > Please make sure you've done make install for the utilities.
> 
> Just FYI, I can't reproduce this here.  So if it isn't an old rev of the 
> utilities, 

root at btrfs:~/btrfs-progs-0.14# ls -la /usr/local/bin/
total 8
drwxr-xr-x  2 root root 4096 2008-04-30 22:30 .
drwxr-xr-x 10 root root 4096 2008-04-30 10:59 ..
root at btrfs:~/btrfs-progs-0.14# make clean
rm -f btrfsctl btrfsck mkfs.btrfs debug-tree btrfs-show btrfs-vol
cscope.out *.o .*.d btrfs-convert
root at btrfs:~/btrfs-progs-0.14# make
ls ctree.c
ctree.c
gcc -Wp,-MMD,./.ctree.o.d,-MT,ctree.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c ctree.c
ls disk-io.c
disk-io.c
gcc -Wp,-MMD,./.disk-io.o.d,-MT,disk-io.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c disk-io.c
ls radix-tree.c
radix-tree.c
gcc -Wp,-MMD,./.radix-tree.o.d,-MT,radix-tree.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c radix-tree.c
ls extent-tree.c
extent-tree.c
gcc -Wp,-MMD,./.extent-tree.o.d,-MT,extent-tree.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c extent-tree.c
ls print-tree.c
print-tree.c
gcc -Wp,-MMD,./.print-tree.o.d,-MT,print-tree.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c print-tree.c
ls root-tree.c
root-tree.c
gcc -Wp,-MMD,./.root-tree.o.d,-MT,root-tree.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c root-tree.c
ls dir-item.c
dir-item.c
gcc -Wp,-MMD,./.dir-item.o.d,-MT,dir-item.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c dir-item.c
ls hash.c
hash.c
gcc -Wp,-MMD,./.hash.o.d,-MT,hash.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c hash.c
ls file-item.c
file-item.c
gcc -Wp,-MMD,./.file-item.o.d,-MT,file-item.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c file-item.c
ls inode-item.c
inode-item.c
gcc -Wp,-MMD,./.inode-item.o.d,-MT,inode-item.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c inode-item.c
ls inode-map.c
inode-map.c
gcc -Wp,-MMD,./.inode-map.o.d,-MT,inode-map.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c inode-map.c
ls crc32c.c
crc32c.c
gcc -Wp,-MMD,./.crc32c.o.d,-MT,crc32c.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c crc32c.c
ls rbtree.c
rbtree.c
gcc -Wp,-MMD,./.rbtree.o.d,-MT,rbtree.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c rbtree.c
ls extent-cache.c
extent-cache.c
gcc -Wp,-MMD,./.extent-cache.o.d,-MT,extent-cache.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c extent-cache.c
ls extent_io.c
extent_io.c
gcc -Wp,-MMD,./.extent_io.o.d,-MT,extent_io.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c extent_io.c
ls volumes.c
volumes.c
gcc -Wp,-MMD,./.volumes.o.d,-MT,volumes.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c volumes.c
ls utils.c
utils.c
gcc -Wp,-MMD,./.utils.o.d,-MT,utils.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c utils.c
ls btrfsctl.c
btrfsctl.c
gcc -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c btrfsctl.c
gcc -g -Werror -o btrfsctl btrfsctl.o ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o  -luuid
ls btrfsck.c
btrfsck.c
gcc -Wp,-MMD,./.btrfsck.o.d,-MT,btrfsck.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c btrfsck.c
ls bit-radix.c
bit-radix.c
gcc -Wp,-MMD,./.bit-radix.o.d,-MT,bit-radix.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c bit-radix.c
gcc -g -Werror -o btrfsck btrfsck.o ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o bit-radix.o  -luuid
ls mkfs.c
mkfs.c
gcc -Wp,-MMD,./.mkfs.o.d,-MT,mkfs.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c mkfs.c
gcc -g -Werror -o mkfs.btrfs ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o mkfs.o  -luuid
ls debug-tree.c
debug-tree.c
gcc -Wp,-MMD,./.debug-tree.o.d,-MT,debug-tree.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c debug-tree.c
gcc -g -Werror -o debug-tree ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o debug-tree.o  -luuid
ls btrfs-show.c
btrfs-show.c
gcc -Wp,-MMD,./.btrfs-show.o.d,-MT,btrfs-show.o -Wall
-fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g
-Werror -c btrfs-show.c
gcc -g -Werror -o btrfs-show btrfs-show.o ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o  -luuid
ls btrfs-vol.c
btrfs-vol.c
gcc -Wp,-MMD,./.btrfs-vol.o.d,-MT,btrfs-vol.o -Wall -fno-strict-aliasing
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -c btrfs-vol.c
gcc -g -Werror -o btrfs-vol btrfs-vol.o ctree.o disk-io.o radix-tree.o
extent-tree.o print-tree.o root-tree.o dir-item.o hash.o file-item.o
inode-item.o inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o
volumes.o utils.o  -luuid
root at btrfs:~/btrfs-progs-0.14# make install
install -m755 -d /usr/local/bin
install btrfsctl btrfsck mkfs.btrfs debug-tree btrfs-show
btrfs-vol /usr/local/bin
if [ -e btrfs-convert ]; then install btrfs-convert /usr/local/bin; fi
root at btrfs:~/btrfs-progs-0.14# ls -la /usr/local/bin/
total 3116
drwxr-xr-x  2 root root   4096 2008-04-30 22:31 .
drwxr-xr-x 10 root root   4096 2008-04-30 10:59 ..
-rwxr-xr-x  1 root root 551832 2008-04-30 22:31 btrfsck
-rwxr-xr-x  1 root root 512178 2008-04-30 22:31 btrfsctl
-rwxr-xr-x  1 root root 516635 2008-04-30 22:31 btrfs-show
-rwxr-xr-x  1 root root 511801 2008-04-30 22:31 btrfs-vol
-rwxr-xr-x  1 root root 526041 2008-04-30 22:31 debug-tree
-rwxr-xr-x  1 root root 525799 2008-04-30 22:31 mkfs.btrfs
root at btrfs:~/btrfs-progs-0.14# /usr/local/bin/mkfs.btrfs /dev/cciss/c0d0p3
fs created label (null) on /dev/cciss/c0d0p3
	nodesize 4096 leafsize 4096 sectorsize 4096 size 93.14GB
root at btrfs:~/btrfs-progs-0.14# mount -t btrfs /dev/cciss/c0d0p3 /mnt
Segmentation fault

--

Apr 30 22:32:04 btrfs kernel: [  446.650874] device fsid
89453ca7929e8b33-5d52106cb05e1f8c devid 1 transid 12 /dev/cciss/c0d0p3
Apr 30 22:32:04 btrfs kernel: [  446.652157] unable to find logical
29380608
Apr 30 22:32:04 btrfs kernel: [  446.652192] ------------[ cut
here ]------------
Apr 30 22:32:04 btrfs kernel: [  446.652255] kernel BUG
at /home/trey/btrfs-0.14/volumes.c:1453!
Apr 30 22:32:04 btrfs kernel: [  446.652310] invalid opcode: 0000 [1]
SMP 
Apr 30 22:32:04 btrfs kernel: [  446.652434] CPU 1 
Apr 30 22:32:04 btrfs kernel: [  446.652516] Modules linked in: btrfs
libcrc32c iptable_filter ip_tables x_tables parport_pc lp parport loop
ipv6 evdev psmouse container sg serio_raw iTCO_wdt iTCO_vendor_support
sr_mod cdrom button pcspkr shpchp e752x_edac edac_core pci_hotplug ext3
jbd mbcache ata_piix ata_generic pata_acpi cciss libata uhci_hcd
scsi_mod floppy ehci_hcd tg3 usbcore thermal processor fan fbcon
tileblit font bitblit softcursor fuse
Apr 30 22:32:04 btrfs kernel: [  446.654431] Pid: 4749, comm: mount Not
tainted 2.6.24-16-server #1
Apr 30 22:32:04 btrfs kernel: [  446.654483] RIP:
0010:[<ffffffff882e80f1>]  [<ffffffff882e80f1>] :btrfs:__btrfs_map_block
+0x251/0x460
Apr 30 22:32:04 btrfs kernel: [  446.654599] RSP: 0018:ffff81007c8058c8
EFLAGS: 00010296
Apr 30 22:32:04 btrfs kernel: [  446.654650] RAX: 0000000000000032 RBX:
ffff81007c805978 RCX: 0000000000000001
Apr 30 22:32:04 btrfs kernel: [  446.654702] RDX: ffffffff8058ee68 RSI:
0000000000000086 RDI: ffffffff8058ee60
Apr 30 22:32:04 btrfs kernel: [  446.654754] RBP: 0000000001c05000 R08:
00000001d706a732 R09: 0000000000000000
Apr 30 22:32:04 btrfs kernel: [  446.654807] R10: ffff810001036c60 R11:
0000000000000001 R12: 0000000001c05000
Apr 30 22:32:04 btrfs kernel: [  446.654859] R13: 0000000000000000 R14:
0000000000000001 R15: 0000000000000000
Apr 30 22:32:04 btrfs kernel: [  446.654913] FS:  00007f73c42ff780(0000)
GS:ffff81007dc01700(0000) knlGS:0000000000000000
Apr 30 22:32:04 btrfs kernel: [  446.654989] CS:  0010 DS: 0000 ES: 0000
CR0: 000000008005003b
Apr 30 22:32:04 btrfs kernel: [  446.655049] CR2: 00000000006bd5b0 CR3:
000000007a910000 CR4: 00000000000006e0
Apr 30 22:32:04 btrfs kernel: [  446.655113] DR0: 0000000000000000 DR1:
0000000000000000 DR2: 0000000000000000
Apr 30 22:32:04 btrfs kernel: [  446.655177] DR3: 0000000000000000 DR6:
00000000ffff0ff0 DR7: 0000000000000400
Apr 30 22:32:04 btrfs kernel: [  446.655238] Process mount (pid: 4749,
threadinfo ffff81007c804000, task ffff81007ab58fc0)
Apr 30 22:32:04 btrfs kernel: [  446.655314] Stack:  0000000079c61900
ffff81007a9dc1f0 ffff81007c805970 ffff81007c805978
Apr 30 22:32:04 btrfs kernel: [  446.655584]  0000000000000000
ffff81007a9dc1e0 0000000001c05000 0000000000000000
Apr 30 22:32:04 btrfs kernel: [  446.655827]  0000000000000001
ffff81007a56bfc0 ffff81007ff25440 0000000000001000
Apr 30 22:32:04 btrfs kernel: [  446.656017] Call Trace:
Apr 30 22:32:04 btrfs kernel: [  446.656144]
[<ffffffff882e8341>] :btrfs:btrfs_map_block+0x11/0x20
Apr 30 22:32:04 btrfs kernel: [  446.656220]
[<ffffffff882e83a2>] :btrfs:btrfs_map_bio+0x52/0x180
Apr 30 22:32:04 btrfs kernel: [  446.656299]
[<ffffffff882e268f>] :btrfs:submit_one_bio+0xcf/0x120
Apr 30 22:32:04 btrfs kernel: [  446.656376]
[<ffffffff882e5d31>] :btrfs:read_extent_buffer_pages+0x2c1/0x3c0
Apr 30 22:32:04 btrfs kernel: [  446.656455]
[<ffffffff882cc900>] :btrfs:btree_get_extent+0x0/0x1d0
Apr 30 22:32:04 btrfs kernel: [  446.656537]
[<ffffffff882cb06d>] :btrfs:btree_read_extent_buffer_pages+0x4d/0x90
Apr 30 22:32:04 btrfs kernel: [  446.656627]
[<ffffffff882cb7ab>] :btrfs:read_tree_block+0x2b/0x50
Apr 30 22:32:04 btrfs kernel: [  446.656705]
[<ffffffff882cddad>] :btrfs:open_ctree+0x78d/0x890
Apr 30 22:32:04 btrfs kernel: [  446.656782]
[<ffffffff882bb641>] :btrfs:btrfs_get_sb_bdev+0x201/0x380
Apr 30 22:32:04 btrfs kernel: [  446.656853]  [link_path_walk
+0x81/0x100] link_path_walk+0x81/0x100
Apr 30 22:32:04 btrfs kernel: [  446.656931]
[<ffffffff882bb82b>] :btrfs:btrfs_get_sb+0x6b/0xa0
Apr 30 22:32:04 btrfs kernel: [  446.656998]  [vfs_kern_mount
+0xcc/0x160] vfs_kern_mount+0xcc/0x160
Apr 30 22:32:04 btrfs kernel: [  446.657064]  [do_kern_mount+0x53/0x110]
do_kern_mount+0x53/0x110
Apr 30 22:32:04 btrfs kernel: [  446.657129]  [do_mount+0x546/0x810]
do_mount+0x546/0x810
Apr 30 22:32:04 btrfs kernel: [  446.657195]  [handle_mm_fault
+0x3db/0x800] handle_mm_fault+0x3db/0x800
Apr 30 22:32:04 btrfs kernel: [  446.657257]  [filemap_fault
+0x188/0x390] filemap_fault+0x188/0x390
Apr 30 22:32:04 btrfs kernel: [  446.657326]  [__up_read+0x21/0xb0]
__up_read+0x21/0xb0
Apr 30 22:32:04 btrfs kernel: [  446.657391]  [do_page_fault
+0x1d0/0x840] do_page_fault+0x1d0/0x840
Apr 30 22:32:04 btrfs kernel: [  446.657457]  [zone_statistics
+0x7d/0x80] zone_statistics+0x7d/0x80
Apr 30 22:32:04 btrfs kernel: [  446.657530]  [ext3:__get_free_pages
+0x1b/0x1320] __get_free_pages+0x1b/0x40
Apr 30 22:32:04 btrfs kernel: [  446.657594]  [sys_mount+0x9b/0x100]
sys_mount+0x9b/0x100
Apr 30 22:32:04 btrfs kernel: [  446.657658]  [system_call+0x7e/0x83]
system_call+0x7e/0x83
Apr 30 22:32:04 btrfs kernel: [  446.657722] 
Apr 30 22:32:04 btrfs kernel: [  446.657776] 
Apr 30 22:32:04 btrfs kernel: [  446.657777] Code: 0f 0b eb fe a8 40 0f
84 f6 fe ff ff 8b 45 1c c7 44 24 44 01 
Apr 30 22:32:04 btrfs kernel: [  446.658783] RIP
[<ffffffff882e80f1>] :btrfs:__btrfs_map_block+0x251/0x460
Apr 30 22:32:04 btrfs kernel: [  446.658898]  RSP <ffff81007c8058c8>
Apr 30 22:32:04 btrfs kernel: [  446.658970] ---[ end trace
bba76e01b4564ace ]---

> I might have to ask you to make a disk image for me.

Can you please tell me how to make?

-- 
Gabor MICSKO - http://hup.hu




More information about the Btrfs-users mailing list