Opened 10 years ago

Closed 10 years ago

#5497 closed bug (fixed)

PANIC: hash object cache: unknown object

Reported by: andreasf Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

PANIC: hash object cache 0x810a1dc0: unknown object 0xf5be1000
Welcome to Kernel Debugging Land...
Thread 12 "block notifier/writer" running on CPU 0
kdebug> 

At hrev35654.

Change History (6)

comment:1 by bonefish, 10 years ago

Component: - GeneralSystem/Kernel
Owner: changed from nobody to axeld

A stack trace is generally very helpful. In this case also the output of:

slab_cache 0x810a1dc0
slab_area 0xf5be1000
slab_meta_chunk 0xf5be1000

in reply to:  1 comment:2 by andreasf, 10 years ago

Sorry, USB keyboard didn't work in KDL. I've attached a PS/2 one now for future occurrences.

Feel free to close it if it is meaningless as-is.

in reply to:  1 comment:3 by andreasf, 10 years ago

Here we go, during svn up, with full debug gear:

PANIC: hash object cache 0x810aa640: unknown object 0x81352800
kdebug> bt
stack trace for thread 7833 "svn"
    kernel stack: 0xdebc7000 to 0xdebcb000
      user stack: 0x7efef000 to 0x7ffef000
frame               caller     <image>:function + offset
 0 debca608 (+  32) 8006eb69   <kernel_x86> invoke_command_trampoline(void*: 0xdebca688) + 0x0015
 1 debca628 (+  12) 800e1ea8   <kernel_x86>:arch_debug_call_with_fault_handler + 0x001b
 2 debca634 (+  48) 8006ca16   <kernel_x86>:debug_call_with_fault_handler + 0x0051
 3 debca664 (+  64) 8006eee6   <kernel_x86>:invoke_debugger_command + 0x00bb
 4 debca6a4 (+  48) 8006f003   <kernel_x86> invoke_pipe_segment(debugger_command_pipe*: 0x80136222, int32: 0, char*: NULL) + 0x0083
 5 debca6d4 (+  32) 8006f0cb   <kernel_x86>:invoke_debugger_command_pipe + 0x008b
 6 debca6f4 (+ 128) 80072e56   <kernel_x86> ExpressionParser<0xdebca7c4>::_ParseCommandPipe(int&: 0xdebca7c0) + 0x0aae
 7 debca774 (+  48) 8007561f   <kernel_x86> ExpressionParser<0xdebca7c4>::EvaluateCommand(char const*: 0x80136220 "bt", int&: 0xdebca7c0) + 0x06df
 8 debca7a4 (+ 192) 80075798   <kernel_x86>:evaluate_debug_command + 0x0084
 9 debca864 (+  64) 8006d6e2   <kernel_x86> kernel_debugger_loop(char const*: 0x1 "<???>", char const*: 0x8012a743 "PANIC: ", char*: 0xdebca8d4, int32: -2147035000c
10 debca8a4 (+  48) 8006d8a6   <kernel_x86> kernel_debugger_internal(char const*: 0x1 "<???>", char const*: 0x0 "<NULL>", char*: 0xdebca8f4, int32: -2147034506) + c
11 debca8d4 (+  32) 8006da89   <kernel_x86>:panic + 0x0023
12 debca8f4 (+  48) 800baa29   <kernel_x86> HashedObjectCache<0x810aa640>::ObjectSlab const(void*: 0x81352800) + 0x006d
13 debca924 (+  48) 800be51e   <kernel_x86> object_cache_return_object_wrapper(object_depot*: 0x810aa6e8, void*: 0x810aa640, void*: 0x81352800, uint32: 0x0 (0)) + e
14 debca954 (+  48) 800be742   <kernel_x86> empty_magazine(object_depot*: 0x9, DepotMagazine*: 0x1, uint32: 0x810aa704) + 0x0031
15 debca984 (+  64) 800bed01   <kernel_x86>:object_depot_store + 0x01c8
16 debca9c4 (+  48) 800bfa3f   <kernel_x86>:object_cache_free + 0x002c
17 debca9f4 (+  32) 8003c078   <kernel_x86> block_cache<0xccd6f660>::Free(void*: 0xd5ef5000) + 0x001e
18 debcaa14 (+  32) 8003c0cb   <kernel_x86> block_cache<0xccd6f660>::FreeBlock(cached_block*: 0xf1812280) + 0x004d
19 debcaa34 (+  32) 8003c107   <kernel_x86> block_cache<0xccd6f660>::RemoveBlock(cached_block*: 0xf1812280) + 0x0021
20 debcaa54 (+  48) 8003d8a8   <kernel_x86> block_cache<0xccd6f660>::RemoveUnusedBlocks(int32: 2147483647, int32: 1) + 0x00d2
21 debcaa84 (+  32) 8003e453   <kernel_x86> put_cached_block(block_cache*: 0x4c2a80, cached_block*: NULL) + 0x01cd
22 debcaaa4 (+  32) 8003e4c3   <kernel_x86> put_cached_block(block_cache*: 0x4c2a80, int64: 0) + 0x0066
23 debcaac4 (+  32) 8003e500   <kernel_x86>:block_cache_put + 0x0035
24 debcaae4 (+  32) 805f667d   <bfs> CachedNode<0xdebcab78>::Unset() + 0x0063
25 debcab04 (+  64) 805f6f93   <bfs> CachedNode<0xdebcab78>::SetTo(int64: 1024, true) + 0x006b
26 debcab44 (+  96) 805f78ac   <bfs> BPlusTree<0xda9832d0>::SetTo(Inode*: 0xf69d5000) + 0x028e
27 debcaba4 (+  32) 805f79af   <bfs> BPlusTree::BPlusTree(Inode*: 0xda9832d0) + 0x0059
28 debcabc4 (+  64) 805ffe5a   <bfs> Inode::Inode(Volume*: 0xf69d5000, int64: 20625510139786944) + 0x00f0
29 debcac04 (+  64) 8060e555   <bfs> bfs_get_vnode(fs_volume*: 0xccde9780, int64: 4802250, fs_vnode*: 0x81c5b110, int*: 0xdebcac98, unsigned long*: 0xdebcac94, tru9
30 debcac44 (+ 112) 800a8ca9   <kernel_x86> get_vnode(int32: -558060316, int64: 4294967297, vnode**: NULL, true, int32: 0) + 0x0273
31 debcacb4 (+  64) 800aa761   <kernel_x86>:get_vnode + 0x002d
32 debcacf4 (+  96) 80611104   <bfs> bfs_lookup(fs_volume*: 0xccde9780, fs_vnode*: 0xf69d1264, char const*: 0xce973da6 "text-base", long long*: 0xdebcad7c) + 0x0197
33 debcad54 (+  64) 800a8f18   <kernel_x86> lookup_dir_entry(vnode*: 0xce800478, char const*: 0x1 "<???>", vnode**: 0x1) + 0x0062
34 debcad94 (+  64) 800aba77   <kernel_x86> vnode_path_to_vnode(vnode*: NULL, char*: 0x81979bb0, true, int32: 0, io_context*: 0xce973d60, vnode**: 0x81979bb8, long0
35 debcadd4 (+  48) 800ac4b2   <kernel_x86> vnode_path_to_vnode(vnode*: NULL, char*: NULL, true, int32: 0, true, vnode**: NULL, long long*: 0xdebcae44) + 0x004b
36 debcae04 (+  64) 800ac594   <kernel_x86> path_to_vnode(char*: NULL, false, vnode**: NULL, long long*: NULL, true) + 0x00da
37 debcae44 (+  48) 800adaa7   <kernel_x86> fd_and_path_to_vnode(int32: -558059880, char*: NULL, false, vnode**: 0xcedcfafc, long long*: NULL, true) + 0x006e
38 debcae74 (+  48) 800ae8a0   <kernel_x86> common_path_read_stat(int32: -558059824, char*: NULL, false, stat*: 0x801420d0, true) + 0x0025
39 debcaea4 (+ 160) 800ae9c1   <kernel_x86>:_user_read_stat + 0x00a8
40 debcaf44 (+ 100) 800e2482   <kernel_x86>:handle_syscall + 0x00af
user iframe at 0xdebcafa8 (end = 0xdebcb000)
 eax 0x8a           ebx 0x92ebc8        ecx 0x7ffee6d0   edx 0xffff0114
 esi 0x7ffee734     edi 0x8171          ebp 0x7ffee6fc   esp 0xdebcafdc
 eip 0xffff0114  eflags 0x200216   user esp 0x7ffee6d0
 vector: 0x63, error code: 0x0
41 debcafa8 (+   0) ffff0114   <commpage>:commpage_syscall + 0x0004
42 7ffee6fc (+ 144) 0045a10c   </boot/common/lib/libapr-1.so.0.3.9@0x0044b000>:unknown + 0xf10c
43 7ffee78c (+ 160) 0036bf9b   </boot/common/lib/libsvn_subr-1.so.0.0.0@0x00355000>:unknown + 0x16f9b
44 7ffee82c (+  64) 0036c0c9   </boot/common/lib/libsvn_subr-1.so.0.0.0@0x00355000>:unknown + 0x170c9
45 7ffee86c (+  96) 0027abe6   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x13be6
46 7ffee8cc (+  96) 0027b172   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x14172
47 7ffee92c (+  96) 0027b1b5   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x141b5
48 7ffee98c (+  96) 0027b1b5   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x141b5
49 7ffee9ec (+  96) 0027b1b5   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x141b5
50 7ffeea4c (+  96) 0027b1b5   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x141b5
51 7ffeeaac (+  64) 0027c450   </boot/common/lib/libsvn_wc-1.so.0.0.0@0x00267000>:unknown + 0x15450
52 7ffeeaec (+  80) 002435be   </boot/common/lib/libsvn_client-1.so.0.0.0@0x0022b000>:unknown + 0x185be
53 7ffeeb3c (+  96) 00243b4e   </boot/common/lib/libsvn_client-1.so.0.0.0@0x0022b000>:unknown + 0x18b4e
54 7ffeeb9c (+ 208) 00243f2a   </boot/common/lib/libsvn_client-1.so.0.0.0@0x0022b000>:unknown + 0x18f2a
55 7ffeec6c (+ 208) 00208d9e   </boot/common/bin/svn@0x00200000>:unknown + 0x8d9e
56 7ffeed3c (+ 560) 0020de52   </boot/common/bin/svn@0x00200000>:unknown + 0xde52
57 7ffeef6c (+  48) 00205c1f   </boot/common/bin/svn@0x00200000>:unknown + 0x5c1f
58 7ffeef9c (+  64) 00105367   </boot/system/runtime_loader@0x00100000>:unknown + 0x5367
59 7ffeefdc (+   0) 7ffeefec   211862:svn_main_stack@0x7efef000 + 0xffffec
kdebug> slab_cache 0x810aa640
name:              block cache buffers
lock:              0x810aa66c
object_size:       2048
cache_color_cycle: 0
used_count:        4294507126
empty_count:       8
pressure:          620
slab_size:         524288
usage:             325058560
maximum:           0
flags:             0x20000000
cookie:            0x00000000
resize entry don't wait: 0x00000000
resize entry can wait:   0x00000000
depot:
  full:     0x00000000, count 4
  empty:    0x00000000, count 4
  max full: 4
  capacity: 8
  stores:
  [0] loaded:   0x810a2ba0
      previous: 0x810a2ba0
  [1] loaded:   0x810a2ba0
      previous: 0x810a2ba0
kdebug> slab_area 0x81352800
chunk        base
    0  0x81003000  ---  small meta chunk:  125/ 125 used, 125 - 124 free ------------
    1  0x81080000  ---  small meta chunk:   96/ 128 used, 96  - 127 free ------------
    2  0x81100000  --- medium meta chunk:    8/   8 used, 8   -   7 free ------------
    3  0x81180000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    4  0x81200000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    5  0x81280000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    6  0x81300000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    7  0x81380000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    8  0x81400000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    9  0x81480000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
   10  0x81500000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
   11  0x81580000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
   12  0x81600000  --- medium meta chunk:    8/   8 used, 8   -   7 free ------------
   13  0x81680000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
   14  0x81700000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
   15  0x81780000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
kdebug> slab_meta_chunk 0x81352800
chunk        base       cache  object size  cache name
    6  0x81300000  ---  large meta chunk:    1/   1 used, 1   -   0 free ------------
    0  0x81300000  0x810a1dc0         2048  block cache buffers
kdebug> 

comment:4 by andreasf, 10 years ago

And another one after reboot, running mcs:

kdebug> bt
stack trace for thread 11 "low resource manager"
    kernel stack: 0x807b4000 to 0x807b8000
frame               caller     <image>:function + offset
 0 807b7bac (+  32) 8006eb69   <kernel_x86> invoke_command_trampoline(void*: 0x807b7c2c) + 0x0015
 1 807b7bcc (+  12) 800e1ea8   <kernel_x86>:arch_debug_call_with_fault_handler + 0x001b
 2 807b7bd8 (+  48) 8006ca16   <kernel_x86>:debug_call_with_fault_handler + 0x0051
 3 807b7c08 (+  64) 8006eee6   <kernel_x86>:invoke_debugger_command + 0x00bb
 4 807b7c48 (+  48) 8006f003   <kernel_x86> invoke_pipe_segment(debugger_command_pipe*: 0x80135622, int32: 0, char*: NULL) + 0x0083
 5 807b7c78 (+  32) 8006f0cb   <kernel_x86>:invoke_debugger_command_pipe + 0x008b
 6 807b7c98 (+ 128) 80072e56   <kernel_x86> ExpressionParser<0x807b7d68>::_ParseCommandPipe(int&: 0x807b7d64) + 0x0aae
 7 807b7d18 (+  48) 8007561f   <kernel_x86> ExpressionParser<0x807b7d68>::EvaluateCommand(char const*: 0x80135620 "bt", int&: 0x807b7d64) + 0x06df
 8 807b7d48 (+ 192) 80075798   <kernel_x86>:evaluate_debug_command + 0x0084
 9 807b7e08 (+  64) 8006d6e2   <kernel_x86> kernel_debugger_loop(char const*: 0x0 "<NULL>", char const*: 0x8012a743 "PANIC: ", char*: 0x807b7e78, int32: -2c
10 807b7e48 (+  48) 8006d8a6   <kernel_x86> kernel_debugger_internal(char const*: 0x0 "<NULL>", char const*: 0x0 "<NULL>", char*: 0x807b7e98, int32: -21470c
11 807b7e78 (+  32) 8006da89   <kernel_x86>:panic + 0x0023
12 807b7e98 (+  48) 800baa29   <kernel_x86> HashedObjectCache<0x810a1dc0>::ObjectSlab const(void*: 0xdff06800) + 0x006d
13 807b7ec8 (+  48) 800be51e   <kernel_x86> object_cache_return_object_wrapper(object_depot*: 0x810a1e68, void*: 0x810a1dc0, void*: 0xdff06800, uint32: 0x0e
14 807b7ef8 (+  48) 800be742   <kernel_x86> empty_magazine(object_depot*: 0x810a1e68, DepotMagazine*: NULL, uint32: 0x246 (582)) + 0x0031
15 807b7f28 (+  32) 800be824   <kernel_x86>:object_depot_make_empty + 0x00c6
16 807b7f48 (+  64) 800bfd85   <kernel_x86> object_cache_low_memory(void*: NULL, uint32: 0x1 (1), int32: 1) + 0x02de
17 807b7f88 (+  80) 8004e539   <kernel_x86> low_resource_manager(void*: NULL) + 0x02e5
18 807b7fd8 (+  32) 80061a00   <kernel_x86> _create_kernel_thread_kentry() + 0x0015
19 807b7ff8 (+2139389960) 80065d14   <kernel_x86> thread_kthread_exit() + 0x0000
kdebug> 

comment:5 by michael.weirauch, 10 years ago

Had the very same (comment 3) on hrev35738 gcc4h on svn up. Will get the slab_* outputs when I get this KDL again. (bt looks same, so ommiting the picture upload, if not requested otherwise)

comment:6 by bonefish, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev35752.

Note: See TracTickets for help on using tickets.