Our automated testing lab collects crash dumps when a test encounters a
failure and copies it for later analysis. This is all working fine on NT4
and W2K but not on XP. On W2K and XP we use Kernel Memory Dumps and NT4 we
use Complete Memory Dumps.
The 1st problem is after successfully using MoveFile() to copy the dump, we
find the source memory.dmp file still exists, even though MoveFile()
returned success. Trying to delete it using DeleteFile() returns an
ERROR_ACCESS_DENIED. I put the delete code in a retry loop and after almost
4 minutes we succeed. So why can’t we delete the dump? Why does MoveFile()
return success when it actually failed?
The 2nd problem is after this happens, we continue on with the next test
which runs fine. At the end of the test we reboot the node and when we come
back up we find a memory.dmp file again, even though the node did not crash
(no blue screen at all). This dump is corrupted and will not open in
Windbg. Could we still have a partial dump left in our page file that XP is
finding and copying to a new memory.dmp file?
Any suggestions appreciated. I’ve attached an example log from a client
showing the problem.
Thanks
Ed Smith
Mangosoft Inc.
1/18/2002 8:23:56 AM ************************
1/18/2002 8:23:56 AM * Starting SlaveDriver *
1/18/2002 8:23:57 AM ************************
1/18/2002 8:23:57 AM OS = XPP
1/18/2002 8:23:58 AM Connecting to M002
1/18/2002 8:24:05 AM Results found… starting collection
1/18/2002 8:24:05 AM Checking if dump is ready…
1/18/2002 8:25:05 AM Dump file size hasn’t changed in 60 seconds, must be
done
1/18/2002 8:25:05 AM Final Dump Size is 29069312 bytes
1/18/2002 8:25:15 AM Moving H:\WINDOWS\MEMORY.DMP to
C:\testroot\dumps\LGMemMapWriteFlushServerNoMemFixedNoShare$S6.0.xpdmp
1/18/2002 8:25:20 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:25:30 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:25:40 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:25:50 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:00 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:10 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:20 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:30 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:40 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:26:50 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:00 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:11 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:21 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:31 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:41 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:27:51 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:01 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:11 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:21 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:31 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:41 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:28:51 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:29:01 AM WARNING: DeleteFile() of H:\WINDOWS\MEMORY.DMP
failed, Error = 5
1/18/2002 8:29:11 AM DeleteFile() of H:\WINDOWS\MEMORY.DMP succeeded
.
.
>> OUR TEST RUNS SUCCESSFULLY AND WE REBOOT THE NODE <<<<
.
.
1/18/2002 10:13:50 AM Slavedriver starting Reboot.pcd, test =
LGNoBufferinglargeServerNoMemFixedNoShareReboot
1/18/2002 10:16:21 AM ************************
1/18/2002 10:16:21 AM * Starting SlaveDriver *
1/18/2002 10:16:21 AM ************************
1/18/2002 10:16:21 AM OS = XPP
1/18/2002 10:16:23 AM Connecting to M002
1/18/2002 10:16:29 AM Results found… starting collection
1/18/2002 10:16:29 AM Checking if dump is ready…
1/18/2002 10:17:34 AM Dump file size hasn’t changed in 60 seconds, must be
done
1/18/2002 10:17:34 AM Final Dump Size is 29384704 bytes
1/18/2002 10:17:44 AM Moving H:\WINDOWS\MEMORY.DMP to
C:\testroot\dumps\LGNoBufferinglargeServerNoMemFixedNoShare$S6.0.xpdmp
1/18/2002 10:17:51 AM Slavedriver at your service, awaiting commands
You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com