Skip to contentSkip to conversation

2.6.0, BUG() in JFS

DISCUSSION Ian Soboroff 2 participants 3 messages Feb 13, 2004 – Feb 17, 2004

lore
Share & tools
lore
#0 lore raw

I got this oops this morning. This machine is running 2.6.0... is this something that's been fixed already?

...
ERROR: (device sdb1): stack overrun in dtSearch!
ERROR: (device sdb1): stack overrun in dtSearch!
BUG at fs/jfs/jfs_dtree.c:3326 assert((btstack)->top != &((btstack)->stack[MAXTREEHEIGHT]))

------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dtree.c:3326!
invalid operand: 0000 [#1]
CPU:    1
EIP:    0060:[<f8cbd29d>]    Not tainted
EFLAGS: 00010282

EIP is at dtReadFirst+0x183/0x20e [jfs]
eax: 0000005f ebx: ef4e7000 ecx: 00000097 edx: c03bbd1c
esi: f2dae19c edi: 0d0000bc ebp: 00000000 esp: d25d5e20
ds: 007b es: 007b ss: 0068
Process updatedb (pid: 1669, threadinfo=d25d4000 task=f2886080)

Stack: f8cc9980 f8cc999c 00000cfe f8cc90e0 00000000 db8149a4 f4774564 00000000
       f2dae084 00001000 f8cbcebe f2dae2a0 d25d5ed4 00000002 00000001 00000000
       0002707c 00000004 00100000 00100000 f2dae084 d25d5ea0 00000000 00000001
Call Trace:
 [<f8cbcebe>] jfs_readdir+0x934/0xb90 [jfs]
 [<c0247d47>] inode_has_perm+0x65/0x98
 [<c0170c02>] vfs_readdir+0xae/0xb0
 [<c0170f32>] filldir64+0x0/0x148
 [<c01710f5>] sys_getdents64+0x7b/0xc1
 [<c0170f32>] filldir64+0x0/0x148
 [<c010abeb>] syscall_call+0x7/0xb

Code: 0f 0b fe 0c 9c 99 cc f8 e9 58 ff ff ff 8b 54 24 30 8b 02 89
#1 lore raw
Quoted 2 lines · Ian Soboroff

I got this oops this morning. This machine is running 2.6.0... is this something that's been fixed already?

I've seen this reported before, but not with any regularity. Either a directory is somehow corrupted, or the directory grew beyond what JFS was designed to handle (which shouldn't really happen). Do you have any directories that would have tens of thousands of entries or more?

What is the result of running fsck?

Quoted 5 lines

...
ERROR: (device sdb1): stack overrun in dtSearch!
ERROR: (device sdb1): stack overrun in dtSearch!
BUG at fs/jfs/jfs_dtree.c:3326 assert((btstack)->top != &((btstack)->stack[MAXTREEHEIGHT]))

The first two errors used to result in a BUG(), but they have been fixed to fail more elegantly. I still need to fix the third.

Thanks,
Shaggy

Signature · 2 lines
David Kleikamp
IBM Linux Technology Center
#2 lore raw
Quoted 10 lines · Dave Kleikamp
Quoted 2 lines · Ian Soboroff

I got this oops this morning. This machine is running 2.6.0... is this something that's been fixed already?

I've seen this reported before, but not with any regularity. Either a directory is somehow corrupted, or the directory grew beyond what JFS was designed to handle (which shouldn't really happen). Do you have any directories that would have tens of thousands of entries or more?

What is the result of running fsck?

fsck reported some errors, but since there were outstanding processes stuck in the 'D' state, I wanted to wait for the chance to reboot before letting it repair them.

Ian