Hi!
I am getting into trouble with the nt!CcUnpinRepinnedBcb function. I am using the Cache manager's Pinning interface to handle my volume's meta data (including directories).
To flush meta-data during file creation, I save up the BCBs after doing a CcRepinBcb. Once I have completed the create and released the resources, I do a CcUnpinRepinnedBcb on all the saved BCBs. I keep getting an assertion failure everytime on a particular BCB.
This is what I see in Win Debug
Access violation - code c0000005 (!!! second chance !!!)
nt!CcUnpinRepinnedBcb+1c:
80103f4e f6406902 test byte ptr [eax+0x69],0x2
It doesn't happen (the assertion) if I have just that BCB to flush.
I don't have a checked build of Win NT and I don't have a clue as to what is going wrong. Does anyone have an idea as to what might be going wrong.
I am tearing out my hair and ANY suggestion would be more than welcome.
I am giving the stack trace below.
Thanks in advance!
Manoj
8077f8e8 00000001 fcacd628 nt!CcUnpinRepinnedBcb+0x1c
80796528 fcd25b5e 8076fea8 ext2!Ext2FlushSavedBCBs+0xb6
80796528 8076fea8 00000001 ext2!Ext2CommonCreate+0x14ee
807929c0 8076fea8 fcacdaa0 ext2!Ext2Create+0x172
80172720 807c0e18 00000000 nt!IofCallDriver+0x37
807c0e30 00000000 fcacd998 nt!IopParseDevice+0x7cc
00000000 fcacda54 00000040 nt!ObpLookupObjectName+0x283
016be9d4 00000000 acda9001 nt!ObOpenObjectByName+0xbb
016bea0c 00100001 016be9d4 nt!IoCreateFile+0x436
016bea0c 00100001 016be9d4 nt!NtCreateFile+0x2e
016bea0c 00100001 016be9d4 nt!KiSystemService+0xc4
016bec70 00000000 00000000 ntdll!ZwCreateFile+0xb
77c40000 00001051 00001051 0x77ca11ba
77f76aa0 00000409 77cd1000 ntdll!RtlImageDirectoryEntryToData+0x21
00000000 00000000 00000000 0x16beb98
fcacdd58 fcacdd54 0042b6e0 nt!KiCallUserMode+0x4
00000002 fcacdd28 00000018 nt!KeUserModeCallback+0x9e
a02bb6e0 0000007b 0031006e win32k!SfnDWORD+0xb5
a02bb6e0 0000007b 0031006e win32k!xxxSendMessageTimeout+0x2ec
a02bb6e0 0000007b 0031006e win32k!xxxSendMessage+0x19
a02bc2d0 0000007b 0031006e win32k!xxxDefWindowProc+0x6b8
a02bc2d0 0000007b 0031006e win32k!xxxWrapDefWindowProc+0x15
0031006e 0000007b 0031006e win32k!NtUserfnDWORD+0x5a
0031006e 0000007b 0031006e nt!KiSystemService+0xc4
0042c2d0 0000007b 0031006e 0x77eadb67
0031006e 0000007b 0031006e 0x77e7a101
0031006e 0000007b 0031006e 0x77aa5a70
0042c2d0 0000007b 0031006e 0x77e7279d
0031006e 0000007b 0031006e 0x77e7331c
fffffffb 00000000 00000020 0x77ab2985
0014d9d8 00000000 00000020 0x77ab2640
0031006e 00000204 00000002 0x77aa5e5e
0003f9b6 00000022 000000d5 0x77e713ed
00000000 00000000 00000000 0x910020
Manoj Paul Joseph,
Master of Computer Applications (final year student),
School of Computer Science and Engineering,
Anna University,
Chennai (Madras),
India.
Download Yahoo! Score Tracker for live cricket scores on your desktop