ffs_clusteralloc: allocated out of group on 5TB fs (5.3-Stable)
Henry Whincup
henry at jot.to
Tue Dec 7 11:46:43 PST 2004
> Very large FFS filesystems have not been extensively tested. Maybe you can
> help :)
>
> You should be able to compile GENERIC with
>
> makeoptions "DEBUG=-g"
>
> in the config file and that will leave a kernel.debug in the compile
> directory that you can use.
>
> Once you get that loaded up the output of 'bt full' would be nice to have.
Let me know if you want anything else...
(kgdb) bt full
#0 doadump () at pcpu.h:159
No locals.
#1 0xc060d47b in boot (howto=0x104) at
/usr/src/sys/kern/kern_shutdown.c:397
first_buf_printf = 0x1
#2 0xc060d7a1 in panic (fmt=0xc082c448 "ffs_clusteralloc: allocated out of
group")
at /usr/src/sys/kern/kern_shutdown.c:553
td = (struct thread *) 0xc39b7320
bootopt = 0x104
newpanic = 0x0
ap = 0xc39b7320 "Ôh\233ÃÀ\201\233Ã"
buf = "ffs_clusteralloc: allocated out of group", '\0' <repeats 215
times>
#3 0xc0734456 in ffs_clusteralloc (ip=0xc3b5808c, cg=0x5928, bpref=0x1,
len=0x5)
at /usr/src/sys/ufs/ffs/ffs_alloc.c:1526
fs = (struct fs *) 0xc372f000
cgp = (struct cg *) 0xdae55000
bp = (struct buf *) 0xd76807c8
i = 0x0
run = 0x5
bit = 0x0
map = 0x0
got = 0xc372f000
bno = 0xffffffff80000020
mapp = (u_char *) 0xffffffff ""
lp = (int32_t *) 0x0
blksfree = (u_int8_t *) 0xdae55c28 "ÿ"
#4 0xc0733678 in ffs_hashalloc (ip=0xc3b5808c, cg=0x5928, pref=0x7fffb548,
size=0x5,
allocator=0xc07340f0 <ffs_clusteralloc+4>) at
/usr/src/sys/ufs/ffs/ffs_alloc.c:1159
fs = (struct fs *) 0xc372f000
result = Unhandled dwarf expression opcode 0x93
(kgdb) print *cgp
$4 = {
cg_firstfield = 0x0,
cg_magic = 0x90255,
cg_old_time = 0x41b59fe4,
cg_cgx = 0x5928,
cg_old_ncyl = 0x0,
cg_old_niblk = 0x0,
cg_ndblk = 0x16f88,
cg_cs = {
cs_ndir = 0x0,
cs_nbfree = 0x2496,
cs_nifree = 0x5c00,
cs_nffree = 0x0
},
cg_rotor = 0x4ad8,
cg_frotor = 0x4ad8,
cg_irotor = 0x0,
cg_frsum = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
cg_old_btotoff = 0x0,
cg_old_boff = 0x0,
cg_iusedoff = 0xa8,
cg_freeoff = 0xc28,
cg_nextfreeoff = 0x3ffb,
cg_clustersumoff = 0x3a18,
cg_clusteroff = 0x3a3c,
cg_nclusterblks = 0x2df1,
cg_niblk = 0x5c00,
cg_initediblk = 0x80,
cg_sparecon32 = {0x0, 0x0, 0x0},
cg_time = 0x41b59fe4,
cg_sparecon64 = {0x0, 0x0, 0x0},
cg_space = ""
}
(kgdb) print *bp
$5 = {
b_io = {
bio_cmd = 0x1,
bio_flags = 0x2,
bio_cflags = 0x0,
bio_pflags = 0x0,
bio_dev = 0xc3977900,
bio_disk = 0x0,
bio_offset = 0x3fffdab8000,
bio_bcount = 0x4000,
bio_data = 0xdae55000 "",
bio_error = 0x0,
bio_resid = 0x0,
bio_done = 0xc0653cdc <bufdonebio>,
bio_driver1 = 0x0,
bio_driver2 = 0x0,
bio_caller1 = 0x0,
bio_caller2 = 0xd76807c8,
bio_queue = {
tqe_next = 0x0,
tqe_prev = 0x0
},
bio_attribute = 0x0,
bio_from = 0x0,
bio_to = 0x0,
bio_length = 0x0,
bio_completed = 0x0,
bio_children = 0x7d,
bio_inbed = 0x0,
bio_parent = 0x0,
bio_t0 = {
sec = 0x0,
frac = 0x0
},
bio_task = 0,
bio_task_arg = 0x0,
bio_pblkno = 0x0
},
b_op = 0xc0878bc8,
b_magic = 0x10b10b10,
b_iodone = 0,
b_blkno = 0x1fffed5c0,
b_offset = 0x3fffdab8000,
b_vnbufs = {
tqe_next = 0x0,
tqe_prev = 0xd752f4e8
},
b_left = 0xd752f448,
b_right = 0x0,
b_vflags = 0x0,
b_freelist = {
tqe_next = 0xd768097c,
tqe_prev = 0xc08dd048
},
b_qindex = 0x0,
b_flags = 0x20000220,
b_xflags = 0x12,
b_lock = {
lk_interlock = 0xc08d5bf8,
lk_flags = 0x400,
lk_sharecount = 0x0,
lk_waitcount = 0x0,
lk_exclusivecount = 0x1,
lk_prio = 0x50,
lk_wmesg = 0xc0820fb6 "bufwait",
lk_timo = 0x0,
lk_lockholder = 0xc39b7320,
lk_newlock = 0x0
},
b_bufsize = 0x4000,
b_runningbufspace = 0x0,
b_kvabase = 0xdae55000 "",
b_kvasize = 0x4000,
b_lblkno = 0x1fffed5c0,
b_vp = 0xc39e5738,
b_object = 0xc39eb948,
b_dirtyoff = 0x0,
b_dirtyend = 0x0,
b_rcred = 0x0,
b_wcred = 0x0,
b_saveaddr = 0xdae55000,
b_pager = {
pg_reqpage = 0x0
},
b_cluster = {
cluster_head = {
tqh_first = 0x0,
tqh_last = 0x0
},
cluster_entry = {
tqe_next = 0x0,
tqe_prev = 0x0
}
},
b_pages = {0xc2f21a90, 0xc2f0fad8, 0xc2f7a020, 0xc2f62668, 0x0 <repeats 28
times>},
b_npages = 0x4,
b_dep = {
lh_first = 0x0
}
}
(kgdb)
More information about the freebsd-current
mailing list