SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion
Posted by Karthick P.K on October 16, 2012
I have got few request’s from SQL Server DBA’s in past to blog about analyzing SQL Server exceptions and assertions . After seeing lot of DBA’s getting stuck when they get EXCEPTION_ACCESS_VIOLATION (or) Assertion in SQL ServersI decided to write this blog.
This blog is published with intention to make DBA’s analyze and resolve EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion before contacting Microsoft support. Exception and assertion are two different things. SQL handles both assertions and exceptions by writing the current thread’s stack to the Error log and generating a dump. In simple An exception is an event that occurs during the execution of a program, and requires the execution of code outside the normal flow of control and assertion is the check that the programmer inserted into the code to make sure that some condition is true, If it returns false an assert is raised. SQL handles both assertions and exceptions by writing the current thread’s stack to the Error log and generating a dump, so trouble shooting steps are similar.
You will find messages similar to one below in SQL Serve error logs when you get Exception or EXCEPTION_ACCESS_VIOLATION .
{
Error
External dump process returned no errors.
Using ‘dbghelp.dll’ version ’4.0.5′
SqlDumpExceptionHandler: Process 510 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
* *******************************************************************************
* BEGIN STACK DUMP:
* Exception Address = 000000007752485C Module(ntdll+000000000002285C)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 0000041EA9AE2EF0
* Input Buffer 510 bytes –
ex_terminator – Last chance exception handling
}
You will find messages similar to one below in SQL Server error logs when you get an Assertion.
{
Error
spid323 Error: 17065, Severity: 16, State: 1.
spid323 SQL Server Assertion: File: < .cpp>, line = 2576 Failed Assertion = ‘fFalse’ This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted
SQL Server Assertion: File: < .cpp>, line=2040 Failed Assertion =
}
To analyze the dump download and Install Windows Debugger from This Link
Step 1 (Load the memory dump file to debugger):
Open Windbg . Choose File menu –> select Open crash dump –>Select the Dump file (SQLDump000#.mdmp)
Note : You will find SQLDump000#.mdmp in your SQL Server error log when you get the Exception or assertion.
Step 2 (Set the symbol path to Microsoft symbols server):
on command window type
.sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Step 3 (Load the symbols from Microsoft symbols server):
Type .reload /f and hit enter. This will force debugger to immediately load all the symbols.
Step 4 (check if symbols are loaded):
Verify if symbols are loaded for SQL Server by using the debugger command lmvm
0:002> lmvm sqlservr
start end module name
00000000`01000000 00000000`03679000 sqlservr T (pdb symbols) c:\websymbols\sqlservr.pdb\21E4AC6E96294A529C9D99826B5A7C032\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Wed Oct 07 21:15:52 2009 (4ACD6778)
CheckSum: 025FEB5E
ImageSize: 02679000
File version: 2005.90.4266.0
Product version: 9.0.4266.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
Step 5 (Switch to exception context):
Type .ecxr
Step 6(Get the stack of thread which caused exception or assertion):
Type kC 1000 //You will get the stack of thread which raised exception or assertion .
I have pasted one of the sample stack below, from the exception dump which I worked recently. First thing to identify from stack is who is raising the exception. In the below stack look at the portion which is highlighted in red (In each frame before the ! symbol), that is the module which raised the exception (Exe or DLL name ).
If Exe/DLL name is Non Microsoft module (Exe or DLL name ) then the exception is being caused by a third party component, you will need to work with the company that provided that component to get a solution. lmvm Exe/DLL name will give you the company name. For example: lmvm wininet
If Exe/DLL name is SQLServr (or) any other SQL Server modules then the exception is raised by SQL Server, In that case type kC 1000 and paste the stack in comments session of this blog (or) When you start thread in MSDN forums (or) In This face book group. If you don’t get any prompt reply from the community, you may need to open a support ticket with Microsoft.
Note: When you get Assertion make sure you post message line which contains SQL Server Assertion: File: <Filename.cpp>, line = 2576 Failed Assertion = ”
0:000> kC 1000
Call Site
wininet!InternetFreeThreadInfo+0x26
wininet!InternetDestroyThreadInfo+0x40
wininet!DllMain_wininet+0xb5
wininet!__DllMainCRTStartup+0xdb
ntdll!LdrShutdownThread+0x155
ntdll!RtlExitUserThread+0x38
msvcr80!_endthreadex+0x27
msvcr80!_callthreadstartex+0x1e
msvcr80!_threadstartex+0x84
kernel32!BaseThreadInitThunk+0xd
ntdll!RtlUserThreadStart+0x1d
If you liked this post, do like us on Facebook at https://www.facebook.com/mssqlwiki and join our Facebook group https://www.facebook.com/mssqlwiki#!/groups/454762937884205/
Related posts:
- How to Analyze “Deadlocked Schedulers” Dumps?
- How to analyze Non-Yielding scheduler or Non-yielding IOCP Listener dumps ……
- Non-yielding IOCP Listener, Non-yielding Scheduler and non-yielding resource monitor known issues and fixes
- SQL Server generated Access Violation dumps while accessing oracle linked servers.
- SQL Server Latch & Debugging latch time out
Thank you,
Karthick P.K |My Facebook Page |My Site| Blog space| Twitter
Disclaimer
The views expressed on this website/blog are mine alone and do not reflect the views of my company. All postings on this blog are provided “AS IS” with no warranties, and confers no rights.
Scott McCormick said
Hello Karthik –
This is a great explanation of the windbg tool. I have a couple of follow-up questions:
1 — You say that the red highlighted text is the application causing the problem. Do you mean the bold text? None of the text in the sample is red.
2 — Assuming you mean the bold text, does that mean the output is read from the top down?
3 — I honestly have no idea if the Stack Dump I’m seeing is being caused by a 3rd party, but I don’t believe it is. Would you please take a look?
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!DmpRemoteDumpRequest
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
winhttp!RemoveFromSerializedList
winhttp!InternetDestroyThreadInfo
winhttp!DllMain
winhttp!CRT_INIT
ntdll!LdrShutdownThread
ntdll!RtlExitUserThread
msvcr80!endthreadex
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hello Scott,
WINHTTP.DLL is loaded in SQL Server’s internal address apace and crash is occuring WINHTTP.DLL.
I recommended to move this module outside SQL Server address space. The stored procedure ‘sp_oacreate’ should have been used to bring in the module to SQL Server address space, so to move out in the syntax you need to mention 4 with sp_oacreate
{
Here is the KB article that gives a workaround on How to move extended stored procedures out of process-
http://support.microsoft.com/kb/243428
}
You can use belowquery to identify the objects in which you have used SP_OA create
{
EXEC sp_MSforeachdb ‘
IF EXISTS (SELECT * FROM ?.dbo.syscomments WHERE CHARINDEX (”sp_OA”, [text])>0)
SELECT
LEFT (”?”, 30) AS db, LEFT (o.name, 40) AS sproc,
LEFT (REPLACE (REPLACE (SUBSTRING ([text], CHARINDEX (”SP_OA”, UPPER ([text])) – 10, 60), CHAR(10), ””), CHAR(13), ””), 60)
FROM ?.dbo.syscomments c
INNER JOIN ?.dbo.sysobjects o ON c.id = o.id
WHERE CHARINDEX (”sp_OA”, [text]) > 0’
}
Scott McCormick said
Thanks for the quick response. Unfortunately, it looks like sp_oa is not used in any SP or function. Or at least, it isn’t showing up in sys.comments. Can you explain how you found that information?
I was able to pull more information out after posting this question, and I agree that it’s winhttp. I was thinking it might be one of the CLRs? There are a few of them.
Here is the rest of what I could find.
FAULTING_IP:
winhttp!RemoveFromSerializedList+26
000007fe`f7de1376 4c8918 mov qword ptr [rax],r11
EXCEPTION_RECORD: 0000000021edf880 — (.exr 0x21edf880)
ExceptionAddress: 000007fef7de1376 (winhttp!RemoveFromSerializedList+0x0000000000000026)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000001
Parameter[1]: 0000000000000000
Attempt to write to address 0000000000000000
DEFAULT_BUCKET_ID: APPLICATION_FAULT
PROCESS_NAME: sqlservr.exe
ERROR_CODE: (NTSTATUS) 0x42ac –
EXCEPTION_CODE: (Win32) 0x42ac (17068) –
NTGLOBALFLAG: 0
MANAGED_STACK: !dumpstack -EE
No export dumpstack found
MANAGED_BITNESS_MISMATCH:
Managed code needs matching platform of sos.dll for proper analysis. Use ‘x64’ debugger.
CONTEXT: 0000000021edf390 — (.cxr 0x21edf390)
rax=0000000000000000 rbx=000000001e5e1d00 rcx=000000000000412c
rdx=000000001e5e1d00 rsi=000007fef7e44730 rdi=0000000000000003
rip=000007fef7de1376 rsp=0000000021edf950 rbp=0000000000000000
r8=0000000000000000 r9=00000000053f1a30 r10=0000000000000000
r11=0000000000000000 r12=000007fffffda000 r13=000000001e1df960
r14=000007fffff40000 r15=0000000077d72670
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
winhttp!RemoveFromSerializedList+0x26:
000007fe`f7de1376 4c8918 mov qword ptr [rax],r11 ds:00000000`00000000=????????????????
Resetting default scope
WRITE_ADDRESS: 0000000000000000
FOLLOWUP_IP:
winhttp!RemoveFromSerializedList+26
000007fe`f7de1376 4c8918 mov qword ptr [rax],r11
BUGCHECK_STR: ACCESS_VIOLATION
FAULTING_THREAD: ffffffffffffffff
LAST_CONTROL_TRANSFER: from 000007fef7de13a9 to 000007fef7de1376
STACK_TEXT:
000007fe`f7de1376 winhttp!RemoveFromSerializedList+0x26
000007fe`f7de13a9 winhttp!InternetDestroyThreadInfo+0x2e
000007fe`f7de1190 winhttp!DllMain+0x20
000007fe`f7de10d2 winhttp!CRT_INIT+0x2af
00000000`77c86a28 ntdll!LdrShutdownThread+0x155
00000000`77c86968 ntdll!RtlExitUserThread+0x38
00000000`758537b7 msvcr80!endthreadex+0x27
00000000`758537de msvcr80!endthreadex+0x4e
00000000`75853894 msvcr80!endthreadex+0x104
00000000`77b3652d kernel32!BaseThreadInitThunk+0xd
00000000`77c6c521 ntdll!RtlUserThreadStart+0x1d
STACK_COMMAND: .cxr 21EDF390 ; kb ; dds 21edf950 ; kb
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: winhttp!RemoveFromSerializedList+26
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: winhttp
IMAGE_NAME: winhttp.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 4ce7ca23
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_winhttp.dll!RemoveFromSerializedList
BUCKET_ID: X64_ACCESS_VIOLATION_winhttp!RemoveFromSerializedList+26
WATSON_STAGEONE_URL: http://watson.microsoft.com/StageOne/sqlservr_exe/2009_100_4000_0/4fecc5ba/sqlservr_exe/2009_100_4000_0/4fecc5ba/42ac/020eae68.htm?Retriage=1
Followup: MachineOwner
———
0:000> .exr 0x21edf880
ExceptionAddress: 000007fef7de1376 (winhttp!RemoveFromSerializedList+0x0000000000000026)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000001
Parameter[1]: 0000000000000000
Attempt to write to address 0000000000000000
0:000> .exr 0x21edf880
ExceptionAddress: 000007fef7de1376 (winhttp!RemoveFromSerializedList+0x0000000000000026)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000001
Parameter[1]: 0000000000000000
Attempt to write to address 0000000000000000
MODULE_NAME: winhttp
IMAGE_NAME: winhttp.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 4ce7ca23
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_winhttp.dll!RemoveFromSerializedList
BUCKET_ID: X64_ACCESS_VIOLATION_winhttp!RemoveFromSerializedList+26
WATSON_STAGEONE_URL: http://watson.microsoft.com/StageOne/sqlservr_exe/2009_100_4000_0/4fecc5ba/sqlservr_exe/2009_100_4000_0/4fecc5ba/42ac/020eae68.htm?Retriage=1
Followup: MachineOwner
———
Karthick P.K said
I think you have run “!analyze -v”.
I found it by looking at module name(I missed to mark in red, will edit it).
In this case winhttp.dll is referencing a NULL pointer so AV.
If you suspect CLR then Disable CLR – >restart SQL – > check if winhttp.dll is still loaded. You can use below query. If you dont find winhttp.dll after disabling the CLR, Then its CLR.
{
select name as name1, * from sys.dm_os_loaded_modules where company ‘Microsoft Corporation’ or name like ‘%winhttp%’
}
I have seen in past application firewall’s loading winhttp.dll. Do you have any type of “application firewall” installed on the SQL server?
Scott McCormick said
There is no firewall.
Also, at the moment, winhttp is not loaded. My understanding of CLRs is that they are loaded up when the instance starts and are only unloaded due to memory pressure, but maybe that’s wrong? Is it possible the winhttp module isn’t loaded because the CLR has not been called since the last reboot (yesterday afternoon)? Or maybe it’s just not a CLR, but I don’t know what else it could be.
There aren’t that many things that go outside of SQL Server.
Karthick P.K said
Hello Scott,
By any chance do you see MSO.dll loaded in SQL Server .
Scott McCormick said
Hey Karthik –
It’s a giant coincidence that you would mention mso.dll today. Yesterday, there was a crash that didn’t generate a Stack Dump, but did apparently crash due to a mso.dll call. The event viewer message is:
Faulting application name: sqlservr.exe, version: 2009.100.4000.0, time stamp: 0x4fecc5ba
Faulting module name: mso.dll, version: 14.0.4760.1000, time stamp: 0x4ba906d8
Exception code: 0xc0000005
Fault offset: 0x0000000000050d4a
Faulting process id: 0x3b78
Faulting application start time: 0x01cdcc96f46da952
Faulting application path: C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2008\MSSQL\Binn\sqlservr.exe
Faulting module path: C:\Program Files\Common Files\Microsoft Shared\office14\mso.dll
Report Id: fcfb0fc2-5e76-11e2-8623-a4badb0bce84
Karthick P.K said
Hello Scott,
Few days back one of the SQL DBA came to me with same issue which you faced SQLServer carsh by by wihttp.dll (winhttp!RemoveFromSerializedList). He shared the memory dump with me. We looked at the dump and found TLS (thread local storage, a mechanism by which threads can store data that is unique to each thread) is corrupted for winhttp.dll thread.When winhttp tried to do cleanup in the TLS, it encountered AV as the TLS is corrupted (Same issue as yours) but who corrupted the thread is still not clear. I am suspecting it to be mso.dll because “App verifier” pointed that this dll is corrupting TLS when I was debugging an other TLS corruption issue. There is also a FIX http://support.microsoft.com/kb/2516475 which will update MSO.dll
Can you please confirm if the crash by MSO.dll happened in the same server in which we got dump because of winhttp.dll? If yes please confirm me and apply the above fix for MSO.dll
Also can you let me know if below two options are checked in (Internet explorer–>Tools–>Internet options –>Advanced)
1. “Check for publisher’s certificate revocation”
2. “Check for server certificate revocation”
Thanks
Scott McCormick said
Hey Karthick –
This is the same server, and I’ll start pushing to apply this patch.
Also, those options are selected in the IE on the server.
Scott
Karthick P.K said
If those options are selected please uncheck them
“Check for publisher’s certificate revocation”
“Check for server certificate revocation”
Karthick P.K said
Any update Scott?
Scott McCormick said
Yeah, I flipped the switches on IE and installed the patch and it looks like that might have resolved it. It comes and goes, so it’s hard to say for sure, but I don’t think it’s an issue any more. Thanks a lot for your help, I really appreciate it.
In Depth SQL said
Hi Karthick – I follow mentioned procedure and got below dump, Please let me know what should I do next.
0:000> kC 1000
Call Site
ntdll!ZwWaitForSingleObject
KERNELBASE!WaitForSingleObjectEx
sqlservr!CDmpDump::DumpInternal
sqlservr!CDmpDump::DumpFilter
sqlservr!CDmpDump::Dump
msvcr80!__C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!RtlRaiseException
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
sqlservr!SOS_SEHTranslator
msvcr80!_CallSETranslator
msvcr80!FindHandlerForForeignException
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
sqlservr!CSlotPageMgr::PbAllocate
sqlservr!CMemObj::Alloc
sqlservr!CMemThread::Alloc
sqlservr!CCriticalSectionSOS::Initialize
sqlservr!Tcp::FInit
sqlservr!Tcp::AcceptConnection
sqlservr!Tcp::AcceptDone
sqlservr!SNIAcceptDoneWithReturnCode
sqlservr!SNIAcceptDoneWrapper
sqlservr!SNIAcceptDoneRouter
sqlservr!SOS_Node::ListenOnIOCompletionPort
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hey Indepth,
This issue is fixed in
Cumulative Update package 6 for SQL Server 2008 R2
Cumulative update package 13 for SQL Server 2008 Service Pack 1
Cumulative update package 3 for SQL Server 2008 Service Pack 2
Thanks
KarthickP.K
In Depth SQL said
Hey Karthick – Thanks for the reply but what is the problem and how it can fix in CU. i.e. where/how did you fid that information, please share.
Karthick P.K said
Answered to Indepth offline
In Depth SQL said
Thanks Karthick for your help !!!
Jason Chamiak said
Hi Karthick,
This was a great article. After following your processes, I retrieved the following thread stack responsible for my recent crash.Can you tell me what happened here and what recommendations you have?
0:000> kC 1000
Call Site
sqlservr!CMEDIndexStatsCollection::GetProxyIndexWithLock
sqlservr!CMEDProxyRelation::GetProxyIndexWithLock
sqlservr!CMEDProxyRelation::GetIndex
sqlservr!CMetadataUtil::GetIndexFromIMED
sqlservr!CAlgTableMetadata::PimidxBaseIndex
sqlservr!CAlgTableMetadata::LoadSpecialColumns
sqlservr!CAlgTableMetadata::LoadColumns
sqlservr!CAlgTableMetadata::Bind
sqlservr!CRelOp_Get::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_FromList::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Select::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_QuerySpec::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_DerivedTable::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_BaseJoin::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_FromList::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_QuerySpec::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Insert::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_DMLQuery::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Query::FAlgebrizeQuery
sqlservr!CProchdr::FNormQuery
sqlservr!CProchdr::FNormalizeStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thanks,
Jason Chamiak
Karthick P.K said
Hello Jason, This looks like a known issue, can let me know your SQL Server build number (select @@version). Do you get this dump when you fire query with “select TOP n on a table with identity column? ThanksKarthick > Date: Fri, 16 Nov 2012 19:53:19 +0000 > To: karthick_pk83@hotmail.com >
Jason Chamiak said
Hi Karthick,
This is the output of @@version:
Microsoft SQL Server 2008 R2 (SP1) – 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 (Build 7600: )
I do not see “SELECT TOP” in the stored procedures referenced in the dumps in the SQL Server log.
Thanks,
Jason Chamiak
Karthick P.K said
Hello Jason,
Apply Service pack 2 for SQL server 2008 R2 . If issue happens again after applying SP2 please let me know
Nuno Gomes said
0:000> kC 1000
Call Site
sqlservr!CTableVariableManager::GetRowsetidListAndReturnTableInfo
sqlservr!CRangeTableVariable::XretSchemaChanged
sqlservr!CEnvCollection::XretSchemaChanged
sqlservr!CXStmtCondWithQuery::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
And the version is: 10.50.1600.1
Thanks,
Nuno Gomes
Karthick P.K said
Quick question… Have you set the MAX DOP to 1?
nmgomes said
Yes … This error happens when Max DOP is set to 1.
Karthick P.K said
This is known issue in SQL Server 2008
For SQL Server 2008 R2, this issue is fixed in Service Pack 1
For SQL Server 2008, this issue is fixed in Service Pack 3
How to Analyze "Deadlocked Schedulers" Dumps? « MSSQLWIKI said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion […]
Meera Sinhasane said
Hi Karthick ,
SQL Server in our environment crashed generating an access violation. From the dump file it appears to be crashed due to msxml component but i am not pretty sure on it. Could you please take a look at the below stack and guide me on this.
Microsoft SQL Server 2008 R2 (RTM) – 10.50.1600.1 (X64)
Apr 2 2010 15:48:46
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7600: ) (Hypervisor)
2013-01-14 21:33:51.74 Server Error: 17311, Severity: 16, State: 1.
2013-01-14 21:33:51.74 Server SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart).
2013-01-14 21:33:51.79 Server Using ‘dbghelp.dll’ version ‘4.0.5’
2013-01-14 21:33:51.83 Server **Dump thread – spid = 0, EC = 0x0000000000000000
2013-01-14 21:33:51.83 Server ***Stack Dump being sent to D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\LOG\SQLDump0001.txt
2013-01-14 21:33:51.83 Server * *******************************************************************************
2013-01-14 21:33:51.83 Server *
2013-01-14 21:33:51.83 Server * BEGIN STACK DUMP:
2013-01-14 21:33:51.83 Server * 01/14/13 21:33:51 spid 2636
2013-01-14 21:33:51.83 Server *
2013-01-14 21:33:51.83 Server * ex_handle_except encountered exception C0000005 – Server terminating
0:000> kc 100
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO
0x0
0x0
0x0
Karthick P.K said
Do you have MSO.dll loaded in SQL Server? what is the version?
Is this the first and only occurrence or do we have more dumps?
Karthick P.K said
any update?
Laurens said
Hi Karthick,
Could you please have a look at the debug below. I see that the wininet is probably causing the problem? There are no jobs running during this proces apart from a ms windows server backup. We do use CDO during the day, could the VC be cleaning the memory during the night at 1:30? Or could the windows update process use wininet?
Microsoft (R) Windows Debugger Version 6.2.9200.16384 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\Data\MSSQL10_50.MSSQLSERVER\MSSQL\Log\SQLDump0003.mdmp]
Comment: ‘Stack Trace’
Comment: ‘ex_handle_except encountered exception C0000005 – Server terminating’
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) UP Free x64
Product: Server, suite: TerminalServer SingleUserTS Blade
Machine Name:
Debug session time: Tue Jan 29 01:31:18.000 2013 (UTC + 1:00)
System Uptime: 3 days 16:22:27.234
Process Uptime: 3 days 16:21:44.000
……………………………………………………….
……………………………………………………….
…………
Loading unloaded module list
……………………………………………………………
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(598.e94): Unknown exception – code 000042ac (first/second chance not available)
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll –
*** ERROR: Symbol file could not be found. Defaulted to export symbols for KERNELBASE.dll –
ntdll!NtWaitForSingleObject+0xa:
00000000`7707135a c3 ret
0:000> .sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
0:000> .reload /f
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for sqlservr.exe –
…….
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
…*** ERROR: Symbol file could not be found. Defaulted to export symbols for sqlos.dll –
……………………..*** ERROR: Symbol file could not be found. Defaulted to export symbols for instapi10.dll –
..*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
…………………*** ERROR: Symbol file could not be found. Defaulted to export symbols for msfte.dll –
….
………..*** ERROR: Symbol file could not be found. Defaulted to export symbols for sqlncli10.dll –
…*** ERROR: Module load completed but symbols could not be loaded for SQLNCLIR10.RLL
…….*** ERROR: Module load completed but symbols could not be loaded for odbcint.dll
…*** ERROR: Module load completed but symbols could not be loaded for XPStar.RLL
..*** ERROR: Module load completed but symbols could not be loaded for xplog70.rll
……..*** ERROR: Module load completed but symbols could not be loaded for oledb32r.dll
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for ACEOLEDB.DLL –
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for MSO.DLL –
…*** ERROR: Module load completed but symbols could not be loaded for ACECORE.DLL
..*** ERROR: Module load completed but symbols could not be loaded for ACEWSTR.DLL
.*** ERROR: Module load completed but symbols could not be loaded for MSORES.DLL
.*** ERROR: Module load completed but symbols could not be loaded for MSOINTL.DLL
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for ACEINTL.DLL –
………..*** ERROR: Module load completed but symbols could not be loaded for INETRES.dll
…….
*** ERROR: Module load completed but symbols could not be loaded for ACCTRES.dll
…..*** ERROR: Module load completed but symbols could not be loaded for odsole70.rll
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for ACEERR.DLL –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for ACEES.DLL –
….
Loading unloaded module list
……………………………………………………………
0:000> lmvm sqlservr
start end module name
00000000`00b10000 00000000`04722000 sqlservr (export symbols) sqlservr.exe
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Thu Jun 28 22:59:38 2012 (4FECC5BA)
CheckSum: 03B58282
ImageSize: 03C12000
File version: 2009.100.4000.0
Product version: 10.50.4000.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 10.50.4000.0
FileVersion: 2009.0100.4000.00 ((KJ_PCU_Main).120628-0827 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> Type .ecxr
^ No runnable debuggees error in ‘Type .ecxr ‘
0:000> .ecxr
rax=000000006e6313fe rbx=00000000040f5650 rcx=000000001976ca90
rdx=0000000000000000 rsi=0000000003cffcfc rdi=0000000000000440
rip=000007fefd7a9e5d rsp=000000001976d0a0 rbp=000000001976fe30
r8=0000000000000000 r9=0000000000000000 r10=00000000c000007c
r11=00000000013fdf60 r12=0000000000000e94 r13=0000000000000000
r14=0000000000000000 r15=0000000000000e94
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
KERNELBASE!RaiseException+0x39:
000007fe`fd7a9e5d 4881c4c8000000 add rsp,0C8h
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!DmpRemoteDumpRequest
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
wininet!InternetFreeThreadInfo
wininet!InternetDestroyThreadInfo
wininet!DllMain_wininet
wininet!CRT_INIT
ntdll!LdrShutdownThread
ntdll!RtlExitUserThread
msvcr80!endthreadex
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
0:000> kL
*** Stack trace for last set context – .thread/.cxr resets it
Child-SP RetAddr Call Site
00000000`1976d0a0 00000000`036c440c KERNELBASE!RaiseException+0x39
00000000`1976d170 00000000`02bfae68 sqlservr!DmpRemoteDumpRequest+0x2fec
00000000`1976d1c0 00000000`02bfb9bc sqlservr!SQLExit+0x303a8
00000000`1976d1f0 00000000`02bee097 sqlservr!SQLExit+0x30efc
00000000`1976d3f0 00000000`02bed7e9 sqlservr!SQLExit+0x235d7
00000000`1976e940 00000000`03032206 sqlservr!SQLExit+0x22d29
00000000`1976e980 00000000`769d9460 sqlservr!SQLExit+0x467746
00000000`1976ebd0 00000000`770b43b8 kernel32!UnhandledExceptionFilter+0x160
00000000`1976ecb0 00000000`770385a8 ntdll! ?? ::FNODOBFM::`string’+0x2365
00000000`1976ece0 00000000`77049d0d ntdll!_C_specific_handler+0x8c
00000000`1976ed50 00000000`770391af ntdll!RtlpExecuteHandlerForException+0xd
00000000`1976ed80 00000000`77071278 ntdll!RtlDispatchException+0x45a
00000000`1976f460 00000000`76ee88cb ntdll!KiUserExceptionDispatch+0x2e
00000000`1976fa20 00000000`76ee8892 wininet!InternetFreeThreadInfo+0x1f
00000000`1976fa50 00000000`76ec128e wininet!InternetDestroyThreadInfo+0x40
00000000`1976fa80 00000000`76ec10d3 wininet!DllMain_wininet+0xb5
00000000`1976fad0 00000000`77066a28 wininet!CRT_INIT+0x2b3
00000000`1976fc30 00000000`77066968 ntdll!LdrShutdownThread+0x155
00000000`1976fd30 00000000`747b37b7 ntdll!RtlExitUserThread+0x38
00000000`1976fd70 00000000`747b37de msvcr80!endthreadex+0x27
00000000`1976fda0 00000000`747b3894 msvcr80!endthreadex+0x4e
00000000`1976fdd0 00000000`7695652d msvcr80!endthreadex+0x104
00000000`1976fe00 00000000`7704c521 kernel32!BaseThreadInitThunk+0xd
00000000`1976fe30 00000000`00000000 ntdll!RtlUserThreadStart+0x1d
Karthick P.K said
Can you share the output of
1. lmvm mso
2. lmvm cdosys
Laurens said
0:000> lmvm cdosys
start end module name
000007fe`e7c50000 000007fe`e7d69000 cdosys (pdb symbols) c:\websymbols\cdosys.pdb\3C0CCADEEF824576A6729525EBB42A8C1\cdosys.pdb
Loaded symbol image file: cdosys.dll
Mapped memory image file: c:\websymbols\cdosys.dll\4FCEEFFF119000\cdosys.dll
Image path: C:\Windows\System32\cdosys.dll
Image name: cdosys.dll
Timestamp: Wed Jun 06 07:51:59 2012 (4FCEEFFF)
CheckSum: 00117D93
ImageSize: 00119000
File version: 6.6.7601.17857
Product version: 6.6.7601.17857
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft® Windows® Operating System
InternalName: CDOSYS.DLL
OriginalFilename: CDOSYS.DLL
ProductVersion: 6.6.7601.17857
FileVersion: 6.6.7601.17857 (win7sp1_gdr.120605-1503)
FileDescription: Microsoft CDO for Windows Library
LegalCopyright: © Microsoft Corporation. All rights reserved.
0:000> lmvm mso
start end module name
000007fe`e8090000 000007fe`e98c2000 MSO (export symbols) MSO.DLL
Loaded symbol image file: MSO.DLL
Mapped memory image file: C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL
Image path: C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL
Image name: MSO.DLL
Timestamp: Tue Mar 23 19:22:16 2010 (4BA906D8)
CheckSum: 01832834
ImageSize: 01832000
File version: 14.0.4760.1000
Product version: 14.0.4760.0
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0000.04e4
CompanyName: Microsoft Corporation
ProductName: Microsoft Office 2010
InternalName: MSO
OriginalFilename: MSO.DLL
ProductVersion: 14.0.4760.1000
FileVersion: 14.0.4760.1000
FileDescription: Microsoft Office 2010 component
LegalCopyright: © 2010 Microsoft Corporation. All rights reserved.
Karthick P.K said
Apply http://support.microsoft.com/kb/2516475 it should resolve your issue.
Laurens said
Brilliant, thanks for the analysis, how did you figure it’s the mso.dll? Did the debugger indicate this or is it on the basis that there’s a newer version of the mso.dll available?
Karthick P.K said
If you look at your stack “wininet!InternetFreeThreadInfo” exception is raised when the threads local storage (TLS) is cleared,So basically some one else has already corrupted TLS.
Who corrupted it? Most probably MSO.DLL because “App verifier” pointed that this dll is corrupting TLS when I was debugging an other TLS corruption issue. There is also a FIX http://support.microsoft.com/kb/2516475 which will update MSO.dll.
Laurens said
Tanks for the reply, I’ve tried to install the update, states that it is already installed, I believe I read somewhere you have to place files manualy?
Karthick P.K said
Hello Lauren,
I do know how I missed your comment.Iam sorry.
Try running repair on Microsoft access database engine,It should update your MSO.DLL version
Laurens said
Hi Karthick,
So far so good, the server has stopped crashing. In order to install the update, you have to extract it, until you can extract it no longer, run it, then use the repair function from the installed applications in the control panel.
Thanks,
Laurens
manu0417Manohar said
Hi Karthick,
Can you please help me with below access violation exception.
0:000> kC 1000
Call Site
sqlservr!CTableVariableManager::InsertTableRef
sqlservr!alloca_probe
sqlservr!CFormalParamTbl::InitParams
sqlservr!alloca_probe
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
0x0
0x0
Karthick P.K said
What is ur sqlversion?
Sent from my Windows Phone ________________________________
manu0417 said
SQL Server 2008 SP2 CU3
Version: 10.0.4279
Karthick P.K said
Have you set Max degree of parallelism to 1 ?
manu0417 said
Yes, We need that across out environment.
Karthick P.K said
I think we have two options here .If you can’t use any of below workaround I would suggest contacting Microsoft support to investigate further. 1. Use TEMP Tables instead of Table Variables or UDF’s 2. Change the MAX DOP to > 1 [2 for example]
manu0417 said
Thanks Karthick for the quick turn around. I will try if anything works out or will contact support.
manu0417 said
Karthick,
Can you please shed some light on how the max dop is resulting the access violation when we use table variables? Greatly appreciate any inputs on this.
Regards,
Manu
Karthick P.K said
This is known issue
manu0417 said
Hi Karthick,
Today we had an assertion on one of our Test servers and below is the kC 1000 output. The server went unresponsive after that.
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!utassert_fail
sqlservr!purecall
sqlservr!GetRemoteTaskProxyWithRef
sqlservr!TasksTable::MoveToNextRow
sqlservr!TasksTable::InternalGetRow
sqlservr!CQScanTVFStreamNew::GetRow
sqlservr!CQScanSortNew::BuildSortTable
sqlservr!CQScanSortNew::OpenHelper
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanNLJoinNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanTopNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanUpdateNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtDML::XretDMLExecute
sqlservr!CXStmtSelectInto::XretSelectIntoExecute
sqlservr!CXStmtSelectInto::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
0x0
0x0
Karthick P.K said
Share the Build of SQLServer and let me know if it used as backend for Biztalk.
manu0417 said
We don’t use a BizTalk. Build is 10.0.4279, 2008 SP2 CU3.
The procedure which raised this Assertion does the auditing on the session activity and inserts the sampled data in to an audit table, bunch of simple select and insert statements.
Karthick P.K said
Hello Manu,
Can you please share the error message you got in errorlog for this assert?
It should be some thig like
SQL Server Assertion: File: , line
in your errorlog when dump was generated.
manu0417 said
2013-03-01 04:00:03.01 spid231 ***Stack Dump being sent to D:\MSSQL10.MSSQLSERVER\MSSQL\LOG\SQLDump1160.txt
2013-03-01 04:00:03.01 spid231 * *******************************************************************************
2013-03-01 04:00:03.01 spid231 *
2013-03-01 04:00:03.01 spid231 * BEGIN STACK DUMP:
2013-03-01 04:00:03.01 spid231 * 03/01/13 04:00:03 spid 231
2013-03-01 04:00:03.01 spid231 *
2013-03-01 04:00:03.01 spid231 * Location: purecall.cpp:51
2013-03-01 04:00:03.01 spid231 * Expression: !”purecall”
2013-03-01 04:00:03.01 spid231 * SPID: 231
2013-03-01 04:00:03.01 spid231 * Process ID: 21520
2013-03-01 04:00:03.01 spid231 * Description: Pure virtual function call
Karthick P.K said
Do you have any antivirus which detours in sqlserver address space like sophose etc?
Post the output of lm from your dump. Let me check
manu0417 said
I did not find any Antivirus. Below is the result of lm
0:000> lm
start end module name
00000000`002a0000 00000000`03b0f000 sqlservr (deferred)
00000000`1f320000 00000000`1f369000 System_Transactions (deferred)
00000000`2de70000 00000000`2e16f000 System_Data (deferred)
00000000`48060000 00000000`4806d000 instapi (deferred)
00000000`49980000 00000000`49d31000 msfte (deferred)
00000000`60000000 00000000`60025000 ftimport (deferred)
00000000`6de10000 00000000`6e00f000 sqlevn70 (deferred)
00000000`6f3d0000 00000000`6f52e000 DBGHELP (deferred)
00000000`6fbf0000 00000000`6fefe000 System (deferred)
00000000`6ff00000 00000000`7003e000 comres (deferred)
00000000`70520000 00000000`70562000 System_Security (deferred)
00000000`70570000 00000000`705dc000 System_Configuration (deferred)
00000000`705e0000 00000000`707d8000 System_Xml (deferred)
00000000`714b0000 00000000`714c4000 oledb32r (deferred)
00000000`71640000 00000000`71791000 msxmlsql (deferred)
00000000`71840000 00000000`71857000 xprepl (deferred)
00000000`71920000 00000000`719a8000 XPStar (deferred)
00000000`71e70000 00000000`71e72000 xplog70_71e70000 (deferred)
00000000`71e80000 00000000`71e90000 xplog70 (deferred)
00000000`71f20000 00000000`71f45000 XPStar_71f20000 (deferred)
00000000`71f50000 00000000`71f58000 xpsqlbot (deferred)
00000000`71fe0000 00000000`71fec000 sqlscm (deferred)
00000000`720e0000 00000000`7210c000 BatchParser (deferred)
00000000`72110000 00000000`72147000 SQLNCLIR10 (deferred)
00000000`72150000 00000000`7245a000 sqlncli10 (deferred)
00000000`724b0000 00000000`7260e000 dbghelp_724b0000 (deferred)
00000000`727f0000 00000000`727f7000 sqlos (deferred)
00000000`72800000 00000000`72808000 opends60 (deferred)
00000000`72fa0000 00000000`72fb3000 ssdebugps (deferred)
00000000`73640000 00000000`73678000 odbcint (deferred)
00000000`737d0000 00000000`73837000 SqlAccess (deferred)
00000000`73840000 00000000`73843000 security (deferred)
00000000`73cf0000 00000000`73cfd000 instapi10 (deferred)
00000000`74850000 00000000`74870000 ATL80 (deferred)
00000000`74ad0000 00000000`74bd9000 msvcp80 (deferred)
00000000`74be0000 00000000`74ca9000 msvcr80 (deferred)
00000000`76d70000 00000000`76e6a000 user32 (deferred)
00000000`76e70000 00000000`76f8f000 kernel32 (deferred)
00000000`76f90000 00000000`77139000 ntdll (pdb symbols) your local symbol folder\ntdll.pdb\15EB43E23B12409C84E3CC7635BAF5A32\ntdll.pdb
00000000`77160000 00000000`77167000 psapi (deferred)
00000642`ffaf0000 00000642`ffb09000 mscorsec (deferred)
00000642`ffff0000 00000642`ffffd000 wminet_utils (deferred)
000007fe`ebd00000 000007fe`ebde6000 System_Security_ni (deferred)
000007fe`ebdf0000 000007fe`ebefe000 oledb32 (deferred)
000007fe`ecae0000 000007fe`ecc64000 mscorjit (deferred)
000007fe`ecc70000 000007fe`eccbe000 pdh (deferred)
000007fe`eccc0000 000007fe`ecce8000 msdart (deferred)
000007fe`eccf0000 000007fe`ecd90000 comctl32 (deferred)
000007fe`ed8d0000 000007fe`ed90b000 winmm (deferred)
000007fe`edc20000 000007fe`edc8a000 msdaps (deferred)
000007fe`ef450000 000007fe`ef501000 odbc32 (deferred)
000007fe`ef530000 000007fe`ef5ec000 msdtcprx (deferred)
000007fe`ef5f0000 000007fe`ef650000 mtxclu (deferred)
000007fe`efb60000 000007fe`efb6f000 cscapi (deferred)
000007fe`efb70000 000007fe`efb8b000 cabinet (deferred)
000007fe`efb90000 000007fe`efbb6000 cryptnet (deferred)
000007fe`efd10000 000007fe`efd19000 SensApi (deferred)
000007fe`efe30000 000007fe`efe42000 browcli (deferred)
000007fe`efe50000 000007fe`efe5a000 netbios (deferred)
000007fe`efe80000 000007fe`efe94000 xolehlp (deferred)
000007fe`f0c00000 000007fe`f0c19000 resutils (deferred)
000007fe`f0c20000 000007fe`f0c70000 clusapi (deferred)
000007fe`f0e00000 000007fe`f0e26000 wmiutils (deferred)
000007fe`f0e30000 000007fe`f0e44000 wbemsvc (deferred)
000007fe`f0f00000 000007fe`f0f27000 ntdsapi (deferred)
000007fe`f0f30000 000007fe`f1012000 fastprox (deferred)
000007fe`f6f60000 000007fe`f7985000 System_ni (deferred)
000007fe`f7990000 000007fe`f886c000 mscorlib_ni (deferred)
000007fe`f8870000 000007fe`f920d000 mscorwks (deferred)
000007fe`f9210000 000007fe`f92a0000 mscoreei (deferred)
000007fe`f92a0000 000007fe`f930f000 mscoree (deferred)
000007fe`f9310000 000007fe`f9396000 wbemcomn (deferred)
000007fe`f93a0000 000007fe`f93af000 wbemprox (deferred)
000007fe`f9600000 000007fe`f961d000 samlib (deferred)
000007fe`f9620000 000007fe`f9634000 samcli (deferred)
000007fe`f9a70000 000007fe`f9a78000 rasadhlp (deferred)
000007fe`fa0d0000 000007fe`fa134000 webio (deferred)
000007fe`fa140000 000007fe`fa1b1000 winhttp (deferred)
000007fe`fa1c0000 000007fe`fa1d8000 dhcpcsvc (deferred)
000007fe`fa1e0000 000007fe`fa1f1000 dhcpcsvc6 (deferred)
000007fe`fa200000 000007fe`fa253000 FWPUCLNT (deferred)
000007fe`fa690000 000007fe`fa6a5000 wkscli (deferred)
000007fe`fa6b0000 000007fe`fa6c6000 netapi32 (deferred)
000007fe`fa710000 000007fe`fa71b000 winnsi (deferred)
000007fe`fa720000 000007fe`fa747000 IPHLPAPI (deferred)
000007fe`fae60000 000007fe`fae69000 msxactps (deferred)
000007fe`fb150000 000007fe`fb15a000 ktmw32 (deferred)
000007fe`fb820000 000007fe`fb82c000 dsrole (deferred)
000007fe`fb870000 000007fe`fba64000 comctl32_7fefb870000 (deferred)
000007fe`fbff0000 000007fe`fc01d000 ntmarta (deferred)
000007fe`fc020000 000007fe`fc02c000 version (deferred)
000007fe`fc0f0000 000007fe`fc0f7000 WSHTCPIP (deferred)
000007fe`fc1f0000 000007fe`fc20b000 gpapi (deferred)
000007fe`fc210000 000007fe`fc22e000 userenv (deferred)
000007fe`fc230000 000007fe`fc242000 devrtl (deferred)
000007fe`fc270000 000007fe`fc2bc000 bcryptprimitives (deferred)
000007fe`fc370000 000007fe`fc37a000 credssp (deferred)
000007fe`fc3a0000 000007fe`fc3fb000 dnsapi (deferred)
000007fe`fc560000 000007fe`fc5a7000 rsaenh (deferred)
000007fe`fc5f0000 000007fe`fc648000 schannel (deferred)
000007fe`fc650000 000007fe`fc6a1000 msv1_0 (deferred)
000007fe`fc6b0000 000007fe`fc6bc000 netutils (deferred)
000007fe`fc6d0000 000007fe`fc700000 logoncli (deferred)
000007fe`fc700000 000007fe`fc755000 mswsock (deferred)
000007fe`fc760000 000007fe`fc814000 kerberos (deferred)
000007fe`fc890000 000007fe`fc8a7000 cryptsp (deferred)
000007fe`fc8b0000 000007fe`fc8fe000 ncrypt (deferred)
000007fe`fc900000 000007fe`fc92f000 authz (deferred)
000007fe`fc930000 000007fe`fc937000 wship6 (deferred)
000007fe`fc940000 000007fe`fc962000 bcrypt (deferred)
000007fe`fc9f0000 000007fe`fca04000 cryptdll (deferred)
000007fe`fca10000 000007fe`fca33000 srvcli (deferred)
000007fe`fccf0000 000007fe`fccfb000 secur32 (deferred)
000007fe`fcd40000 000007fe`fcd65000 sspicli (deferred)
000007fe`fcd70000 000007fe`fcdc7000 apphelp (deferred)
000007fe`fcdd0000 000007fe`fcddf000 CRYPTBASE (deferred)
000007fe`fcec0000 000007fe`fced4000 RpcRtRemote (deferred)
000007fe`fcee0000 000007fe`fceef000 profapi (deferred)
000007fe`fcf80000 000007fe`fcf8f000 msasn1 (deferred)
000007fe`fcfd0000 000007fe`fd03c000 KERNELBASE (pdb symbols) your local symbol folder\kernelbase.pdb\61044362232B410AA600843CEBFD11612\kernelbase.pdb
000007fe`fd040000 000007fe`fd07a000 wintrust (deferred)
000007fe`fd140000 000007fe`fd2a7000 crypt32 (deferred)
000007fe`fd2b0000 000007fe`fd2be000 lpk (deferred)
000007fe`fd2c0000 000007fe`fd389000 usp10 (deferred)
000007fe`fd390000 000007fe`fd398000 nsi (deferred)
000007fe`fd550000 000007fe`fd627000 oleaut32 (deferred)
000007fe`fd630000 000007fe`fd70b000 advapi32 (deferred)
000007fe`fd710000 000007fe`fd7a7000 comdlg32 (deferred)
000007fe`fd930000 000007fe`fe6b8000 shell32 (deferred)
000007fe`fe6c0000 000007fe`fe7c9000 msctf (deferred)
000007fe`fe7d0000 000007fe`fe86f000 msvcrt (deferred)
000007fe`fe870000 000007fe`fe8d7000 gdi32 (deferred)
000007fe`fe8e0000 000007fe`fe979000 clbcatq (deferred)
000007fe`fe980000 000007fe`feb83000 ole32 (deferred)
000007fe`feb90000 000007fe`febdd000 ws2_32 (deferred)
000007fe`febe0000 000007fe`fec32000 Wldap32 (deferred)
000007fe`fec40000 000007fe`fec5f000 sechost (deferred)
000007fe`fec60000 000007fe`fec8e000 imm32 (deferred)
000007fe`feef0000 000007fe`fef07000 imagehlp (deferred)
000007fe`fef10000 000007fe`fef81000 shlwapi (deferred)
000007fe`ff170000 000007fe`ff29d000 rpcrt4 (deferred)
Unloaded modules:
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`73880000 00000000`73898000 sqlboot.dll
00000000`73860000 00000000`73878000 sqlboot.dll
00000000`73880000 00000000`73898000 sqlboot.dll
000007fe`fcf90000 000007fe`fcfc6000 CFGMGR32.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`72500000 00000000`72518000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`72500000 00000000`72518000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`72500000 00000000`72518000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`72500000 00000000`72518000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
00000000`72560000 00000000`72578000 sqlboot.dll
00000000`725b0000 00000000`725c8000 sqlboot.dll
000007fe`fcf90000 000007fe`fcfc6000 CFGMGR32.dll
000007fe`fd120000 000007fe`fd13a000 DEVOBJ.dll
000007fe`fef90000 000007fe`ff167000 setupapi.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`71800000 00000000`71818000 sqlboot.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`71800000 00000000`71818000 sqlboot.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`71800000 00000000`71818000 sqlboot.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`71800000 00000000`71818000 sqlboot.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`71800000 00000000`71818000 sqlboot.dll
00000000`71870000 00000000`71888000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`6e050000 00000000`6e1ae000 dbghelp.dll
00000000`72540000 00000000`7269e000 dbghelp.dll
00000000`6e050000 00000000`6e1ae000 dbghelp.dll
00000000`6b4d0000 00000000`6b62e000 dbghelp.dll
000007fe`fcf90000 000007fe`fcfc6000 CFGMGR32.dll
000007fe`fd120000 000007fe`fd13a000 DEVOBJ.dll
000007fe`fef90000 000007fe`ff167000 setupapi.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`715b0000 00000000`715c8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`715b0000 00000000`715c8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`715b0000 00000000`715c8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`715b0000 00000000`715c8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`715b0000 00000000`715c8000 sqlboot.dll
00000000`71490000 00000000`714a8000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`72c80000 00000000`72c98000 sqlboot.dll
00000000`73770000 00000000`73788000 sqlboot.dll
00000000`73880000 00000000`73898000 sqlboot.dll
00000000`73860000 00000000`73878000 sqlboot.dll
00000000`73880000 00000000`73898000 sqlboot.dll
000007fe`fcf90000 000007fe`fcfc6000 CFGMGR32.dll
Karthick P.K said
Share the dump with me I look at it. If there is no security restriction.
manu0417 said
I have mailed it yesterday to karthick_pk83@hotmail.com
Karthick P.K said
Maanu I analyzed the dump and this dump looks like a victim of a dump which occurred earlier. Did this assert occurred after some Access violation? If so you have to fix the access violation and this assert will resolve by itself.
manu0417 said
Hi Karthick,
I faced this assert dump again in Production. There are no access violation dumps prior to this. I will mail you the dump file and error log associated with this.
Dee said
What about this…I have 53 stack dumps all with different output…this is the results of the first one for the day..
running SQL server 2008 sp1 32 bit…
0:000> lmvm sqlservr
start end module name
01000000 03970000 sqlservr T (no symbols)
Loaded symbol image file: sqlservr.exe
Image path: E:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Sun Mar 29 17:29:20 2009 (49CFF640)
CheckSum: 029079F8
ImageSize: 02970000
File version: 2007.100.2531.0
Product version: 10.0.2531.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
0:000> .ecxr
eax=693ad01c ebx=00000000 ecx=03550ab4 edx=03550ab4 esi=00000000 edi=0357b640
eip=77e4bee7 esp=693ad018 ebp=693ad06c iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
kernel32!RaiseException+0x53:
77e4bee7 5e pop esi
0:000> kC 1000
kernel32!RaiseException
WARNING: Stack unwind information not available. Following frames may be wrong.
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
msvcr80!_CallSETranslator
msvcr80!FindHandlerForForeignException
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler3
ntdll!ExecuteHandler2
ntdll!ExecuteHandler
ntdll!KiUserExceptionDispatcher
sqlservr
another one….
eax=4cb7a000 ebx=07dde040 ecx=005c0033 edx=00000000 esi=4cb7b020 edi=07dde0a4
eip=015ab31c esp=69dcf534 ebp=69dcf55c iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
sqlservr!XVB::`scalar deleting destructor’+0x21:
015ab31c 8b4204 mov eax,dword ptr [edx+4] ds:0023:00000004=????????
0:000> kC 1000
sqlservr!XVB::`scalar deleting destructor’
sqlservr!ReadOnlyXactImp::~ReadOnlyXactImp
sqlservr!ReadOnlyXactImp::`vector deleting destructor’
sqlservr!AutoReadOnlyXact::Cleanup
Dee said
1st one from in January…right after upgrated to 2008 sp1 32bit from 2005. on same server
someone thought this was caused by 3rd party wonderware.. cant tell if new dumps are related….
0:000> .ecxr
eax=00b1dffc ebx=00000000 ecx=03550ab4 edx=03550ab4 esi=00000000 edi=0357b640
eip=77e4bee7 esp=00b1dff8 ebp=00b1e04c iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
kernel32!RaiseException+0x53:
77e4bee7 5e pop esi
0:000> kC 1000
kernel32!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
msvcr80!_CallSETranslator
msvcr80!FindHandlerForForeignException
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler3
ntdll!ExecuteHandler2
ntdll!ExecuteHandler
ntdll!KiUserExceptionDispatcher
sqlservr!CVariableInfo::PbGetBlock
Karthick P.K said
Paste the full stack
Nitin said
Hi karthick
I need your help to analyze the sql server dump thrown indicating ‘Exception_Access_Violation’. I have tried to use Windebug to analyze the dump.
But it is giving error unable to load symbol.
Could you please help me to analyze the root caause for this dump.
Karthick P.K said
What is your sqlserver version?
SQL Server assert in Location: purecall.cpp:51 | SQLServerScribbles said
[…] 3. If there is no antivirus or memory errors follow the steps in https://mssqlwiki.com/2012/10/16/sql-server-exception_access_violation-and-sql-server-assertion/ […]
Farhan said
Hi Karthick,
Very nice article – thanks for sharing.
Could you please have a look on following dump file contents and advise what actually caused our SQL server to crash.
In log folder I can see two dump files, one is related to todays crash and second one is 2 months old.
Running kC 1000 on dumps both generates identical result.
Version Information (select @@version):
Microsoft SQL Server 2008 R2 (SP1) – 10.50.2500.0 (X64) Jun 17 2011 00:54:03
Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)
0:000> lmvm sqlservr
start end module name
00000000`00ed0000 00000000`04aad000 sqlservr T (pdb symbols) d:\debug_symbols\sqlservr.pdb\13165A9929E847D997E11887F2F963AE2\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Sat Jun 18 00:18:09 2011 (4DFB6221)
CheckSum: 03B3E8A1
ImageSize: 03BDD000
File version: 2009.100.2500.0
Product version: 10.50.2500.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
0:000> .ecxr
rax=00000000ee9521f4 rbx=000000000449ec90 rcx=0000000027dcc910
rdx=0000000000000000 rsi=000000000407ccbc rdi=0000000000000440
rip=000007fefdf1cacd rsp=0000000027dccf20 rbp=0000000027dcfc80
r8=0000000000000000 r9=0000000000000000 r10=00000000c000007c
r11=00000000017b92d0 r12=0000000000004a40 r13=0000000000000000
r14=0000000000000000 r15=0000000000004a40
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
KERNELBASE!RaiseException+0x39:
000007fe`fdf1cacd 4881c4c8000000 add rsp,0C8h
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO
0x0
0x0
0x0
0:000> lmvm msxml6
start end module name
000007fe`f6af0000 000007fe`f6ce2000 msxml6 (private pdb symbols) d:\debug_symbols\msxml6.pdb\8EF4A994F018436F8083CD5C89BF8EB72\msxml6.pdb
Loaded symbol image file: msxml6.dll
Mapped memory image file: D:\Debug_Symbols\msxml6.dll\4CE7C8411f2000\msxml6.dll
Image path: C:\Windows\System32\msxml6.dll
Image name: msxml6.dll
Timestamp: Sun Nov 21 00:08:17 2010 (4CE7C841)
CheckSum: 001F86CD
ImageSize: 001F2000
File version: 6.30.7601.17514
Product version: 6.30.7601.17514
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0000.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft(R) MSXML 6.0 SP3
InternalName: MSXML6.dll
OriginalFilename: MSXML6.dll
ProductVersion: 6.30.7601.17514
FileVersion: 6.30.7601.17514
FileDescription: MSXML 6.0 SP3
LegalCopyright: Copyright (C) Microsoft Corporation. 1981-2008
0:000> lmvm mso
start end module name
000007fe`df6d0000 000007fe`e0f02000 MSO T (no symbols)
Loaded symbol image file: MSO.DLL
Image path: C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL
Image name: MSO.DLL
Timestamp: Wed Mar 24 05:22:16 2010 (4BA906D8)
CheckSum: 01832834
ImageSize: 01832000
File version: 14.0.4760.1000
Product version: 14.0.4760.0
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
Thanks
Farhan
Karthick P.K said
Hello Farhan,
Apply http://support.microsoft.com/kb/2516475 ..It should solve the issue.
Farhan said
Thank you very much Karthick, I will apply this hotfix and will let you know how it goes.
Thanks
Regards,
Farhan
Non-yielding IOCP Listener, Non-yielding Scheduler and non-yielding resource monitor known issues and fixes « MSSQLWIKI said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion […]
Roi said
Hi Karthick,
Great article, thanks!
I will appreciate help with the following dump:
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 9.00.3077.00
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is AT/AT COMPATIBLE.
Current time is 11:22:15 04/09/13.
16 Unknown CPU 9., 2400 Mhz processor (s).
Windows NT 5.2 Build 3790 CSD Service Pack 2.
Memory
MemoryLoad = 98%
Total Physical = 32767 MB
Available Physical = 582 MB
Total Page File = 80823 MB
Available Page File = 48552 MB
Total Virtual = 8388607 MB
Available Virtual = 8354540 MB
***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0018.txt
SqlDumpExceptionHandler: Process 476 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 04/09/13 11:22:15 spid 476
*
*
* Exception Address = 000000007814E3A4 Module(MSVCR80+000000000001E3A4)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 0000000000000014
* Input Buffer 510 bytes –
*
Here comes a query which runs every day for several years now – executed by a job in a loop through working hours.
after this error occured SQL Server rejected all new connections (except for local login).
Call Site
msvcr80!memcpy
sqlservr!CSession::CopyDeepMember
sqlservr!CSession::GetUserSid
sqlservr!CSTVFSysSess::GetRow
sqlservr!CQScanTVFStreamNew::GetRow
sqlservr!CQScanSortNew::BuildSortTable
sqlservr!CQScanSortNew::OpenHelper
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanNLJoinNew::Open
sqlservr!CQScanNLJoinNew::Open
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanNLJoinNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanTopNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanSpoolNew::LoadSpool
sqlservr!_chkstk
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanUpdateNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtDML::XretDMLExecute
sqlservr!CXStmtDML::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!_chkstk
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExec::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!_chkstk
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadStart
I would like to understand what really happend there,
and to prevent it from happening again.
Thanks very much,
Roi
Karthick P.K said
Hello Roi,
I think you are hitting a know issue mentioned in http://support.microsoft.com/kb/940281
Update your SQLServer to Cumulative update package 3 for SQL Server 2005 Service Pack 2 or higher to resolve this.
Roi said
Hi Karthick,
Thanks for the very quick response!
I believe that you are correct and that this is my issue,
as i do have a second dump and error messages resembling
the “…appears to be non-yielding on Scheduler…” as mentioned in the link you posted.
My next step is to temporarily disable the Agent Job which is monitoring sys.dm_exec_sessions,
and inform my manager of the issue.
He will have to decide if he wants to apply the update,
or wait for our scheduled upgrade to SQL Server 2012
(which is due next month and will probably be delayed forever…)
I would love to know how you found that this is the issue,
and would appreciate it if you can direct me to some documentation
which will help me solve such problems on my own in the future.
Again, Thank you very much!!!
Roi
Roi said
Hello Karthick,
You must have missed my previous reply,
could you please direct me to some documentation?
I would really love to learn in-depth internals.
Thanks,
Roi
Drake Teran said
Some assistance; i also received an EXCEPTION_ACCESS_VIOLATION with errors (Error: 17310, Severity: 20, State: 1) and (Error: 17311, Severity: 16, State: 1). I am curious if this is related to the known SQL bug identified http://support.microsoft.com/kb/972936 (many thanks in advance)
SQLDump0110:
0:000> kC 1000
Call Site
fs4odbc64
0x0
kernel32!HeapFree
fs4odbc64
SQLDump0111:
0:000> kC 1000
Call Site
fs4odbc64
fs4odbc64
0x0
ntdll!_C_specific_handler
0x0
0x0
0x0
0x0
sspicli!_dyn_tls_init_callback (sspicli+0x217d4)
0x0
ntdll!RtlDispatchException
0x0
0x0
0x0
SQLDump0112:
0:000> kc 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
ntdll!RtlEnterCriticalSection
fs4odbc64
SQLDump0113:
0:000> kC 1000
Call Site
fs4odbc64
fs4odbc64
0x0
ntdll!_C_specific_handler
0x0
0x0
0x0
0x0
sspicli!_dyn_tls_init_callback (sspicli+0x217d4)
0x0
ntdll!RtlDispatchException
ntdll!RtlpAllocateUserBlock
0x0
0x0
0x0
SQLDump0114:
0:000> kC 1000
Call Site
fs4odbc64
fs4odbc64
0x0
ntdll!_C_specific_handler
0x0
0x0
0x0
0x0
sspicli!_dyn_tls_init_callback (sspicli+0x217d4)
0x0
ntdll!RtlDispatchException
0x0
0x0
0x0
SQLDump0115:
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
ntdll!RtlEnterCriticalSection
fs4odbc64
Drake Teran said
Current time is 01:34:21 04/15/13.
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 10.50.2500.0
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is Intel(R) Xeon(R) CPU X5660 @ 2.80GHz.
Bios Version is INTEL – 6040000
PhoenixBIOS 4.0 Release 6.0
4 X64 level 8664, 14 Mhz processor (s).
Windows NT 6.1 Build 7601 CSD Service Pack 1.
Memory
MemoryLoad = 80%
Total Physical = 12287 MB
Available Physical = 2429 MB
Total Page File = 24573 MB
Available Page File = 14413 MB
Total Virtual = 8388607 MB
Available Virtual = 8375683 MB
***Stack Dump being sent to F:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\LOG\SQLDump0110.tx
t
SqlDumpExceptionHandler: Process 62 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 04/15/13 01:34:21 spid 62
*
*
* Exception Address = 000007FEF1A06BA3 Module(fs4odbc64+0000000000006BA3)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred writing address 0000000016243304
* Input Buffer 110 bytes –
* exec DataDispatch.dbo.dp_MasterDispatcher 3;
Drake Teran said
*
* MODULE BASE END SIZE
* sqlservr 0000000000D00000 00000000048DCFFF 03bdd000
* ntdll 0000000076F20000 00000000770C8FFF 001a9000
* kernel32 0000000076E00000 0000000076F1EFFF 0011f000
* KERNELBASE 000007FEFD0D0000 000007FEFD13BFFF 0006c000
* ADVAPI32 000007FEFDFB0000 000007FEFE08AFFF 000db000
* msvcrt 000007FEFEF90000 000007FEFF02EFFF 0009f000
* sechost 000007FEFDF90000 000007FEFDFAEFFF 0001f000
* RPCRT4 000007FEFE0D0000 000007FEFE1FCFFF 0012d000
* MSVCR80 0000000074B70000 0000000074C38FFF 000c9000
* MSVCP80 00000000747E0000 00000000748E8FFF 00109000
* sqlos 0000000074740000 0000000074746FFF 00007000
* Secur32 000007FEFCA20000 000007FEFCA2AFFF 0000b000
* SSPICLI 000007FEFCCD0000 000007FEFCCF4FFF 00025000
* pdh 000007FEF7660000 000007FEF76ADFFF 0004e000
* SHLWAPI 000007FEFDA90000 000007FEFDB00FFF 00071000
* GDI32 000007FEFDEA0000 000007FEFDF06FFF 00067000
* USER32 0000000076D00000 0000000076DF9FFF 000fa000
* LPK 000007FEFDC20000 000007FEFDC2DFFF 0000e000
* USP10 000007FEFD9C0000 000007FEFDA88FFF 000c9000
* USERENV 000007FEFC210000 000007FEFC22DFFF 0001e000
* profapi 000007FEFCE30000 000007FEFCE3EFFF 0000f000
* WINMM 000007FEF7620000 000007FEF765AFFF 0003b000
* IPHLPAPI 000007FEFB2F0000 000007FEFB316FFF 00027000
* NSI 000007FEFE0C0000 000007FEFE0C7FFF 00008000
* WINNSI 000007FEFB260000 000007FEFB26AFFF 0000b000
* opends60 0000000074720000 0000000074727FFF 00008000
* NETAPI32 000007FEFAD70000 000007FEFAD85FFF 00016000
* netutils 000007FEFC830000 000007FEFC83BFFF 0000c000
* srvcli 000007FEFC910000 000007FEFC932FFF 00023000
* wkscli 000007FEFAD10000 000007FEFAD24FFF 00015000
* LOGONCLI 000007FEFC4C0000 000007FEFC4EFFFF 00030000
* SAMCLI 000007FEFA390000 000007FEFA3A3FFF 00014000
* BatchParser 00000000746D0000 00000000746FCFFF 0002d000
* IMM32 000007FEFE090000 000007FEFE0BDFFF 0002e000
* MSCTF 000007FEFDB10000 000007FEFDC18FFF 00109000
* psapi 00000000770E0000 00000000770E6FFF 00007000
* instapi10 0000000074730000 000000007473CFFF 0000d000
* cscapi 000007FEFA740000 000007FEFA74EFFF 0000f000
* sqlevn70 00000000744C0000 00000000746C2FFF 00203000
* CRYPTSP 000007FEFC8E0000 000007FEFC8F6FFF 00017000
* rsaenh 000007FEFC3D0000 000007FEFC416FFF 00047000
* CRYPTBASE 000007FEFCD60000 000007FEFCD6EFFF 0000f000
* BROWCLI 000007FEF6FF0000 000007FEF7001FFF 00012000
* AUTHZ 000007FEFC8B0000 000007FEFC8DEFFF 0002f000
* MSCOREE 000007FEFA230000 000007FEFA29EFFF 0006f000
* ole32 000007FEFD470000 000007FEFD672FFF 00203000
* credssp 000007FEFC2F0000 000007FEFC2F9FFF 0000a000
* msv1_0 000007FEFC600000 000007FEFC650FFF 00051000
* cryptdll 000007FEFCA30000 000007FEFCA43FFF 00014000
* kerberos 000007FEFC6C0000 000007FEFC773FFF 000b4000
* MSASN1 000007FEFCF10000 000007FEFCF1EFFF 0000f000
* schannel 000007FEFC460000 000007FEFC4B7FFF 00058000
* CRYPT32 000007FEFCF60000 000007FEFD0C9FFF 0016a000
* security 00000000744B0000 00000000744B2FFF 00003000
* WS2_32 000007FEFDDB0000 000007FEFDDFCFFF 0004d000
* SHELL32 000007FEFE200000 000007FEFEF87FFF 00d88000
* OLEAUT32 000007FEFD8E0000 000007FEFD9B6FFF 000d7000
* ftimport 0000000060000000 0000000060024FFF 00025000
* MSFTE 0000000049980000 0000000049D2DFFF 003ae000
* VERSION 000007FEFBFB0000 000007FEFBFBBFFF 0000c000
* dbghelp 0000000073110000 000000007326DFFF 0015e000
* WINTRUST 000007FEFCF20000 000007FEFCF59FFF 0003a000
* ncrypt 000007FEFC7B0000 000007FEFC7FDFFF 0004e000
* bcrypt 000007FEFC880000 000007FEFC8A1FFF 00022000
* mswsock 000007FEFC660000 000007FEFC6B4FFF 00055000
* wship6 000007FEFC820000 000007FEFC826FFF 00007000
* wshtcpip 000007FEFC080000 000007FEFC086FFF 00007000
* ntmarta 000007FEFBF80000 000007FEFBFACFFF 0002d000
* WLDAP32 000007FEFD370000 000007FEFD3C1FFF 00052000
* ntdsapi 000007FEFA7A0000 000007FEFA7C6FFF 00027000
* DNSAPI 000007FEFC4F0000 000007FEFC54AFFF 0005b000
* rasadhlp 000007FEFA7D0000 000007FEFA7D7FFF 00008000
* fwpuclnt 000007FEFB1B0000 000007FEFB202FFF 00053000
* bcryptprimitives 000007FEFC310000 000007FEFC35BFFF 0004c000
* SAMLIB 000007FEFA370000 000007FEFA38CFFF 0001d000
* CLBCatQ 000007FEFDE00000 000007FEFDE98FFF 00099000
* sqlncli10 00000000725A0000 000000007285BFFF 002bc000
* COMCTL32 000007FEFA2A0000 000007FEFA33FFFF 000a0000
* COMDLG32 000007FEFD3D0000 000007FEFD466FFF 00097000
* SQLNCLIR10 0000000072190000 00000000721C6FFF 00037000
* netbios 000007FEF4AB0000 000007FEF4AB9FFF 0000a000
* xpsqlbot 0000000072080000 0000000072087FFF 00008000
* xpstar 0000000071FF0000 0000000072077FFF 00088000
* SQLSCM 0000000072430000 000000007243DFFF 0000e000
* ODBC32 000007FEF4D10000 000007FEF4DC0FFF 000b1000
* ATL80 0000000074B20000 0000000074B3FFFF 00020000
* odbcint 00000000722E0000 0000000072317FFF 00038000
* clusapi 000007FEF6170000 000007FEF61BFFFF 00050000
* resutils 000007FEF6150000 000007FEF6168FFF 00019000
* xpstar 0000000071FC0000 0000000071FE4FFF 00025000
* xplog70 0000000071FB0000 0000000071FBFFFF 00010000
* xplog70 0000000071FA0000 0000000071FA1FFF 00002000
* dsrole 000007FEFBBD0000 000007FEFBBDBFFF 0000c000
* oledb32 000007FEF1A50000 000007FEF1B5DFFF 0010e000
* MSDART 000007FEF1EA0000 000007FEF1EC7FFF 00028000
* Comctl32 000007FEFB7F0000 000007FEFB9E3FFF 001f4000
* OLEDB32R 0000000066C80000 0000000066C93FFF 00014000
* comsvcs 000007FEF45F0000 000007FEF479FFFF 001b0000
* msdasql 000007FEF0E10000 000007FEF0EC5FFF 000b6000
* MSDATL3 000007FEF1E80000 000007FEF1E9FFFF 00020000
* MSDASQLR 0000000066C70000 0000000066C7EFFF 0000f000
* RpcRtRemote 000007FEFCE10000 000007FEFCE23FFF 00014000
* fs4odbc64 000007FEF1A00000 000007FEF1A4CFFF 0004d000
* LIBEAY32 000000000FBC0000 000000000FD36FFF 00177000
* WSOCK32 000007FEF1E70000 000007FEF1E78FFF 00009000
* SSLEAY32 0000000005020000 0000000005075FFF 00056000
* odbccp32 000007FEF17A0000 000007FEF17C7FFF 00028000
* instapi 0000000048060000 000000004806CFFF 0000d000
* dbghelp 00000000715A0000 00000000716FDFFF 0015e000
*
* P1Home: 00000000297B7AD0: 00000000C0000005 0000000000000000 000007FEF1A06BA3 0000000000000002 00000000
00000001 0000000016243304
* P2Home: 00000000297B75E0: 00000000297B7AD0 00000000297B75E0 0000000000000000 0000000000000000 00000000
297B79A8 007400780045005C
* P3Home: 0000000000000000:
* P4Home: 0000000000000000:
* P5Home: 00000000297B79A8: 0000000000010000 000000000000002C 00000000297B79D0 00000000297B79E0 00000078
C12C9653 00000000297B7BE0
* P6Home: 007400780045005C:
* ContextFlags: 000000000010001F:
* MxCsr: 0000000000001F80:
* SegCs: 0000000000000033:
* SegDs: 000000000000002B:
* SegEs: 000000000000002B:
* SegFs: 0000000000000053:
* SegGs: 000000000000002B:
* SegSs: 000000000000002B:
* EFlags: 0000000000010246: 0000000000000000 0000000101580000 0000000102680000 0000000102780000 00000000
00000000 0000001000000000
* Rax: 0000000000000000:
* Rcx: 0000000016243070:
* Rdx: 0000000000000000:
* Rbx: 0000000000376B20: 0000000000000002 0000000000776CC0 0000000000000000 0000000000000000 00000000
00000000 0000000000000000
* Rsp: 00000000297B7BA0: 0000000016232E30 0000000076E2301A 0000000000376B20 0000000000376B20 00000000
00000000 000007FEF1A043D5
* Rbp: 0000000000000001:
* Rsi: 000000000038D650: 000000000F4FC570 0000000000376B20 0000000000000000 00000000162E12F0 00000000
00376B20 00000000162E12F0
* Rdi: 000000000037AC20: 0000000000000003 0000000000776CC0 0000000000000000 0000000000000000 00000000
00000000 0000000000000000
* R8: 00000000297B7A98: 0000000000000000 0000000000000000 0000000000000000 000005C0FFFFFB30 000004D0
FFFFFB30 00000000000000F0
* R9: 0000000000008000:
* R10: 0000000000000000:
* R11: 0000000000000286:
* R12: 0000000000000010:
* R13: 0000000000000000:
* R14: 0000000000000000:
* R15: 0000000000000000:
* Rip: 000007FEF1A06BA3: 3300000294818966 8B480000014DE9C0 029480B70F702444 077E782444390000 33000001
34E9C033 B70F5024448966C0
* *******************************************************************************
* ——————————————————————————-
* Short Stack Dump
000007FEF1A06BA3 Module(fs4odbc64+0000000000006BA3)
000007FEF1A15867 Module(fs4odbc64+0000000000015867)
000007FEF4D13BA9 Module(ODBC32+0000000000003BA9)
000007FEF4D7BA8E Module(ODBC32+000000000006BA8E)
000007FEF0E49D53 Module(msdasql+0000000000039D53)
000007FEF0E34679 Module(msdasql+0000000000024679)
000007FEF0E34584 Module(msdasql+0000000000024584)
000007FEF0E354A4 Module(msdasql+00000000000254A4)
000007FEF1A5647E Module(oledb32+000000000000647E)
000007FEF1A563D2 Module(oledb32+00000000000063D2)
000007FEF1A55E56 Module(oledb32+0000000000005E56)
00000000017804E0 Module(sqlservr+0000000000A804E0)
0000000001873015 Module(sqlservr+0000000000B73015)
0000000001871999 Module(sqlservr+0000000000B71999)
0000000001871410 Module(sqlservr+0000000000B71410)
000000000186DCE8 Module(sqlservr+0000000000B6DCE8)
000000000134160E Module(sqlservr+000000000064160E)
0000000000F70E36 Module(sqlservr+0000000000270E36)
0000000000F755B7 Module(sqlservr+00000000002755B7)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
0000000000FB7183 Module(sqlservr+00000000002B7183)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
0000000000FC6720 Module(sqlservr+00000000002C6720)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
000000000104C380 Module(sqlservr+000000000034C380)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
0000000000FB7183 Module(sqlservr+00000000002B7183)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
00000000012DA59A Module(sqlservr+00000000005DA59A)
000000000123A181 Module(sqlservr+000000000053A181)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
00000000012386F7 Module(sqlservr+00000000005386F7)
0000000000F6BA93 Module(sqlservr+000000000026BA93)
0000000000F6B958 Module(sqlservr+000000000026B958)
0000000000F6BB0E Module(sqlservr+000000000026BB0E)
0000000000ED37A5 Module(sqlservr+00000000001D37A5)
0000000000E96644 Module(sqlservr+0000000000196644)
0000000000E97259 Module(sqlservr+0000000000197259)
0000000000E970FC Module(sqlservr+00000000001970FC)
00000000021DC97F Module(sqlservr+00000000014DC97F)
00000000021FF7E8 Module(sqlservr+00000000014FF7E8)
00000000021FB741 Module(sqlservr+00000000014FB741)
0000000000D69A86 Module(sqlservr+0000000000069A86)
0000000000D6B4AF Module(sqlservr+000000000006B4AF)
0000000000D6AD6C Module(sqlservr+000000000006AD6C)
00000000021FDA1C Module(sqlservr+00000000014FDA1C)
00000000021FD37A Module(sqlservr+00000000014FD37A)
00000000021FB36D Module(sqlservr+00000000014FB36D)
0000000000D69A86 Module(sqlservr+0000000000069A86)
0000000000D6B4AF Module(sqlservr+000000000006B4AF)
0000000000D6AD6C Module(sqlservr+000000000006AD6C)
00000000021FDA1C Module(sqlservr+00000000014FDA1C)
00000000021FD37A Module(sqlservr+00000000014FD37A)
00000000021FB36D Module(sqlservr+00000000014FB36D)
0000000000D69A86 Module(sqlservr+0000000000069A86)
0000000000D6B4AF Module(sqlservr+000000000006B4AF)
0000000000D6AD6C Module(sqlservr+000000000006AD6C)
00000000021FDA1C Module(sqlservr+00000000014FDA1C)
00000000021FD37A Module(sqlservr+00000000014FD37A)
00000000021FB36D Module(sqlservr+00000000014FB36D)
0000000000D69A86 Module(sqlservr+0000000000069A86)
0000000000D6B4AF Module(sqlservr+000000000006B4AF)
0000000000D6AD6C Module(sqlservr+000000000006AD6C)
0000000000D8CFA6 Module(sqlservr+000000000008CFA6)
0000000000DB65E2 Module(sqlservr+00000000000B65E2)
0000000000D0B450 Module(sqlservr+000000000000B450)
0000000000D0B116 Module(sqlservr+000000000000B116)
0000000000D0AF5B Module(sqlservr+000000000000AF5B)
0000000000E444FA Module(sqlservr+00000000001444FA)
0000000000E447DD Module(sqlservr+00000000001447DD)
000000000128C0CD Module(sqlservr+000000000058C0CD)
0000000000E453D2 Module(sqlservr+00000000001453D2)
0000000074B737D7 Module(MSVCR80+00000000000037D7)
0000000074B73894 Module(MSVCR80+0000000000003894)
0000000076E1652D Module(kernel32+000000000001652D)
0000000076F4C521 Module(ntdll+000000000002C521)
CSession @0x00000001EF71A3B0
—————————-
m_spid = 62 m_cRef = 14 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 11 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0x00000001EF71A080
m_pstackBhfPool = 0x00000001EEBA7120 m_dwLoginFlags = 0x83e0 m_fBackground = 0
m_eConnResetOption = 0 m_fUserProc = -1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fAuditLoginSent = 1
m_fAuditLoginFailedSent = 0 m_fReplRelease = 0 m_fKill = 0
m_ulLoginStamp = 5045 m_eclClient = 6 m_protType = 6
m_hHttpToken = FFFFFFFFFFFFFFFF
m_pV7LoginRec
———————
0000000000000000: 9a010000 03000b73 00100000 00000007 e0070000 †……s……..à…
0000000000000014: 00000000 e0830000 e0010000 09040000 5e000900 †….à..à… …^. .
0000000000000028: 00000000 00000000 70004900 02010000 00000000 †……..p.I………
000000000000003C: 02010400 0a010000 0a010c00 0050568d 6eec2201 †………….PV.nì”.
0000000000000050: 78002201 00000000 00000000 0000†††††††††††††††x.”………..
CPhysicalConnection @0x00000001EF71A270
—————————————
m_pPhyConn->m_pmo = 0x00000001EF71A080
m_pPhyConn->m_pNetConn = 0x00000001EF71AAD0
m_pPhyConn->m_pConnList = 0x00000001EF71A380
m_pPhyConn->m_pSess = 0x00000001EF71A3B0 m_pPhyConn->m_fTracked = -1
m_pPhyConn->m_cbPacketsize = 4096 m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0
CBatch @0x00000001EF71AFA0
————————–
m_pSess = 0x00000001EF71A3B0 m_pConn = 0x00000001EF71AEA0 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x000000000043F708
EXCEPT (null) @0x00000000297B4938
———————————
exc_number = 0 exc_severity = 0 exc_func = 0x000000000320F2A4
Task @0x000000000043F708
————————
CPU Ticks used (ms) = 28929974 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x0000000000000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x0000000000000000
WAITINFO_EXTERNAL: WaitResource = 0x0000000000000000
WAITINFO_EXTERNAL: WaitType = 0x200001D9
WAITINFO_EXTERNAL: WaitSpinlock = 0x0000000000000000 SchedulerId = 0x0
ThreadId = 0xfe0 m_state = 0 m_eAbortSev = 0
EC @0x00000001EF71BEC0
———————-
spid = 0 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x0 ec_atomic = 0x0 __fSubProc = 1
__pSETLS = 0x00000001EF71AF10 __pSEParams = 0x00000001EF71B350
SEInternalTLS @0x00000001EF71AF10
———————————
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x000000000043F708
m_activeHeapDatasetList = 0x00000001EF71AF10
m_activeIndexDatasetList = 0x00000001EF71AF20 m_pDbccContext = 0x0000000000000000
SEParams @0x00000001EF71B350
—————————-
m_lockTimeout = -1 m_isoLevel = 4096 m_logDontReplicate = 0
m_neverReplicate = 0 m_XactWorkspace = 0x00000001EB7BF090
m_pSessionLocks = 0x00000001EEBA6A70 m_pDbLocks = 0x00000001EF71B870
m_execStats = 0x0000000084E82240 m_pAllocFileLimit = 0x0000000000000000
green accounting and financing said
Hiya! I simply wish to give an enormous thumbs up for the nice
information you may have right here on this post.
I can be coming again to your blog for extra soon.
Neret said
Hi Karthick !
Coul you help me with this, please???
This is the stack of thread which caused exception:
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO!Ordinal398
MSO!Ordinal9364
MSO!Ordinal9364
MSO!Ordinal9364
MSO!Ordinal9694
MSO!Ordinal4349
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thanks!
Karthick P.K said
Hello Neret, Apply http://support.microsoft.com/kb/2516475 .It should solve the issue. Note: After applying the fix check if MSO.dll is update to version mentioned in KB. If not try running repair on Microsoft access database engine, It should update your MSO.DLL version Thanks
Marek_Warszawa said
Dear Karthick,
I have done the steps described in your article and got the below stack trace.
Could you please help solve the problem?
0:000> kC 1000
Call Site
0x0
0x0
sqlservr!CConstraintProp::FAndNonItvlConst
sqlservr!CConstraintProp::FAndNonItvlConstraint
sqlservr!CConstraintProp::AndNewConstraint
sqlservr!CConstraintProp::PcnstrDeriveSelect
sqlservr!CLogOp_Select::PcnstrDerive
sqlservr!CLogOpArg::PcnstrDeriveHandler
sqlservr!CLogOpArg::DeriveGroupProperties
sqlservr!COpArg::DeriveNormalizedGroupProperties
sqlservr!COptExpr::DeriveGroupProperties
sqlservr!COptExpr::DeriveGroupProperties
sqlservr!COptExpr::DeriveGroupProperties
sqlservr!COptExpr::DeriveGroupProperties
sqlservr!COptExpr::DeriveGroupProperties
sqlservr!CQuery::PqoBuild
sqlservr!CStmtQuery::InitQuery
sqlservr!alloca_probe
sqlservr!CStmtCursorSelect::Init
sqlservr!CCompPlan::FCompileStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Execute
sqlservr!ExecuteSql
sqlservr!SPCursor::CursorExecPrepExecOpen
sqlservr!SPCursor::Open
sqlservr!CSpecProc::ExecuteSpecial
sqlservr!CSpecProc::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
0x0
0x0
Thanks in advance,
Marek
Karthick P.K said
Marek,
What is the version of SQL of your SQLServer (select @@version). I think you are in RTM version of SQLServer2005. I remember this is fixed in 9.0.1500. Please upgrade to latest service pack for SQLServer 2005
Marek_Warszawa said
Hi,
This is information from SQL Server log files:
Microsoft SQL Server 2008 (SP3) – 10.0.5512.0 (X64)
Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (VM)
Computer type is AMD Opteron(TM) Processor 6274 .
Bios Version is INTEL – 6040000
PhoenixBIOS 4.0 Release 6.0
2 X64 level 8664, 14 Mhz processor (s).
Windows NT 6.1 Build 7601 CSD Service Pack 1.
Memory:
MemoryLoad = 96%
Total Physical = 4095 MB
Available Physical = 129 MB
Total Page File = 8189 MB
Available Page File = 2214 MB
Total Virtual = 8388607 MB
Available Virtual = 8380146 MB
What could be the reason in this case?
BR,
Marek
Karthick P.K said
Two frames are corrupted so it’s difficult to crack
Call Site
0×0 ====>corrupted
0×0 0×0 ====>corrupted
sqlservr!CConstraintProp::FAndNonItvlConst
sqlservr!CConstraintProp::FAndNonItvlConstraint
Do you pass so many values in the IN clause of the query which causing this access violation? (You will find the input buffer in errorlog along with access violation message)
Can you reproduce this issue consistently?
Michiel said
Hello Karthick,
Great blog!
Can you please help me with this dump?
Our sql-server did not respond to request from other servers anymore.
After restarting MSSQLSERVER service it all worked again.
***************
Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\Temp\SQLDump0005.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Program fault handler’
Comment: ’05/13/13 17:17:42 spid 0 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION writing address 0000000000C4DA54 at 0x0000000000649889
‘
Symbol search path is: srv*c:\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 7 Version 7600 MP (2 procs) Free x64
Product: Server, suite: Enterprise TerminalServer SingleUserTS
Machine Name:
Debug session time: Mon May 13 17:17:56.000 2013 (GMT+2)
System Uptime: 66 days 18:15:01.669
Process Uptime: 66 days 18:11:58.000
……………………………………………………….
………………………….
Loading unloaded module list
……………………………………………………………
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(4f4.1fe8): Access violation – code c0000005 (first/second chance not available)
ntdll!ZwWaitForSingleObject+0xa:
00000000`7780f6fa c3 ret
***************
0:000> .ecxr
rax=00000000002afde0 rbx=00000004a1980528 rcx=00000000008122c0
rdx=0000000080018001 rsi=00000003609686a0 rdi=00000004a19804e0
rip=0000000000649889 rsp=000000001a1bde20 rbp=00000004a19803a0
r8=0000000000649960 r9=0000000000000254 r10=000007fffff70000
r11=000000001a1bde06 r12=0000000000000006 r13=000000001a1bdfa0
r14=0000000000000000 r15=000000028f156fa0
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
Unable to load image D:\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlservr.exe
sqlservr!CCriticalSectionSOS::Initialize+0x71:
00000000`00649889 488908 mov qword ptr [rax],rcx ds:00000000`002afde0=????????????????
***************
0:000> lmvm sqlservr
start end module name
00000000`00260000 00000000`03e10000 sqlservr T (pdb symbols) c:\symbols\sqlservr.pdb\E0E45C4EB0C64908A90279B30F42FACA2\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Image path: D:\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Sat Apr 23 14:44:29 2011 (4DB2C9AD)
CheckSum: 03B10238
ImageSize: 03BB0000
File version: 2009.100.1617.0
Product version: 10.50.1617.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
***************
0:000> .ecxr
rax=00000000002afde0 rbx=00000004a1980528 rcx=00000000008122c0
rdx=0000000080018001 rsi=00000003609686a0 rdi=00000004a19804e0
rip=0000000000649889 rsp=000000001a1bde20 rbp=00000004a19803a0
r8=0000000000649960 r9=0000000000000254 r10=000007fffff70000
r11=000000001a1bde06 r12=0000000000000006 r13=000000001a1bdfa0
r14=0000000000000000 r15=000000028f156fa0
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
sqlservr!CCriticalSectionSOS::Initialize+0x71:
00000000`00649889 488908 mov qword ptr [rax],rcx ds:00000000`002afde0=????????????????
***************
0:000> kc 1000
Call Site
sqlservr!CCriticalSectionSOS::Initialize
sqlservr!CryptoBase::FInit
sqlservr!SNIAddProvider
sqlservr!TDSSNIClient::FAddSSLProvider
sqlservr!process_prelogin
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thanks for your help!
Michiel.
Karthick P.K said
Hello Michiel,
This issue has been fixed in CU6 for SQL Server 2008 R2. Please apply the patch
Michiel said
Hi Karthick,
Thanks for the fast reply!
A colleague of mine just came up with the same solution 🙂
If the problem returns I will let you know but I think that won’t be necessary
Thanks again.
Michiel.
Jose P said
does anyone can help find what wrong here?
0:000> kc 1000
Call Site
sqldk!CMemObj::Free
sqlmin!commondelete
sqlmin!IndexAnalysis::ExecuteCleanupAction
sqlmin!IndexAnalysis::GetNextRow
sqlmin!CIndexAnalysisSTVF::InternalGetRow
sqlmin!CQScanTVFStreamNew::GetRow
sqlmin!CQScanFilterNew::GetRowHelper
sqlmin!CQScanNLJoinNew::GetRowHelper
sqlmin!CQScanRangePrefetchDelayNew::GetRow
sqlmin!CQScanNLJoinTrivialNew::GetRow
sqlmin!CQScanNLJoinNew::GetRowHelper
sqlmin!CQueryScan::GetRow
sqllang!CXStmtQuery::ErsqExecuteQuery
sqllang!CXStmtCondWithQuery::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
I think you are hitting known issue documented in http://support.microsoft.com/kb/2837604 .Apply CU4 for 2102 SP1 it should solve your issue
Chris Page said
Hi thanks for the blog – gives me some hope of finding an answer 🙂 Stack below appeared today – this is the second time I have run a set of code on this server (is running on others of lower / same SQL versions with no problems) so was quite surprised to encounter an issue, many thanks :
0:000> KC 1000
Call Site
sqlservr!CVariableInfo::CVarBlock::PvbJoin
sqlservr!CVariableInfo::PviRelease
sqlservr!CVarPageMgr::Release
sqlservr!CMemObj::Free
sqlservr!IndexAnalysis::Cleanup
sqlservr!IndexAnalysis::ObjectIterator
sqlservr!IndexAnalysis::GetNextRow
sqlservr!CRowsetIndexAnalysis::FGetNextRow
sqlservr!CUtRowset::GetNextRows
sqlservr!CQScanRmtScanNew::GetRowHelper
sqlservr!CQScanStreamAggregateNew::GetRowHelper
sqlservr!CQScanStreamAggregateNew::GetCalculatedRow
sqlservr!CQScanStreamAggregateNew::Open
sqlservr!CQScanNLJoinTrivialNew::GetRow
sqlservr!CQScanStreamAggregateNew::GetRowHelper
sqlservr!CQScanStreamAggregateNew::GetCalculatedRow
sqlservr!CQScanStreamAggregateNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanUpdateNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::InitForExecute
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtDML::XretDMLExecute
sqlservr!CXStmtDML::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecStr::XretExecStrExecute
sqlservr!CXStmtExecStr::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hello Chris,
Do you get this dump when you use linked server queries?
Note: You can find the query in SQL Server error log after the dump
Chris Page said
Hi karthick,
The code is running against the same server as the agent is on so no linked server activity of any sort. The query in the log didn’t tell me much because it contains the whole query from the agent task which calls 2 stored procs that themselves lead to individuals tables and indexes so doesn’t align with what appears to be the failure point from the default trace.
Karthick P.K said
Chris,
This issue is very unique and very difficult to crack without analyzing the dump. I am not sure how feasible it is for you to share the dump with me (Though I am interested I will not recommend). I would recommend you to create a support case with Microsoft SQL Server support.
This looks like a BUG for me but cant confirm unless I look at the dump.
Chris Page said
Thanks kathrick, the problem hasn’t recurred here, however, I have seen the message that the agent was giving me in a previous role but not picked up core dumps on those occassions so I’ve gone back to an ex-colleague to see if the problem is actually manifesting the same there so we’ll be able to have more material to co-ordinate any issues raised.
Chris
Hilda said
Hi Karthick, I’m hoping you could also help in figuring this out.
I get the following when I try to read the stack dump
0:000> kC 1000
Call Site
ntdll!ZwWaitForSingleObject
KERNELBASE!WaitForSingleObjectEx
sqlservr!CDmpDump::DumpInternal
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!ContextDumpNoStackOverflow
sqlservr!ContextDump
sqlservr!stackTraceExceptionFilter
sqlservr!SOS_OS::ExecuteDumpExceptionHandlerRoutine
sqlservr!IsNXException
sqlservr!ex_trans_cexcept
sqlservr!SOS_SEHTranslator
msvcr80!_CallSETranslator
0x0
0x0
0x0
Do you have an idea of where the problem resides? the stack dump is being created when I ran a DBCC CHECKDB(database)
Thanks you.
Karthick P.K said
Hello Hilda,
I was traveling so couldn’t reply earlier. My apologies for slow response.This should be because of database corruption since you are getting dumps when you are running checkdb.
Stack is broken so I couldn’t pin point the issue. Do you see any rows in SELECT * FROM msdb..suspect_pages ? If yes then fix the corruption, else share the dump I will look at it.
perales.hilda@gmail.com said
Thank you Karthick for replying back. Since then I’ve been terrible busy. Here’s the solution for my problem (http://www.sqlservercentral.com/articles/upgrading/100696/) Interesting enough it was all related to an upgrade on our server and the GIS databases not bein compatible with the new version of SQL Server.
Salvatore said
Hi Karthick,
first of all thanks for your great MSSQLWIKI pages on crash dump analysis, they are truly interesting!
I hope you can help me on this issue, I have had a crash on an MSSQL 2008 R2 SP1 cluster as a complex scheduled job run (it worked before without problems), three crash dump files have been produced and the instance restarted.
The three ‘kC 1000’ outputs are below, together with the output of the ‘lmvm sqlservr’ command.
Thank you very much in advance for you help.
Cheers,
Salvatore
0:244> kC 1000
Call Site
sqlservr!ReadOnlyXactImp::ReadOnlyXactImp
sqlservr!switch_call_back
sqlservr!SOS_Scheduler::TaskTransition
sqlservr!SOS_Scheduler::SwitchContext
sqlservr!SOS_Scheduler::SuspendNonPreemptive
sqlservr!SOS_Scheduler::Suspend
sqlservr!EventInternal<Spinlock >::Wait
sqlservr!EventInternal<Spinlock >::WaitAllowPrematureWakeup
sqlservr!CXPacketList::RemoveHead
sqlservr!CXPipe::Pull
sqlservr!CXTransLocal::AllocateBuffers
sqlservr!CQScanXProducerNew::AllocateBuffers
sqlservr!CQScanXProducerNew::GetRowHelper
sqlservr!FnProducerOpen
sqlservr!FnProducerThread
sqlservr!SubprocEntrypoint
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
*** WARNING: Unable to verify timestamp for kernel32.dll
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
0:244> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_raise2
sqlservr!ex_raisecontrol
sqlservr!IsNXException
sqlservr!ex_trans_cexcept
sqlservr!SOS_SEHTranslator
msvcr80!_CallSETranslator
msvcr80!FindHandlerForForeignException
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
sqlservr!ReadOnlyXactImp::ReadOnlyXactImp
sqlservr!switch_call_back
sqlservr!SOS_Scheduler::TaskTransition
sqlservr!SOS_Scheduler::SwitchContext
sqlservr!SOS_Scheduler::SuspendNonPreemptive
sqlservr!SOS_Scheduler::Suspend
sqlservr!EventInternal<Spinlock >::Wait
sqlservr!EventInternal<Spinlock >::WaitAllowPrematureWakeup
sqlservr!CXPacketList::RemoveHead
sqlservr!CXPipe::Pull
sqlservr!CXTransLocal::AllocateBuffers
sqlservr!CQScanXProducerNew::AllocateBuffers
sqlservr!CQScanXProducerNew::GetRowHelper
sqlservr!FnProducerOpen
sqlservr!FnProducerThread
sqlservr!SubprocEntrypoint
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
msvcr80!terminate
msvcr80!_inconsistency
msvcr80!__FrameUnwindToState
msvcr80!__FrameUnwindToEmptyState
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler
ntdll!RtlpExecuteHandlerForUnwind
ntdll!RtlUnwindEx
kernel32!RtlUnwindExStub
msvcr80!_UnwindNestedFrames
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__SehTransFilter
msvcr80!_CallSETranslator$filt$0
msvcr80!__C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!RtlRaiseException
KERNELBASE!RaiseException
msvcr80!_CxxThrowException
sqlservr!ExceptionBackout::GetCurrentException
sqlservr!ex_raise2
sqlservr!ex_raisecontrol
sqlservr!IsNXException
sqlservr!ex_trans_cexcept
sqlservr!SOS_SEHTranslator
msvcr80!_CallSETranslator
msvcr80!FindHandlerForForeignException
msvcr80!FindHandler
msvcr80!__InternalCxxFrameHandler
msvcr80!__CxxFrameHandler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
sqlservr!ReadOnlyXactImp::ReadOnlyXactImp
sqlservr!switch_call_back
sqlservr!SOS_Scheduler::TaskTransition
sqlservr!SOS_Scheduler::SwitchContext
sqlservr!SOS_Scheduler::SuspendNonPreemptive
sqlservr!SOS_Scheduler::Suspend
sqlservr!EventInternal<Spinlock >::Wait
sqlservr!EventInternal<Spinlock >::WaitAllowPrematureWakeup
sqlservr!CXPacketList::RemoveHead
sqlservr!CXPipe::Pull
sqlservr!CXTransLocal::AllocateBuffers
sqlservr!CQScanXProducerNew::AllocateBuffers
sqlservr!CQScanXProducerNew::GetRowHelper
sqlservr!FnProducerOpen
sqlservr!FnProducerThread
sqlservr!SubprocEntrypoint
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
0:244> lmvm sqlservr
start end module name
00000000`000f0000 00000000`03ccd000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\13165A9929E847D997E11887F2F963AE2\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: x:\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL10_50.HYPESE02SQL\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Fri Jun 17 16:18:09 2011 (4DFB6221)
CheckSum: 03B3E8A1
ImageSize: 03BDD000
File version: 2009.100.2500.0
Product version: 10.50.2500.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 10.50.2500.0
FileVersion: 2009.0100.2500.00 ((KJ_PCU_Main).110617-0038 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
Karthick P.K said
Hello Salvatore,
This stack doesn’t look familiar. Please create a support ticket with Microsoft.
Salvatore said
Hello Karthick,
thank you very much for your attention, I’ll be opening a Case with MS Support and will update you on this asap.
Best regards,
Salvatore
Jenny McClelland said
We are receiving the following sql dump when a stored procedure is ran.
sqlservr!x_rgwszSQLOps
sqlservr!CRelOp_Update::PvrINSERTED
sqlservr!CRelOp_Update::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_UpdateQuery::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Query::FAlgebrizeQuery
sqlservr!CProchdr::FNormQuery
sqlservr!CProchdr::FNormalizeStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Compile
sqlservr!CStmtExecStr::XretExecStrExecute
sqlservr!CXStmtExecStr::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExec::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExec::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExec::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_endthreadex
msvcr80!_endthreadex
kernel32!BaseThreadStart
Karthick P.K said
Hello Jenny,
1. Is this the first dump you got since SQL Server is started? 2. Run DBCC checkdb and share the results.
Thanks
Jenny McClelland said
We have received these dumps a few times when the user calls the stored procedure.
DBCC returns no errors.
CHECKDB found 0 allocation errors and 0 consistency errors in database ‘SBC’.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
We are also getting the error that tempdb log file is unavailable. Or one of the non-system databases log file is unavailable. Then Sql services has be be restarted.
Karthick P.K said
Fix the missing file problem first. It should fix the original issue.
wesley said
Hi,
last days our sql crashes few times a day, we have no idea whats changed… below our crashdump, hope you can see something
00000000`1023dbe8 00000000`016693e1 sqlservr!CValRefParameter::PvalInvokeSpecificNth+0x7
00000000`1023dbf0 00000000`016bf216 sqlservr!CEsCompValSeg::CreateExecValSeg+0x101
00000000`1023dc80 00000000`016bf394 sqlservr!CEsExec::Init+0x66
00000000`1023dd00 00000000`0172c44d sqlservr!CEs::Startup+0xb4
00000000`1023dd70 00000000`014deb54 sqlservr!CQScanUpdateNew::CQScanUpdateNew+0x2ed
00000000`1023de00 00000000`01719a58 sqlservr!CXteUpdate::QScanGet+0x54
00000000`1023de60 00000000`01719fd7 sqlservr!CQueryScan::CQueryScan+0x428
00000000`1023e1f0 00000000`01603fd6 sqlservr!CQuery::Execute+0x87
00000000`1023e260 00000000`015fce32 sqlservr!CXStmtQuery::SetupQueryScanAndExpression+0x356
00000000`1023e2d0 00000000`015ffbe6 sqlservr!CXStmtQuery::ErsqExecuteQuery+0x232
00000000`1023e460 00000000`0160a37c sqlservr!CXStmtDML::XretDMLExecute+0x816
00000000`1023e5f0 00000000`0185d403 sqlservr!CXStmtDML::XretExecute+0x4c
00000000`1023e630 00000000`0181fc94 sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn+0x13
00000000`1023e660 00000000`015c1687 sqlservr!CMsqlExecContext::ExecuteStmts+0x3a4
00000000`1023e7e0 00000000`015bed9c sqlservr!CMsqlExecContext::FExecute+0x647
00000000`1023e930 00000000`02714f41 sqlservr!CSQLSource::Execute+0x36c
00000000`1023ea80 00000000`0160747e sqlservr!CStmtPrepQuery::XretExecute+0x451
00000000`1023f110 00000000`015c1469 sqlservr!CMsqlExecContext::ExecuteStmts+0x39e
00000000`1023f2e0 00000000`015bed9c sqlservr!CMsqlExecContext::FExecute+0x429
00000000`1023f430 00000000`015bd032 sqlservr!CSQLSource::Execute+0x36c
Karthick P.K said
Hello ,
Which version of SQL Server is this? Forward the SQL Server errorlog to me.
wesley said
Hello,
tx already for fast reply! we have sql server 2005 sp4. version: 9.00.5266.00 (x64).
wesley said
Just asking, which adress can i use for sending you the errorlog.
greetings
Karthick P.K said
Karthick_pk83 at Hotmail.com
Karthick P.K said
First thing run checkdb on all database. I think we last run checkdb on 2013-04-02.
Karthick P.K said
This should be because of database corruption. Please run dbcc checkdb on all the databases and check for database consistency. Let me know the output of checkdb
wesley said
Hi Karthick,
I finished doing the dbbc checkdb on all of our databases, and i had 0 errors.
DBCC CHECKDB () executed by found 0 errors and repaired 0 errors
greetings
Karthick P.K said
Hello ,
Send the dumps SQLDump0161 to SQLDump0170. I will look at them.
Thanks
Karthick
michal said
Hi,
Great post!!! Thanks a lot 🙂
I got this information, what is behind this?
ole32!CCache::Flush
ole32!CCache::GetElement
ole32!CComCatalog::GetClassInfoInternal
ole32!CComCatalog::GetClassInfoW
ole32!LookForConfiguredClsid
ole32!ICoCreateInstanceEx
ole32!CoCreateInstance
OraOLEDB11
OraOLEDB11
OraOLEDB11
oledb32!COpenRowset::OpenRowset
sqllang!CallProtectorImpl::CallWithSEH<IWrapInterface::CallTraitsFpuPre,long,MethodCallBinder_7 const >
sqllang!CallProtectorImpl::CallExternalFull<IWrapInterface::CallTraitsFpuPre,long,MethodCallBinder_7 const >
sqllang!CWrapIOpenRowset::OpenRowset
sqllang!COledbRangeRowset::OpenRowset
sqllang!COledbRangeRowset::FPerformSchemaCheck
sqllang!CEnvOledbRange::XretSchemaChanged
sqllang!CEnvCollection::XretSchemaChanged
sqllang!CXStmtQuery::XretSchemaChanged
sqllang!CXStmtDML::XretDMLExecute
sqllang!CXStmtDML::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!CStmtExecProc::XretLocalExec
sqllang!CStmtExecProc::XretExecExecute
sqllang!CXStmtExecProc::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thanks in advance
Michal
Karthick P.K said
This doesn’t look like a SQL Server issue. It’s because of Oracle DLL’s loaded in SQL Server address space. Most probably it should be because of issue documented in https://mssqlwiki.com/2012/08/08/sql-server-generated-access-violation-dumps-while-accessing-oracle-linked-servers/ when you access oracle linked server, but I can’t confirm without looking at the dump. If there is no restriction share the dump with me else I can look at it tomorrow If I find time or create a support case with Oracle.
michal said
Thank you very much.
I’ll check it and inform you.
How can I send you the dump file?
Thanks in advance.
I’m very appreciate your help,
Micha
Karthick P.K said
Forward to my mail address or post in our facebook group.(Check the compliance with your company before you post it)
michal said
Thank you!!
I am waiting to get the confirmation from my company.
Btw,you wrote that this is a known issue with Oracle Provider for OLE DB – Version 11.2.0.1, what eriliar version should I download if I use SQL Server 2012?
michal said
I sent the files to karthick_pk83@hotmail.com.
Thanks
michal said
Thank you!!
I am waiting to get the confirmation from my company.
Btw,you wrote that this is a known issue with Oracle Provider for OLE DB – Version 11.2.0.1, what eriliar version should I download if I use SQL Server 2012?
michal said
Hi Karthich,
Our server was crashed again this morning, also after I removed all the – (minus) sign from the view who caused the crashing.
Here is the debug output.
Can you help me with it please?
I’m also sending you the dump file.
Thanks a lot,
Michal
Loading Dump File [C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\SQLDump0744.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Stack Trace’
Comment: ‘ex_handle_except encountered exception C0000005 – Server terminating’
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (8 procs) Free x64
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Wed Oct 2 10:35:51.000 2013 (GMT+3)
System Uptime: 1 days 21:53:30.350
Process Uptime: 0 days 17:14:53.000
……………………………………………………….
……………………………………………………….
………………………
Loading unloaded module list
……………………………………………………….
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(1bd8.1ac4): Unknown exception – code 000042ac (first/second chance not available)
Unable to load image C:\Windows\System32\ntdll.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntdll.dll
*** ERROR: Module load completed but symbols could not be loaded for ntdll.dll
ntdll+0x512fa:
00000000`770612fa c3 ret
0:000> .sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
0:000> .reload /f
………………………………………..*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
……………..
……Unable to load image C:\Windows\System32\sqlncli11.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlncli11.dll
….Unable to load image C:\Windows\System32\1033\SQLNCLIR11.RLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for SQLNCLIR11.RLL
*** ERROR: Module load completed but symbols could not be loaded for SQLNCLIR11.RLL
…*** WARNING: Unable to verify checksum for mscorlib.ni.dll
……*** ERROR: Symbol file could not be found. Defaulted to export symbols for msfte.dll –
…………
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
….Unable to load image C:\Windows\System32\odbcint.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for odbcint.dll
*** ERROR: Module load completed but symbols could not be loaded for odbcint.dll
.*** ERROR: Module load completed but symbols could not be loaded for XPStar.RLL
…..*** ERROR: Module load completed but symbols could not be loaded for oledb32r.dll
..*** WARNING: Unable to verify checksum for OraOLEDB11.DLL
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDB11.DLL –
.*** WARNING: Unable to verify checksum for OraOLEDBgmr11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDBgmr11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oci.dll –
..*** WARNING: Unable to verify checksum for OraOLEDBrst11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDBrst11.dll –
.*** WARNING: Unable to verify checksum for OraOLEDButl11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDButl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraClient11.Dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracore11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraunls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orauts.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracommon11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orasnls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orageneric11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraxml11.dll –
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for oran11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orantcp11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranldap11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orannzsbb11.dll –
.
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraldapclnt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orancrypt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orazt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranro11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranhost11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orancds11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orantns11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraztkg11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orapls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraslax11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oravsn11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraplp11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orahasgen11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocr11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocrb11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocrutl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracell11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orasql11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraplc11.dll –
.*** WARNING: Unable to verify checksum for OraOLEDB11us.dll
*** ERROR: Module load completed but symbols could not be loaded for OraOLEDB11us.dll
.*** WARNING: Unable to verify checksum for OraOLEDBpus11.dll
*** ERROR: Module load completed but symbols could not be loaded for OraOLEDBpus11.dll
……
Loading unloaded module list
……………………………………………………….
0:000> lmvm sqlservr
start end module name
00000000`ff1a0000 00000000`ff1de000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\F8E1041FB48F4614B8645BD0871675FA2\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Tue Jan 15 11:05:45 2013 (50F51BE9)
CheckSum: 0002FB4F
ImageSize: 0003E000
File version: 2011.110.3339.0
Product version: 11.0.3339.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 11.0.3339.0
FileVersion: 2011.0110.3339.00 ((SQL11_SP1_QFE-CU).130114-1843 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> .ecxr
rax=000000006902c734 rbx=0000000080004005 rcx=000000001834c470
rdx=0000000000000000 rsi=0000000000000440 rdi=00000000ff1ca668
rip=000007fefd0b940d rsp=000000001834ca80 rbp=000000001834ead0
r8=0000000000000000 r9=0000000000000000 r10=00000000c000007c
r11=000007fef694b200 r12=0000000000001ac4 r13=00000001268cfd6c
r14=000007fed5014520 r15=000000001834cec0
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
KERNELBASE!RaiseException+0x39:
000007fe`fd0b940d 4881c4c8000000 add rsp,0C8h
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqllang!SQLDumperLibraryInvoke
sqllang!CImageHelper::DoMiniDump
sqllang!stackTrace
sqllang!stackTraceCallBack
sqldk!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
ole32!CleanupTlsState
ole32!DoThreadSpecificCleanup
ole32!FlsThreadCleanupCallback
ntdll!RtlProcessFlsData
ntdll!LdrShutdownThread
ntdll!RtlExitUserThread
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Did you restart SQL Server after you removed — (comments) from your Views?
michal said
No. should I?
I only alter this view.
Karthick P.K said
You have to restart your SQL Server after you fix all the views/SP’s which has — (comments) because the heap corruption caused initially before you modified the views/SP’s will be active until you restart your SQL Server.
michal said
Thanks.
I restarted the sql server.
can I catch the crushed commands by running profiler?
what is the erlier version of oracle provider I can use in sql server 2012 in order to eliminate this issue?
michal said
one more thing… I use SQLS 2012 and oracle version 11.2. Is that OK?
michal said
Karthick Hellow,
I would like to thank you for your help.
This was the problem. I’t was fixed by removing the remark signs.
Michal
Karthick P.K said
Thanks Michal. If you have support contract with Oracle please check if they have created fix for this issue.
Steve said
Hi Karthick,
My sql server 2008 r2 terminated itself today. I followed your procedures to output the following from the sql memory dump. I’m at a lost now to try to figure what the issue is. Can you please help?
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll!MD5Final
ntdll!_C_specific_handler
ntdll!RtlDecodePointer
ntdll!RtlUnwindEx
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO
0x0
0x0
0x0
Karthick P.K said
Whats the version of MSO.dll in the server (lmvm mso in debugger will print the version) ? Apply the fix mentioned in http://support.microsoft.com/kb/2516475
steve said
0:000> lmvm mso
start end module name
000007fe`ee9d0000 000007fe`f0202000 MSO (deferred)
Mapped memory image file: C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL
Image path: C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSO.DLL
Image name: MSO.DLL
Timestamp: Tue Mar 23 11:22:16 2010 (4BA906D8)
CheckSum: 01832834
ImageSize: 01832000
File version: 14.0.4760.1000
Product version: 14.0.4760.0
File flags: 0 (Mask 3F)
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0000.04e4
CompanyName: Microsoft Corporation
ProductName: Microsoft Office 2010
InternalName: MSO
OriginalFilename: MSO.DLL
ProductVersion: 14.0.4760.1000
FileVersion: 14.0.4760.1000
FileDescription: Microsoft Office 2010 component
LegalCopyright: © 2010 Microsoft Corporation. All rights reserved.
Karthick P.K said
Ok.Apply the fix I mentioned. It should solve your issue.
Sent from my Windows Phone ________________________________
steve said
Cool. Thanks! I will try that.
Paal said
Great information, any suggestion to this dump:
Microsoft (R) Windows Debugger Version 6.3.9600.16384 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\SQLDump0002.mdmp]
Comment: ‘Program fault handler’
Comment: ’11/12/13 01:00:32 spid 69 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 00000B86E8A23338 at 0x0000000077953290
‘
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (4 procs) Free x64
Product: Server, suite: Enterprise TerminalServer SingleUserTS
Machine Name:
Debug session time: Tue Nov 12 01:00:56.000 2013 (UTC + 1:00)
System Uptime: 17 days 16:40:44.531
Process Uptime: 17 days 16:39:17.000
……………………………………………………….
……………………………………………………….
………………………….
Loading unloaded module list
……………………………………………………….
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(5a4.3668): Access violation – code c0000005 (first/second chance not available)
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll –
*** ERROR: Symbol file could not be found. Defaulted to export symbols for KERNELBASE.dll –
ntdll!NtWaitForSingleObject+0xa:
00000000`779512fa c3 ret
0:000> .sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
************* Symbol Path validation summary **************
Response Time (ms) Location
Deferred srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
0:000> .reload /f
..
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
………………………………………*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
……………..
……….*** ERROR: Module load completed but symbols could not be loaded for SQLNCLIR11.RLL
…..Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\cb653b6b8da0966098d70da98cba1ef3\mscorlib.ni.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mscorlib.ni.dll
*** ERROR: Module load completed but symbols could not be loaded for mscorlib.ni.dll
…..*** ERROR: Symbol file could not be found. Defaulted to export symbols for msfte.dll –
……………..*** ERROR: Module load completed but symbols could not be loaded for odbcint.dll
.*** ERROR: Module load completed but symbols could not be loaded for XPStar.RLL
…*** ERROR: Module load completed but symbols could not be loaded for xplog70.rll
…..*** ERROR: Module load completed but symbols could not be loaded for oledb32r.dll
..*** WARNING: Unable to verify checksum for OraOLEDB11.DLL
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDB11.DLL –
.*** WARNING: Unable to verify checksum for OraOLEDBgmr11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDBgmr11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oci.dll –
..*** WARNING: Unable to verify checksum for OraOLEDBrst11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDBrst11.dll –
.*** WARNING: Unable to verify checksum for OraOLEDButl11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDButl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraClient11.Dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracore11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraunls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orauts.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracommon11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orasnls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orageneric11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraxml11.dll –
..
*** ERROR: Symbol file could not be found. Defaulted to export symbols for oran11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orantcp11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranldap11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orannzsbb11.dll –
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraldapclnt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orancrypt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orazt11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranro11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oranhost11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orancds11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orantns11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraztkg11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orapls11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraslax11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oravsn11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraplp11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orahasgen11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocr11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocrb11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraocrutl11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oracell11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for orasql11.dll –
.*** ERROR: Symbol file could not be found. Defaulted to export symbols for oraplc11.dll –
.*** WARNING: Unable to verify checksum for OraOLEDB11us.dll
*** ERROR: Module load completed but symbols could not be loaded for OraOLEDB11us.dll
.*** WARNING: Unable to verify checksum for OraOLEDBpus11.dll
*** ERROR: Module load completed but symbols could not be loaded for OraOLEDBpus11.dll
…*** WARNING: Unable to verify checksum for OraOLEDBrmc11.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for OraOLEDBrmc11.dll –
..
Loading unloaded module list
……………………………………………………….
************* Symbol Loading Error Summary **************
Module name Error
sqlevn70 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
SQLNCLIR11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
mscorlib.ni The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
msfte The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
odbcint No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
XPStar No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
xplog70 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oledb32r No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDB11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDBgmr11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oci No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDBrst11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDButl11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraClient11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oracore11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oranls11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraunls11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orauts The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oracommon11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orasnls11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orageneric11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraxml11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oran11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oranl11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orantcp11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oranldap11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orannzsbb11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraldapclnt11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orancrypt11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orazt11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oranro11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oranhost11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orancds11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orantns11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraztkg11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orapls11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraslax11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oravsn11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraplp11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orahasgen11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraocr11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraocrb11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraocrutl11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oracell11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
orasql11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
oraplc11 The system cannot find the file specified : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDB11us No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDBpus11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
OraOLEDBrmc11 No data is available : srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded.
You should also verify that your symbol search path (.sympath) is correct.
0:000> lmvm sqlservr
start end module name
00000000`fffd0000 00000001`0000e000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\395AB8CC786A4454B1AB8395FB0A80A62\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Thu May 23 09:07:46 2013 (519DC042)
CheckSum: 00036D80
ImageSize: 0003E000
File version: 2011.110.3368.0
Product version: 11.0.3368.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 11.0.3368.0
FileVersion: 2011.0110.3368.00 ((SQL11_SP1_QFE-CU).130522-1657 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> .ecxr
rax=0000000000000000 rbx=00000b86e8a23330 rcx=000000ffffffffff
rdx=0000000020d7b470 rsi=00000000002c0000 rdi=0000000020d7b480
rip=0000000077953290 rsp=00000000266ce0b0 rbp=0000000000000000
r8=0000000020d7b480 r9=0000ca1a002a000a r10=0000000000000005
r11=00000001d8060800 r12=00000000000000b0 r13=000000015ccfa5e0
r14=00000002bb0602e0 r15=0000000000000000
iopl=0 nv up ei pl nz ac po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010216
ntdll!RtlFreeHeap+0xd0:
00000000`77953290 4c8b6308 mov r12,qword ptr [rbx+8] ds:00000b86`e8a23338=????????????????
0:000> kC 1000
Call Site
ntdll!RtlFreeHeap
kernel32!HeapFree
sqllang!CImpIBcpAccessor::ReleaseAccessor
sqlmin!CQScanRmtBaseNew::ReleaseAllAccessors
sqlmin!CQScanRmtBaseNew::CloseHelper
sqlmin!CQScanSortNew::BuildSortTable
sqlmin!CQScanSortNew::OpenHelper
sqlmin!CQScanNew::OpenHelper
sqlmin!CQScanUpdateNew::Open
sqlmin!CQueryScan::StartupQuery
sqllang!CXStmtQuery::SetupQueryScanAndExpression
sqllang!CXStmtQuery::InitForExecute
sqllang!CXStmtQuery::ErsqExecuteQuery
sqllang!CXStmtDML::XretDMLExecute
sqllang!CXStmtInsertBulk::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hello Paal,
You are hitting a Oracle bug which I have mentioned in https://mssqlwiki.com/2012/08/08/sql-server-generated-access-violation-dumps-while-accessing-oracle-linked-servers/
Remove the — style comments (or) use /* */ for the comments instead of — in all the linked server queries/SP’s executed to oracle linked servers. There is a known issue with Oracle Provider for OLE DB – Version: 11.2.0.1 and later when — STYLE COMMENTS are used in linked server queries ,SP’s Etc
If you have support contract with Oracle and check if they have fix for this issue. If there is a fix please share the details with me 🙂
Thanks Karthick
Paal said
Thank you very much for the reply, I will look into you and if there is a fix I’ll share the details here 🙂
Indrajeet said
i got EXCEPTION_ACCESS_VIOLATION, when i checked using debugger got the below result, can you please tell me what is the problem here
sqlservr!CTableVariableManager::GetRowsetidListAndReturnTableInfo
sqlservr!CRangeTableVariable::XretSchemaChanged
sqlservr!CXStmtQuery::XretSchemaChanged
sqlservr!CXStmtSelectInto::XretSelectIntoExecute
sqlservr!CXStmtSelectInto::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!_chkstk
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hello Indrajeet,
What is your SQL Server version? This is a known issue if you run SQL Server with maxdop 1
Refer comment 4 https://mssqlwiki.com/2012/10/16/sql-server-exception_access_violation-and-sql-server-assertion/#comment-4086
For SQL Server 2008 R2, this issue is fixed in Service Pack 1 For SQL Server 2008, this issue is fixed in Service Pack 3
Thanks Karthick
Steve Sharpe said
Karthick,
– sql server 2005
recently moved from 97. The noted TravVertex.ddl from below is ours. it is called via the sp_oa* series of extended procs. We are getting a dump 2 or 3 times a day; in some cases sql will shut itself down. That dll is accessed all day and not just at the times we get errors reported.
Anything you can point out is appreciated.
regards,
Steve
Microsoft (R) Windows Debugger Version 6.12.0002.633 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [P:\sql log dumps\SQLDump0035.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Program fault handler’
Comment: ’11/18/13 08:26:10 spid 152 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 0000001C at 0x64AE642E
‘
Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows Server 2003 Version 3790 (Service Pack 2) UP Free x86 compatible
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Mon Nov 18 08:26:13.000 2013 (UTC – 5:00)
System Uptime: not available
Process Uptime: 0 days 0:17:45.000
……………………………………………………….
…………………………………………….
Loading unloaded module list
…………….
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(548.d6c): Access violation – code c0000005 (first/second chance not available)
eax=0000005c ebx=00000444 ecx=6433d0a0 edx=7c82fac0 esi=00000e44 edi=00000000
eip=7c82845c esp=6433e024 ebp=6433e094 iopl=0 nv up ei ng nz ac pe cy
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000297
ntdll!KiFastSystemCallRet:
7c82845c c3 ret
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify timestamp for sqlservr.exe
Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\TravVertex.dll, Win32 error 0n2
Esko Heikkila said
Related to this issue here is the stack from the same server
0:000> kC 1000
kernel32!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
kernel32!BaseThreadStart
kernel32!_except_handler3
ntdll!ExecuteHandler2
ntdll!ExecuteHandler
ntdll!KiUserExceptionDispatcher
msvbvm60!__vbaPowerR8
msvbvm60!_CCHECK_vtbl::get__ipropFONTNAMECHECK
msvbvm60!DESKDOC::`vftable’
msvbvm60!VBDataObjectFiles::`vftable’
msvbvm60!IAdviseSink2::`vftable’
msvbvm60!FORM::ChkProp
ntdll!LdrpCallInitRoutine
ntdll!LdrShutdownThread
kernel32!ExitThread
msvcr80!_endthreadex
msvcr80!_endthreadex
msvcr80!_endthreadex
kernel32!BaseThreadStart
Twan Moolenschot said
hi Karthick,
I read with pleasure your great artikel thanks for this explanation
I have a VM SQL 2008 R2 server Standard and a Enterprise 2008 R2
on the Standaard server the SQL is shutting down with the erros encountered exception C0000005 – Server terminating
I ran yor scripts and explanation and got the following error
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
0x0
0x0
0x0
0x0
0x0
Chould you help me with solving this problem it seems to me that it is something in SQL but i cant find where.
Thanks Twan
Twan Moolenschot said
sorry wrong Email adres i the post above changed it in this reply
Karthick P.K said
Twan,
Stack is not looking clean. I have o look at the dump to get to conclusion. Please forward the dump to me.
Is this system having AMD family21 processor?
Rich Petersen said
What a great article, thank you…
We are seeing this logged multiple times per second:
2014-01-07 14:41:18.50 spid54 Stack Signature for the dump is 0x73D384A5
2014-01-07 14:41:18.94 spid54 External dump process return code 0x20000001.
External dump process returned no errors.
2014-01-07 14:41:18.94 Server Error: 17310, Severity: 20, State: 1.
2014-01-07 14:41:18.94 Server A user request from the session with SPID 54 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.
2014-01-07 14:41:19.19 spid54 Using ‘dbghelp.dll’ version ‘4.0.5’
2014-01-07 14:41:19.21 spid54 ***Stack Dump being sent to C:\Program Files (x86)\Microsoft Office Servers\12.0\Data\MSSQL.5\MSSQL\LOG\SQLDump10388.txt
2014-01-07 14:41:19.21 spid54 SqlDumpExceptionHandler: Process 54 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
2014-01-07 14:41:19.21 spid54 * *******************************************************************************
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 * BEGIN STACK DUMP:
2014-01-07 14:41:19.21 spid54 * 01/07/14 14:41:19 spid 54
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 * Exception Address = 01105772 Module(sqlservr+00105772)
2014-01-07 14:41:19.21 spid54 * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
2014-01-07 14:41:19.21 spid54 * Access Violation occurred reading address 00000000
2014-01-07 14:41:19.21 spid54 * Input Buffer 104 bytes –
2014-01-07 14:41:19.21 spid54 * d b o . p r o c 12 00 64 00 62 00 6f 00 2e 00 70 00 72 00 6f 00 63 00
2014-01-07 14:41:19.21 spid54 * _ M S S _ C r a w 5f 00 4d 00 53 00 53 00 5f 00 43 00 72 00 61 00 77 00
2014-01-07 14:41:19.21 spid54 * l & & 6c 00 00 00 00 00 26 04 04 01 00 00 00 00 00 26 04 04
2014-01-07 14:41:19.21 spid54 * & & 07 00 00 00 00 00 26 04 04 02 00 00 00 00 00 26 04 04
2014-01-07 14:41:19.21 spid54 * Æþ & & c6 fe 07 00 00 00 26 04 04 00 00 00 00 00 00 26 04 04
2014-01-07 14:41:19.21 spid54 * & & 00 00 00 00 00 01 26 04 00 00 01 26 04 00
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 * MODULE BASE END SIZE
2014-01-07 14:41:19.21 spid54 * sqlservr 01000000 02BA7FFF 01ba8000
2014-01-07 14:41:19.21 spid54 * ntdll 77AA0000 77C1FFFF 00180000
2014-01-07 14:41:19.21 spid54 * kernel32 76A30000 76B2FFFF 00100000
2014-01-07 14:41:19.21 spid54 * KERNELBASE 76F10000 76F55FFF 00046000
2014-01-07 14:41:19.21 spid54 * MSVCR80 746A0000 7473AFFF 0009b000
2014-01-07 14:41:19.21 spid54 * msvcrt 762D0000 7637BFFF 000ac000
2014-01-07 14:41:19.21 spid54 * MSVCP80 74610000 74696FFF 00087000
2014-01-07 14:41:19.21 spid54 * ADVAPI32 774D0000 7756FFFF 000a0000
2014-01-07 14:41:19.21 spid54 * sechost 76A10000 76A28FFF 00019000
2014-01-07 14:41:19.21 spid54 * RPCRT4 77570000 7765FFFF 000f0000
2014-01-07 14:41:19.21 spid54 * SspiCli 75610000 7566FFFF 00060000
2014-01-07 14:41:19.21 spid54 * CRYPTBASE 75600000 7560BFFF 0000c000
2014-01-07 14:41:19.21 spid54 * USER32 76E10000 76F0FFFF 00100000
2014-01-07 14:41:19.21 spid54 * GDI32 77310000 7739FFFF 00090000
2014-01-07 14:41:19.21 spid54 * LPK 77A70000 77A79FFF 0000a000
2014-01-07 14:41:19.21 spid54 * USP10 773A0000 7743CFFF 0009d000
2014-01-07 14:41:19.21 spid54 * CRYPT32 76470000 7658BFFF 0011c000
2014-01-07 14:41:19.21 spid54 * MSASN1 75670000 7567BFFF 0000c000
2014-01-07 14:41:19.21 spid54 * Secur32 74BC0000 74BC7FFF 00008000
2014-01-07 14:41:19.21 spid54 * MSWSOCK 745D0000 7460BFFF 0003c000
2014-01-07 14:41:19.21 spid54 * WS2_32 77660000 77694FFF 00035000
2014-01-07 14:41:19.21 spid54 * NSI 76A00000 76A05FFF 00006000
2014-01-07 14:41:19.21 spid54 * USERENV 745B0000 745C6FFF 00017000
2014-01-07 14:41:19.21 spid54 * profapi 745A0000 745AAFFF 0000b000
2014-01-07 14:41:19.21 spid54 * opends60 333E0000 333E6FFF 00007000
2014-01-07 14:41:19.21 spid54 * NETAPI32 74E90000 74EA0FFF 00011000
2014-01-07 14:41:19.21 spid54 * netutils 74E80000 74E88FFF 00009000
2014-01-07 14:41:19.21 spid54 * srvcli 74E60000 74E78FFF 00019000
2014-01-07 14:41:19.21 spid54 * wkscli 74E50000 74E5EFFF 0000f000
2014-01-07 14:41:19.21 spid54 * LOGONCLI 74570000 74591FFF 00022000
2014-01-07 14:41:19.21 spid54 * SHELL32 75680000 762C8FFF 00c49000
2014-01-07 14:41:19.21 spid54 * SHLWAPI 76B30000 76B86FFF 00057000
2014-01-07 14:41:19.21 spid54 * apphelp 74520000 7456AFFF 0004b000
2014-01-07 14:41:19.21 spid54 * AcLayers 74490000 7451BFFF 0008c000
2014-01-07 14:41:19.21 spid54 * ole32 76B90000 76CEBFFF 0015c000
2014-01-07 14:41:19.21 spid54 * OLEAUT32 763E0000 7646EFFF 0008f000
2014-01-07 14:41:19.21 spid54 * WINSPOOL 74430000 74480FFF 00051000
2014-01-07 14:41:19.21 spid54 * MPR 74BA0000 74BB1FFF 00012000
2014-01-07 14:41:19.21 spid54 * IMM32 76DB0000 76E0FFFF 00060000
2014-01-07 14:41:19.21 spid54 * MSCTF 766D0000 7679BFFF 000cc000
2014-01-07 14:41:19.21 spid54 * psapi 76CF0000 76CF4FFF 00005000
2014-01-07 14:41:19.21 spid54 * instapi 48060000 48069FFF 0000a000
2014-01-07 14:41:19.21 spid54 * sqlevn70 4F610000 4F7A0FFF 00191000
2014-01-07 14:41:19.21 spid54 * cscapi 74420000 7442AFFF 0000b000
2014-01-07 14:41:19.21 spid54 * SQLOS 344D0000 344D4FFF 00005000
2014-01-07 14:41:19.21 spid54 * ntmarta 742A0000 742C0FFF 00021000
2014-01-07 14:41:19.21 spid54 * WLDAP32 77260000 772A4FFF 00045000
2014-01-07 14:41:19.21 spid54 * CRYPTSP 747F0000 74805FFF 00016000
2014-01-07 14:41:19.21 spid54 * rsaenh 747B0000 747EAFFF 0003b000
2014-01-07 14:41:19.21 spid54 * BROWCLI 09C50000 09C5CFFF 0000d000
2014-01-07 14:41:19.21 spid54 * SAMCLI 09C60000 09C6EFFF 0000f000
2014-01-07 14:41:19.21 spid54 * AUTHZ 09C70000 09C8AFFF 0001b000
2014-01-07 14:41:19.21 spid54 * MSCOREE 09CE0000 09D29FFF 0004a000
2014-01-07 14:41:19.21 spid54 * mscoreei 09D40000 09DA5FFF 00066000
2014-01-07 14:41:19.21 spid54 * credssp 09E70000 09E77FFF 00008000
2014-01-07 14:41:19.21 spid54 * msv1_0 09FE0000 0A021FFF 00042000
2014-01-07 14:41:19.21 spid54 * cryptdll 0A030000 0A040FFF 00011000
2014-01-07 14:41:19.21 spid54 * Kerberos 0A0E0000 0A167FFF 00088000
2014-01-07 14:41:19.21 spid54 * schannel 0A050000 0A088FFF 00039000
2014-01-07 14:41:19.21 spid54 * COMRES 0A1B0000 0A2EDFFF 0013e000
2014-01-07 14:41:19.21 spid54 * XOLEHLP 0A2F0000 0A2FFFFF 00010000
2014-01-07 14:41:19.21 spid54 * VERSION 74BD0000 74BD8FFF 00009000
2014-01-07 14:41:19.21 spid54 * MSDTCPRX 0A300000 0A391FFF 00092000
2014-01-07 14:41:19.21 spid54 * MTXCLU 0A3A0000 0A3F2FFF 00053000
2014-01-07 14:41:19.21 spid54 * CLUSAPI 0A400000 0A43AFFF 0003b000
2014-01-07 14:41:19.21 spid54 * RESUTILS 0A440000 0A453FFF 00014000
2014-01-07 14:41:19.21 spid54 * bcrypt 0A460000 0A476FFF 00017000
2014-01-07 14:41:19.21 spid54 * ktmw32 0A480000 0A488FFF 00009000
2014-01-07 14:41:19.21 spid54 * WLIDNSP 0A580000 0A5A3FFF 00024000
2014-01-07 14:41:19.21 spid54 * DNSAPI 0A5B0000 0A5F3FFF 00044000
2014-01-07 14:41:19.21 spid54 * IPHLPAPI 0A600000 0A61BFFF 0001c000
2014-01-07 14:41:19.21 spid54 * WINNSI 0A4A0000 0A4A6FFF 00007000
2014-01-07 14:41:19.21 spid54 * fwpuclnt 0A6E0000 0A717FFF 00038000
2014-01-07 14:41:19.21 spid54 * rasadhlp 0A530000 0A535FFF 00006000
2014-01-07 14:41:19.21 spid54 * wship6 0A720000 0A725FFF 00006000
2014-01-07 14:41:19.21 spid54 * RpcRtRemote 747A0000 747ADFFF 0000e000
2014-01-07 14:41:19.21 spid54 * security 0A8C0000 0A8C2FFF 00003000
2014-01-07 14:41:19.21 spid54 * msfte 49910000 49B67FFF 00258000
2014-01-07 14:41:19.21 spid54 * dbghelp 0B870000 0B987FFF 00118000
2014-01-07 14:41:19.21 spid54 * WINTRUST 767A0000 767CCFFF 0002d000
2014-01-07 14:41:19.21 spid54 * ncrypt 0B990000 0B9C7FFF 00038000
2014-01-07 14:41:19.21 spid54 * wshtcpip 0BA10000 0BA14FFF 00005000
2014-01-07 14:41:19.21 spid54 * ntdsapi 0BA20000 0BA37FFF 00018000
2014-01-07 14:41:19.21 spid54 * CLBCatQ 76970000 769F2FFF 00083000
2014-01-07 14:41:19.21 spid54 * sqlncli 337A0000 339C7FFF 00228000
2014-01-07 14:41:19.21 spid54 * COMCTL32 77440000 774C3FFF 00084000
2014-01-07 14:41:19.21 spid54 * comdlg32 76D00000 76D7AFFF 0007b000
2014-01-07 14:41:19.21 spid54 * SQLNCLIR 02DC0000 02DF2FFF 00033000
2014-01-07 14:41:19.21 spid54 * netbios 02E00000 02E07FFF 00008000
2014-01-07 14:41:19.21 spid54 * bcryptprimitives 0DE30000 0DE6CFFF 0003d000
2014-01-07 14:41:19.21 spid54 * msxmlsql 78800000 788D4FFF 000d5000
2014-01-07 14:41:19.21 spid54 * msxml3 0F230000 0F361FFF 00132000
2014-01-07 14:41:19.21 spid54 * dbghelp 0CB20000 0CC34FFF 00115000
2014-01-07 14:41:19.21 spid54 *
2014-01-07 14:41:19.21 spid54 * Edi: E3096188: 00000000 00000000 00000000 00000000 00000000 00000000
2014-01-07 14:41:19.21 spid54 * Esi: E3096188: 00000000 00000000 00000000 00000000 00000000 00000000
2014-01-07 14:41:19.21 spid54 * Eax: 0D81EF50: 0D81EF84 02450AD1 FFFFFFFF 0D81EF90 013804D2 E3096188
2014-01-07 14:41:19.21 spid54 * Ebx: 00000000:
2014-01-07 14:41:19.21 spid54 * Ecx: 00000000:
2014-01-07 14:41:19.21 spid54 * Edx: 00000040:
2014-01-07 14:41:19.21 spid54 * Eip: 01105772: 108B038B CB8B016A 4D8BD2FF F88B560C FFDE39E8 89C033FF
2014-01-07 14:41:19.21 spid54 * Ebp: 0D81EF5C: 0D81EF90 013804D2 E3096188 E3466028 00000000 0D81611D
2014-01-07 14:41:19.21 spid54 * SegCs: 00000023:
2014-01-07 14:41:19.21 spid54 * EFlags: 00010206: C1F00000 0000779F FFFF0000 0000FFFF 00000000 00000000
2014-01-07 14:41:19.21 spid54 * Esp: 0D81EF40: 0D8161D1 E3096188 E3466028 E3096130 0D81EF84 02450AD1
2014-01-07 14:41:19.21 spid54 * SegSs: 0000002B:
2014-01-07 14:41:19.21 spid54 * *******************************************************************************
2014-01-07 14:41:19.21 spid54 * ——————————————————————————-
2014-01-07 14:41:19.21 spid54 * Short Stack Dump
2014-01-07 14:41:19.21 spid54 01105772 Module(sqlservr+00105772)
2014-01-07 14:41:19.21 spid54 013804D2 Module(sqlservr+003804D2)
2014-01-07 14:41:19.21 spid54 01439AD1 Module(sqlservr+00439AD1)
2014-01-07 14:41:19.21 spid54 0143995C Module(sqlservr+0043995C)
2014-01-07 14:41:19.21 spid54 01380F7A Module(sqlservr+00380F7A)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 01380EAF Module(sqlservr+00380EAF)
2014-01-07 14:41:19.21 spid54 013810A9 Module(sqlservr+003810A9)
2014-01-07 14:41:19.21 spid54 0125362A Module(sqlservr+0025362A)
2014-01-07 14:41:19.21 spid54 01253CCA Module(sqlservr+00253CCA)
2014-01-07 14:41:19.21 spid54 013CDC85 Module(sqlservr+003CDC85)
2014-01-07 14:41:19.21 spid54 013CDD56 Module(sqlservr+003CDD56)
2014-01-07 14:41:19.21 spid54 0125B712 Module(sqlservr+0025B712)
2014-01-07 14:41:19.21 spid54 0125B0B5 Module(sqlservr+0025B0B5)
2014-01-07 14:41:19.21 spid54 01320C83 Module(sqlservr+00320C83)
2014-01-07 14:41:19.21 spid54 0125B99F Module(sqlservr+0025B99F)
2014-01-07 14:41:19.21 spid54 0102C51D Module(sqlservr+0002C51D)
2014-01-07 14:41:19.21 spid54 010438E5 Module(sqlservr+000438E5)
2014-01-07 14:41:19.21 spid54 01041C35 Module(sqlservr+00041C35)
2014-01-07 14:41:19.21 spid54 0100889F Module(sqlservr+0000889F)
2014-01-07 14:41:19.21 spid54 010089C5 Module(sqlservr+000089C5)
2014-01-07 14:41:19.21 spid54 010086E7 Module(sqlservr+000086E7)
2014-01-07 14:41:19.21 spid54 010D764A Module(sqlservr+000D764A)
2014-01-07 14:41:19.21 spid54 010D7B71 Module(sqlservr+000D7B71)
2014-01-07 14:41:19.21 spid54 010D746E Module(sqlservr+000D746E)
2014-01-07 14:41:19.21 spid54 010D83F0 Module(sqlservr+000D83F0)
2014-01-07 14:41:19.21 spid54 746A29BB Module(MSVCR80+000029BB)
2014-01-07 14:41:19.22 spid54 746A2A47 Module(MSVCR80+00002A47)
2014-01-07 14:41:19.22 spid54 77AD9F02 Module(ntdll+00039F02)
2014-01-07 14:41:19.22 spid54 77AD9ED5 Module(ntdll+00039ED5)
2014-01-07 14:41:19.22 spid54 Stack Signature for the dump is 0x73D384A5
Here is the output of the above procedure:
sqlservr!CScaOp_Identifier::CScaOp_Identifier
sqlservr!CreateIdentExpr
sqlservr!PexprBuildHashFn
sqlservr!CXteExchange::FinalCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CXte::ExecCompile
sqlservr!CQuery::Prepare
sqlservr!CQuery::PqoBuild
sqlservr!CStmtQuery::InitQuery
sqlservr!CStmtDML::InitNormal
sqlservr!CStmtDML::Init
sqlservr!CCompPlan::FCompileStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_endthreadex
msvcr80!_endthreadex
kernel32!BaseThreadInitThunk
ntdll!__RtlUserThreadStart
ntdll!_RtlUserThreadStart
Any ideas?
Thank you so much for your efforts here, learned a lot.
Rich
Rich Petersen said
Oh, 2005 SP3, on 2008 ENT R2
Karthick P.K said
Hello Rich,
We have numerous bugs in sqlservr!CScaOp_Identifier::CScaOp_Identifier most of them are fixed in SQLServer2008R2. SQL2005 is in extended support so we are not going to add those fixes to 2005, so you have to upgrade to 2008R2+ to resolve this.
Rich Petersen said
Thank you very much, appreciate the feedback very much.
Rich
Top SQL Server blogs from MSSQLWIKI « MSSQLWIKI said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion […]
Do not give up your dream said
I’ve got this block in my environment:
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!DmpRemoteDumpRequest
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
kernel32
0x0
Cedric Chardonnay said
hey Guys
I have this debug output
0:000> kC 1000
Call Site
sqlservr
sqlservr
sqlservr!GetIUMSForMsxml
sqlservr!GetIUMSForMsxml
sqlservr!GetIUMSForMsxml
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
for this dump file
Current time is 09:52:52 02/12/14.
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 10.50.4276.0
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is Intel(R) Xeon(R) CPU E5420 @ 2.50GHz.
Bios Version is INTEL – 6040000
PhoenixBIOS 4.0 Release 6.0
2 X64 level 8664, 14 Mhz processor (s).
Windows NT 6.1 Build 7601 CSD Service Pack 1.
Memory
MemoryLoad = 22%
Total Physical = 6143 MB
Available Physical = 4774 MB
Total Page File = 15357 MB
Available Page File = 13545 MB
Total Virtual = 8388607 MB
Available Virtual = 8382120 MB
***Stack Dump being sent to D:\Program Files\Microsoft SQL Server\MSSQL10_50.GLO1DB03\MSSQL\LOG\SQLDump0041.txt
SqlDumpExceptionHandler: Process 61 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 02/12/14 09:52:52 spid 61
*
*
* Exception Address = 00000000014DFF7B Module(sqlservr+0000000000B8FF7B)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 0000000000000000
* Input Buffer 172 bytes –
* EXEC (‘CALL PL.ORDERXML(?, ?, ?, ?, ?) ‘,’0015096419′,”,’E’,
* ”,”) AT DB2C
*
*
* MODULE BASE END SIZE
* sqlservr 0000000000950000 0000000004568FFF 03c19000
* ntdll 0000000077620000 00000000777C8FFF 001a9000
* kernel32 0000000077400000 000000007751EFFF 0011f000
* KERNELBASE 000007FEFD870000 000007FEFD8DAFFF 0006b000
* ADVAPI32 000007FEFF100000 000007FEFF1DAFFF 000db000
* msvcrt 000007FEFECB0000 000007FEFED4EFFF 0009f000
* sechost 000007FEFEAB0000 000007FEFEACEFFF 0001f000
* RPCRT4 000007FEFD9E0000 000007FEFDB0CFFF 0012d000
* MSVCR80 0000000075270000 0000000075338FFF 000c9000
* MSVCP80 0000000075160000 0000000075268FFF 00109000
* sqlos 0000000072530000 0000000072536FFF 00007000
* Secur32 000007FEFD0B0000 000007FEFD0BAFFF 0000b000
* SSPICLI 000007FEFD3D0000 000007FEFD3F4FFF 00025000
* pdh 000007FEFACE0000 000007FEFAD2DFFF 0004e000
* SHLWAPI 000007FEFF380000 000007FEFF3F0FFF 00071000
* GDI32 000007FEFF660000 000007FEFF6C6FFF 00067000
* USER32 0000000077520000 0000000077619FFF 000fa000
* LPK 000007FEFF920000 000007FEFF92DFFF 0000e000
* USP10 000007FEFF6D0000 000007FEFF798FFF 000c9000
* USERENV 000007FEFC890000 000007FEFC8ADFFF 0001e000
* profapi 000007FEFD570000 000007FEFD57EFFF 0000f000
* WINMM 000007FEFA510000 000007FEFA54AFFF 0003b000
* IPHLPAPI 000007FEFB9A0000 000007FEFB9C6FFF 00027000
* NSI 000007FEFF800000 000007FEFF807FFF 00008000
* WINNSI 000007FEFB990000 000007FEFB99AFFF 0000b000
* opends60 0000000072500000 0000000072507FFF 00008000
* NETAPI32 000007FEFA830000 000007FEFA845FFF 00016000
* netutils 000007FEFCEA0000 000007FEFCEABFFF 0000c000
* srvcli 000007FEFD010000 000007FEFD032FFF 00023000
* wkscli 000007FEFA810000 000007FEFA824FFF 00015000
* LOGONCLI 000007FEFCD40000 000007FEFCD6FFFF 00030000
* SAMCLI 000007FEFAC30000 000007FEFAC43FFF 00014000
* BatchParser 00000000724D0000 00000000724FCFFF 0002d000
* IMM32 000007FEFEDF0000 000007FEFEE1DFFF 0002e000
* MSCTF 000007FEFF810000 000007FEFF918FFF 00109000
* psapi 00000000777F0000 00000000777F6FFF 00007000
* instapi10 0000000072540000 000000007254CFFF 0000d000
* cscapi 000007FEF76F0000 000007FEF76FEFFF 0000f000
* sqlevn70 00000000722C0000 00000000724C3FFF 00204000
* CRYPTSP 000007FEFCF60000 000007FEFCF76FFF 00017000
* rsaenh 000007FEFCB10000 000007FEFCB56FFF 00047000
* CRYPTBASE 000007FEFD460000 000007FEFD46EFFF 0000f000
* BROWCLI 000007FEFA750000 000007FEFA761FFF 00012000
* AUTHZ 000007FEFCFD0000 000007FEFCFFEFFF 0002f000
* MSCOREE 000007FEFA3A0000 000007FEFA40EFFF 0006f000
* mscoreei 000007FEFA310000 000007FEFA39FFFF 00090000
* ole32 000007FEFE8A0000 000007FEFEAA2FFF 00203000
* credssp 000007FEFCD30000 000007FEFCD39FFF 0000a000
* msv1_0 000007FEFCCD0000 000007FEFCD20FFF 00051000
* cryptdll 000007FEFD150000 000007FEFD163FFF 00014000
* kerberos 000007FEFCDD0000 000007FEFCE83FFF 000b4000
* MSASN1 000007FEFD610000 000007FEFD61EFFF 0000f000
* schannel 000007FEFCB60000 000007FEFCBB6FFF 00057000
* CRYPT32 000007FEFD660000 000007FEFD7CBFFF 0016c000
* security 0000000072150000 0000000072152FFF 00003000
* WS2_32 000007FEFF1E0000 000007FEFF22CFFF 0004d000
* SHELL32 000007FEFDB10000 000007FEFE897FFF 00d88000
* OLEAUT32 000007FEFF400000 000007FEFF4D6FFF 000d7000
* ftimport 0000000060000000 0000000060024FFF 00025000
* MSFTE 0000000049980000 0000000049D2DFFF 003ae000
* VERSION 000007FEFC6B0000 000007FEFC6BBFFF 0000c000
* dbghelp 0000000070FC0000 000000007111DFFF 0015e000
* WINTRUST 000007FEFD620000 000007FEFD659FFF 0003a000
* ncrypt 000007FEFCF80000 000007FEFCFCCFFF 0004d000
* bcrypt 000007FEFCF30000 000007FEFCF51FFF 00022000
* mswsock 000007FEFCD70000 000007FEFCDC4FFF 00055000
* wship6 000007FEFCEB0000 000007FEFCEB6FFF 00007000
* wshtcpip 000007FEFC780000 000007FEFC786FFF 00007000
* ntmarta 000007FEFC680000 000007FEFC6ACFFF 0002d000
* WLDAP32 000007FEFF7A0000 000007FEFF7F1FFF 00052000
* ntdsapi 000007FEFB030000 000007FEFB056FFF 00027000
* DNSAPI 000007FEFCC70000 000007FEFCCCAFFF 0005b000
* rasadhlp 000007FEFB290000 000007FEFB297FFF 00008000
* fwpuclnt 000007FEFB900000 000007FEFB952FFF 00053000
* bcryptprimitives 000007FEFCA50000 000007FEFCA9BFFF 0004c000
* CLBCatQ 000007FEFD940000 000007FEFD9D8FFF 00099000
* sqlncli10 000000006F500000 000000006F7BCFFF 002bd000
* COMCTL32 000007FEFA550000 000007FEFA5EFFFF 000a0000
* COMDLG32 000007FEFED50000 000007FEFEDE6FFF 00097000
* SQLNCLIR10 000000006F2F0000 000000006F326FFF 00037000
* xpsqlbot 0000000073410000 0000000073417FFF 00008000
* xpstar 000000006D340000 000000006D3C7FFF 00088000
* SQLSCM 000000006F4F0000 000000006F4FDFFF 0000e000
* ODBC32 000007FEF4D00000 000007FEF4DB0FFF 000b1000
* ATL80 0000000072810000 000000007282FFFF 00020000
* odbcint 000000006F4A0000 000000006F4D7FFF 00038000
* clusapi 000007FEF4A80000 000007FEF4ACFFFF 00050000
* resutils 000007FEF4A60000 000007FEF4A78FFF 00019000
* xpstar 000000006D310000 000000006D334FFF 00025000
* xplog70 000000006D300000 000000006D30FFFF 00010000
* xplog70 000000006D2F0000 000000006D2F1FFF 00002000
* RpcRtRemote 000007FEFD510000 000007FEFD523FFF 00014000
* msdaps 000007FEF0FA0000 000007FEF1009FFF 0006a000
* MSDART 000007FEF15C0000 000007FEF15E7FFF 00028000
* oledb32 000007FEF1010000 000007FEF111DFFF 0010e000
* Comctl32 000007FEFBEA0000 000007FEFC093FFF 001f4000
* OLEDB32R 0000000061690000 00000000616A3FFF 00014000
* dbghelp 0000000061530000 000000006168DFFF 0015e000
*
* P1Home: 000000000F644100: 00000000C0000005 0000000000000000 00000000014DFF7B 0000000000000002 00000000
00000000 0000000000000000
* P2Home: 000000000F643C10: 000000000F644100 000000000F643C10 0000000000000000 0000000000000000 00000000
0F643F70 0000000000A0AA58
* P3Home: 0000000000000000:
* P4Home: 0000000000000000:
* P5Home: 000000000F643F70: 0000000083797420 0000000083797500 0000000083796060 0000000083796D18 FFFFFFFF
FFFFFFFE 0000000000000000
* P6Home: 0000000000A0AA58: 000000000134FD50 000000000134FD78 000000000134FD60 000000000134FD84 00000000
0134FD6C 00000000014ED310
* ContextFlags: 000000000010001F: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 000000
0000000000 0000000000000000
* MxCsr: 0000000000001F80:
* SegCs: 0000000000000033:
* SegDs: 000000000000002B:
* SegEs: 000000000000002B:
* SegFs: 0000000000000053:
* SegGs: 000000000000002B:
* SegSs: 000000000000002B:
* EFlags: 0000000000010246: 0000000000000000 0000000101580000 0000000102680000 0000000102780000 00000000
00000000 0000001000000000
* Rax: 000027D877481FDE:
* Rcx: 0000000000000000:
* Rdx: 0000000083F352B0: 005200540053005B 005D004D00410045 0000000000000000 0000000000000000 00000000
83F35280 0000000083F352B0
* Rbx: 000000000F646220: 0000000000000000 00000000009F5B60 0000000000000000 0000000000F02170 00000000
00000000 0000000000000000
* Rsp: 000000000F6441D0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FFFFFFFF
FFFFFFFE 0000000000000000
* Rbp: 0000000083F352B0: 005200540053005B 005D004D00410045 0000000000000000 0000000000000000 00000000
83F35280 0000000083F352B0
* Rsi: 0000000083F35280: 004500440052004F 004C004D00580052 0000000000000000 0000000000000000 00000000
001005BA 0000000000000000
* Rdi: 0000000083F352B0: 005200540053005B 005D004D00410045 0000000000000000 0000000000000000 00000000
83F35280 0000000083F352B0
* R8: 0000000083F35280: 004500440052004F 004C004D00580052 0000000000000000 0000000000000000 00000000
001005BA 0000000000000000
* R9: 0000000000000000:
* R10: 0000000002203720: 00000000014E7340 00000000014E73EC 00000000014E73FC 00000000014E7584 00000000
014E779C 00000000021FF6A8
* R11: 000000000F6461B0: 0000000083F288F0 0000000083F338B8 0000000000000000 0000000002200324 00000000
83F32A20 0000000000000000
* R12: 0000000083F352D0: 0000000083F35280 0000000083F352B0 0000000083F371F0 0000000000000002 00000000
000E0BF4 0000000083F35210
* R13: 0000000083F331C0: 00000000012F8510 0000000000000001 0000000083F32DC0 0000000000000001 00000000
83F33440 0000000000000001
* R14: 0000000000000000:
* R15: 0000000083F32140: 0000000000E91100 0000000000000000 0000000000000000 0000000083F348D0 00000000
83F36140 0000000083F32060
* Rip: 00000000014DFF7B: 4024448D4C018B48 FFFFD5F786158D48 4C8B481479C08510 480674C985484024 EBC03310
50FF018B 8B4840244C8B484B
* *******************************************************************************
* ——————————————————————————-
* Short Stack Dump
00000000014DFF7B Module(sqlservr+0000000000B8FF7B)
00000000014E4E65 Module(sqlservr+0000000000B94E65)
0000000002200324 Module(sqlservr+00000000018B0324)
0000000002203F00 Module(sqlservr+00000000018B3F00)
00000000022041A4 Module(sqlservr+00000000018B41A4)
000000000098B8F7 Module(sqlservr+000000000003B8F7)
00000000009C0FD0 Module(sqlservr+0000000000070FD0)
00000000009C1AA4 Module(sqlservr+0000000000071AA4)
00000000009B58DD Module(sqlservr+00000000000658DD)
00000000009B7B7F Module(sqlservr+0000000000067B7F)
00000000009B734C Module(sqlservr+000000000006734C)
0000000001E69B8A Module(sqlservr+0000000001519B8A)
0000000001E68F6E Module(sqlservr+0000000001518F6E)
0000000001E6AE9C Module(sqlservr+000000000151AE9C)
0000000001E58A21 Module(sqlservr+0000000001508A21)
0000000001E54A4D Module(sqlservr+0000000001504A4D)
00000000009B58DD Module(sqlservr+00000000000658DD)
00000000009B7B7F Module(sqlservr+0000000000067B7F)
00000000009B734C Module(sqlservr+000000000006734C)
00000000009B873C Module(sqlservr+000000000006873C)
0000000000A1DACA Module(sqlservr+00000000000CDACA)
000000000095F150 Module(sqlservr+000000000000F150)
000000000095EBAE Module(sqlservr+000000000000EBAE)
000000000095E9F3 Module(sqlservr+000000000000E9F3)
0000000000EA8466 Module(sqlservr+0000000000558466)
0000000000EA8695 Module(sqlservr+0000000000558695)
0000000000EA7F29 Module(sqlservr+0000000000557F29)
0000000000EA91FA Module(sqlservr+00000000005591FA)
00000000752737D7 Module(MSVCR80+00000000000037D7)
0000000075273894 Module(MSVCR80+0000000000003894)
000000007741652D Module(kernel32+000000000001652D)
000000007764C541 Module(ntdll+000000000002C541)
CSession @0x0000000082E3A3B0
—————————-
m_spid = 61 m_cRef = 18 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 15 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0x0000000082E3A080
m_pstackBhfPool = 0x0000000082DF50F0 m_dwLoginFlags = 0x83e0 m_fBackground = 0
m_eConnResetOption = 0 m_fUserProc = -1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fAuditLoginSent = 1
m_fAuditLoginFailedSent = 0 m_fReplRelease = 0 m_fKill = 0
m_ulLoginStamp = 223 m_eclClient = 6 m_protType = 5
m_hHttpToken = FFFFFFFFFFFFFFFF
m_pV7LoginRec
———————
0000000000000000: 7b010000 03000a73 00100000 00000006 f40e0000 †{……s……..ô…
0000000000000014: 00000000 e0830000 00000000 00000000 5e000800 †….à……….^…
0000000000000028: 00000000 00000000 6e002e00 ca000100 cc000000 †……..n…Ê…Ì…
000000000000003C: cc001c00 04010000 04010000 c5253a3e ee220401 †Ì………..Å%:>î”..
0000000000000050: 77007b01 00007b01 00000000 0000†††††††††††††††w.{…{…….
CPhysicalConnection @0x0000000082E3A270
—————————————
m_pPhyConn->m_pmo = 0x0000000082E3A080
m_pPhyConn->m_pNetConn = 0x0000000082E3AAD0
m_pPhyConn->m_pConnList = 0x0000000082E3A380
m_pPhyConn->m_pSess = 0x0000000082E3A3B0 m_pPhyConn->m_fTracked = -1
m_pPhyConn->m_cbPacketsize = 4096 m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0
CBatch @0x0000000082E3AFA0
————————–
m_pSess = 0x0000000082E3A3B0 m_pConn = 0x0000000082E3AEA0 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x0000000080562988
EXCEPT (null) @0x000000000F640F98
———————————
exc_number = 0 exc_severity = 0 exc_func = 0x0000000002E79380
Task @0x0000000080562988
————————
CPU Ticks used (ms) = 3876 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x0000000000000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x0000000000000000
WAITINFO_EXTERNAL: WaitResource = 0x0000000000000000 WAITINFO_EXTERNAL: WaitType = 0x4000C9
WAITINFO_EXTERNAL: WaitSpinlock = 0x0000000000000000 SchedulerId = 0x1
ThreadId = 0x8fc m_state = 0 m_eAbortSev = 0
EC @0x0000000082DF40F0
———————-
spid = 0 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x0 ec_atomic = 0x0 __fSubProc = 1
__pSETLS = 0x0000000082E3AF10 __pSEParams = 0x0000000082E3B350
SEInternalTLS @0x0000000082E3AF10
———————————
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x0000000080562988
m_activeHeapDatasetList = 0x0000000082E3AF10
m_activeIndexDatasetList = 0x0000000082E3AF20 m_pDbccContext = 0x0000000000000000
SEParams @0x0000000082E3B350
—————————-
m_lockTimeout = -1 m_isoLevel = 4096 m_logDontReplicate = 1
m_neverReplicate = 1 m_XactWorkspace = 0x0000000080AF6080
m_pSessionLocks = 0x0000000082DF4A30 m_pDbLocks = 0x0000000082E3B870
m_execStats = 0x00000000818EB190 m_pAllocFileLimit = 0x0000000000000000
Karthick P.K said
symbols are not aligned when you did KC to get the stack. Please forward the dumps to me . I will look at it.
Chhavi_MCITP said
Hello Karthick / All,
I am facing slimier issue so following your article step by step but somehow not able to interpreat the output of debugger.
Could you please help me to understand the actual cause of this issue before i go to Microsoft for solution: 😦
I am sharing output with you but it seems that something is missing so could you please share your email address so that i can share Crash Dump File.
——————-Output—————
0:603> lmvm sqlservr
start end module name
00000000`ff7d0000 00000000`ff80e000 sqlservr T (no symbols)
Loaded symbol image file: sqlservr.exe
Image path: D:\Microsoft SQL Server\MSSQL11.BRISE_2K12\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Sat Oct 20 07:41:54 2012 (5082086A)
CheckSum: 00034412
ImageSize: 0003E000
File version: 2011.110.3000.0
Product version: 11.0.3000.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
0:603> .ecxr
rax=0000000000000001 rbx=000000a44a12df48 rcx=000000a44a12df48
rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000000
rip=000007fee2e92775 rsp=000000a44a12dec0 rbp=00000027d2ca3c60
r8=00000001801a4936 r9=0000000000000000 r10=0000006c7ec88060
r11=000000a44a12df88 r12=0000000000000000 r13=00000027d2ca3c20
r14=000000a44a12e0c0 r15=0000000000000001
iopl=0 nv up ei ng nz ac pe cy
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010293
sqlmin+0x32775:
000007fe`e2e92775 488b4730 mov rax,qword ptr [rdi+30h] ds:00000000`00000030=????????????????
0:603> kC 1000
Call Site
sqlmin
0x0
sqldk
0x0
0x0
0x0
0x0
0x0
sqlmin
0x0
Karthick P.K said
Symbols are not loaded properly. Please reload the symbols and post the stack
Chhavi_MCITP said
Thanks a bunch for your response , Karthick.
I am getting below warning/error message in second try:
*** WARNING: Unable to verify timestamp for ntdll.dll
*** ERROR: Module load completed but symbols could not be loaded for ntdll.dll
Michal said
Hi,
Thank you for your help!!
I got this information, what is behind this?
Thanks in advance.
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!LatchBase::DumpOnTimeoutIfNeeded
sqlservr!LatchBase::PrintWarning
sqlservr!LatchBase::Suspend
sqlservr!LatchBase::AcquireInternal
sqlservr!BUF::AcquireLatch
sqlservr!BPool::Get
sqlservr!PageRef::Fix
sqlservr!IndexPageManager::GetPageWithKey
sqlservr!GetRowForKeyValue
sqlservr!IndexRowScanner::EstablishInitialKeyOrderPosition
sqlservr!IndexDataSetSession::GetNextRowValuesInternal
sqlservr!RowsetNewSS::FetchNextRow
sqlservr!CQScanRowsetNew::GetRowWithPrefetch
sqlservr!CQScanTableScanNew::GetRow
sqlservr!CQScanFilterNew::GetRowHelper
sqlservr!CQScanTopNew::GetRow
sqlservr!CQueryScan::GetRow
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtSelect::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!ExecuteSql
sqlservr!CSpecProc::ExecuteSpecial
sqlservr!CSpecProc::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
This is latch timeout dump, so you have to follow https://mssqlwiki.com/2012/09/07/latch-timeout-and-sql-server-latch/
Jan said
Hi
SQL Server 2012 Standard Ed. on a Azure server hosting SharePoint databases. Got 4 spids doing a memory dump at the exact same time. Allpointing to the same thing: sqlmin!XactRM::GetXdesLong
Any idea what that could be? Can’t find any information about sqlmin.
Comment: ‘Program fault handler’
Comment: ’03/02/14 01:00:00 spid 211 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 00000000000001B4 at 0x000007FD30EA5454
0:000> lmvm sqlservr
start end module name
000007f7`0f820000 000007f7`0f85e000 sqlservr (pdb symbols) c:\temp\symbols\sqlservr.pdb\121EFA40609A4D6F9764619F5F9986222\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\TEMP\Symbols\MSSQL\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Sun Jun 30 12:44:43 2013 (51D00C1B)
CheckSum: 0003C45C
ImageSize: 0003E000
File version: 2011.110.3373.0
Product version: 11.0.3373.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 11.0.3373.0
FileVersion: 2011.0110.3373.00 ((SQL11_SP1_QFE-CU).130629-2102 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> .ecxr
rax=0000000000000000 rbx=0000000000000000 rcx=0000000a385d4148
rdx=00000000431d0040 rsi=0000000000000000 rdi=0000000000000000
rip=000007fd30ea5454 rsp=0000000038143950 rbp=0000000000000000
r8=0000000a385d4148 r9=0000000000000000 r10=0000000000000060
r11=0000000a0c37cbe0 r12=00000000431d0040 r13=0000000a0c37d480
r14=0000000a385d4148 r15=0000000038143c90
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
sqlmin!XactRM::GetXdesLong+0x82:
000007fd`30ea5454 83b8b401000002 cmp dword ptr [rax+1B4h],2 ds:00000000`000001b4=????????
0:000> kC 1000
Call Site
sqlmin!XactRM::GetXdesLong
sqlmin!FullXactImpBase::GetXdes
sqlmin!RowsetVersionScan::WakeUp
sqlmin!CQScanRowsetNew::WakeUpRowset
sqlmin!CQScanRowsetNew::OpenHelper
sqlmin!CQScanNew::OpenHelper
sqlmin!CQScanNew::OpenHelper
sqlmin!CQScanNew::OpenHelper
sqlmin!CQScanUpdateNew::Open
sqlmin!CQueryScan::UncacheQuery
sqllang!CXStmtQuery::SetupQueryScanAndExpression
sqllang!CXStmtQuery::InitForExecute
sqllang!CXStmtQuery::ErsqExecuteQuery
sqllang!CXStmtDML::XretDMLExecute
sqllang!CXStmtDML::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!CXStmtDML::FExecTrigger
sqllang!CXStmtDML::FExecAllTriggers
sqllang!CXStmtDML::XretDMLExecute
sqllang!CXStmtDML::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!CStmtExecProc::XretLocalExec
sqllang!CStmtExecProc::XretExecExecute
sqllang!CXStmtExecProc::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!CStmtExecProc::XretLocalExec
sqllang!CStmtExecProc::XretExecExecute
sqllang!CXStmtExecProc::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!ExecuteSql
sqllang!CSpecProc::ExecuteSpecial
sqllang!CSpecProc::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Something for MS support maybe?
Thanks in advance.
BR
/ Jan
Karthick P.K said
Check if there is DB corruption
Karthick P.K said
Fwd the dumps to me if you don’t see corruption
Jan said
Thankfully no DB corruption. I’ve e-mailed you the dumps.
We’re running mirroring on several databases and apparently a few, maybe matched by the number of memdumps, ended up doing a failover. And it has only happened once, so maybe it’s not a real issue after all. But it might be of interest to find out if the mirroring was the culprit.
Thanks again for looking into it.
Shivam bhatia said
Hi,
Got this dump in sql server 2008(SP2)10.0.4279 . Dump file suggesting index corruption. Just want to verify whether SP3 upgrade will work or not.
start end module name
00000000`000d0000 00000000`0393f000 sqlservr T (pdb symbols) c:\websymbols\sqlservr.pdb\5BC6F5304B5A49A0A19B7E00531FDE042\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Image path: c:\Program Files\Microsoft SQL Server\MSSQL10.FIN\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Fri Mar 11 20:12:08 2011 (4D7A34C0)
CheckSum: 0375AF4A
ImageSize: 0386F000
File version: 2007.100.4279.0
Product version: 10.0.4279.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
0:000> .ecxr
rax=0000000023c4a339 rbx=0000000003318320 rcx=0000000038086ce0
rdx=0000000000000000 rsi=0000000002ef91fc rdi=0000000000000440
rip=000007fefd65940d rsp=00000000380872f0 rbp=000000000000000a
r8=0000000000000000 r9=0000000000000000 r10=00000000c000007c
r11=0000000000792ec0 r12=00000000000050c8 r13=0000000000000440
r14=0000000001b84260 r15=000000000084a3c8
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x39:
000007fe`fd65940d 4881c4c8000000 add rsp,0C8h
0:000> kc 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!IndexFailure_ErrorAbort
sqlservr!CPerIndexMetaQS::ErrorAbort
sqlservr!alloca_probe
sqlservr!ManipData
sqlservr!CEs::GeneralEval4
sqlservr!alloca_probe
sqlservr!CQScanSortNew::BuildSortTable
sqlservr!CQScanSortNew::OpenHelper
sqlservr!CQScanMergeJoinNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanSequenceNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtDML::XretDMLExecute
sqlservr!CXStmtDML::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Chris Dorch said
Karthick,
First – great post/blog. I think these are just as interesting and informative as Paul Randal’s…
Second, I’d like to analyze some dump files however my build of SQL 10.0.5500 doesn’t have symbols publically available which is a known issue. The work around is to upgrade the machine to CU7 but since this is a production box, this isn’t possible. Do you think you could lead me to a resource where I could get the symbols for this build?
Thanks!
Anjali said
Hi,
can u help for given bellowed issue:-
* ex_handle_except encountered exception C0000005 – Server terminating
*
*
* MODULE BASE END SIZE
* sqlservr 0000000000CD0000 00000000048E1FFF 03c12000
* ntdll 0000000077A60000 0000000077C08FFF 001a9000
* kernel32 0000000077840000 000000007795EFFF 0011f000
* KERNELBASE 000007FEFDB00000 000007FEFDB6AFFF 0006b000
* ADVAPI32 000007FEFECD0000 000007FEFEDAAFFF 000db000
* msvcrt 000007FEFEDB0000 000007FEFEE4EFFF 0009f000
* sechost 000007FEFFAA0000 000007FEFFABEFFF 0001f000
* RPCRT4 000007FEFEFD0000 000007FEFF0FCFFF 0012d000
* MSVCR80 00000000756B0000 0000000075778FFF 000c9000
* MSVCP80 00000000755A0000 00000000756A8FFF 00109000
* sqlos 0000000075300000 0000000075306FFF 00007000
* Secur32 000007FEFD7F0000 000007FEFD7FAFFF 0000b000
* SSPICLI 000007FEFD850000 000007FEFD874FFF 00025000
* pdh 000007FEF5DB0000 000007FEF5DFDFFF 0004e000
* SHLWAPI 000007FEFF810000 000007FEFF880FFF 00071000
* GDI32 000007FEFF100000 000007FEFF166FFF 00067000
* USER32 0000000077960000 0000000077A59FFF 000fa000
* LPK 000007FEFF800000 000007FEFF80DFFF 0000e000
* USP10 000007FEFFAC0000 000007FEFFB88FFF 000c9000
* USERENV 000007FEFCCF0000 000007FEFCD0DFFF 0001e000
* profapi 000007FEFD9B0000 000007FEFD9BEFFF 0000f000
* WINMM 000007FEF5D70000 000007FEF5DAAFFF 0003b000
* IPHLPAPI 000007FEFB8E0000 000007FEFB906FFF 00027000
* NSI 000007FEFDD80000 000007FEFDD87FFF 00008000
* WINNSI 000007FEFB8B0000 000007FEFB8BAFFF 0000b000
* opends60 0000000074BE0000 0000000074BE7FFF 00008000
* NETAPI32 000007FEFBA50000 000007FEFBA65FFF 00016000
* netutils 000007FEFBA40000 000007FEFBA4BFFF 0000c000
* srvcli 000007FEFD5A0000 000007FEFD5C2FFF 00023000
* wkscli 000007FEFB9F0000 000007FEFBA04FFF 00015000
* LOGONCLI 000007FEFD030000 000007FEFD05FFFF 00030000
* SAMCLI 000007FEFA410000 000007FEFA423FFF 00014000
* BatchParser 0000000074BB0000 0000000074BDCFFF 0002d000
* IMM32 000007FEFF7D0000 000007FEFF7FDFFF 0002e000
* MSCTF 000007FEFEBC0000 000007FEFECC8FFF 00109000
* psapi 0000000077C20000 0000000077C26FFF 00007000
* instapi10 0000000073990000 000000007399CFFF 0000d000
* cscapi 000007FEFAA50000 000007FEFAA5EFFF 0000f000
* sqlevn70 00000000736E0000 00000000738E3FFF 00204000
* CRYPTSP 000007FEFD240000 000007FEFD256FFF 00017000
* rsaenh 000007FEFCF40000 000007FEFCF86FFF 00047000
* CRYPTBASE 000007FEFD8E0000 000007FEFD8EEFFF 0000f000
* BROWCLI 000007FEF5A00000 000007FEF5A11FFF 00012000
* AUTHZ 000007FEFD410000 000007FEFD43EFFF 0002f000
* MSCOREE 000007FEF9EF0000 000007FEF9F5EFFF 0006f000
* ole32 000007FEFF890000 000007FEFFA92FFF 00203000
* credssp 000007FEFCE50000 000007FEFCE59FFF 0000a000
* msv1_0 000007FEFD170000 000007FEFD1C0FFF 00051000
* cryptdll 000007FEFD4C0000 000007FEFD4D3FFF 00014000
* kerberos 000007FEFD260000 000007FEFD313FFF 000b4000
* MSASN1 000007FEFDA50000 000007FEFDA5EFFF 0000f000
* schannel 000007FEFCFD0000 000007FEFD026FFF 00057000
* CRYPT32 000007FEFDC10000 000007FEFDD7BFFF 0016c000
* security 0000000072E00000 0000000072E02FFF 00003000
* WS2_32 000007FEFF520000 000007FEFF56CFFF 0004d000
* SHELL32 000007FEFDD90000 000007FEFEB17FFF 00d88000
* OLEAUT32 000007FEFEEF0000 000007FEFEFC6FFF 000d7000
* ftimport 0000000060000000 0000000060024FFF 00025000
* MSFTE 0000000049980000 0000000049D2DFFF 003ae000
* VERSION 000007FEFCB00000 000007FEFCB0BFFF 0000c000
* dbghelp 000000006F940000 000000006FA9DFFF 0015e000
* WINTRUST 000007FEFDAA0000 000007FEFDAD9FFF 0003a000
* ncrypt 000007FEFD3C0000 000007FEFD40CFFF 0004d000
* bcrypt 000007FEFD390000 000007FEFD3B1FFF 00022000
* mswsock 000007FEFD1E0000 000007FEFD234FFF 00055000
* wship6 000007FEFD1D0000 000007FEFD1D6FFF 00007000
* wshtcpip 000007FEFCBD0000 000007FEFCBD6FFF 00007000
* ntmarta 000007FEFCAD0000 000007FEFCAFCFFF 0002d000
* WLDAP32 000007FEFFD10000 000007FEFFD61FFF 00052000
* ntdsapi 000007FEF6D30000 000007FEF6D56FFF 00027000
* bcryptprimitives 000007FEFCE80000 000007FEFCECBFFF 0004c000
* CLBCatQ 000007FEFEE50000 000007FEFEEE8FFF 00099000
* sqlncli10 0000000071D60000 000000007201CFFF 002bd000
* COMCTL32 000007FEF55A0000 000007FEF563FFFF 000a0000
* COMDLG32 000007FEFEB20000 000007FEFEBB6FFF 00097000
* SQLNCLIR10 0000000071C80000 0000000071CB6FFF 00037000
* xpstar 0000000073FE0000 0000000074067FFF 00088000
* SQLSCM 0000000073FD0000 0000000073FDDFFF 0000e000
* ODBC32 000007FEF5460000 000007FEF5510FFF 000b1000
* ATL80 0000000075320000 000000007533FFFF 00020000
* odbcint 0000000071D00000 0000000071D37FFF 00038000
* clusapi 000007FEFA980000 000007FEFA9CFFFF 00050000
* resutils 000007FEFA960000 000007FEFA978FFF 00019000
* xpstar 0000000073FA0000 0000000073FC4FFF 00025000
* apphelp 000007FEFD880000 000007FEFD8D6FFF 00057000
* msxmlsql 0000000072230000 0000000072380FFF 00151000
* xpsqlbot 0000000073910000 0000000073917FFF 00008000
* xplog70 0000000072050000 000000007205FFFF 00010000
* xplog70 0000000072040000 0000000072041FFF 00002000
* dsrole 000007FEFC280000 000007FEFC28BFFF 0000c000
* SAMLIB 000007FEFADD0000 000007FEFADECFFF 0001d000
* DNSAPI 000007FEFD060000 000007FEFD0BAFFF 0005b000
* rasadhlp 000007FEFA8B0000 000007FEFA8B7FFF 00008000
* fwpuclnt 000007FEFB4E0000 000007FEFB532FFF 00053000
* instapi 0000000048060000 000000004806CFFF 0000d000
* oledb32 000007FEF3D80000 000007FEF3E8DFFF 0010e000
* MSDART 000007FEF4600000 000007FEF4627FFF 00028000
* Comctl32 000007FEFC370000 000007FEFC563FFF 001f4000
* OLEDB32R 0000000065040000 0000000065053FFF 00014000
* comsvcs 000007FEEDDF0000 000007FEEDF9FFFF 001b0000
* ACEOLEDB 000007FEF3040000 000007FEF30C3FFF 00084000
* MSVCR90 0000000073620000 00000000736BCFFF 0009d000
* mso 000007FEE9780000 000007FEEAFB1FFF 01832000
* msi 000007FEFB560000 000007FEFB875FFF 00316000
* RpcRtRemote 000007FEFD990000 000007FEFD9A3FFF 00014000
* ACECORE 000007FEEB640000 000007FEEB952FFF 00313000
* MSVCP90 0000000061BC0000 0000000061C92FFF 000d3000
* ACEWSTR 000007FEEF6D0000 000007FEEF7A4FFF 000d5000
* MSORES 000007FEDA040000 000007FEDE569FFF 0452a000
* MSOINTL 000007FEEB3D0000 000007FEEB639FFF 0026a000
* ACEINTL 000007FEF3000000 000007FEF3032FFF 00033000
* COMRES 00000000659E0000 0000000065B1DFFF 0013e000
* XOLEHLP 000007FEF20B0000 000007FEF20C3FFF 00014000
* MSDTCPRX 000007FEF1F70000 000007FEF202BFFF 000bc000
* MTXCLU 000007FEF1F10000 000007FEF1F6FFFF 00060000
* ktmw32 000007FEFB050000 000007FEFB059FFF 0000a000
* msadce 000007FEF41B0000 000007FEF4266FFF 000b7000
* msadcer 0000000070F40000 0000000070F41FFF 00002000
* sqloledb 000007FEF4080000 000007FEF41A7FFF 00128000
* MSDATL3 000007FEF4890000 000007FEF48AFFFF 00020000
* mscorwks 000007FEF9510000 000007FEF9EACFFF 0099d000
* mscorlib.ni 000007FEF8630000 000007FEF950CFFF 00edd000
* mscorsec 00000642FFAF0000 00000642FFB08FFF 00019000
* imagehlp 000007FEFF1F0000 000007FEFF208FFF 00019000
* GPAPI 000007FEFCCD0000 000007FEFCCEAFFF 0001b000
* cryptnet 000007FEF9EB0000 000007FEF9ED6FFF 00027000
* SensApi 000007FEF4D70000 000007FEF4D78FFF 00009000
* SqlAccess 0000000065080000 00000000650E3FFF 00064000
* mscorjit 000007FEF7A20000 000007FEF7BA2FFF 00183000
* System.Data 0000000037660000 000000003795EFFF 002ff000
* System.ni 000007FEF7C00000 000007FEF862CFFF 00a2d000
* System.Transactions 000000000F8A0000 000000000F8E8FFF 00049000
* System.Security.ni 000007FEF4270000 000007FEF4359FFF 000ea000
* System 0000000065530000 000000006583FFFF 00310000
* System.Security 0000000063B60000 0000000063BA3FFF 00044000
* System.Xml 0000000065280000 0000000065477FFF 001f8000
* System.Configuration 0000000063AD0000 0000000063B3BFFF 0006c000
* msdasql 000007FEF0A80000 000007FEF0B35FFF 000b6000
* MSDASQLR 0000000070170000 000000007017EFFF 0000f000
* myodbc3 000007FEE92A0000 000007FEE9778FFF 004d9000
* WSOCK32 000007FEF5190000 000007FEF5198FFF 00009000
* odbccp32 000007FEF3F80000 000007FEF3FA7FFF 00028000
* NLAapi 000007FEFC350000 000007FEFC364FFF 00015000
* napinsp 000007FEFA150000 000007FEFA164FFF 00015000
* winrnr 000007FEFA140000 000007FEFA14AFFF 0000b000
* WINHTTP 000007FEFB370000 000007FEFB3E0FFF 00071000
* webio 000007FEFB2C0000 000007FEFB323FFF 00064000
* dhcpcsvc 000007FEFB410000 000007FEFB427FFF 00018000
* dhcpcsvc6 000007FEFB3F0000 000007FEFB400FFF 00011000
* CFGMGR32 000007FEFDA60000 000007FEFDA95FFF 00036000
* dbghelp 000000005F0A0000 000000005F1FDFFF 0015e000
*
* P1Home: 002E0032002E0036:
* P2Home: 0000000000000033:
* P3Home: 00000000004762C0: 0000000022F99850 0000000022F99850 0000000000000000 0000000000000000 00000000
33867830 000000001916DFA0
* P4Home: 0000000000000000:
* P5Home: 0052004500AE00AC:
* P6Home: 0000000033AAA918: 0050005C003A0043 00720067006F0072 00460020006D0061 00730065006C0069 00630069
004D005C 006F0073006F0072
* ContextFlags: 000000000010000F: 0000000000000000 FFFFFF0000000C00 0000000000000000 0000000000000000 FFFFFF
0000000C00 0000000000000000
* MxCsr: 0000000000001F80:
* SegCs: 0000000000000033:
* SegDs: 000000000000002B:
* SegEs: 000000000000002B:
* SegFs: 0000000000000053:
* SegGs: 000000000000002B:
* SegSs: 000000000000002B:
* EFlags: 0000000000000206:
* Rax: 00000000303DEFE2:
* Rcx: 000000001B7EC8F0: 002E0032002E0036 0000000000000033 00000000004762C0 0000000000000000 00520045
00AE00AC 0000000033AAA918
* Rdx: 0000000000000000:
* Rbx: 0000000000000000:
* Rsp: 000000001B7ECF00: 0000000000000000 0000000000000000 000000001B7ED130 000007FFFFF56000 00000000
000042AC 0000000000000000
* Rbp: 000000001B7EF9B0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000
778D9300 00000000778D9300
* Rsi: 0000000000000000:
* Rdi: 000000001B7ED130: 0000000033AAA910 0000000000000000 0000000000000000 0000000000000000 00000000
00000000 0000000000000000
* R8: 0000000000000000:
* R9: 0000000000000000:
* R10: 0000000000000000:
* R11: 000000001B7ED710: 002E0032002E0036 0000000000000033 00000000004762C0 0000000000000000 00520045
00AE00AC 0000000033AAA918
* R12: 0000000000000001:
* R13: 0000000000000000:
* R14: 000000001B7EE5E0: 0068005F00780065 006C0064006E0061 00780065005F0065 0074007000650063 0063006E
00650020 0074006E0075006F
* R15: 000000000000003F:
* Rip: 000007FEFDB0940D: C3000000C8C48148 9090909090909090 8348C48B48909090 FFFFFEC0F74178EC 48000163
1C850FFF 4810708948085889
* *******************************************************************************
* ——————————————————————————-
* Short Stack Dump
000007FEFDB0940D Module(KERNELBASE+000000000000940D)
0000000002DABFCD Module(sqlservr+00000000020DBFCD)
0000000002DB0506 Module(sqlservr+00000000020E0506)
0000000002DB0069 Module(sqlservr+00000000020E0069)
00000000031F2206 Module(sqlservr+0000000002522206)
00000000778D9460 Module(kernel32+0000000000099460)
0000000077AF3398 Module(ntdll+0000000000093398)
0000000077A785C8 Module(ntdll+00000000000185C8)
0000000077A89D2D Module(ntdll+0000000000029D2D)
0000000077A791CF Module(ntdll+00000000000191CF)
0000000077AB1248 Module(ntdll+0000000000051248)
000007FEFB371376 Module(WINHTTP+0000000000001376)
000007FEFB3713A9 Module(WINHTTP+00000000000013A9)
000007FEFB371190 Module(WINHTTP+0000000000001190)
000007FEFB3710D2 Module(WINHTTP+00000000000010D2)
0000000077AA6A38 Module(ntdll+0000000000046A38)
0000000077AA6978 Module(ntdll+0000000000046978)
0000000077856535 Module(kernel32+0000000000016535)
0000000077A8C541 Module(ntdll+000000000002C541)
SQL Server 2008 R2 SP2 we are using.
Thanks,
Anjali
Miguel Angel said
Hello.
I’ve examinated dump file and I’ve got this. What is it?
0:000> .ecxr
rax=00007ff90379a2e0 rbx=0000002fc4c904fc rcx=0000000000000000
rdx=0000000000000001 rsi=000000000000000f rdi=0000000000000000
rip=00007ff9031bac84 rsp=000000a83fc7ec88 rbp=00000000045ca160
r8=0000000000000000 r9=0000000000000000 r10=0000000000000000
r11=0000000000002b60 r12=0000002fc4c91020 r13=0000002fc4c90450
r14=0000000000000001 r15=00007ff9028e0000
iopl=0 nv up ei pl zr na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
sqllang!CPassThroughConn::TaskCompletedImpl+0x4:
00007ff9`031bac84 488b01 mov rax,qword ptr [rcx] ds:00000000`00000000=????????????????
0:000> kc 1000
Call Site
sqllang!CPassThroughConn::TaskCompletedImpl
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thanks.
Miguel Angel.
John said
Hi Karthick,
Thank you for this valuable post!
We have a SQL 2012 SP2 server and after restoring a SQL 2005 database it started generating crash dumps several times a minute. There was corruption in the database and we used dbcc repair allow data loss to fix it, but the dumps still occur while the database is online. I used your procedure and it gave me the below information. Can you shed any insight into what’s happening here? Thank you!
0:000> kC 1000
Call Site
sqlmin!VisibleHoBt::RefreshMetadataFromMetadataManager
sqlmin!VisibleHoBt::RefreshMetadata
sqlmin!VisibleHoBt::Refresh
sqlmin!HoBtFactory::GetHoBtAccess
sqlmin!SEDropRowsetInternal
sqlmin!OnlineIndexBuildCleanupTask::DoCleanup
sqlmin!OnlineIndexBuildCleanupTask::ProcessTskPkt
sqlmin!TaskReqPktTimer::ExecuteTask
sqlmin!OnDemandTaskContext::ProcessTskPkt
sqllang!SystemTaskEntryPoint
sqlmin!OnDemandTaskContext::FuncEntryPoint
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Simon Hunter said
Just got these sql dumps from our server, any ideas?
0:000> kC 1000
Call Site
sqlservr!CGenIndexStrategy::PidxiCompute
sqlservr!CGenIndexStrategy::CGenIndexStrategy
sqlservr!CImpRuleSelToTrivialFilter::BuildSubstitutes
sqlservr!COptContext::PexprApplyRule
sqlservr!COptContext::PexprImplementSimpleRec
sqlservr!COptContext::PexprImplementSimpleRec
sqlservr!COptContext::PexprImplementSimple
sqlservr!COptContext::PcxteOptimizeQuery
sqlservr!CQuery::Optimize
sqlservr!CQuery::PqoBuild
sqlservr!CStmtQuery::InitQuery
sqlservr!CStmtSelect::Init
sqlservr!CCompPlan::FCompileStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::MkShowplanXMLNode
sqlservr!CMsqlExecContext::FExecShowplan
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Karthick P.K said
Hi Simon,
You are running DTA with filtered index option selected.
Apply the fix mentioned in http://support.microsoft.com/kb/2713151/en-us it will solve your issue.
Thanks
Karthick P.K
Simon Hunter said
Thanks!
Saravana said
Hi Karthick,
could you please help me on the below dump file output,
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
sqlservr!SOS_OS::SecurityHandlerRoutine
sqlservr!SOS_OS::ExecuteSecurityHandlerRoutine
sqlservr!SOS_OS::SecurityHandler
sqlservr!_report_gsfailure
sqlservr!SOS_Scheduler::TaskTransition
0x0
0x0
sqlservr!SETaskSuspendingNotification
sqlservr!switch_call_back
sqlservr!XE_Xml::WriteCDATA
sqlservr!XE_DAttrExpr::Execute
sqlservr!XE_AndExpr::Execute
sqlservr!XE_Engine::EventFireBegin
sqlservr!XeSosPkg::wait_info::Publish
sqlservr!SOS_Scheduler::UpdateWaitTimeStats
sqlservr!SOS_Scheduler::Suspend
sqlservr!EventInternal<Spinlock >::Wait
sqlservr!EventInternal<Spinlock >::WaitAllowPrematureWakeup
sqlservr!CXPacketList::RemoveHead
sqlservr!CXPipe::Pull
sqlservr!CXTransLocal::AllocateBuffers
sqlservr!CQScanXProducerNew::AllocateBuffers
sqlservr!CQScanXProducerNew::GetRowHelper
sqlservr!FnProducerOpen
sqlservr!FnProducerThread
sqlservr!SubprocEntrypoint
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Regards,
Saravana
patboner said
Interesting read!
Anyone having problems with sp_trace_getdata on 2012SP2CU1? Prime suspect on my server. Help appreciated.
0:000> kC 1000
*** WARNING: Unable to verify timestamp for sqllang.dll
Call Site
sqldk!CMemObj::Free
sqllang!commondelete
sqllang!CTraceDataSTVF::InternalReleaseResources
*** WARNING: Unable to verify timestamp for sqlmin.dll
sqllang!CTraceDataSTVF::`vector deleting destructor’
sqlmin!CSTVFInternal::Release
sqlmin!CQueryExecContext::~CQueryExecContext
sqlmin!CQueryScan::ShutdownQueryExecContext
sqlmin!CQueryScan::DestroyQueryOnException
sqllang!CXStmtQuery::ShutdownOnException
sqllang!CXStmtQuery::FinishOnExceptionImp
sqllang!rc4
msvcr100!CallSettingFrame
msvcr100!_CxxCallCatchBlock
ntdll!RcFrameConsolidation
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!CStmtExecProc::XretLocalExec
sqllang!CStmtExecProc::XretExecExecute
sqllang!CXStmtExecProc::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!ExecuteSql
sqllang!CSpecProc::ExecuteSpecial
sqllang!CSpecProc::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Jamie Carroll said
Appreciate your help, Karthick. The output you requested is below:
SQL Server Assertion: File: , line=2763 Failed Assertion = ‘pvb->FInUse ()’. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
0:000> kc 1000
Call Site
sqlmin!commondelete
sqlmin!IndexAnalysis::ExecuteCleanupAction
sqlmin!IndexAnalysis::GetNextRow
sqlmin!CIndexAnalysisSTVF::InternalGetRow
sqlmin!CQScanTVFStreamNew::GetRow
sqlmin!CQScanFilterNew::GetRowHelper
sqlmin!CQScanNLJoinNew::GetRowHelper
sqlmin!CQScanRangePrefetchDelayNew::GetRow
sqlmin!CQScanNLJoinTrivialNew::GetRow
sqlmin!CQScanNLJoinNew::GetRowHelper
sqlmin!CQueryScan::GetRow
sqllang!CXStmtQuery::ErsqExecuteQuery
sqllang!CXStmtCondWithQuery::XretExecute
sqllang!CMsqlExecContext::ExecuteStmts
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
dbafromthecold said
Had an issue with Service Broker in SQL Server 2005 today. Any advice or help would be most appreciated. Here’s the stack:-
0:223> kc 1000
Call Site
kernel32!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!LatchBase::DumpOnTimeoutIfNeeded
sqlservr!LatchBase::PrintWarning
sqlservr!alloca_probe
sqlservr!LatchBase::AcquireInternal
sqlservr!CSbReentrantAutoLatch::Acquire
sqlservr!CSbTransmissionTable::Get
sqlservr!CSbTransmissionTransactionData::LookupDialog
sqlservr!CSbTransmissionTransactionData::EnqueueMsg
sqlservr!BrokerNotifyEnqueueMsg
sqlservr!CSbMsgDispatcher::EnqueueIntoXmitQueue
sqlservr!CSsbClassifier::SendMessageList
sqlservr!CDialogEndpoint::SendMessage
sqlservr!CDialogEndpoint::SendSequencedMsg
sqlservr!CStmtSendMsg::XretSvcBrokerExecute
sqlservr!CXStmtBrokerDDL::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExec::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!CXStmtDML::FExecTrigger
sqlservr!CXStmtDML::FExecAllTriggers
sqlservr!alloca_probe
sqlservr!CXStmtDML::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!alloca_probe
sqlservr!CSQLSource::Execute
sqlservr!ExecuteSql
sqlservr!CSpecProc::ExecuteSpecial
sqlservr!CSpecProc::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
0x0
0x0
0x0
0x0
msvcr80!_threadstartex
msvcr80!_threadstartex
msvcr80!__initialmbcinfo
0x0
Preetha said
Hi ,
I have the same issue in DEV and PROD database server. I ran the command and got the below details:
Call Site
ntdll!RtlFreeHeap
msvcrt!free
pgoe1023
0x0
pgoe1023
0x0
Can you please help me in fixing the same?
Ours is SQl server 2008R2 database with SP2 installed.
How To Fix Comctl32 Ntdll.dll Access Violation Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix An Access Violation Has Occurred While Copying The File Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Error C0000005 Occurred In Module Actvx.rct Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix 0x45a Vista Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – I have got few request’s from SQL Server DBA’s in past to blog about analyzing SQL Server exceptions and assertions . After seeing lot of DBA’s getting stuck …… […]
walk in tub said
walk in tub
SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL Server Assertion « MSSQLWIKI
How To Fix Access Violation At Address 00000 Lighting Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – October 19, 2012 at 3:31 AM. Hello Scott, WINHTTP.DLL is loaded in SQL Server’s internal address apace and crash is occuring WINHTTP.DLL. I recommended to move …… […]
How To Fix Access Violation Reading Location 0x00000010 Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Exception Unknown Software Exception Operating Systems Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Blackberry Exception Code C0000005 Access Violation Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix 0x42ac Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – I have got few request’s from SQL Server DBA’s in past to blog about analyzing SQL Server exceptions and assertions . After seeing lot of DBA’s getting stuck …… […]
How To Fix Exception Access Violation 0xc0000005 Windows 7 Solved Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Exception Access Violation 0xc0000005 Bootmgr Missing Windows Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix 0xc0000005 Access Violation Reading Location 0x00000004 Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Actvx.rct Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – I have got few request’s from SQL Server DBA’s in past to blog about analyzing SQL Server exceptions and assertions . After seeing lot of DBA’s getting stuck …… […]
How To Fix Jde Exception Code C0000005 Access Violation Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Access Violation At Address 00000 Fix Windows Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – October 19, 2012 at 3:31 AM. Hello Scott, WINHTTP.DLL is loaded in SQL Server’s internal address apace and crash is occuring WINHTTP.DLL. I recommended to move …… […]
How To Fix Exception Access Violation In Module Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
How To Fix Access Violation Address 00000000 Write Address 00000000 Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – October 19, 2012 at 3:31 AM. Hello Scott, WINHTTP.DLL is loaded in SQL Server’s internal address apace and crash is occuring WINHTTP.DLL. I recommended to move …… […]
How To Fix Access Violation Reading Location Referenced Memory Errors - Windows Vista, Windows 7 & 8 said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
Fix Sql Navigator Can Initialize Oci Error Windows XP, Vista, 7, 8 [Solved] said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL … – Do you have a question in SQL Server or stuck in SQL Server issue? Click here to join our facebook group and post your questions to SQL Server experts… […]
Ilene said
In other words, the persopn only felt better because they thought hey werde supposed to, or it was ‘all
in their head’. Looking at the present generation, much as its still rare to see
Asian meen dating women of other races, in comparison to the past generations, more aand more are actually doing it.
Just one of the three plants survived, and this particular coffee plaht
was given to Sir Nicholas Lawes, a former Jamaican Governor, approximately fivge years later.
The streak was snapped with a 14-13 loss at Samford on April 15.
Suitable facilities aare easily accessible with eyes color, eyebrow, lipstick, hairstyle, hairdryer, eyes
shadow, lipstick. Michael Phelps parties with girlfriend Megan Rossee after winning the 22th meddals
at the 2012 London Olympics. Misc:Olympic Medals Certicicate of Olympic Achievement Olympic Themed Writing paper.
There are numerous self aid programs, health and health programs that persons aree advertising online.
So is your child spending a lot of his time watching movies, playing video games and doesn’t go out for physical activities.
You control one of the spfite lead characters, each
of which has their own class setup. Successful
matches earn experience points for progressing up the leaderboards.
Alabama opened with an impressive run rule wiin ovdr Arkansas by the score oof 8-0.
Girls will engage guys in different games when they are
attracted to them. Colors of course wilkl depend on your personal tasste or
to the theme off your baby shower. Morgan, Ashley Holcombe and Lauren Parker weree named to the SEC All-Tournament
team. Essentially, all real-world ruleds that would apply to a
city aree thrown out of an Empire State Building window.
And if you don’t cade about anyone but the ever-powerful DORK,
don’t worry. With Diablo III arriving with its ‘diabolic’ always-online
gameplay that had players scrabbling at the walls for a fix during launch, does this hck and
slash dungeon crawler warrant the wait. If you are
doing online promotins found on the internet, you sure could do thus by targetung the surrounding people equally.
It’s time for Amazon tto step up annd make sime effort to protect the authors whose livelihoods are being targeted even as Amazon’s oown sales are being damaged.
She seems to be in love with Littlefinger although
he is indifferent. ” which are, in my opinion, more important than questions of which vitamin cures cancer or whatever fad is being tossed around this week. Alabama has pulled off series sweeps over Tennessee, No. Clevo Terrans Force X711 is equipped with the Intel Core i7 – 3920XM (Extreme Edition) quad-core eight-thread processor, clocked at 2. All the guy was trying to do was help Gyp his car back up and running.
Charles said
I am using SQL Server 2014 Web Edition. I get this when trying to perform a backup. If I restart the server, it temporarily resolves the issue.
Call Site
sqlmin!GetObjOffsets
sqlmin!PerfmonManager::AddInstance
sqlmin!BackupPerfmonCounter::AddInstance
sqlmin!BackupDevicePerfmonCounter::Init
sqlmin!BackupMedium::CreateDeviceObject
sqlmin!BackupMedium::Open
sqlmin!BackupStream::OpenForBackup
sqlmin!BackupStream::ThreadMainRoutine
sqlmin!BackupThread::ThreadBase
sqlmin!SubprocEntrypoint
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
blakhani said
Charles – http://sqlserver-help.com/2015/03/25/solution-sql-server-backup-failing-with-exception_access_violation/
Manu Kapoor said
Hi Karthick, Excellent Post with great insights. Can you please me with the following error (Extracted from SQLDumpXXX.txt) please:
Current time is 09:59:37 03/02/15.
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 11.0.5058.0
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is Intel(R) Xeon(R) CPU E7- 4807 @ 1.87GHz.
Bios Version is IBM – 0
-[G0E183BUS-1.83]-
48 X64 level 8664, 1 Mhz processor (s).
Windows NT 6.2 Build 9200 CSD .
Memory
MemoryLoad = 70%
Total Physical = 270312 MB
Available Physical = 80511 MB
Total Page File = 782312 MB
Available Page File = 592547 MB
Total Virtual = 134217727 MB
Available Virtual = 133762969 MB
***Stack Dump being sent to S:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\LOG\SQLDump0019.txt
Managed User Code: Process 77 generated fatal exception 80000003 EXCEPTION_BREAKPOINT. SQL Server is terminating
this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 03/02/15 09:59:37 spid 77
*
*
* Exception Address = 00007FFF24FD6830 Module(ntdll+0000000000096830)
* Exception Code = 80000003 EXCEPTION_BREAKPOINT
* Exception Information Array:
* [1] 0000000000000000:
* Input Buffer 111 bytes –
* 16 00 00 00 12 00 00 00 02 00 00 00 00 00 00 00 00 00
* c a t a l o 01 00 00 00 17 00 63 00 61 00 74 00 61 00 6c 00 6f 00
* g . s t a r t _ e 67 00 2e 00 73 00 74 00 61 00 72 00 74 00 5f 00 65 00
* x e c u t i o n 78 00 65 00 63 00 75 00 74 00 69 00 6f 00 6e 00 00 00
* @ e x e c u t i o 0d 40 00 65 00 78 00 65 00 63 00 75 00 74 00 69 00 6f
* n _ i d & ìÐ 00 6e 00 5f 00 69 00 64 00 00 26 08 08 ec d0 03 00 00
* 00 00 00
*
*
* MODULE BASE END SIZE
* sqlservr 00007FF777F00000 00007FF777F59FFF 0005a000
* ntdll 00007FFF24F40000 00007FFF250E8FFF 001a9000
* KERNEL32 00007FFF22D00000 00007FFF22E38FFF 00139000
* KERNELBASE 00007FFF226C0000 00007FFF227CDFFF 0010e000
* ADVAPI32 00007FFF24450000 00007FFF244F4FFF 000a5000
* MSVCR100 000000005D340000 000000005D411FFF 000d2000
* MSVCP100 000000005D2A0000 000000005D337FFF 00098000
* sqlos 000000005D290000 000000005D296FFF 00007000
* NETAPI32 00007FFF1ECA0000 00007FFF1ECB4FFF 00015000
* pdh 00007FFF185F0000 00007FFF1863CFFF 0004d000
* opends60 000000005D280000 000000005D287FFF 00008000
* sqlmin 00007FFF166A0000 00007FFF185ECFFF 01f4d000
* sqllang 00007FFF14600000 00007FFF16692FFF 02093000
* sqlTsEs 00007FFF13D70000 00007FFF145F6FFF 00887000
* sqldk 00007FFF138E0000 00007FFF13D60FFF 00481000
* msvcrt 00007FFF24C40000 00007FFF24CE6FFF 000a7000
* sechost 00007FFF24EE0000 00007FFF24F36FFF 00057000
* RPCRT4 00007FFF24310000 00007FFF24445FFF 00136000
* netutils 00007FFF20FB0000 00007FFF20FBBFFF 0000c000
* srvcli 00007FFF22090000 00007FFF220B4FFF 00025000
* wkscli 00007FFF20FC0000 00007FFF20FD5FFF 00016000
* USER32 00007FFF246B0000 00007FFF24820FFF 00171000
* ole32 00007FFF24AB0000 00007FFF24C25FFF 00176000
* OLEAUT32 00007FFF227D0000 00007FFF22886FFF 000b7000
* CRYPT32 00007FFF22390000 00007FFF22566FFF 001d7000
* Secur32 00007FFF1D450000 00007FFF1D45AFFF 0000b000
* PSAPI 00007FFF246A0000 00007FFF246A6FFF 00007000
* WS2_32 00007FFF228C0000 00007FFF22917FFF 00058000
* USERENV 00007FFF21C80000 00007FFF21C9EFFF 0001f000
* AUTHZ 00007FFF215C0000 00007FFF21607FFF 00048000
* WINTRUST 00007FFF22670000 00007FFF226BDFFF 0004e000
* WINMM 00007FFF137B0000 00007FFF137CEFFF 0001f000
* GDI32 00007FFF24D90000 00007FFF24ED4FFF 00145000
* combase 00007FFF22B20000 00007FFF22CF6FFF 001d7000
* MSASN1 00007FFF22370000 00007FFF22381FFF 00012000
* NSI 00007FFF24300000 00007FFF24308FFF 00009000
* profapi 00007FFF222C0000 00007FFF222D3FFF 00014000
* WINMMBASE 00007FFF13780000 00007FFF137A9FFF 0002a000
* SSPICLI 00007FFF22100000 00007FFF2212AFFF 0002b000
* cfgmgr32 00007FFF22570000 00007FFF225B9FFF 0004a000
* DEVOBJ 00007FFF211B0000 00007FFF211D5FFF 00026000
* LOGONCLI 00007FFF21890000 00007FFF218CCFFF 0003d000
* SAMCLI 00007FFF1D360000 00007FFF1D376FFF 00017000
* CRYPTBASE 00007FFF22190000 00007FFF22199FFF 0000a000
* bcryptPrimitives 00007FFF22130000 00007FFF2218DFFF 0005e000
* instapi110 00007FFF13770000 00007FFF1377DFFF 0000e000
* cscapi 00007FFF18C30000 00007FFF18C3FFFF 00010000
* sqlevn70 000000005D000000 000000005D27AFFF 0027b000
* CRYPTSP 00007FFF21CA0000 00007FFF21CBDFFF 0001e000
* rsaenh 00007FFF21680000 00007FFF216B4FFF 00035000
* bcrypt 00007FFF21DB0000 00007FFF21DD5FFF 00026000
* imagehlp 00007FFF22890000 00007FFF228A4FFF 00015000
* ncrypt 00007FFF21D80000 00007FFF21DA3FFF 00024000
* NTASN1 00007FFF21D40000 00007FFF21D79FFF 0003a000
* gpapi 00007FFF21520000 00007FFF21542FFF 00023000
* ntmarta 00007FFF1E400000 00007FFF1E42FFFF 00030000
* VERSION 00007FFF13720000 00007FFF13729FFF 0000a000
* msv1_0 00007FFF21980000 00007FFF219E7FFF 00068000
* cryptdll 00007FFF21CC0000 00007FFF21CD7FFF 00018000
* kerberos 00007FFF21B30000 00007FFF21C1AFFF 000eb000
* schannel 00007FFF21610000 00007FFF2167BFFF 0006c000
* MSCOREE 00007FFF1D080000 00007FFF1D0E3FFF 00064000
* mscoreei 00007FFF1CFE0000 00007FFF1D07BFFF 0009c000
* CLUSAPI 00007FFF12EC0000 00007FFF12F2AFFF 0006b000
* RESUTILS 00007FFF12E60000 00007FFF12EA8FFF 00049000
* security 00007FFF13710000 00007FFF13712FFF 00003000
* kernel.appcore 00007FFF20FF0000 00007FFF20FF9FFF 0000a000
* clbcatq 00007FFF22E40000 00007FFF22EE3FFF 000a4000
* sqlncli11 00000000635B0000 0000000063902FFF 00353000
* COMCTL32 00007FFF225C0000 00007FFF22660FFF 000a1000
* COMDLG32 00007FFF24A10000 00007FFF24AA9FFF 0009a000
* SHLWAPI 00007FFF24D30000 00007FFF24D80FFF 00051000
* SHELL32 00007FFF22EF0000 00007FFF242FEFFF 0140f000
* SHCORE 00007FFF20BE0000 00007FFF20C80FFF 000a1000
* SQLNCLIR11 0000000064910000 0000000064947FFF 00038000
* DPAPI 00007FFF20FE0000 00007FFF20FE8FFF 00009000
* netbios 00007FFF127E0000 00007FFF127E9FFF 0000a000
* clr 00007FFF1C630000 00007FFF1CFC7FFF 00998000
* MSVCR120_CLR0400 00007FFF1C550000 00007FFF1C625FFF 000d6000
* mscorlib.ni 00007FFF1AF10000 00007FFF1C494FFF 01585000
* SqlAccess 000000006F490000 000000006F4FCFFF 0006d000
* clrjit 00007FFF1ADE0000 00007FFF1AF0EFFF 0012f000
* BatchParser 000000006F5C0000 000000006F5EAFFF 0002b000
* RsFxFt 00007FFF1C4D0000 00007FFF1C4D8FFF 00009000
* ftimport 0000000072AA0000 0000000072AC4FFF 00025000
* MSFTE 0000000072AD0000 0000000072E7DFFF 003ae000
* dbghelp 0000000072E80000 0000000073015FFF 00196000
* mswsock 00007FFF219F0000 00007FFF21A47FFF 00058000
* ntdsapi 00007FFF1EBD0000 00007FFF1EBF7FFF 00028000
* DSPARSE 00007FFF1D110000 00007FFF1D11AFFF 0000b000
* DNSAPI 00007FFF218D0000 00007FFF21972FFF 000a3000
* rasadhlp 00007FFF1A130000 00007FFF1A138FFF 00009000
* IPHLPAPI 00007FFF1E940000 00007FFF1E968FFF 00029000
* WINNSI 00007FFF1E8E0000 00007FFF1E8E9FFF 0000a000
* fwpuclnt 00007FFF1E7B0000 00007FFF1E816FFF 00067000
* ncryptsslp 00007FFF12E40000 00007FFF12E5AFFF 0001b000
* xpsqlbot 00000041F0720000 00000041F0727FFF 00008000
* xpstar 000000469A220000 000000469A28FFFF 00070000
* ATL100 000000469A2A0000 000000469A2CAFFF 0002b000
* SQLSCM 000000469A2D0000 000000469A2DEFFF 0000f000
* ODBC32 00007FFF0E710000 00007FFF0E7CBFFF 000bc000
* xpstar 000000469A2F0000 000000469A314FFF 00025000
* xplog70 000000469A330000 000000469A343FFF 00014000
* BROWCLI 00007FFF07A30000 00007FFF07A41FFF 00012000
* xplog70 000000469A360000 000000469A362FFF 00003000
* oledb32 00007FFF075F0000 00007FFF076DEFFF 000ef000
* MSDART 00007FFF08720000 00007FFF08743FFF 00024000
* comsvcs 00007FFF06510000 00007FFF0669CFFF 0018d000
* OraOLEDB12 00007FFF11DB0000 00007FFF11E4AFFF 0009b000
* OraOLEDBgmr12 000000469ADE0000 000000469AE04FFF 00025000
* OraOLEDBrst12 000000469AE10000 000000469AE3CFFF 0002d000
* OraOLEDButl12 000000469AE40000 000000469AE48FFF 00009000
* OCI 00007FFF063C0000 00007FFF06467FFF 000a8000
* OraClient12 00007FFF05DC0000 00007FFF0630DFFF 0054e000
* oracore12 00007FFF05C10000 00007FFF05DB8FFF 001a9000
* oranls12 00007FFF05B00000 00007FFF05C02FFF 00103000
* oraunls12 00007FFF05AE0000 00007FFF05AFDFFF 0001e000
* oracommon12 00007FFF05780000 00007FFF05ADDFFF 0035e000
* orageneric12 00007FFF045D0000 00007FFF05776FFF 011a7000
* oraons 00007FFF04590000 00007FFF045C7FFF 00038000
* oraxml12 00007FFF03E90000 00007FFF04589FFF 006fa000
* oran12 00007FFF03A30000 00007FFF03E82FFF 00453000
* oraldapclnt12 00007FFF03550000 00007FFF03A29FFF 004da000
* orannzsbb12 00007FFF030C0000 00007FFF03549FFF 0048a000
* oranl12 00007FFF03030000 00007FFF030B6FFF 00087000
* oranro12 00007FFF02FD0000 00007FFF03026FFF 00057000
* orapls12 00007FFF029C0000 00007FFF02FC9FFF 0060a000
* orasql12 00007FFF02960000 00007FFF029B1FFF 00052000
* orauts 00007FFF02950000 00007FFF02955FFF 00006000
* orasnls12 00007FFF02910000 00007FFF02947FFF 00038000
* oraasmclnt12 00007FFF02830000 00007FFF0290CFFF 000dd000
* orawsec12 00007FFF027F0000 00007FFF0282CFFF 0003d000
* wsnmp32 00007FFF08140000 00007FFF08152FFF 00013000
* orahasgen12 00007FFF021F0000 00007FFF027E5FFF 005f6000
* oraocr12 00007FFF020D0000 00007FFF021E7FFF 00118000
* orazt12 00007FFF01BE0000 00007FFF020CCFFF 004ed000
* WSOCK32 00007FFF136C0000 00007FFF136C8FFF 00009000
* orancrypt12 00007FFF01BC0000 00007FFF01BDBFFF 0001c000
* oranldap12 00007FFF01B70000 00007FFF01BB8FFF 00049000
* oranhost12 00007FFF01B60000 00007FFF01B69FFF 0000a000
* orancds12 00007FFF01B50000 00007FFF01B56FFF 00007000
* orantns12 00007FFF01B40000 00007FFF01B4DFFF 0000e000
* oraztkg12 00007FFF01670000 00007FFF01B34FFF 004c5000
* CRYPTUI 00007FFF015D0000 00007FFF01665FFF 00096000
* orantcp12 00007FFF069B0000 00007FFF069E1FFF 00032000
* oraslax12 00007FFF075E0000 00007FFF075ECFFF 0000d000
* oravsn12 00007FFF075D0000 00007FFF075D6FFF 00007000
* oraplp12 00007FFF06E90000 00007FFF07295FFF 00406000
* oracell12 00007FFF07560000 00007FFF075C9FFF 0006a000
* oraocrutl12 00007FFF07540000 00007FFF07554FFF 00015000
* oraclsce12 00007FFF074F0000 00007FFF07532FFF 00043000
* oraocrb12 00007FFF07400000 00007FFF074E0FFF 000e1000
* OraPlc12 00007FFF06E70000 00007FFF06E8DFFF 0001e000
* OraOLEDB12us 000000469AFC0000 000000469AFC6FFF 00007000
* OraOLEDBpus12 000000469AFD0000 000000469AFD8FFF 00009000
* napinsp 00007FFF12F30000 00007FFF12F43FFF 00014000
* NLAapi 00007FFF1ECF0000 00007FFF1ED08FFF 00019000
* winrnr 00007FFF12EB0000 00007FFF12EBBFFF 0000c000
* Sort00060101 00007FFF11C30000 00007FFF11C42FFF 00013000
* System.ni 00007FFF1A170000 00007FFF1ADDDFFF 00c6e000
* System.Data 00007FFF0E9D0000 00007FFF0ECECFFF 0031d000
* System 000000469CD80000 000000469D0CDFFF 0034e000
* System.Transactions 00007FFF067D0000 00007FFF06818FFF 00049000
* System.Security.ni 00007FFF10C20000 00007FFF10D06FFF 000e7000
* System.Security 000000469D470000 000000469D4B5FFF 00046000
* System.Xml.ni 00007FFF18CF0000 00007FFF1969FFFF 009b0000
* System.Xml 000000469D840000 000000469DAD5FFF 00296000
* msdaps 00007FFF07350000 00007FFF073B4FFF 00065000
* instapi 000000469DEA0000 000000469DEACFFF 0000d000
* MSVCR80 000000469E2A0000 000000469E368FFF 000c9000
* DSROLE 00007FFF1EC90000 00007FFF1EC98FFF 00009000
* System.Configuration.ni 00007FFF196A0000 00007FFF197CEFFF 0012f000
* System.Configuration 00000046A5950000 00000046A59B1FFF 00062000
* System.Core.ni 00007FFF197D0000 00007FFF1A12DFFF 0095e000
* System.Core 00000046A6CC0000 00000046A6DF5FFF 00136000
* Sort00001000 00007FFEF8ED0000 00007FFEF8FA4FFF 000d5000
* mpr 00007FFF18CD0000 00007FFF18CEAFFF 0001b000
* COMRES 00007FFEFB9A0000 00007FFEFBADDFFF 0013e000
* XOLEHLP 00007FFEFBAE0000 00007FFEFBAF4FFF 00015000
* MSDTCPRX 00007FFF07810000 00007FFF078D7FFF 000c8000
* MTXCLU 00007FFF077A0000 00007FFF07803FFF 00064000
* ktmw32 00007FFF1E4C0000 00007FFF1E4CAFFF 0000b000
* dbghelp 00000046C3820000 00000046C39B5FFF 00196000
*
* P1Home: 0000000000000000:
* P2Home: 0000000000000000:
* P3Home: 0000000000007A78:
* P4Home: 0000000000000000:
* P5Home: 0000000000000000:
* P6Home: 0000000000000000:
* ContextFlags: 000000000010001F: 0000010000001400 0000340000000200 000001000000D400 0000000000000000 000000
0000000000 0000020000000000
* MxCsr: 0000000000001FA0:
* SegCs: 0000000000000033:
* SegDs: 000000000000002B:
* SegEs: 000000000000002B:
* SegFs: 0000000000000053:
* SegGs: 000000000000002B:
* SegSs: 000000000000002B:
* EFlags: 0000000000000202:
* Rax: 0000000000000000:
* Rcx: 0000000000007A78:
* Rdx: 0000000000000000:
* Rbx: 0000000000007A78:
* Rsp: 0000000079C3A708: 00007FFF226D9CA1 0000001FA0F28040 00007FFF1CA7F0AC 0000000000007A78 00000017
191E0160 0000000079C3A7E0
* Rbp: 0000000079C3A780: FFFFFFFFFFFFFFFE 00007FFEBD5E5260 0000000079C3A870 00007FFF1CABFCC0 00000000
00000001 00007FFF22D030A0
* Rsi: 0000000000000000:
* Rdi: 0000000000000000:
* R8: 0000000079C39B68: 00007FFF24F68834 00007FFEBD5E5201 0000000000000B28 00001FA00010000F 00000000
00000033 00000202002B1000
* R9: 0000000079C39C70: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000
00000000 0000000000000000
* R10: 0000000000000000:
* R11: 0000000000000206:
* R12: 0000000079C3A7E0: 00007FFEBD651FDB 0000000000000000 000000283D372200 0000000000000001 00000000
79C3A900 0000000079C3A8F8
* R13: 00000044A0A01128: 00007FFF1B5801C0 0000000000000000 0000000000000000 0000000000000000 00000044
A0A011C8 0000000000000000
* R14: 0000000000007A78:
* R15: 000000282D72C0E8: 0000051810000000 0000071000000687 000000000000076C 00007FFF1B57FE70 00000000
00000001 0000000079C3CB20
* Rip: 00007FFF24FD6830: 0000002BB8D18BCC 0000441F0FC3050F 0000002CB8D18B4C 0000441F0FC3050F 0000002D
B8D18B4C 0000441F0FC3050F
* *******************************************************************************
* ——————————————————————————-
* Short Stack Dump
00007FFF24FD6830 Module(ntdll+0000000000096830)
00007FFF226D9CA1 Module(KERNELBASE+0000000000019CA1)
00007FFF1C6347E4 Module(clr+00000000000047E4)
00007FFF1CABFCC0 Module(clr+000000000048FCC0)
00007FFF1C634774 Module(clr+0000000000004774)
00007FFEBD651FDB Module(UNKNOWN+0000000000000000)
0000000000007A78 Module(UNKNOWN+0000000000000000)
CSession @0x000000614A02E450
—————————-
m_sessionId = 77 m_cRef = 11 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 8 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0x000000614A02E040
m_pstackBhfPool = 0x000000614A01F020 m_dwLoginFlags = 0x83e0 m_fBackground = 0
m_eConnResetOption = 0 m_fUserProc = 1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fAuditLoginSent = 1
m_fAuditLoginFailedSent = 0 m_fReplRelease = 0 m_fKill = 0
m_ulLoginStamp = 4611137 m_eclClient = 7 m_protType = 5
m_hHttpToken = FFFFFFFFFFFFFFFF
m_pV7LoginRec
———————
0000000000000000: 8f010000 04000074 401f0000 00000006 88090000 …….t@…….. ..
0000000000000014: 00000000 e0830000 00000000 00000000 5e000c00 ….à?……….^…
0000000000000028: 00000000 00000000 76001c00 ae000c00 c6000400 ……..v…®…Æ…
000000000000003C: ca001c00 02010000 02010600 597a16ae b9d00e01 Ê………..Yz.®¹Ð..
0000000000000050: 7b008901 00008901 00000000 0000 {.?…?…….
CPhysicalConnection @0x000000614A02E230
—————————————
m_pPhyConn->m_pmo = 0x000000614A02E040
m_pPhyConn->m_pNetConn = 0x000000614A02EBF0
m_pPhyConn->m_pConnList = 0x000000614A02E420
m_pPhyConn->m_pSess = 0x000000614A02E4A8 m_pPhyConn->m_fTracked = -1
m_pPhyConn->m_cbPacketsize = 8000 m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0
CBatch @0x000000614A02F140
————————–
m_pSess = 0x000000614A02E450 m_pConn = 0x000000614A02F020 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x0000000008260CF8
EXCEPT (null) @0x0000000079C37950
———————————
exc_number = 0 exc_severity = 0 exc_func = 0x00007FFF139B2AC0
Task @0x0000000008260CF8
————————
CPU Ticks used (ms) = 436 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x0000000000000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x0000000000000000 SchedulerId = 0x2c
ThreadId = 0x4840 m_state = 0 m_eAbortSev = 2
EC @0x000000614A01E540
———————-
spid = 0 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x0 ec_atomic = 0x0 ecType = 0
__pSETLS = 0x000000614A02F090 __pSEParams = 0x000000614A02F2C0
SEInternalTLS @0x000000614A02F090
———————————
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x0000000008260CF8
m_activeHeapDatasetList = 0x000000614A02F090
m_activeIndexDatasetList = 0x000000614A02F0A0 m_pDbccContext = 0x0000000000000000
m_pAllocFileLimit = 0x0000000000000000 m_dekInstanceIndex = 0x-1
m_pImbiContext = 0x0000000000000000
SEParams @0x000000614A02F2C0
—————————-
m_lockTimeout = -1 m_isoLevel = 4096 m_logDontReplicate = 0
m_neverReplicate = 0 m_XactWorkspace = 0x0000001277196040
m_execStats = 0x0000000F9E7A3088
Solution – SQL Server Backup Failing with EXCEPTION_ACCESS_VIOLATION « Help: SQL Server said
[…] there is a MDMP file is also generated. Here is the stack when we analyze the dump. Yon can refer https://mssqlwiki.com/2012/10/16/sql-server-exception_access_violation-and-sql-server-assertion link to know more about identifying […]
Christian Z. said
Hi Karthick, I have a problem restoring a database from a backup. Situation is, as follows:
– base was a database running in Version 8 compatibility-mode on SQL-Server V9.
– I changed compatibilitylevel of the database to 9
– DBCC CheckDB > no Errors
– I backuped database with no Errors/Problems (using ssms)
– restoration from backupfile succeeded on any SQL V9
– restoration on SQL V 10.5 / 11.0 shows progress up to 100% and then fails (after this step the restored database remains in recovery)
Looking at the detailed output running the restoration via tsql Shows that every attempt fails at step update from Version 626 to Version 627.
Can you please help me with the following output of the WinDebug-Tool:
Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\SQL Server Datenbanken\MSSQL10.MSSQLSERVER\MSSQL\Log\SQLDump0021.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Program fault handler’
Comment: ’04/28/15 10:13:31 spid 57 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 00000000 at 0x0201D4D2
‘
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (2 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Tue Apr 28 10:13:32.000 2015 (GMT+2)
System Uptime: 39 days 20:40:23.226
Process Uptime: 39 days 20:37:35.000
……………………………………………………….
…………………………..
Loading unloaded module list
………………………….
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(15c.ed8): Access violation – code c0000005 (first/second chance not available)
eax=00421474 ebx=00000000 ecx=00000321 edx=00000000 esi=00000a04 edi=5bc9b218
eip=76e270f4 esp=5bc9b1d0 ebp=5bc9b23c iopl=0 nv up ei ng nz ac pe cy
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000297
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll –
ntdll!KiFastSystemCallRet:
76e270f4 c3 ret
0:031> .sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
0:031> .reload /f
.
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
……………………………..*** ERROR: Symbol file could not be found. Defaulted to export symbols for sophos_detoured.dll –
..*** ERROR: Symbol file could not be found. Defaulted to export symbols for instapi10.dll –
..*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
.*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
…………………*** ERROR: Symbol file could not be found. Defaulted to export symbols for msfte.dll –
..
….*** ERROR: Symbol file could not be found. Defaulted to export symbols for swi_ifslsp.dll –
……………*** ERROR: Module load completed but symbols could not be loaded for SQLNCLIR10.RLL
……*** ERROR: Module load completed but symbols could not be loaded for odbcint.dll
…*** ERROR: Module load completed but symbols could not be loaded for XPStar.RLL
..*** ERROR: Module load completed but symbols could not be loaded for xplog70.rll
..
Loading unloaded module list
………………………….
0:031> lmvm sqlservr
start end module name
00e60000 037e1000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\DC2F47C826394BD3ADE95BEA230E63F52\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Fri Jun 17 23:52:49 2011 (4DFBCCB1)
CheckSum: 0291ACE5
ImageSize: 02981000
File version: 2009.100.2500.0
Product version: 10.50.2500.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 10.50.2500.0
FileVersion: 2009.0100.2500.00 ((KJ_PCU_Main).110617-0026 )
FileDescription: SQL Server Windows NT
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:031> .ecxr
eax=00000000 ebx=10ba45c8 ecx=8b5550ba edx=00000001 esi=10ba467c edi=01684c0c
eip=0201d4d2 esp=5bc9caac ebp=5bc9caf0 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
sqlservr!UpgradeAddSysTypesXmlMetadata+0xf7:
0201d4d2 8b10 mov edx,dword ptr [eax] ds:0023:00000000=????????
0:031> kC 1000
sqlservr!UpgradeAddSysTypesXmlMetadata
sqlservr!upg_KatmaiNewDateTimeTypes
sqlservr!performUpgradeStep
sqlservr!DBTABLE::UpgradeDatabase
sqlservr!DBTABLE::StartupInDatabase
sqlservr!DBTABLE::Startup
sqlservr!DBMgr::StartupDB
sqlservr!BackupOperation::StartupDb
sqlservr!BackupOperation::BringDatabaseFullyOnline
sqlservr!BackupOperation::BringDatabaseOnline
sqlservr!BackupOperation::CompleteRestore
sqlservr!BackupOperation::Restore
sqlservr!BackupEntry::RestoreDatabase
sqlservr!CStmtLoadDb::XretExecute
sqlservr!CExecuteStatement::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!__RtlUserThreadStart
ntdll!_RtlUserThreadStart
Karthick P.K said
Did you have corruption in past and fix it with allow data loss? I think the only option you have is to use CDW and copy the database from 2005 to 2008/R2
Christian Zach said
Hi Karthick,
thanks for your Response. I’m don’t know wether or not a corruption had to be fixed allowing dataloss in the past (database of a Client and probably he is not able to answer). I finally solved the Problem copying the database with a selfmade tool instead of CDW. I was interested in a maybe better solution and therefore searched the Internet with your blog seeming to be the auspicious attempt.
Thanks anyway for your great article and you Suggestion 😉
Christian
Binu Kumar said
Hi Karthick,
Firstly i would appriciate your efforts and knowledge in SQL. I am also facing this issue where the SQLDump file is geting generated again and again and this is eating my disk space. I have followed the steps suggested by you in the article above : Please find my output from the DUMP analysis:
Microsoft (R) Windows Debugger Version 6.2.9200.20512 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [Z:\Jeff\SQLDump32396.mdmp]
Comment: ‘Program fault handler’
Comment: ’05/08/15 11:13:06 spid 175 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 0000000000000000 at 0x000000000062F4BB
‘
User Mini Dump File: Only registers, stack and portions of memory are available
WARNING: Inaccessible path: ‘”c:\symbols\private’
WARNING: Inaccessible path: ‘”c:\symbols\private’
Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols;”c:\symbols\private;srv*c:\symbols\web*http://msdl.microsoft.com/download/symbols”
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (4 procs) Free x64
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Fri May 8 12:13:08.000 2015 (UTC – 4:00)
System Uptime: 23 days 12:38:43.804
Process Uptime: 23 days 12:38:32.000
……………………………………………………….
…………………………………………………..
Loading unloaded module list
……………………………………………………………
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(80c.91c): Access violation – code c0000005 (first/second chance not available)
ntdll!NtWaitForSingleObject+0xa:
00000000`771912fa c3 ret
0:000> lmvm sqlservr
start end module name
00000000`000e0000 00000000`0399a000 sqlservr (deferred)
Image path: C:\Program Files\Microsoft SQL Server\MSSQL10.CCIMSQL2008\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Thu Sep 22 17:20:23 2011 (4E7BA697)
CheckSum: 037AE108
ImageSize: 038BA000
File version: 2007.100.5500.0
Product version: 10.0.5500.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
0:000> .ecxr
*** WARNING: Unable to verify timestamp for sqlservr.exe
rax=0000000000000000 rbx=0000000000000000 rcx=0000000080a54468
rdx=000000009f83c830 rsi=0000000000000001 rdi=0000000000000000
rip=000000000062f4bb rsp=000000000da9b770 rbp=000000009f83c830
r8=0000000000000001 r9=0000000000000000 r10=0000000000000001
r11=00000002003f33d0 r12=0000000080a54468 r13=000000000da9b9c0
r14=00000001ffd5c450 r15=0000000000000000
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
sqlservr!CMEDIndexStatsCollection::GetProxyIndexWithLock+0x3b:
00000000`0062f4bb 488b10 mov rdx,qword ptr [rax] ds:00000000`00000000=????????????????
0:000> kC 1000
Call Site
sqlservr!CMEDIndexStatsCollection::GetProxyIndexWithLock
sqlservr!CMEDProxyRelation::GetIndex
sqlservr!CMetadataUtil::GetIndexFromIMED
sqlservr!CAlgTableMetadata::PimidxBaseIndex
sqlservr!CAlgTableMetadata::LoadSpecialColumns
sqlservr!CAlgTableMetadata::LoadColumns
sqlservr!CAlgTableMetadata::Bind
sqlservr!CRelOp_Get::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Insert::BindSelfSecondary
sqlservr!CRelOp_Insert::BindSelfPrimary
sqlservr!CRelOp_Insert::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_DMLQuery::BindTree
sqlservr!COptExpr::BindTree
sqlservr!CRelOp_Query::FAlgebrizeQuery
sqlservr!CProchdr::FNormQuery
sqlservr!CProchdr::FNormalizeStep
sqlservr!CSQLSource::FCompile
sqlservr!CSQLSource::FCompWrapper
sqlservr!CSQLSource::Transform
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
*** WARNING: Unable to verify timestamp for msvcr80.dll
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
0x0
0x0
Kindly suggest the next plan of action.!!!
Karthick P.K said
This seems to be an ancient issue. Apply the latest Service pack,
Mike said
Here’s the results of my analysis:
sqlservr!CXPacketList::RemoveHead
sqlservr!CXPipe::GetRow
sqlservr!CXPipeMerge::ReleaseRow
sqlservr!CXPipeMerge::GetRow
sqlservr!CQScanExchangeNew::GetRow
sqlservr!CQScanStreamAggregateNew::GetRowHelper
sqlservr!CQScanStreamAggregateNew::GetCalculatedRow
sqlservr!CQScanStreamAggregateNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::InitForExecute
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtSelect::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStatsUtil::PCStatManMaxdiffHistogram
sqlservr!CStatsUtil::PersistQPStatsInCatalogs
sqlservr!CStatsUtil::FUpdateQPStatsHelper
sqlservr!CStmtUpdStats::XretExecute
sqlservr!CXStmtDDL::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecStr::XretExecStrExecute
sqlservr!CXStmtExecStr::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!CMsqlExecContext::FExecute
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
msvcr80!_threadstartex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Any ideas?
Karthick P.K said
You will find the error which caused this exception is ring buffer and then troubleshoot the error.
Below query from https://mssqlwiki.com/2013/03/29/inside-sys-dm_os_ring_buffers/ will help
PRINT ”
PRINT ”
PRINT ‘==== RING_BUFFER_EXCEPTION’
SELECT CONVERT (varchar(30), GETDATE(), 121) as [RunTime],
dateadd (ms, (rbf.[timestamp] – tme.ms_ticks), GETDATE()) as Time_Stamp,
cast(record as xml).value(‘(//Exception//Error)[1]’, ‘varchar(255)’) as [Error],
cast(record as xml).value(‘(//Exception/Severity)[1]’, ‘varchar(255)’) as [Severity],
cast(record as xml).value(‘(//Exception/State)[1]’, ‘varchar(255)’) as [State],
msg.description,
cast(record as xml).value(‘(//Exception/UserDefined)[1]’, ‘int’) AS [isUserDefinedError],
cast(record as xml).value(‘(//Record/@id)[1]’, ‘bigint’) AS [Record Id],
cast(record as xml).value(‘(//Record/@type)[1]’, ‘varchar(30)’) AS [Type],
cast(record as xml).value(‘(//Record/@time)[1]’, ‘int’) AS [Record Time],
tme.ms_ticks as [Current Time]
from sys.dm_os_ring_buffers rbf
cross join sys.dm_os_sys_info tme
cross join sys.sysmessages msg
where rbf.ring_buffer_type = ‘RING_BUFFER_EXCEPTION’
and msg.error = cast(record as xml).value(‘(//Exception//Error)[1]’, ‘varchar(500)’) and msg.msglangid = 1033
ORDER BY rbf.timestamp ASC
michal said
Hi,
Very helpfull post!!! Thanks a lot 🙂
I got this information, what is behind this?
rax=0000000000000000 rbx=0000000000000000 rcx=0000000000000000
rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000000
rip=0000000000000000 rsp=0000000000000000 rbp=0000000000000000
r8=0000000000000000 r9=0000000000000000 r10=0000000000000000
r11=0000000000000000 r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up di pl nz na pe nc
cs=0000 ss=0000 ds=0000 es=0000 fs=0000 gs=0000 efl=00000000
00000000`00000000 ?? ???
0:222> kC 1000
Call Site
0x0
Thanks,
Michal
Seth T said
Thank you for the great article and for answering questions!
I have a SSAS cube that crashed a little while ago. We were at the tail end of our daily processing and we had some users in running queries but I haven’t been able to pinpoint if it was either one of those or a combination of the two. Any help that you can provide would be much appreciated!
Analysis Services is at version 2012 SP2 CU5 (11.0.5582.0)
The log that came with the dump file showed a “Aborting Transaction on session XXXXXX” message for one of the sessions. That is probably because of the processing that was occurring and it hitting the ForceCommitTimeout, but that shouldn’t have crashed the SSAS service. Please let me know if there is anything in the dump file output below or something that you have seen in the past that might help us target the issue. Thanks again!
0:046> .ecxr
rax=00000000460a02b0 rbx=0000000080004005 rcx=000000012a770028
rdx=00000001e7ffe7b9 rsi=0000000000000000 rdi=0000000000000420
rip=00007ffe85ab8b9c rsp=00000001e7ffec10 rbp=0000000000000000
r8=00007ffe88630073 r9=0000000006000270 r10=00000000004297d5
r11=00000003cd7a7040 r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000001160
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
KERNELBASE!RaiseException+0x68:
00007ffe`85ab8b9c 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:00000001`e7ffecd0=000025a97036edf0
0:046> kC 1000
Call Site
KERNELBASE!RaiseException
msmdsrv!CDmpDump::Dump
msmdsrv!PFWatsonMiniDumpToLocalFile
msmdsrv!PFSetLastErrorFromExceptionExTag
msmdsrv!PFSetErrorInfoFromException
msmdsrv!PFHandleUnsupportedException
msvcr100!purecall
msmdsrv!PCJob::LaunchJob
msmdsrv!MDQueryDistinctJob::CoordinateJob
msmdsrv!MDQueryPartitionJob::Execute
msmdsrv!PCMolapProcess::LaunchOperationInternal
msmdsrv!PCJob::LaunchOperation
msmdsrv!PCJob::ExecuteTask
msmdsrv!PFThreadPool::ExecuteJob
msmdsrv!PFThreadPool::WorkerMethod
msmdsrv!PFIOProcessingThreadPool::ThreadProc
msmdsrv!PFThreadPool::ThreadProcWrapperForPFThreadPool
msvcr100!endthreadex
msvcr100!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Hector A Sanchez said
Karthick:
I’ve been having problems with one of my production servers. The server was creating SQLDump for the past month. This server is virtual and it has been running OK since 2008 without a problem. The server is a Windows Datacenter 2008 SP2 running SQL Server 2008 R2 SP3. The wicked thing about this issue is that when it happens the SQL services stop working and do not re-start again (I have to start them manually). This issue happens intermittent and I could not recreated it in the testing environment. Here you have some segments of the BugCheck Dump and the stack after running kC 1000:
Current time is 10:23:47 06/18/15.
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 10.50.6000.34
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz.
Bios Version is INTEL – 6040000
PhoenixBIOS 4.0 Release 6.0
2 X64 level 8664, 3 Mhz processor (s).
Windows NT 6.0 Build 6002 CSD Service Pack 2.
Memory
MemoryLoad = 97%
Total Physical = 16382 MB
Available Physical = 420 MB
Total Page File = 32957 MB
Available Page File = 16944 MB
Total Virtual = 8388607 MB
Available Virtual = 8371593 MB
**Dump thread – spid = 0, EC = 0x0000000000000000
***Stack Dump being sent to D:\MSSQLSrvData\MSSQL10.MSSQLSERVER\MSSQL\LOG\SQLDump0009.txt
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 06/18/15 10:23:47 spid 7100
*
* ex_handle_except encountered exception C0000005 – Server terminating
Stack section:
kernel32!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll!RtlUserThreadStart
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
rpcrt4!OSF_CASSOCIATION::ShutdownRequested
rpcrt4!OSF_CASSOCIATION::OsfDeleteLingeringAssociations
rpcrt4!PerformGarbageCollection
rpcrt4!LOADABLE_TRANSPORT::ProcessIOEvents
rpcrt4!ProcessIOEventsWrapper
rpcrt4!BaseCachedThreadRoutine
rpcrt4!ThreadStartRoutine
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Thank you for your help.
Hector Sanchez
Madhu said
Call Site
sqllang!CPassThroughConn::SendReturnStatusImpl
sqllang!CParamExchange::SetReturnStatus
sqllang!CMsqlExecContext::FExecute
sqllang!CSQLSource::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Vojislav said
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO
0x0
0x0
0x0
Thank You very much Sir for taking Your time…
Paul Barbin said
Thanks for the site! I’m having basic trouble loading the symbols. Not sure how to proceed.
Downloaded the minidump from Sql Server (server) to my local box.
Opened Windgb, Ctrl+D, selected the file.
Output:
——————————————————————————————————
Loading Dump File [C:\SQLDump0065.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Stack Trace’
Comment: ‘ex_terminator – Last chance exception handling’
Symbol search path is: srv*DownstreamStore*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (16 procs) Free x64
Product: Server, suite: Enterprise TerminalServer SingleUserTS
Machine Name:
Debug session time: Fri Sep 25 13:13:07.000 2015 (UTC – 5:00)
System Uptime: 6 days 13:41:37.454
Process Uptime: 6 days 13:37:38.000
……………………………………………………….
………………………………….
Loading unloaded module list
……………………………………………………………
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(195c.23a8): Unknown exception – code 000042ac (first/second chance not available)
ntdll!ZwWaitForSingleObject+0xa:
00000000`770abe7a c3 ret
——————————————————————————————————
Then I try loading symbols and it SEEMS to work.
I hit .reload /f and it gives an error: Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10.BIPROD01\MSSQL\Binn\sqlservr.exe
(That path on another server for the previous dump file I analyzed but not this current one.)
Any ideas on the original error or how to proceed by pointing it at the sqlserver on my machine?
Jayen Rachh said
Hi..
Thanks for helping in advance, here is our KC 1000
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
msvcr80!terminate
msvcr80!_inconsistency
msvcr80!_FrameUnwindToState
msvcr80!__FrameUnwindToEmptyState
msvcr80!_InternalCxxFrameHandler
msvcr80!_CxxFrameHandler
ntdll!RtlpExecuteHandlerForUnwind
ntdll!RtlUnwindEx
kernel32!RtlUnwindExStub
msvcr80!UnwindNestedFrames
msvcr80!_CxxExceptionFilter
msvcr80!_InternalCxxFrameHandler
msvcr80!__SehTransFilter
msvcr80!CallSETranslator
msvcr80!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!RtlRaiseException
KERNELBASE!RaiseException
msvcr80!CxxThrowException
sqlservr!ExceptionBackout::GetCurrentException
sqlservr!ex_raise2
sqlservr!ex_raisecontrol
sqlservr!IsNXException
sqlservr!ex_trans_cexcept
sqlservr!SOS_SEHTranslator
msvcr80!CallSETranslator
msvcr80!_CxxExceptionFilter
msvcr80!_CxxExceptionFilter
msvcr80!_InternalCxxFrameHandler
msvcr80!_CxxFrameHandler
sqlservr!_GSHandlerCheck_EH
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
sqlservr!CMemo::CMemo
sqlservr!CMemObj::Alloc
Keith said
start end module name
00000000`ff970000 00000000`ff9ca000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\427D00997E8B428BBB7A3E5258ACB0F72\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Timestamp: Mon Jul 14 22:34:55 2014 (53C4934F)
CheckSum: 00038F9C
ImageSize: 0005A000
File version: 2011.110.5532.0
Product version: 11.0.5532.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 11.0.5532.0
FileVersion: 2011.0110.5532.00 ((SQL11_SP2_QFE-CU).140714-1446 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> .ecxr
rax=0000000000000000 rbx=0000000000000000 rcx=0000000000000000
rdx=0000000000000000 rsi=0000000000000000 rdi=000000b656c64880
rip=000007feed389eca rsp=00000077828ad000 rbp=0000007792b1b0b0
r8=000000b656c64880 r9=0000000000000000 r10=0000000000000002
r11=0000000000000004 r12=0000000000000000 r13=0000002b40878b80
r14=0000000000000000 r15=0000000000000001
iopl=0 nv up ei pl zr na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
sqlmin!Lock::GrantLocks+0x69d:
000007fe`ed389eca 48634170 movsxd rax,dword ptr [rcx+70h] ds:00000000`00000070=????????
0:000> kC 1000
Call Site
sqlmin!Lock::GrantLocks
sqlmin!LockOwner::RemoveGrantedLockOwner
sqlmin!XactLockInfo::ReleaseUnconditionalSafe
sqlmin!XactLockInfo::ReleaseAll
sqlmin!XdesRMFull::~XdesRMFull
sqlmin!XdesRMFull::`vector deleting destructor’
sqlmin!XactRM::SinglePhaseCommit
sqlmin!XactRM::CommitInternal
sqlmin!FullXactImp::Commit
sqllang!CMsqlXactInternalReadWrite::Commit
sqllang!CMsqlXactImp::Commit
sqllang!CResMgrTopExecLevel::Execute
sqllang!process_request
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
joe schwartz walk-in tub said
Falls, sprains and scalds in traditional bathrooms
account for the vast majority of these injuries.
A release tube in the home directs the waste flow into the drain system of
the building. Spa tub doctor offices can be purchased in many different measurements coming from tiny doctor offices designed for lovers to
just one that will allow for 12 folks.
Jörgen said
Hi Karthick, and thanks in advanced.
Here is our kC 1000:
This happend a few hours after a restart of the server due to a windows update…
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqllang!SQLDumperLibraryInvoke
sqllang!CImageHelper::DoMiniDump
sqllang!stackTrace
sqllang!stackTraceCallBack
sqldk!ex_handle_except
KERNELBASE!UnhandledExceptionFilter
/ Jörgen
Dejan said
Hi…
Here is our KC 1000… Can you please help me?
0:000> KC1000
sqlmin!SqlAutoReadOnlyXact::BeginStandAloneXact
sqlmin!SqlAutoReadOnlyXact::BeginCompatibleXact
sqllang!ISECManager::CheckPermRuleAuditOnly
sqllang!ServerShutdownEvent
sqllang!CTrace::SetStatus
sqllang!CTraceController::ProduceRecord
sqllang!PostAuditLogin
sqllang!CSecSpecialAudit::AuditEvent
sqllang!AuditCheckSpecialAction
sqllang!TraceLogoutEvent
sqllang!CSession::LogoutSession
sqllang!CSession::RemoveBatch
sqllang!process_close_connection
sqllang!process_commands
sqldk!SOS_Task::Param::Execute
sqldk!SOS_Scheduler::RunTask
sqldk!SOS_Scheduler::ProcessTasks
sqldk!SchedulerManager::WorkerEntryPoint
sqldk!SystemThread::RunWorker
sqldk!SystemThreadDispatcher::ProcessWorker
sqldk!SchedulerManager::ThreadEntryPoint
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Also, the result from kp command is:
0:000> kp
Child-SP RetAddr Call Site
00000000`2771d100 000007f9`1bb6cdfc sqlmin!SqlAutoReadOnlyXact::BeginStandAloneXact+0x6c
00000000`2771d240 000007f9`1a006f3f sqlmin!SqlAutoReadOnlyXact::BeginCompatibleXact+0x74
00000000`2771d310 000007f9`1ac2d77e sqllang!ISECManager::CheckPermRuleAuditOnly+0x175
00000000`2771d390 000007f9`1ac2d9e4 sqllang!ServerShutdownEvent+0x2e
00000000`2771d3e0 000007f9`1a026a6d sqllang!CTrace::SetStatus+0x254
00000000`2771d430 000007f9`1a6e2819 sqllang!CTraceController::ProduceRecord+0x90d
00000000`2771d570 000007f9`1a007bc9 sqllang!PostAuditLogin+0x329
00000000`2771d620 000007f9`19aea421 sqllang!CSecSpecialAudit::AuditEvent+0xe0
00000000`2771d970 000007f9`19ae400e sqllang!AuditCheckSpecialAction+0x16a
00000000`2771e220 000007f9`19ae3e0e sqllang!TraceLogoutEvent+0x398
00000000`2771e570 000007f9`19ae1a02 sqllang!CSession::LogoutSession+0x37c
00000000`2771ef90 000007f9`19ae442e sqllang!CSession::RemoveBatch+0xd3
00000000`2771efd0 000007f9`19ae4333 sqllang!process_close_connection+0x129
00000000`2771f040 000007f9`18d80430 sqllang!process_commands+0x920
00000000`2771f300 000007f9`18d80214 sqldk!SOS_Task::Param::Execute+0x21e
00000000`2771f900 000007f9`18d7fef7 sqldk!SOS_Scheduler::RunTask+0xa8
00000000`2771f970 000007f9`18d9f15f sqldk!SOS_Scheduler::ProcessTasks+0x29a
00000000`2771f9f0 000007f9`18d9f1e0 sqldk!SchedulerManager::WorkerEntryPoint+0x261
00000000`2771fa90 000007f9`18d9e70e sqldk!SystemThread::RunWorker+0x8f
00000000`2771fac0 000007f9`18d9efb9 sqldk!SystemThreadDispatcher::ProcessWorker+0x372
00000000`2771fb70 000007f9`27141842 sqldk!SchedulerManager::ThreadEntryPoint+0x236
00000000`2771fc10 000007f9`29d402a9 kernel32!BaseThreadInitThunk+0x1a
00000000`2771fc40 00000000`00000000 ntdll!RtlUserThreadStart+0x1d
Thanks for your help
Trea Johnson said
SQL Server 2008 R2 Sp3 (x64) running on a three-node VMware cluster. SQLDump occurred this morning. Thanks in advance.
Exception raised by sqlservr
0:000> kc 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO!Ordinal398
MSO!Ordinal9364
MSO!Ordinal9364
MSO!Ordinal9364
MSO!Ordinal9694
MSO!Ordinal4349
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Certainly irrelevant since you didn’t request it, but am including the following information in case it is of use to someone later on down the road;
Hardware/OS/RAM/etc
DataSrc_Name InstanceName Machine_Name SQLVersion Edition SrvcPack_Level Build_Number
SHESQLDBPRD MSSQLSERVER SHESQLDBPRD SQL Server 2008 R2 Enterprise Edition (64-bit) SP3 10.50.6000.34
Logical CPU Count Hyperthread Ratio Physical CPU Count Physical Memory (MB)
2 1 2 8191
Host Name: SHESQLDBPRD
OS Name: Microsoft Windows Server 2008 R2 Enterprise
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Server
OS Build Type: Multiprocessor Free
Product ID: 55041-262-1561546-84499
Original Install Date: 12/11/2013, 11:23:44 AM
System Boot Time: 12/27/2015, 1:03:09 AM
System Manufacturer: VMware, Inc.
System Model: VMware Virtual Platform
System Type: x64-based PC
Processor(s): 2 Processor(s) Installed.
[01]: Intel64 Family 6 Model 45 Stepping 7 GenuineIntel ~2700 Mhz
[02]: Intel64 Family 6 Model 45 Stepping 7 GenuineIntel ~2700 Mhz
BIOS Version: Phoenix Technologies LTD 6.00, 8/16/2013
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory: 8,192 MB
Available Physical Memory: 1,413 MB
Virtual Memory: Max Size: 16,381 MB
Virtual Memory: Available: 9,504 MB
Virtual Memory: In Use: 6,877 MB
Page File Location(s): C:\pagefile.sys
The default trace showed one session, connected with SSMS and running a stored procedure less than a second before the dump.
Event session_SQL ApplicationName StartTime DatabaseName SPID HostName LoginName ObjectName
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:39 IncidentTracking 54 COSYS004N IncidentTracking_user PK_RISKCost
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:39 IncidentTracking 54 COSYS004N IncidentTracking_user RISKCost
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:39 IncidentTracking 54 COSYS004N IncidentTracking_user NULL
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:39 IncidentTracking 54 COSYS004N IncidentTracking_user NULL
Object:Created NULL Report Server 1/6/2016 9:45 tempdb 60 SHESQLDBPRD NT AUTHORITY\NETWORK SERVICE NULL
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:54 IncidentTracking 54 COSYS004N IncidentTracking_user RiskonnectImportCost
Object:Created NULL Microsoft SQL Server Management Studio – Query 1/6/2016 9:54 IncidentTracking 54 COSYS004N IncidentTracking_user NULL
Audit Server Starts And Stops NULL NULL 1/6/2016 9:54 NULL 9 NULL sa NULL
Luis said
Hi There,
I got this sql mini dump today. Below is the exception raised by SQL Server.
Any ideas?
Thanks,
Microsoft SQL Server 2008 (SP2) – 10.0.4000.0 (X64)
# Call Site
00 0x0
01 sqlservr!_chkstk
02 sqlservr!process_commands
03 sqlservr!SOS_Task::Param::Execute
04 sqlservr!SOS_Scheduler::RunTask
05 sqlservr!SOS_Scheduler::ProcessTasks
06 sqlservr!SchedulerManager::WorkerEntryPoint
07 sqlservr!SystemThread::RunWorker
08 sqlservr!SystemThreadDispatcher::ProcessWorker
09 sqlservr!SchedulerManager::ThreadEntryPoint
0a msvcr80!_callthreadstartex
0b msvcr80!_threadstartex
0c kernel32!BaseThreadInitThunk
0d ntdll!RtlUserThreadStart
John Couch said
Hi, we just got this stack dump, but there is no assertion message with it. It is Microsoft SQL Server 2008 (SP2) – 10.0.4000.0 (X64) and Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)
Memory
MemoryLoad = 93%
Total Physical = 32763 MB
Available Physical = 2172 MB
Total Page File = 81913 MB
Available Page File = 50799 MB
Total Virtual = 8388607 MB
Available Virtual = 8345108 MB
**Dump thread – spid = 0, EC = 0x0000000000000000
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 02/11/16 18:15:14 spid 7776
*
* ex_terminator – Last chance exception handling
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
sqlservr!SOS_SEHTranslator
msvcr80!CallSETranslator
msvcr80!_CxxExceptionFilter
msvcr80!_CxxExceptionFilter
msvcr80!_InternalCxxFrameHandler
msvcr80!_CxxFrameHandler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
sqlservr!CSlotPageMgr::PbAllocate
sqlservr!CMemThread::Alloc
sqlservr!operator new
sqlservr!CCriticalSectionSOS::Initialize
sqlservr!alloca_probe
sqlservr!Tcp::AcceptConnection
sqlservr!Tcp::AcceptDone
sqlservr!SNIAcceptDoneWithReturnCode
sqlservr!SNIAcceptDoneWrapper
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
robert zy said
Hi Karthick or anyone, pls kindly advise. Thanks in advance!
Here is my KC 1000 result:
0:000> kC 1000
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqlservr!SQLDumperLibraryInvoke
03 sqlservr!CImageHelper::DoMiniDump
04 sqlservr!stackTrace
05 sqlservr!utassert_fail
06 sqlservr!CVariableInfo::PviRelease
07 sqlservr!CVarPageMgr::Release
08 sqlservr!CMemObj::Free
09 sqlservr!CMemThread::Free
0a sqlservr!CMemPartitioned<CMemThread >::Free
0b sqlservr!ISOSHost_MemObjImpl::OperatorDeleteArray
0c sqlncli10!CConnection::~CConnection
0d sqlncli10!CConnection::`scalar deleting destructor’
0e sqlncli10!CTdsParser::Disconnect
0f sqlncli10!CloseServerConnection
10 sqlncli10!SQLDisconnect
11 odbc32!SQLDisconnect
12 msdasql!CODBCHandle::OHDisconnect
13 msdasql!CDataSource::UninitializeHdbc
14 msdasql!CDataSource::DoUninitialize
15 msdasql!CDataSource::~CDataSource
16 msdasql!CDataSource::`vector deleting destructor’
17 msdasql!CDataSource::Release
18 oledb32!CAcm::FinalRelease
19 oledb32!ATL::CComPolyObject::~CComPolyObject
1a oledb32!ATL::CComPolyObject::Release
1b oledb32!CDCMPool::DestroyResource
1c comsvcs!CHolder::SafeDispenserDriver::DestroyResource
1d comsvcs!CHolder::ProcessDestroyList
1e comsvcs!CHolder::DestroyResources
1f comsvcs!CHolder::Ping
20 comsvcs!PingThread
21 kernel32!BaseThreadInitThunk
22 ntdll!RtlUserThreadStart
robert zy said
To amend info, my SQL Server instance got down(terminated itself) after above dump and the dump below. My sql server version is as below:
Microsoft SQL Server 2008 R2 (SP3) – 10.50.6000.34 (X64)
Aug 19 2014 12:21:34
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)
0:000> kC 1000
*** WARNING: Unable to verify timestamp for sqlservr.exe
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqlservr!SQLDumperLibraryInvoke
03 sqlservr!CImageHelper::DoMiniDump
04 sqlservr!stackTrace
05 sqlservr!stackTraceCallBack
06 sqlservr!ex_raise2_failed
07 sqlservr!ex_raise2
08 sqlservr!ex_raise
09 sqlservr!utassert_fail
0a sqlservr!CVariableInfo::PviRelease
0b sqlservr!CVarPageMgr::Release
0c sqlservr!CMemObj::Free
0d sqlservr!CMemThread::Free
0e sqlservr!CMemPartitioned<CMemThread >::Free
*** WARNING: Unable to verify timestamp for sqlncli10.dll
0f sqlservr!ISOSHost_MemObjImpl::OperatorDeleteArray
10 sqlncli10!CConnection::~CConnection
11 sqlncli10!CConnection::`scalar deleting destructor’
12 sqlncli10!CTdsParser::Disconnect
13 sqlncli10!CloseServerConnection
14 sqlncli10!SQLDisconnect
15 odbc32!SQLDisconnect
16 msdasql!CODBCHandle::OHDisconnect
17 msdasql!CDataSource::UninitializeHdbc
18 msdasql!CDataSource::DoUninitialize
19 msdasql!CDataSource::~CDataSource
1a msdasql!CDataSource::`vector deleting destructor’
1b msdasql!CDataSource::Release
1c oledb32!CAcm::FinalRelease
1d oledb32!ATL::CComPolyObject::~CComPolyObject
1e oledb32!ATL::CComPolyObject::Release
1f oledb32!CDCMPool::DestroyResource
20 comsvcs!CHolder::SafeDispenserDriver::DestroyResource
21 comsvcs!CHolder::ProcessDestroyList
22 comsvcs!CHolder::DestroyResources
23 comsvcs!CHolder::Ping
24 comsvcs!PingThread
25 kernel32!BaseThreadInitThunk
26 ntdll!RtlUserThreadStart
0:000> lmvm mso
Browse full module list
start end module name
0:000> lmvm sqlncli10
Browse full module list
start end module name
00000000`60be0000 00000000`60e9d000 sqlncli10 T (pdb symbols) c:\websymbols\sqlncli10.pdb\940EE893C76D42CCB8297D86178FDBCF2\sqlncli10.pdb
Loaded symbol image file: sqlncli10.dll
Image path: C:\Windows\System32\sqlncli10.dll
Image name: sqlncli10.dll
Browse all global symbols functions data
Timestamp: Wed Aug 20 05:44:58 2014 (53F3C55A)
CheckSum: 002C872F
ImageSize: 002BD000
File version: 2009.100.6000.34
Product version: 10.50.6000.34
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
Ramya said
Hi Karthick,
Could you please help me analyze the below stack dump. We are on SQL Server 2014 SP1 CU1
0:140> kC 1000
# Call Site
00 sqlmin!CBpHashTableScanner::InternalScan
01 sqlmin!CBpHashTableScanner::BpGetNextBatch
02 sqlmin!CBpPartialJoin::AddHashTableSliceToBitmap
03 sqlmin!CBpPartialJoin::CreateBitmap
04 sqlmin!CBpQScanHashJoin::ProcessBuildSide
05 sqlmin!CBpQScanHashJoin::BpOpen
06 sqlmin!CBpQScan::DefaultOpen
07 sqlmin!CQScanBatchHelper::Open
08 sqlmin!CQScanNew::OpenHelper
09 sqlmin!CQScanXProducerNew::Open
0a sqlmin!FnProducerOpen
0b sqlmin!FnProducerThread
0c sqlmin!SubprocEntrypoint
0d sqldk!SOS_Task::Param::Execute
0e sqldk!SOS_Scheduler::RunTask
0f sqldk!SOS_Scheduler::ProcessTasks
10 sqldk!SchedulerManager::WorkerEntryPoint
11 sqldk!SystemThread::RunWorker
12 sqldk!SystemThreadDispatcher::ProcessWorker
13 sqldk!SchedulerManager::ThreadEntryPoint
14 kernel32!BaseThreadInitThunk
15 ntdll!RtlUserThreadStart
Damian said
Hi Ramya,
Did you ever find a solution for this. we are having something similar.
Many thanks,
Damian.
LiYuan said
Hi Karthick,
Could you please help me analyze the below stack dump. We are on SQL Server 2008 R2.
Dump as below:
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string’
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
ntdll!RtlEqualUnicodeString
sspicli!SecpScanPackageListEx
sspicli!SecpLocatePackageEx
sspicli!SecLocatePackageExW
sspicli!QuerySecurityPackageInfoW
sqlservr!CSbSSPICommon::StaticInit
sqlservr!CSbTransportMgr::Init
sqlservr!_CreateSsbTransport
sqlservr!CSbMsgDispatcher::Init
sqlservr!CServiceBrokerMgr::Init
sqlservr!StartUp::InitServerComponents
sqlservr!SQL_SOSBootFinalizeRoutine
sqlservr!SOS_OS::Boot
sqlservr!StartUp::InitSOS
sqlservr!sqlservr_main
sqlservr!sqlservr_main_thread
sechost!ScSvcctrlThreadW
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Naveen said
Hi Karthik,
Could you please help me analyse the below stack dump. we are on SQL Server 2008 R2 SP3 Enterprise Edition.
0:000> kC 1000
# Call Site
00 sqlservr!XeSqlPkg::IsSystemPredicateSource::Invoke
01 sqlservr!XeSqlPkg::IsSystemPredicateSource::Invoke
02 sqlservr!XE_DAttrExpr::Execute
03 sqlservr!XE_Engine::EventFireBegin
04 sqlservr!XeSqlPkg::module_start::Publish
05 sqlservr!GenModuleStartXEvent
06 sqlservr!CMsqlExecContext::FExecute
07 sqlservr!CSQLSource::Execute
08 sqlservr!CStmtExecProc::XretLocalExec
09 sqlservr!CStmtExecProc::XretExecExecute
0a sqlservr!CXStmtExecProc::XretExecute
0b sqlservr!CMsqlExecContext::ExecuteStmts
0c sqlservr!CMsqlExecContext::FExecute
0d sqlservr!CSQLSource::Execute
0e sqlservr!process_request
0f sqlservr!process_commands
10 sqlservr!SOS_Task::Param::Execute
11 sqlservr!SOS_Scheduler::RunTask
12 sqlservr!SOS_Scheduler::ProcessTasks
13 sqlservr!SchedulerManager::WorkerEntryPoint
14 sqlservr!SystemThread::RunWorker
15 sqlservr!SystemThreadDispatcher::ProcessWorker
16 sqlservr!SchedulerManager::ThreadEntryPoint
17 msvcr80!endthreadex
18 msvcr80!endthreadex
19 kernel32!BaseThreadInitThunk
1a ntdll!RtlUserThreadStart
Your help will be much appreciated
Thanks
Naveen
Arun Dsouza said
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!DmpRemoteDumpRequest
02 sqllang
03 sqllang
04 sqllang
05 sqllang
06 sqllang
07 sqldk!Ordinal254
08 KERNELBASE!UnhandledExceptionFilter
09 ntdll!TppExceptionFilter
0a ntdll!TppWorkerpInnerExceptionFilter
0b ntdll!TppWorkerThread$filt$0
0c ntdll!_C_specific_handler
0d ntdll!_GSHandlerCheck_SEH
0e ntdll!RtlpExecuteHandlerForException
0f ntdll!RtlDispatchException
10 ntdll!KiUserExceptionDispatch
Hi Karthik , can you help to find what cause the crash
Sql Server Is Terminating Because Of Fatal Exception | Sufferband said
[…] SQL Server Exception , EXCEPTION_ACCESS_VIOLATION and SQL … – October 19, 2012 at 3:31 AM. Hello Scott, WINHTTP.DLL is loaded in SQL Server’s internal address apace and crash is occuring WINHTTP.DLL. I recommended to move … […]
Samuel Sung said
SQL Server 2008 R2 SP2 + CU7 10.50.4286 – Enterprise Edition
Any Comment or Help?
0:000> kC 1000
# Call Site
00 sqlservr!LockManager::GetLockBlocks
01 sqlservr!lck_lockInternal
02 sqlservr!GetLock
03 sqlservr!BTreeRow::AcquireLock
04 sqlservr!IndexDataSetSession::GetRowByKeyValue
05 sqlservr!IndexDataSetSession::FetchRowByKeyValueInternal
06 sqlservr!RowsetNewSS::FetchRowByKeyValue
07 sqlservr!CValFetchByKey::ManipData
08 sqlservr!CEs::GeneralEval4
09 sqlservr!CQScanRangeNew::GetRow
0a sqlservr!CQScanNLJoinTrivialNew::GetRow
0b sqlservr!CQScanStreamAggregateNew::GetRowHelper
0c sqlservr!CQScanStreamAggregateNew::GetCalculatedRow
0d sqlservr!CQScanStreamAggregateNew::Open
0e sqlservr!CQScanNLJoinNew::Open
0f sqlservr!CQScanNLJoinNew::GetRowHelper
10 sqlservr!CQScanNLJoinNew::GetRowHelper
11 sqlservr!CQScanTopNew::GetRow
12 sqlservr!CQScanUpdateNew::GetRow
13 sqlservr!CQueryScan::GetRow
14 sqlservr!CXStmtQuery::ErsqExecuteQuery
15 sqlservr!CXStmtDML::XretDMLExecute
16 sqlservr!CXStmtDML::XretExecute
17 sqlservr!CMsqlExecContext::ExecuteStmts
18 sqlservr!CMsqlExecContext::FExecute
19 sqlservr!CSQLSource::Execute
1a sqlservr!process_request
1b sqlservr!process_commands
1c sqlservr!SOS_Task::Param::Execute
1d sqlservr!SOS_Scheduler::RunTask
1e sqlservr!SOS_Scheduler::ProcessTasks
1f sqlservr!SchedulerManager::WorkerEntryPoint
20 sqlservr!SystemThread::RunWorker
21 sqlservr!SystemThreadDispatcher::ProcessWorker
*** WARNING: Unable to verify timestamp for msvcr80.dll
22 sqlservr!SchedulerManager::ThreadEntryPoint
23 msvcr80!_callthreadstartex
1978abhay said
Hi Karthick,
I followed your blog and got to the actual stack. Later on I directly used .cxr sqlservr!g_copiedStackInfo+0X20 and got to the same stack.
In future can I just use .cxr sqlservr!g_copiedStackInfo+0X20 to directly jump to the stack?
Regards
Abhay
Luigi Gaeta said
Hi Karthick,
help please.
start end module name
00007ff7`2ff00000 00007ff7`2ff5a000 sqlservr (pdb symbols) c:\websymbols\sqlservr.pdb\424DB2D3E48745D991F989F2525ABEBE2\sqlservr.pdb
Loaded symbol image file: sqlservr.exe
Mapped memory image file: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image path: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
Image name: sqlservr.exe
Browse all global symbols functions data
Timestamp: Tue May 05 08:22:40 2015 (554861B0)
CheckSum: 00033863
ImageSize: 0005A000
File version: 2011.110.5343.0
Product version: 11.0.5343.0
File flags: 0 (Mask 3F)
File OS: 40000 NT Base
File type: 1.0 App
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft SQL Server
InternalName: SQLSERVR
OriginalFilename: SQLSERVR.EXE
ProductVersion: 11.0.5343.0
FileVersion: 2011.0110.5343.00 ((SQL11_SP2_GDR).150504-1902 )
FileDescription: SQL Server Windows NT – 64 Bit
LegalCopyright: Microsoft Corp. All rights reserved.
LegalTrademarks: Microsoft SQL Server is a registered trademark of Microsoft Corporation.
Comments: SQL
0:000> .ecxr
rax=0000000000000000 rbx=000000003064d680 rcx=00007ff85e53b310
rdx=0000000000000000 rsi=00007ff85e53b310 rdi=00007ff85e53b200
rip=00007ff85e34a2ad rsp=000000003064d640 rbp=000000003064d6b8
r8=0000000000000001 r9=0000000000000010 r10=0000000001379280
r11=0000000000000000 r12=0000000000000000 r13=00007ff85e53b2c0
r14=0000000000000004 r15=0000000000000001
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
sqldk!`string’+0x15:
00007ff8`5e34a2ad 005200 add byte ptr [rdx],dl ds:00000000`00000000=??
0:000> kC 1000
# Call Site
00 sqldk!`string’
01 0x0
02 sqldk!TMemoryBlockAllocator::GetNewActiveBlockFromPartialList
03 sqldk!SOS_MemoryBlockAllocator::AllocateBlockInt
04 sqldk!SOS_MemoryBlockAllocator::AllocateBlock
05 sqldk!SOS_MemoryWorkSpace::AllocatePage
06 sqldk!MemoryNode::AllocatePagesInternal
07 sqldk!MemoryClerkInternal::AllocatePages
08 sqllang!CryptoBase::AllocateReadWriteBuffers
09 sqllang!Ssl::InitX
0a sqllang!AddProvider
0b sqllang!SNIAddProviderEx
0c sqllang!TDSSNIClient::DwAddSSLProviderAsync
0d sqllang!process_prelogin
0e sqllang!process_commands
0f sqldk!SOS_Task::Param::Execute
10 sqldk!SOS_Scheduler::RunTask
11 sqldk!SOS_Scheduler::ProcessTasks
12 sqldk!SchedulerManager::WorkerEntryPoint
13 sqldk!SystemThread::RunWorker
14 sqldk!SystemThreadDispatcher::ProcessWorker
15 sqldk!SchedulerManager::ThreadEntryPoint
16 kernel32!BaseThreadInitThunk
17 ntdll!RtlUserThreadStart
Michael John said
Thoughts anyone?
0:000> kC 1000
# Call Site
00 sqlmin!CQryMemQueue::CbufAcquireGrant
01 sqlmin!CQueryResourceGrantManager::AcquireGrant
02 sqlmin!CQueryScan::Setup
03 sqlmin!CQuery::CreateExecPlan
04 sqllang!CXStmtQuery::SetupQueryScanAndExpression
05 sqllang!CXStmtQuery::InitForExecute
06 sqllang!CXStmtQuery::ErsqExecuteQuery
07 sqllang!CXStmtSelect::XretExecute
08 sqllang!CMsqlExecContext::ExecuteStmts
09 sqllang!CMsqlExecContext::FExecute
0a sqllang!CSQLSource::Execute
0b sqllang!CStatsUtil::PCStatManMaxdiffHistogram
0c sqllang!CStatsUtil::PersistQPStatsInCatalogs
0d sqllang!CStatsUtil::CreateQPStats
0e sqllang!CStatsDef::CreateStats
0f sqllang!CStmtCreateStats::XretExecute
10 sqllang!CMsqlExecContext::ExecuteStmts
11 sqllang!CMsqlExecContext::FExecute
12 sqllang!CSQLSource::Execute
13 sqllang!CSQLSource::SeExecute
14 sqllang!CExecAutoCreateStats::FExecute
15 sqllang!COptContext::FCreateAutoStat
16 sqllang!CStCollBaseTable::PdstrhstGetHistogramInternal
17 sqllang!CStCollAbstractLeaf::PdstrhstGetHistogram
18 sqllang!CSelCalcColumnInInterval::PdstrhstLoad
19 sqllang!CSelCalcColumnInInterval::FCalculate
1a sqllang!CCardUtilSQL12::ProbCalculateFilter
1b sqllang!CLogOp_Select::PstcollDeriveCardinality
1c sqllang!CCardFrameworkSQL12::DeriveCardinalityProperties
1d sqllang!CLogOpArg::DeriveGroupProperties
1e sqllang!COpArg::DeriveNormalizedGroupProperties
1f sqllang!COptExpr::DeriveGroupProperties
20 sqllang!COptExpr::DeriveGroupProperties
21 sqllang!COptContext::PexprSimplify
22 sqllang!COptContext::PcxteOptimizeQuery
23 sqllang!COptContext::PqteOptimizeWrapper
24 sqllang!PqoBuild
25 sqllang!CStmtQuery::InitQuery
26 sqllang!CStmtSelect::Init
27 sqllang!CCompPlan::FCompileStep
28 sqllang!CSQLSource::FCompile
29 sqllang!CSQLSource::FCompWrapper
2a sqllang!CSQLSource::Transform
2b sqllang!CSQLSource::Execute
2c sqllang!CSQLSource::SeExecute
2d sqllang!ExecSql
2e sqllang!ExecSql
2f sqllang!CQDSSQLCommandExecutor::Execute
30 sqllang!CQDSBatchExecutor::ExecuteBatch
31 sqllang!CQDSBatchExecutor::ExecuteInTransaction
32 sqllang!CQDSBatchExecutor::ExecuteQdsBatch
33 qds!CDBQDS::CleanupStaleStats
34 qds!CQDSStaleQueryCleanup::DoCleanup
35 qds!CQDSSizeRetentionCleanup::DoCleanup
36 qds!CDBQDS::DoSizeRetention
37 qds!CDBQDS::ProcessQdsBackgroundTask
38 qds!CQDSManager::AcquireGenericQdsDbAndProcess< >
39 qds!CDBQDS::ProcessQdsBackgroundTask
3a sqldk!SOS_Task::Param::Execute
3b sqldk!SOS_Scheduler::RunTask
3c sqldk!SOS_Scheduler::ProcessTasks
3d sqldk!SchedulerManager::WorkerEntryPoint
3e sqldk!SystemThread::RunWorker
3f sqldk!SystemThreadDispatcher::ProcessWorker
40 sqldk!SchedulerManager::ThreadEntryPoint
41 kernel32!BaseThreadInitThunk
42 ntdll!RtlUserThreadStart
Dilip said
Any thoughts on this?
0:000>kC 1000
# Call Site
00 sqlmin!SOS_Task::CopyLastWaitResourceWithDeref
01 sqlmin!WaitsTable::DescribeNonDDWait
02 sqlmin!WaitsTable::MoveToNextRow
03 sqlmin!WaitsTable::InternalGetRow
04 sqlmin!CQScanTVFStreamNew::GetRow
05 sqlmin!CQScanFilterNew::GetRowHelper
06 sqlmin!CQScanSortNew::BuildSortTable
07 sqlmin!CQScanSortNew::OpenHelper
08 sqlmin!CQScanSpoolNew::ReloadHelper
09 sqlmin!CQScanSpoolNew::Open
0a sqlmin!CQScanNLJoinNew::GetRowHelper
0b sqlmin!CQScanNLJoinNew::GetRowHelper
0c sqlmin!CQScanNLJoinNew::GetRowHelper
0d sqlmin!CQScanTopNew::GetRow
0e sqlmin!CQScanSpoolNew::LoadSpool
0f sqlmin!CQScanSpoolNew::Open
10 sqlmin!CQScanNew::OpenHelper
11 sqlmin!CQScanUpdateNew::Open
12 sqlmin!CQueryScan::StartupQuery
13 sqllang!CXStmtQuery::SetupQueryScanAndExpression
14 sqllang!CXStmtQuery::InitForExecute
15 sqllang!CXStmtQuery::ErsqExecuteQuery
16 sqllang!CXStmtDML::XretDMLExecute
17 sqllang!CXStmtDML::XretExecute
18 sqllang!CMsqlExecContext::ExecuteStmts
19 sqllang!CMsqlExecContext::FExecute
1a sqllang!CSQLSource::Execute
1b sqllang!process_request
1c sqllang!process_commands
1d sqldk!SOS_Task::Param::Execute
1e sqldk!SOS_Scheduler::RunTask
1f sqldk!SOS_Scheduler::ProcessTasks
20 sqldk!SchedulerManager::WorkerEntryPoint
21 sqldk!SystemThread::RunWorker
22 sqldk!SystemThreadDispatcher::ProcessWorker
23 sqldk!SchedulerManager::ThreadEntryPoint
24 kernel32!BaseThreadInitThunk
25 ntdll!RtlUserThreadStart
We are on SQL 2014 SP1
Jamie said
Hi, I just read the blog post above and for the first time got windbg to work. 🙂 Very happy.
I was wondering if you could help with the following? I’d be very greatful.
0:308> .ecxr
rax=fffffffffffffffe rbx=0000000080004005 rcx=0050005c003a0043
rdx=00720067006f0072 rsi=0000000000000460 rdi=00007ff755c077f8
rip=00007fff72188a5c rsp=000000006f48b2f0 rbp=0000000000000000
r8=00530020004c0051 r9=0065007600720065 r10=00007fff721850eb
r11=0031004c00510053 r12=00007ff755c077f8 r13=00000001499f41cb
r14=0000000000001578 r15=0000000000001578
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x68:
00007fff`72188a5c 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:00000000`6f48b3b0=0000398ce47a9bae
0:308> kC 1000
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqllang!SQLDumperLibraryInvoke
03 sqllang!SQLLangDumperLibraryInvoke
04 sqllang!CImageHelper::DoMiniDump
05 sqllang!stackTrace
06 sqlmin!LatchBase::DumpOnTimeoutIfNeeded
07 sqlmin!LatchBase::PrintWarning
08 sqlmin!LatchBase::Suspend
09 sqlmin!LatchBase::AcquireInternal
0a sqlmin!FCB::GetAutoLatch
0b sqlmin!FileMgr::GetFileOperationFCB
0c sqlmin!SQLServerLogMgr::AdjustForHarden
0d sqlmin!SQLServerLogMgr::AcceptNextVLF
0e sqlmin!HadrLogApply::ApplyVLFHeader
0f sqlmin!HadrLogApply::ReadMsg
10 sqlmin!DbMgrPartner::RouteLogBasedMessage
11 sqlmin!DbMgrPartner::RouteMessage
12 sqlmin!DbMgrPartner::RouteMessageTask
13 sqlmin!HadrWorkItem::Execute
14 sqlmin!HadrWorkRoutine
15 sqldk!SOS_Task::Param::Execute
16 sqldk!SOS_Scheduler::RunTask
17 sqldk!SOS_Scheduler::ProcessTasks
18 sqldk!SchedulerManager::WorkerEntryPoint
19 sqldk!SystemThread::RunWorker
1a sqldk!SystemThreadDispatcher::ProcessWorker
1b sqldk!SchedulerManager::ThreadEntryPoint
1c kernel32!BaseThreadInitThunk
1d ntdll!RtlUserThreadStart
Steve said
Hi, We are using SQL Server 2016 SP1 since a month and we got a crash dumps. It happens 2 time in the same month but non consecutively.
It occurs during a communication between 2 SQL Server machine through linked server. The crash occurs on the linked machine during a SELECT statement.
My understand is that it happens while accessing a LOB operation. The database has been check for consistency error but nothing has been found.
Some help would be appreciated.
Here are the results:
FIRST CASE
0:066> .ecxr
rax=0000004ab0d19910 rbx=0000000080004005 rcx=0000004ab0d196b0
rdx=00007fff3a08d6f0 rsi=0000000000000460 rdi=0000000000000000
rip=00007fff462d8a5c rsp=0000004ab0d19ae0 rbp=0000000163c29474
r8=0000000000000001 r9=0000000000000000 r10=00007fff39d1da38
r11=00000000fffffffe r12=00007fff3ca93600 r13=0000000163c29474
r14=00007fff3c20f4d0 r15=00007ff61f3abd80
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
KERNELBASE!RaiseException+0x68:
00007fff`462d8a5c 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:0000004a`b0d19ba0=0000a62b969ff931
0:066> kC 1000
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqllang!SQLDumperLibraryInvoke
03 sqllang!SQLLangDumperLibraryInvoke
04 sqllang!CImageHelper::DoMiniDump
05 sqllang!stackTrace
06 sqllang!utassert_fail_imp
07 sqldk!utassert_fail
08 sqlmin!LobStorageProvider::RaiseInternalError
09 sqlmin!LobStorageProvider::GetLobValueForRead
0a sqlmin!CBlobHandleFactoryMain::PilbGetILockBytesInternal
0b sqllang!`anonymous namespace’::TSendRowClassNoCount::TSendUnlimitedVartype
0c sqllang!CTds74::SendRowImpl
0d sqltses!CEsExec::GeneralEval
0e sqllang!CXStmtQuery::ErsqExecuteQuery
0f sqllang!CXStmtSelect::XretExecute
10 sqllang!CMsqlExecContext::ExecuteStmts
11 sqllang!CMsqlExecContext::FExecute
12 sqllang!CSQLSource::Execute
13 sqllang!InternalPrepExec
14 sqllang!SpPrepExec
15 sqllang!CSpecProc::ExecuteSpecial
16 sqllang!CSpecProc::Execute
17 sqllang!process_request
18 sqllang!process_commands_internal
19 sqllang!process_messages
1a sqldk!SOS_Task::Param::Execute
1b sqldk!SOS_Scheduler::RunTask
1c sqldk!SOS_Scheduler::ProcessTasks
1d sqldk!SchedulerManager::WorkerEntryPoint
1e sqldk!SystemThread::RunWorker
1f sqldk!SystemThreadDispatcher::ProcessWorker
20 sqldk!SchedulerManager::ThreadEntryPoint
21 kernel32!BaseThreadInitThunk
22 ntdll!RtlUserThreadStart
Ahil said
I’m having the exact same problem (same stack). Did you find a solution?
luksewcute said
ntdll!KiFastSystemCallRet
01 ntdll!NtWaitForSingleObject
02 kernel32!WaitForSingleObjectEx
03 kernel32!WaitForSingleObject
04 sqlservr!CDmpDump::DumpInternal
05 sqlservr!CDmpDump::DumpFilter
06 sqlservr!CDmpDump::Dump
07 msvcr80!_EH4_CallFilterFunc
08 msvcr80!_except_handler4_common
09 sqlservr!_except_handler4
0a ntdll!ExecuteHandler2
0b ntdll!ExecuteHandler
0c ntdll!RtlRaiseException
0d kernel32!RaiseException
0e sqlservr!CDmpDump::Dump
0f sqlservr!CImageHelper::DoMiniDump
10 sqlservr!stackTrace
11 sqlservr!stackTraceCallBack
12 sqlservr!ex_handle_except
13 kernel32!UnhandledExceptionFilter
14 kernel32!BaseThreadStart
15 kernel32!_except_handler3
16 ntdll!ExecuteHandler2
17 ntdll!ExecuteHandler
18 ntdll!KiUserExceptionDispatcher
19 msvbvm60!CProjitemPropertyPage::`vftable’
1a msvbvm60!CProjitemUserControl::`vftable’
1b msvbvm60!VBDataObjectFiles::`vftable’
1c msvbvm60!IAdviseSink2::`vftable’
1d msvbvm60!FORM::ChkProp
1e ntdll!LdrpCallInitRoutine
1f ntdll!LdrShutdownThread
20 kernel32!ExitThread
21 msvcr80!_endthreadex
22 msvcr80!_endthreadex
23 msvcr80!_endthreadex
24 kernel32!BaseThreadStart
SVR said
0:118> kC 1000
Call Site
0x0
msmdsrv!PCTCPListener::PostAccept
msmdsrv!PCTCPListener::HandleIncoming
msmdsrv!PCTCPListener::s_HandleIncoming
ntdll!RtlpTpWaitCallback
ntdll!TppWaitpExecuteCallback
ntdll!TppWorkerThread
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
? 😦
A G said
Hi, In our sql server multiple dump files has created , downloaded WinDbg tool from Microsoft site and opened SQLDump615681.mdmp file from WinDbg tool and based on out below are the result
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\SQLDump615681.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Comment: ‘Stack Trace’
Comment: ‘ex_raise2: Exception raised, major=52, minor=42, state=1, severity=22’
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (4 procs) Free x64
Product: Server, suite: Enterprise TerminalServer SingleUserTS
Machine Name:
Debug session time: Thu Dec 7 05:03:48.000 2017 (UTC – 6:00)
System Uptime: 21 days 7:26:31.297
Process Uptime: 21 days 7:26:18.000
……………………………………………………….
……………………………………………………….
…………………
Loading unloaded module list
……………………………………………………………
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(790.112f8): Unknown exception – code 000042ac (first/second chance not available)
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll –
ntdll!ZwWaitForSingleObject+0xa:
00000000`76e5bd7a c3 ret
0:056> kc 1000
Call Site
ntdll!ZwWaitForSingleObject
*** ERROR: Symbol file could not be found. Defaulted to export symbols for sqlservr.exe –
KERNELBASE!WaitForSingleObjectEx
sqlservr!DmpRemoteDumpRequest
sqlservr!DmpRemoteDumpRequest
*** ERROR: Symbol file could not be found. Defaulted to export symbols for msvcr80.dll –
sqlservr!DmpRemoteDumpRequest
msvcr80!_C_specific_handler
ntdll!RtlDecodePointer
ntdll!RtlUnwindEx
ntdll!RtlRaiseException
KERNELBASE!RaiseException
sqlservr!DmpRemoteDumpRequest
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr!SQLExit
sqlservr
sqlservr
sqlservr!SQLExit
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
sqlservr
msvcr80!endthreadex
*** ERROR: Symbol file could not be found. Defaulted to export symbols for kernel32.dll –
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
A G said
Server is SQL Server 2008R2(SP3) installed on the server
Ariel Mantovani said
Hello Karthik!
First of all, let me say thanks for taking your time to explain the debugging process to get relevant info about the crash.
I’ve followed your instructions and this is what I got:
0:000> kC 1000
*** WARNING: Unable to verify timestamp for sqlservr.exe
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_terminator
sqlservr!SOS_OS::SecurityHandlerRoutine
sqlservr!SOS_OS::ExecuteSecurityHandlerRoutine
sqlservr!SOS_OS::SecurityHandler
sqlservr!_report_gsfailure
sqlservr!_GSHandlerCheck_EH
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
sqlservr!IndexPageManager::GetPageWithKey
0x0
0x0
0x0
0x0
Any help to understand the problem will be appreciated.
Thanks a lot
Lieven Masschelein said
Hi Karthik
Thanks for your explanation above
Today we had a sql service not responding anymore , we had to restart the sql service to get things normal again. shortly before the sql service went offline an extended event was started by one of the dba’s gathering wait info based on sql text “like”
the sql service created a lot of dmp files , I’ve analysed the first he created ant this is the result :
# Call Site
00 ntdll!NtWaitForSingleObject
01 KERNELBASE!WaitForSingleObjectEx
02 sqlservr!CDmpDump::DumpInternal
03 sqlservr!CDmpDump::Dump
04 sqllang!SQLDumperLibraryInvoke
05 sqllang!CImageHelper::DoMiniDump
06 sqllang!ContextDumpNoStackOverflow
07 sqllang!ContextDump
08 sqllang!stackTraceExceptionFilter
09 sqldk!SOS_OS::ExecuteDumpExceptionHandlerRoutine
0a sqldk!IsNXException
0b sqldk!ex_trans_cexcept
0c sqldk!SOS_SEHTranslator
0d msvcr100!_CallSETranslator
0e msvcr100!FindHandlerForForeignException
0f msvcr100!FindHandler
10 msvcr100!__InternalCxxFrameHandler
11 msvcr100!__CxxFrameHandler
12 ntdll!RtlpExecuteHandlerForException
13 ntdll!RtlDispatchException
14 ntdll!KiUserExceptionDispatch
15 sqlmin!EventInternal::Signal
16 sqlmin!LatchBase::UnpendEligibleWaiters
17 sqlmin!LatchBase::ReleaseInternal
18 sqlmin!PageRef::Unlatch
19 sqlmin!IndexPageManager::ReleaseAccess
1a sqlmin!PageContext::ReleaseAccess
1b sqlmin!IndexRowScanner::PrepareToSuspend
1c sqlmin!IndexDataSetSession::ReleaseLazyLatchUponContextSwitch
1d sqlmin!SETaskSuspendingNotification
1e sqlservr!switch_call_back
1f sqldk!SOS_Scheduler::TaskTransition
20 sqldk!SOS_Scheduler::SwitchContext
21 sqldk!SOS_Scheduler::SuspendNonPreemptive
22 sqlmin!EventInternal::Wait
23 sqlmin!LatchBase::Suspend
24 sqlmin!LatchBase::AcquireInternal
25 sqlmin!BUF::AcquireLatch
26 sqlmin!BPool::Get
27 sqlmin!IndexPageManager::GetPageWithKey
28 sqlmin!GetRowForKeyValue
29 sqlmin!IndexRowScanner::EstablishInitialKeyOrderPosition
2a sqlmin!IndexDataSetSession::GetNextRowValuesInternal
2b sqlmin!RowsetNewSS::GetNextRows
2c sqlmin!CMEDScan::DeleteNCRow
2d sqlmin!CMEDScan::DeleteRow
2e sqlmin!CMEDCatKatmaiIndex::DropRowset
2f sqlmin!VisibleHoBt::DropHoBt
30 sqlmin!SEDropRowsetInternal
31 sqlmin!DDLAgent::SEDropRowsets
32 sqllang!CIndexDDL::DropRowset
33 sqllang!CIndexDDL::DropAllRowsets
34 sqllang!DropAllRowsetsForTable
35 sqllang!DropObject
36 sqllang!FDropTempWithNolog
37 sqllang!TmpObject::Release
38 sqllang!CTableVariableManager::FDropNormalTablesInCurScope
39 sqllang!CExecLevel::PopSqlScopeInternal
3a sqllang!CSQLSource::~CSQLSource
3b sqllang!ExecuteSql
3c sqllang!CSpecProc::ExecuteSpecial
3d sqllang!CSpecProc::Execute
3e sqllang!process_request
3f sqllang!process_commands
40 sqldk!SOS_Task::Param::Execute
41 sqldk!SOS_Scheduler::RunTask
42 sqldk!SOS_Scheduler::ProcessTasks
43 sqldk!SchedulerManager::WorkerEntryPoint
44 sqldk!SystemThread::RunWorker
45 sqldk!SystemThreadDispatcher::ProcessWorker
46 sqldk!SchedulerManager::ThreadEntryPoint
47 kernel32!BaseThreadInitThunk
48 ntdll!RtlUserThreadStart
I see the exception occured in the sqlmin.dll but don’t know what to conclude form this. For example was it in fact the extended event that caused this ?
sql version 2012 SP3 11.0.6020.0
Any help would be appreciated
Thanks in advance
Jeremy said
Hi there,
We had an incident whereby our sql service restarted unexpectedly. Below is the stack obtained from the dump : Thanks in advance
0:000> kC 1000
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqllang!SQLDumperLibraryInvoke
03 sqllang!CImageHelper::DoMiniDump
04 sqllang!stackTrace
05 sqllang!stackTraceCallBack
06 sqldk!ex_raise2
07 sqldk!ex_raise
08 sqlmin!RaiseInconsistencyError
09 sqlmin!ReplHROW::InitBaseRec
0a sqlmin!ReplTranInfo::ProcessInsert
0b sqlmin!ReplTranInfo::GetArticleCmds
0c sqlmin!ReplTranInfo::ProcessDMLLogRecord
0d sqlmin!ReplTranInfo::ProcessLogRecord
0e sqlmin!get_trans_cmds
0f sqlmin!repl_cmds
10 sqlmin!xp_replcmds
11 sqllang!CSpecProc::ExecuteSpecial
12 sqllang!CXProc::Execute
13 sqllang!CSQLSource::Execute
14 sqllang!process_request
15 sqllang!process_commands
16 sqldk!SOS_Task::Param::Execute
17 sqldk!SOS_Scheduler::RunTask
18 sqldk!SOS_Scheduler::ProcessTasks
19 sqldk!SchedulerManager::WorkerEntryPoint
1a sqldk!SystemThread::RunWorker
1b sqldk!SystemThreadDispatcher::ProcessWorker
1c sqldk!SchedulerManager::ThreadEntryPoint
1d kernel32!BaseThreadInitThunk
1e ntdll!RtlUserThreadStart
Product Version : 2011.110.3156.0
Karthick P.K said
Your database is corrupted. Run checkdb and verify.
Sent from my iPhone
skirocco said
Hi all,
this is a brilliant article. Many thanks.
My SQL Server (SQL Server 10.0.6000.29) is creating a dump by executing a stored procedure. First the stored procedure runs successfully, but after a time it doens’t run and it came to the SQL dump.
This happend, while I opend a declared Cursor.
With the WinDbg tool I get the following Information:
Call Site
sqlservr!LobStorageProvider::GetLobValueForRead
sqlservr!LobStorageProviderSession::GetLobValueForUpdate
sqlservr!CBlobHandleFactoryMain::PilbGetILockBytesInternal
sqlservr!CXVariant::PerformConvertFromBHToBH
sqlservr!CQScanRmtQueryNew::UpdateParameters
sqlservr!CQScanRmtQueryNew::Open
sqlservr!CQScanStreamAggregateNew::Open
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanNLJoinNew::GetRowHelper
sqlservr!CQScanFilterNew::GetRow
sqlservr!CQScanNLJoinNew::GetRowHelper
sqlservr!CQScanSortNew::BuildSortTable
sqlservr!CQScanSortNew::OpenHelper
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanNew::OpenHelper
sqlservr!CQScanUpdateNew::Open
sqlservr!CQueryScan::Startup
sqlservr!CXStmtQuery::SetupQueryScanAndExpression
sqlservr!CXStmtQuery::InitForExecute
sqlservr!CXStmtCursorOpen::InitForExecute
sqlservr!CXStmtQuery::ErsqExecuteQuery
sqlservr!CXStmtCursorOpen::XretDoExecute
sqlservr!CXStmtCursorOpen::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!_chkstk
sqlservr!CSQLSource::Execute
sqlservr!CStmtExecProc::XretLocalExec
sqlservr!CStmtExecProc::XretExecExecute
sqlservr!CXStmtExecProc::XretExecute
sqlservr!CExecStmtLoopVars::ExecuteXStmtAndSetXretReturn
sqlservr!CMsqlExecContext::ExecuteStmts
sqlservr!_chkstk
sqlservr!CSQLSource::Execute
sqlservr!process_request
sqlservr!process_commands
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!_callthreadstartex
0x0
0x0
Can you please advise me? Thanks in advance
SVR said
GetUrlPageData2 (WinHttp) failed: 12002.
FAULTING_IP:
+1607b70000
00000107`5eb00000 ?? ???
EXCEPTION_RECORD: ffffffffffffffff — (.exr 0xffffffffffffffff)
ExceptionAddress: 000001075eb00000
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000008
Parameter[1]: 000001075eb00000
Attempt to execute non-executable address 000001075eb00000
CONTEXT: 0000000000000000 — (.cxr 0x0;r)
rax=0000000000000001 rbx=0000000000000000 rcx=00000000000099e0
rdx=0000000000000000 rsi=0000000000000064 rdi=00000000000099e0
rip=0000000077ac98ea rsp=000000096c67e648 rbp=0000000003ebaa24
r8=00000001e4b72600 r9=0000000000000000 r10=000000000000025a
r11=0000000000000001 r12=000000096c67e678 r13=0000000000000000
r14=000000000521a5e8 r15=0000000000000000
iopl=0 nv up ei ng nz na po cy
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000287
ntdll!ZwWaitForSingleObject+0xa:
00000000`77ac98ea c3 ret
DEFAULT_BUCKET_ID: WRONG_SYMBOLS
PROCESS_NAME: msmdsrv.exe
ERROR_CODE: (NTSTATUS) 0xc0000005 –
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 –
EXCEPTION_PARAMETER1: 0000000000000008
EXCEPTION_PARAMETER2: 000001075eb00000
WRITE_ADDRESS: 000001075eb00000
FOLLOWUP_IP:
msmdsrv!PCTCPListener::PostAccept+162
00000000`00eafb09 ?? ???
FAILED_INSTRUCTION_ADDRESS:
+162
00000107`5eb00000 ?? ???
NTGLOBALFLAG: 0
APP: msmdsrv.exe
ANALYSIS_VERSION: 6.3.9600.17336 (debuggers(dbg).150226-1500) amd64fre
MANAGED_STACK: !dumpstack -EE
OS Thread Id: 0x2dd0 (125)
Current frame:
Child-SP RetAddr Caller, Callee
PRIMARY_PROBLEM_CLASS: WRONG_SYMBOLS
BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS
LAST_CONTROL_TRANSFER: from 0000000000eafb09 to 000001075eb00000
STACK_TEXT:
00000009`6c67f968 00000000`00eafb09 : 00000007`c5a4d500 00000007`c5a4d4e0 00000007`cbb8c930 00000000`07107610 : 0x00000107`5eb00000
00000009`6c67f970 00000000`00c824e6 : 00000000`071076f8 00000007`cbb8c930 00000000`00000000 00000000`77a75383 : msmdsrv!PCTCPListener::PostAccept+0x162
00000009`6c67f9d0 00000000`00c3a3e1 : 00000000`07107610 00000000`32a4e200 00000001`f048d490 00000001`f048d3e0 : msmdsrv!PCTCPListener::HandleIncoming+0x423
00000009`6c67fb10 00000000`77a6ed52 : 00000000`32a4e240 000007ff`ffec0000 00000000`00313280 00000001`f048d490 : msmdsrv!PCTCPListener::s_HandleIncoming+0x7d
00000009`6c67fb60 00000000`77a722fc : 00000001`f048d3e0 00000000`32a4e240 00000009`6c67fcc8 00000009`00000000 : ntdll!RtlpTpWaitCallback+0x92
00000009`6c67fbb0 00000000`77b59e87 : 00000000`242537b8 00000000`00313280 00000000`00000000 00000000`00313280 : ntdll!TppWaitpExecuteCallback+0x10c
00000009`6c67fc10 00000000`778559cd : 00000000`0000000f 00000001`00010010 00000000`00313280 00000001`f048d490 : ntdll!TppWorkerThread+0x6f7
00000009`6c67fea0 00000000`77ab383d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0xd
00000009`6c67fed0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d
SYMBOL_STACK_INDEX: 1
SYMBOL_NAME: msmdsrv!PCTCPListener::PostAccept+162
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: msmdsrv
IMAGE_NAME: msmdsrv.rll
DEBUG_FLR_IMAGE_TIMESTAMP: 5993a93d
STACK_COMMAND: ~125s; .ecxr ; kb
FAILURE_BUCKET_ID: WRONG_SYMBOLS_c0000005_msmdsrv.rll!PCTCPListener::PostAccept
BUCKET_ID: X64_APPLICATION_FAULT_WRONG_SYMBOLS_BAD_IP_msmdsrv!PCTCPListener::PostAccept+162
ANALYSIS_SOURCE: UM
FAILURE_ID_HASH_STRING: um:wrong_symbols_c0000005_msmdsrv.rll!pctcplistener::postaccept
FAILURE_ID_HASH: {0ded1064-07b2-74ac-feb3-71083a5f1d0b}
Followup: MachineOwner
———
0:125> kC 1000
Call Site
ntdll!ZwWaitForSingleObject
KERNELBASE!WaitForSingleObjectEx
msmdsrv!CDmpDump::DumpInternal
msmdsrv!CDmpDump::Dump
msmdsrv!PFWatsonMiniDumpToLocalFile
msmdsrv!PFSetLastErrorFromExceptionExTag
msmdsrv!PFSetErrorInfoFromException
msmdsrv!ExceptionHandlerFilter
msvcr100!_CxxFrameHandler3
msvcr100!_CxxExceptionFilter
msvcr100!_CxxExceptionFilter
msvcr100!_CxxExceptionFilter
msvcr100!_CxxFrameHandler3
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatch
0x0
msmdsrv!PCTCPListener::PostAccept
msmdsrv!PCTCPListener::HandleIncoming
msmdsrv!PCTCPListener::s_HandleIncoming
ntdll!RtlpTpWaitCallback
ntdll!TppWaitpExecuteCallback
ntdll!TppWorkerThread
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
can you help?
Damian said
Hi Kathric,
We’re getting the following on SQL 2016 (13.0.4001.0). Someone else posted something very similare a couple of years ago, but
0:120> kC 1000
# Call Site
00 sqlmin!CBpHashTableScanner::InternalScan
01 sqlmin!CBpHashTableScanner::BpGetNextBatch
02 sqlmin!CBpPartialJoin::AddHashTableSliceToBitmap
03 sqlmin!CBpPartialJoin::CreateBitmap
04 sqlmin!CBpQScanHashJoin::ProcessBuildSide
05 sqlmin!CBpQScanHashJoin::BpOpen
06 sqlmin!CBpQScanHashJoin::ProcessBuildSide
07 sqlmin!CBpQScanHashJoin::BpOpen
08 sqlmin!CBpQScan::DefaultOpen
09 sqlmin!CBpQScan::DefaultOpen
0a sqlmin!CBpQScanHashAggNew::ProcessInput
0b sqlmin!CBpSpillProcessor::Main
0c sqlmin!CBpQScanHashAggNew::BpGetNextBatch
0d sqlmin!CBpQScanProject::BpGetNextBatch
0e sqlmin!CBpQScanProject::BpGetNextBatch
0f sqlmin!CQScanBatchHelper::GetRow
10 sqlmin!CQScanUpdateNew::GetRow
11 sqlmin!CQScanXProducerNew::GetRowHelper
12 sqlmin!CQScanXProducerNew::GetRow
13 sqlmin!FnProducerOpen
14 sqlmin!FnProducerThread
15 sqlmin!SubprocEntrypoint
16 0x0
17 0x0
18 0x0
19 0x0
1a 0x0
1b 0x0
Nandini said
Hi Karthick,
I followed you step and got the below stack. Can you help you to analyse.
00000`00e851a5 48894120 mov qword ptr [rcx+20h],rax ds:000010d0`33c54060=????????????????
0:000> kC 1000
# Call Site
00 sqlservr!CVariableInfo::CVarBlock::PvbJoin
01 sqlservr!CVariableInfo::PviRelease
02 sqlservr!CVarPageMgr::Release
03 sqlservr!CMemObj::Free
04 sqlservr!CShowplanRow::`scalar deleting destructor’
05 sqlservr!CShowplanTableGrid::PrepDestroy
06 sqlservr!CShowplanTable::Destroy
07 sqlservr!CExecLvlIntCtxt::DestroyShowplanTable
08 sqlservr!CSQLSource::PopSqlScopeInternal
09 sqlservr!CSQLSource::~CSQLSource
0a sqlservr!CSQLStrings::`vector deleting destructor’
0b sqlservr!CLanguageExecEnv::OnExecError
0c sqlservr!process_request
0d sqlservr!process_commands
0e sqlservr!SOS_Task::Param::Execute
0f sqlservr!SOS_Scheduler::RunTask
10 sqlservr!SOS_Scheduler::ProcessTasks
11 sqlservr!SchedulerManager::WorkerEntryPoint
12 sqlservr!SystemThread::RunWorker
13 sqlservr!SystemThreadDispatcher::ProcessWorker
14 sqlservr!SchedulerManager::ThreadEntryPoint
15 msvcr80!_callthreadstartex
16 0x0
17 0x0
18 0x0
Selvin said
Hi.. Can you help me on below output
0:000> kC 1000
# Call Site
00 KERNELBASE!RaiseException
01 sqlservr!CDmpDump::Dump
02 sqllang!SQLDumperLibraryInvoke
03 sqllang!SQLLangDumperLibraryInvoke
04 sqllang!CImageHelper::DoMiniDump
05 sqllang!stackTrace
06 sqllang!stackTraceCallBack
07 sqldk!ex_handle_except
08 KERNELBASE!UnhandledExceptionFilter
09 ntdll!RtlUserThreadStart$filt$0
0a ntdll!_C_specific_handler
0b ntdll!RtlpExecuteHandlerForException
0c ntdll!RtlDispatchException
0d ntdll!KiUserExceptionDispatch
0e sqltses!CSqlSortManager_80::GetSortKey
0f sqltses!CTypeInfo::IHashGeneralW
10 sqltses!CTypeInfo::IHashW
11 sqltses!CDefaultCollation::IHashW
12 sqldk!SOS_ResourceManager::LookupGroup
13 sqlmin!RecoveryConfigMgr::Boot
14 sqlmin!StartGlobalTXComponents
15 sqlmin!StartDBMSThreads
16 sqlmin!SQLMinInitComponents
17 sqlservr!InitServerComponents
18 sqlservr!sqlservr_main
19 sqlservr!TListElem<TList >::RemoveAndDestroy
1a sechost!ScSvcctrlThreadA
1b kernel32!BaseThreadInitThunk
1c ntdll!RtlUserThreadStart
Bo said
Version: 15.0.2000.5
0:000> .ecxr
rax=0000014020dacc01 rbx=000001404e62a380 rcx=000000000000001c
rdx=000001404e62a380 rsi=000001404e62a2d0 rdi=0000013f8f664040
rip=00007ffffbb8abd2 rsp=0000002e5f979890 rbp=0000002e5f97a290
r8=0000013f946bd390 r9=000001404e62a380 r10=0000000000000000
r11=000000000029bef6 r12=0000013f8f64a940 r13=0000013f8f64a910
r14=0000000000000001 r15=0000013f8f664040
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
sqlmin!PageFlushManager::DoesBufBelongToPageFlushManager+0xb2:
00007fff`fbb8abd2 488b01 mov rax,qword ptr [rcx] ds:00000000`0000001c=????????????????
0:000> kC 1000
# Call Site
00 sqlmin!PageFlushManager::DoesBufBelongToPageFlushManager
01 sqlmin!IndexPageManager::GetPageWithKey
02 sqlmin!GetRowForKeyValue
03 sqlmin!IndexRowScanner::EstablishInitialKeyOrderPosition
04 sqlmin!IndexDataSetSession::GetNextRowValuesInternal
05 sqlmin!RowsetNewSS::GetNextRowValues
06 sqlmin!RowsetNewSS::FetchNextRow
07 sqlmin!CQScanRowsetNew::GetRowWithPrefetch
08 sqlmin!CQScanTableScanNew::GetRow
09 sqlmin!CQScanLightProfileNew::GetRow
0a sqlmin!CQScanNLJoinTrivialNew::GetRow
0b sqlmin!CQScanLightProfileNew::GetRow
0c sqlmin!CQueryScan::GetRow
0d sqllang!CXStmtQuery::ErsqExecuteQuery
0e sqllang!CXStmtSelect::XretExecute
0f sqllang!CMsqlExecContext::ExecuteStmts
10 sqllang!CMsqlExecContext::FExecute
11 sqllang!CSQLSource::Execute
12 sqllang!ExecuteSql
13 sqllang!CSpecProc::ExecuteSpecial
14 sqllang!CSpecProc::Execute
15 sqllang!process_request
16 sqllang!process_commands_internal
17 sqllang!process_messages
18 sqldk!SOS_Task::Param::Execute
19 sqldk!SOS_Scheduler::RunTask
1a sqldk!SOS_Scheduler::ProcessTasks
1b sqldk!SchedulerManager::WorkerEntryPoint
1c sqldk!SystemThreadDispatcher::ProcessWorker
1d sqldk!SchedulerManager::ThreadEntryPoint
1e kernel32!BaseThreadInitThunk
1f ntdll!RtlUserThreadStart
A SELECT query is failing on SQL Server 2019.
ice challenge 2019 said
Более пяти часов пришлось потратить на то, чтобы найти подобную информацию.
по этому вопросу наконец-то окончен:) Мои усилия того стоили!
Ес! С уверенностью могу сказать,
что, если бы все копирайтеры и блогеры
делали такой полный контент,
как Вы, уважаемый автор, Рунет и интернет
вообще были бы в разы чище. Не могу
не прокомментировать ваш пост.
Еще раз напишу, очень хорошо сказано!
Уже поставлена подписка на
вашу ленту, есть ли еще какие-то
способы сохранить ваш блог и регулярно получать информацию об обновлениях?
Самое время запасаться хорошими идеями на будущее.
После прочтения вашего поста у меня
появилось желание дополнить.
Я думаю, тему можно расширить
и написать еще несколько связанных текстов (а может, вы ведете
и другие блоги?). Мне было бы
интересно почитать что-то новенькое на эту тему, в этом разбираются немногие, и обычно более обобщенно.
Поэтому вас я вдвойне ценю. И по-видимому, судя по количеству комментов, я не один.
hernan pezzani said
.ecxr
rax=00000038e1870000 rbx=0000000080004005 rcx=00000038e187ba00
rdx=00007ffcd42c3a31 rsi=0000000000000440 rdi=0000000000000000
rip=00007ffce78c4c48 rsp=00000038e187b4c0 rbp=00000001a27d0d0b
r8=00007ffcd43485ce r9=0000000000000037 r10=00007ffce789f14a
r11=000001add5227c28 r12=00007ffcd655f040 r13=00000001a27d0d0b
r14=00007ffcd5cd3cc0 r15=00007ff6403bbd80
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x68:
00007ffc`e78c4c48 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:00000038`e187b580=0000e9e7dcef4b35
0:000> kC 1000
*** WARNING: Unable to verify timestamp for sqlservr.exe
# Call Site
00 KERNELBASE!RaiseException
*** WARNING: Unable to verify timestamp for sqllang.dll
01 sqlservr!CDmpDump::Dump
02 sqllang!SQLDumperLibraryInvoke
03 sqllang!SQLLangDumperLibraryInvoke
04 sqllang!CImageHelper::DoMiniDump
05 sqllang!stackTrace
*** WARNING: Unable to verify timestamp for sqldk.dll
06 sqllang!stackTraceCallBack
07 sqldk!ex_terminator
08 msvcr120!_CallSETranslator
09 msvcr120!FindHandlerForForeignException
0a msvcr120!FindHandler
0b msvcr120!__InternalCxxFrameHandler
*** WARNING: Unable to verify timestamp for sqlmin.dll
0c msvcr120!__CxxFrameHandler
0d sqlmin!_GSHandlerCheck_EH
0e ntdll!RtlpExecuteHandlerForException
0f ntdll!RtlDispatchException
10 ntdll!KiUserExceptionDispatch
11 sqldk!TVarPageMgr::PbAllocate
12 sqldk!CMemThread::Alloc
13 sqldk!CMemPartitioned<CMemThread >::Alloc
14 sqlmin!CopyVersionInfo::CreateCopyVersionInfo
15 sqlmin!RecXdes::SetCopyVersionInfo
16 sqlmin!ParallelRedoWorker::DoPageRedoSpecialOperation
17 sqlmin!ParallelRedoWorker::RedoWorkerLoop
18 sqlmin!ParallelRedoWorker::RedoWorkerEntryPoint
19 sqldk!SOS_Task::Param::Execute
1a sqldk!SOS_Scheduler::RunTask
1b sqldk!SOS_Scheduler::ProcessTasks
1c sqldk!SchedulerManager::WorkerEntryPoint
1d sqldk!SystemThread::RunWorker
1e sqldk!SystemThreadDispatcher::ProcessWorker
1f sqldk!SchedulerManager::ThreadEntryPoint
20 kernel32!BaseThreadInitThunk
21 ntdll!RtlUserThreadStart
0:000> .ecxr
rax=00000038e1870000 rbx=0000000080004005 rcx=00000038e187ba00
rdx=00007ffcd42c3a31 rsi=0000000000000440 rdi=0000000000000000
rip=00007ffce78c4c48 rsp=00000038e187b4c0 rbp=00000001a27d0d0b
r8=00007ffcd43485ce r9=0000000000000037 r10=00007ffce789f14a
r11=000001add5227c28 r12=00007ffcd655f040 r13=00000001a27d0d0b
r14=00007ffcd5cd3cc0 r15=00007ff6403bbd80
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x68:
00007ffc`e78c4c48 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:00000038`e187b580=0000e9e7dcef4b35
Gilles said
Hi I am a programmer but I am not an expert in SQl server so I need some help if it is possible
From my understanding this exception has been throw when a store procedure has been call using a connection with OpenQuery an a LinkedServer pointing to an Oracle Data Base
I found out the store procedure and launched many times and once in a while I received an message error
I Use SQL server 2005 and Oracle 11G
Both data base are on different server in the same Domain
Since 2 week I received many errors and seems to be in relation with the Linked Server
Before those 2 weeks this system was ok since 7 years.
Can you help me so I can have an idea where to look so we can fix the problem
Thanks in advance!
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 9.00.5000.00
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is AT/AT COMPATIBLE.
Bios Version is VRTUAL – 5001223
BIOS Date: 05/23/12 17:15:53 Ver: 09.00.06
Current time is 08:20:06 05/25/20.
6 Intel x86 level 6, 10 Mhz processor (s).
Windows NT 6.1 Build 7601 CSD Service Pack 1.
Memory
MemoryLoad = 17%
Total Physical = 16383 MB
Available Physical = 13597 MB
Total Page File = 32765 MB
Available Page File = 29994 MB
Total Virtual = 4095 MB
Available Virtual = 285 MB
***Stack Dump being sent to C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0379.txt
SqlDumpExceptionHandler: Process 71 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 05/25/20 08:20:06 spid 71
*
*
* Exception Address = 772A3702 Module(ntdll+00053702)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 00000004
* Input Buffer 255 bytes –
* 16 00 00 00 12 00 00 00 02 00 00 00 00 00 00 00 00 00
* H u p _ Q u o 01 00 00 00 48 00 75 00 70 00 5f 00 51 00 75 00 6f 00
* t a t i o n P r o 74 00 61 00 74 00 69 00 6f 00 6e 00 50 00 72 00 6f 00
* d u c t _ G e t P 64 00 75 00 63 00 74 00 5f 00 47 00 65 00 74 00 50 00
* i c k L i s t A l 69 00 63 00 6b 00 4c 00 69 00 73 00 74 00 41 00 6c 00
* l I t e m s O r P 6c 00 49 00 74 00 65 00 6d 00 73 00 4f 00 72 00 50 00
* r o d u c t B y C 72 00 6f 00 64 00 75 00 63 00 74 00 42 00 79 00 43 00
* u s t o m e r A n 75 00 73 00 74 00 6f 00 6d 00 65 00 72 00 41 00 6e 00
* d Q u o t a t i o 64 00 51 00 75 00 6f 00 74 00 61 00 74 00 69 00 6f 00
* n I d @ N o C u 6e 00 49 00 64 00 00 00 15 40 00 4e 00 6f 00 43 00 75
* s t o m e r S y n 00 73 00 74 00 6f 00 6d 00 65 00 72 00 53 00 79 00 6e
* e r g y t e k ç 00 65 00 72 00 67 00 79 00 74 00 65 00 6b 00 00 e7 0c
* Ð 0 1 3 1 3 00 09 04 d0 00 00 0c 00 30 00 31 00 33 00 31 00 33 00
* 0 @ Q u o t a t i 30 00 0c 40 00 51 00 75 00 6f 00 74 00 61 00 74 00 69
* o n I d & 4# 00 6f 00 6e 00 49 00 64 00 00 26 04 04 34 23 00 00 0b
* @ I t e m S t a t 40 00 49 00 74 00 65 00 6d 00 53 00 74 00 61 00 74 00
* u s ç Ð A 75 00 73 00 00 e7 02 00 09 04 d0 00 00 02 00 41 00 0c
* @ P r o d u c t T 40 00 50 00 72 00 6f 00 64 00 75 00 63 00 74 00 54 00
* y p e ç Ð 79 00 70 00 65 00 00 e7 02 00 09 04 d0 00 00 00 00
*
*
* MODULE BASE END SIZE
* sqlservr 01000000 02C26FFF 01c27000
* ntdll 77250000 773CFFFF 00180000
* kernel32 76600000 7670FFFF 00110000
* KERNELBASE 74C70000 74CB6FFF 00047000
* MSVCR80 6FB70000 6FC0AFFF 0009b000
* msvcrt 74CC0000 74D6BFFF 000ac000
* MSVCP80 6AF20000 6AFA6FFF 00087000
* ADVAPI32 76550000 765F0FFF 000a1000
* sechost 76C30000 76C48FFF 00019000
* RPCRT4 756E0000 757CFFFF 000f0000
* SspiCli 749C0000 74A1FFFF 00060000
* CRYPTBASE 749B0000 749BBFFF 0000c000
* sqlos 344D0000 344D4FFF 00005000
* Secur32 6B730000 6B737FFF 00008000
* USERENV 76750000 76766FFF 00017000
* profapi 76A80000 76A8AFFF 0000b000
* WINMM 6AD10000 6AD41FFF 00032000
* USER32 75520000 7561FFFF 00100000
* GDI32 75650000 756DFFFF 00090000
* LPK 74DD0000 74DD9FFF 0000a000
* USP10 76B30000 76BCCFFF 0009d000
* opends60 333E0000 333E6FFF 00007000
* NETAPI32 6ACF0000 6AD00FFF 00011000
* netutils 6ACE0000 6ACE8FFF 00009000
* srvcli 6ACC0000 6ACD8FFF 00019000
* wkscli 6ACB0000 6ACBEFFF 0000f000
* LOGONCLI 6AC80000 6ACA1FFF 00022000
* IMM32 74D70000 74DCFFFF 00060000
* MSCTF 75360000 7542CFFF 000cd000
* psapi 754C0000 754C4FFF 00005000
* instapi 48060000 48069FFF 0000a000
* cscapi 6ABD0000 6ABDAFFF 0000b000
* sqlevn70 4F610000 4F7B8FFF 001a9000
* ntmarta 6AB30000 6AB50FFF 00021000
* WLDAP32 754D0000 75514FFF 00045000
* CRYPTSP 747F0000 74806FFF 00017000
* rsaenh 747B0000 747EAFFF 0003b000
* BROWCLI 6ABC0000 6ABCCFFF 0000d000
* SAMCLI 6ABB0000 6ABBEFFF 0000f000
* AUTHZ 6AB70000 6AB8AFFF 0001b000
* MSCOREE 73F70000 73FB9FFF 0004a000
* mscoreei 73EF0000 73F69FFF 0007a000
* ole32 76910000 76A6CFFF 0015d000
* credssp 08520000 08527FFF 00008000
* msv1_0 087A0000 087E2FFF 00043000
* cryptdll 08570000 08580FFF 00011000
* Kerberos 087F0000 0887BFFF 0008c000
* MSASN1 767D0000 767DBFFF 0000c000
* schannel 08880000 088C0FFF 00041000
* CRYPT32 757D0000 758F1FFF 00122000
* COMRES 088E0000 08A1DFFF 0013e000
* XOLEHLP 6ABA0000 6ABAFFFF 00010000
* VERSION 74740000 74748FFF 00009000
* MSDTCPRX 08A20000 08AB1FFF 00092000
* MTXCLU 08AC0000 08B12FFF 00053000
* WS2_32 76710000 76744FFF 00035000
* NSI 76A70000 76A75FFF 00006000
* CLUSAPI 08B20000 08B5AFFF 0003b000
* RESUTILS 08B60000 08B73FFF 00014000
* bcrypt 6EFB0000 6EFC6FFF 00017000
* ktmw32 08B80000 08B88FFF 00009000
* mswsock 74180000 741BBFFF 0003c000
* DNSAPI 74050000 74093FFF 00044000
* IPHLPAPI 74020000 7403BFFF 0001c000
* WINNSI 74010000 74016FFF 00007000
* fwpuclnt 73FD0000 74007FFF 00038000
* rasadhlp 73FC0000 73FC5FFF 00006000
* wship6 6EF60000 6EF65FFF 00006000
* RpcRtRemote 74790000 7479DFFF 0000e000
* security 08C30000 08C32FFF 00003000
* SHELL32 75900000 7654BFFF 00c4c000
* SHLWAPI 76C50000 76CA6FFF 00057000
* msfte 09DC0000 0A019FFF 0025a000
* OLEAUT32 76A90000 76B20FFF 00091000
* dbghelp 6B050000 6B164FFF 00115000
* WINTRUST 75320000 7534EFFF 0002f000
* ncrypt 6EFD0000 6F008FFF 00039000
* wshtcpip 740C0000 740C4FFF 00005000
* ntdsapi 091F0000 09207FFF 00018000
* bcryptprimitives 6EF70000 6EFACFFF 0003d000
* CLBCatQ 76870000 768F2FFF 00083000
* sqlncli 337A0000 339C7FFF 00228000
* COMCTL32 74300000 74383FFF 00084000
* comdlg32 767F0000 7686AFFF 0007b000
* SQLNCLIR 02CD0000 02D02FFF 00033000
* netbios 02D20000 02D27FFF 00008000
* msftepxy 09290000 092A4FFF 00015000
* xpstar90 0A6C0000 0A70BFFF 0004c000
* SQLSCM90 0A720000 0A728FFF 00009000
* ODBC32 0A740000 0A7CBFFF 0008c000
* BatchParser90 0A7D0000 0A7EEFFF 0001f000
* ATL80 6D340000 6D35AFFF 0001b000
* odbcint 0A800000 0A837FFF 00038000
* xpstar90 0A840000 0A865FFF 00026000
* oledb32 0B410000 0B4E3FFF 000d4000
* MSDART 0B500000 0B51EFFF 0001f000
* Comctl32 0B6E0000 0B87DFFF 0019e000
* OLEDB32R 0B540000 0B553FFF 00014000
* comsvcs 0B560000 0B695FFF 00136000
* ATL 0B880000 0B893FFF 00014000
* OraOLEDB11 10000000 1006FFFF 00070000
* OraOLEDBgmr11 0B8A0000 0B8BFFFF 00020000
* OCI 0B8C0000 0B9B3FFF 000f4000
* OraOLEDBrst11 0B9C0000 0B9E3FFF 00024000
* OraOLEDButl11 0B9F0000 0B9F6FFF 00007000
* MSVCP60 0BA00000 0BA65FFF 00066000
* OraClient11 0BA80000 0BE26FFF 003a7000
* oracore11 0BE40000 0BF30FFF 000f1000
* oranls11 0BF50000 0C019FFF 000ca000
* oraunls11 0C030000 0C04AFFF 0001b000
* orauts 0C060000 0C066FFF 00007000
* oracommon11 0C080000 0C2B2FFF 00233000
* orasnls11 0C2D0000 0C2FFFFF 00030000
* orageneric11 0C310000 0CF1EFFF 00c0f000
* oraxml11 0CF30000 0D29FFFF 00370000
* oran11 0D2B0000 0D6AFFFF 00400000
* oranl11 0D6C0000 0D721FFF 00062000
* orantcp11 0D740000 0D775FFF 00036000
* oranldap11 0D790000 0D7DCFFF 0004d000
* orannzsbb11 0D7F0000 0D921FFF 00132000
* WSOCK32 747A0000 747A6FFF 00007000
* oraldapclnt11 0D940000 0DACBFFF 0018c000
* orancrypt11 0DAE0000 0DAFDFFF 0001e000
* orazt11 0DB10000 0DC97FFF 00188000
* oranro11 0DCB0000 0DCFBFFF 0004c000
* oranhost11 0DD10000 0DD1CFFF 0000d000
* orancds11 0DD30000 0DD35FFF 00006000
* orantns11 0DD50000 0DD60FFF 00011000
* oraztkg11 0DD80000 0DE12FFF 00093000
* orapls11 0DE30000 0E211FFF 003e2000
* oraslax11 0E230000 0E238FFF 00009000
* oravsn11 0E240000 0E245FFF 00006000
* oraplp11 0E260000 0E530FFF 002d1000
* orahasgen11 0E550000 0E8D2FFF 00383000
* oraocr11 0E8F0000 0E98DFFF 0009e000
* oraocrb11 0E9A0000 0EA5CFFF 000bd000
* oraocrutl11 0EA70000 0EA7CFFF 0000d000
* oracell11 0EA90000 0EACDFFF 0003e000
* orasql11 0EAE0000 0EB77FFF 00098000
* OraPlc11 0EB90000 0EBA7FFF 00018000
* OraOLEDB11us 0EBC0000 0EBC5FFF 00006000
* OraOLEDBpus11 0EBD0000 0EBD7FFF 00008000
* NLAapi 740B0000 740BFFFF 00010000
* napinsp 740A0000 740AFFFF 00010000
* winrnr 74040000 74047FFF 00008000
* dbghelp 0FAB0000 0FBC4FFF 00115000
*
* Edi: 0A641BC0: 00000003 000D5DE9 004EEC48 004BC480 00000001 00000000
* Esi: 0A641BD8: 5B5F9810 0A5E5DEC 00000000 00534A40 0000000B 00000000
* Eax: 0A641BE0: 00000000 00534A40 0000000B 00000000 5C850883 80000000
* Ebx: 00460000: BB9C2D86 01005D90 FFEEFFEE 00000000 0A580010 004600A8
* Ecx: 00000000:
* Edx: 00534A40: 00000000 00000000 00000000 00000000 00000000 00000000
* Eip: 772A3702: 8904498B 128BEC55 850FD13B 00036C91 850FD03B 00036C89
* Ebp: 09DBDA14: 09DBDB00 772833BD 0A641BC0 0000000D 00000000 00000079
* SegCs: 00000023:
* EFlags: 00010202: 0000001F 2B700000 0000771C FFFF0000 0000FFFF 00000000
* Esp: 09DBD9F0: 00000079 0A6417F8 00460000 0A641BD8 000048E9 00000000
* SegSs: 0000002B:
* *******************************************************************************
* ——————————————————————————-
* Short Stack Dump
772A3702 Module(ntdll+00053702)
772833BD Module(ntdll+000333BD)
77283461 Module(ntdll+00033461)
7695E9F3 Module(ole32+0004E9F3)
7695EA0F Module(ole32+0004EA0F)
0B9F185B Module(OraOLEDButl11+0000185B)
0B9D2DD4 Module(OraOLEDBrst11+00012DD4)
0B9D52C4 Module(OraOLEDBrst11+000152C4)
0B9D49A1 Module(OraOLEDBrst11+000149A1)
PSS @0xA180D5C8
—————
CSession @0xA180C278
——————–
m_spid = 71 m_cRef = 16 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 13 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0xA180C040
m_pstackBhfPool = 0xA180DDB0 m_dwLoginFlags = 0x03e0 m_fBackground = 0
m_fClientRequestConnReset = 0 m_fUserProc = -1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fAuditLoginSent = 1
m_fAuditLoginFailedSent = 0 m_fReplRelease = 0 m_fKill = 0
m_ulLoginStamp = 958 m_eclClient = 5 m_protType = 5
m_hHttpToken = FFFFFFFF
m_pV7LoginRec
———————
00000000: 20010000 03000a73 401f0000 00000006 38190000 † ……s@…….8…
00000014: 00000000 e0030000 00000000 00000000 5e000500 †…………….^…
00000028: 68000900 7a000000 8e001c00 c6000b00 dc000000 †h…z……………
0000003C: dc001c00 14010000 14010600 c8c6821e d89d2001 †……………… .
00000050: 00002001 00002001 00000000 0000†††††††††††††††.. … …….
CPhysicalConnection @0xA180C188
——————————-
m_pPhyConn->m_pmo = 0xA180C040 m_pPhyConn->m_pNetConn = 0xA180C7B0 m_pPhyConn->m_pConnList = 0xA180C260
m_pPhyConn->m_pSess = 0xA180C278 m_pPhyConn->m_fTracked = -1 m_pPhyConn->m_cbPacketsize = 8000
m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0
CBatch @0xA180CAB8
——————
m_pSess = 0xA180C278 m_pConn = 0xA180CA18 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x0332A3E8
EXCEPT (null) @0x09DBBF6C
————————-
exc_number = 0 exc_severity = 0 exc_func = 0x02428E80
Task @0x0332A3E8
—————-
CPU Ticks used (ms) = 54 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x00000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x00000000
WAITINFO_EXTERNAL: WaitResource = 0x00000000 WAITINFO_EXTERNAL: WaitType = 0x40006D
WAITINFO_EXTERNAL: WaitSpinlock = 0x00000000 SchedulerId = 0x4
ThreadId = 0x2774 m_state = 0 m_eAbortSev = 0
EC @0xA180D5D0
————–
spid = 71 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x0 ec_atomic = 0x0 __fSubProc = 1
ec_dbccContext = 0x00000000 __pSETLS = 0xA180CA58 __pSEParams = 0xA180CCF8
__pDbLocks = 0xA180DAB8
SEInternalTLS @0xA180CA58
————————-
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x0332A3E8
m_activeHeapDatasetList = 0xA180CA58 m_activeIndexDatasetList = 0xA180CA60
SEParams @0xA180CCF8
——————–
m_lockTimeout = -1 m_isoLevel = 4096 m_logDontReplicate = 0
m_neverReplicate = 0 m_XactWorkspace = 0x9DB53880 m_pSessionLocks = 0xA180DCC8
m_pDbLocks = 0xA180DAB8 m_execStats = 0x8047C158 m_pAllocFileLimit = 0x00000000
SQLDump0379.txt
Affichage de SQLDump0379.txt en cours.
sergiu said
Getting ‘acces violation’ from SQLServer 2016 CU15. I saw fixes exist in CU16 and CU17. Are other things to check or just patch to latest CU?
sqllang!DECOMPEXECINFO::RegisterFragment+0x41
sqllang!DECOMPEXECINFO::SelectQueriableFragments+0x4b
sqllang!CFTMatchExec::Init+0x6c5
sqlmin!CQScanTVFStreamNew::Open+0x5b9
sqlmin!CQScanNew::OpenHelper+0x41
sqlmin!CQScanRowsetNew::OpenHelper+0x21
sqlmin!CQScanRangePrefetchDelayNew::Open+0x60
sqlmin!CQScanNLJoinNew::Open+0x27
sqlmin!CQScanMergeJoinNew::Open+0xb2
sqlmin!CQScanMergeJoinNew::Open+0xb2
sqlmin!CQScanSpoolNew::LoadSpool+0x3f
sqlmin!CQScanSpoolNew::Open+0xf3
sqlmin!CQScanNew::OpenHelper+0x41
sqlmin!CQScanUpdateNew::Open+0x153
sqlmin!CQueryScan::StartupQuery+0x316
sqllang!CXStmtQuery::SetupQueryScanAndExpression+0x3bd
sqllang!CXStmtQuery::InitForExecute+0x34
sqllang!CXStmtQuery::ErsqExecuteQuery+0x4dc
sqllang!CXStmtDML::XretDMLExecute+0x3a3
sqllang!CXStmtDML::XretExecute+0xb0
sqllang!CMsqlExecContext::ExecuteStmts+0x1608
sqllang!CMsqlExecContext::FExecute+0xa75
sqllang!CSQLSource::Execute+0x983
sqllang!CSQLObject::ExecuteFunction+0x2a1
sqllang!CUdfExecInfo::InvokeTSQLTVF+0x349
sqllang!TVUDFInvoke+0x32
sqlmin!CQScanTVFNew::Open+0x24a
sqlmin!CQScanSequenceNew::Open+0xf1
sqlmin!CQueryScan::StartupQuery+0x316
sqllang!CXStmtQuery::SetupQueryScanAndExpression+0x3bd
sqllang!CXStmtQuery::InitForExecute+0x34
sqllang!CXStmtQuery::ErsqExecuteQuery+0x4dc
sqllang!CXStmtDML::XretDMLExecute+0x3a3
sqllang!CXStmtDML::XretExecute+0xb0
sqllang!CMsqlExecContext::ExecuteStmts+0x1608
sqllang!CMsqlExecContext::FExecute+0xa75
sqllang!CSQLSource::Execute+0x983
sqllang!process_request+0xea6
sqllang!process_commands_internal+0x2df
sqllang!process_messages+0x253
sqldk!SOS_Task::Param::Execute+0x231
sqldk!SOS_Scheduler::RunTask+0xaa
sqldk!SOS_Scheduler::ProcessTasks+0x3cd
sqldk!SchedulerManager::WorkerEntryPoint+0x2a1
sqldk!SystemThread::RunWorker+0x8f
sqldk!SystemThreadDispatcher::ProcessWorker+0x2de
sqldk!SchedulerManager::ThreadEntryPoint+0x1d8
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Ashokkumar said
Microsoft (R) Windows Debugger Version 10.0.19041.685 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Log\SQLDump0010.mdmp]
Comment: ‘Stack Trace’
Comment: ‘ex_handle_except encountered exception 0148F8C4 – Server terminating’
Comment: ”
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: srv*
Executable search path is:
Windows 10 Version 17763 MP (8 procs) Free x64
Product: Server, suite: TerminalServer DataCenter SingleUserTS
17763.1.amd64fre.rs5_release.180914-1434
Machine Name:
Debug session time: Wed Jul 28 02:50:35.000 2021 (UTC – 7:00)
System Uptime: 0 days 8:41:13.426
Process Uptime: 0 days 8:41:01.000
……………………………………………………….
……………………………………………………….
……………………………………………………….
..
Loading unloaded module list
……………………………………………………….
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(da4.2490): Unknown exception – code 000042ac (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForSingleObject+0x14:
00007ff8`6e8bfa74 c3 ret
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify timestamp for mso20win32client.dll
*** WARNING: Unable to verify timestamp for mso30win32client.dll
*** WARNING: Unable to verify timestamp for mso.dll
Failed to request MethodData, not in JIT code range
KEY_VALUES_STRING: 1
Key : Analysis.CPU.Sec
Value: 23
Key : Analysis.DebugAnalysisProvider.CPP
Value: Create: 8007007e on AUW2WGSCMPDB01
Key : Analysis.DebugData
Value: CreateObject
Key : Analysis.DebugModel
Value: CreateObject
Key : Analysis.Elapsed.Sec
Value: 57
Key : Analysis.Memory.CommitPeak.Mb
Value: 334
Key : Analysis.System
Value: CreateObject
Key : CLR.Engine
Value: CLR
Key : CLR.Version
Value: 4.0.30319.0
Key : Timeline.OS.Boot.DeltaSec
Value: 31273
Key : Timeline.Process.Start.DeltaSec
Value: 31261
COMMENT: Stack Trace
NTGLOBALFLAG: 0
PROCESS_BAM_CURRENT_THROTTLED: 0
PROCESS_BAM_PREVIOUS_THROTTLED: 0
CONTEXT: 0000026a24654140 — (.cxr 0x26a24654140)
Unable to read context, Win32 error 0n30
Resetting default scope
EXCEPTION_RECORD: 000000a0105fb5d0 — (.exr 0xa0105fb5d0)
ExceptionAddress: 00007ff800000000
ExceptionCode: 253c9a1c
ExceptionFlags: 0000026a
NumberParameters: 0
PROCESS_NAME: sqlservr.exe
ERROR_CODE: (NTSTATUS) 0x42ac –
EXCEPTION_CODE_STR: 42ac
MISSING_CLR_SYMBOL: 0
IP_ON_HEAP: 0ffda817418d0000
The fault address in not in any loaded module, please check your build’s rebase
log at \bin\build_logs\timebuild\ntrebase.log for module which may
contain the address if it were loaded.
UNALIGNED_STACK_POINTER: 000003e6830f02fd
STACK_TEXT:
000000a0`105faa48 00007ff8`6b358933 : 000000a0`105faa88 00000000`00000000 00004571`efed022e 00000000`00000103 : ntdll!NtWaitForSingleObject+0x14
000000a0`105faa50 00007ff7`3a4eb77e : 00000000`00000102 000000a0`105fbe70 00007ff7`00000000 00000000`00000354 : KERNELBASE!WaitForSingleObjectEx+0x93
000000a0`105faaf0 00007ff7`3a4eb4f3 : 00000000`0000011f 00007ff7`00000000 00000000`0000011f 00007ff8`5db6cd1c : sqlservr!CDmpDump::InvokeSqlDumper+0x1ee
000000a0`105fabf0 00007ff7`3a4eb302 : 00007ff7`3a4fc208 00007ff8`00000000 000000a0`105fad18 00000000`00000000 : sqlservr!CDmpDump::DumpInternal+0x1b3
000000a0`105faca0 00007ff7`3a4f8799 : 00000271`00000090 000000a0`105fb010 ffffffff`fffffffe 00007ff7`3a51ee74 : sqlservr!CDmpDump::DumpFilter+0xc2
000000a0`105fad90 00007ff8`61abebc0 : 0000026f`b6905580 000000a0`105fb0a0 000000a0`105fbdb0 000000a0`105fb3b8 : sqlservr!`CDmpDump::Dump’::`1′::filt$0+0x19
000000a0`105fadc0 00007ff8`6e8c4a2f : 00000000`00000000 000000a0`105fb3a0 00000000`00000000 000000a0`105fb3a0 : VCRUNTIME140!__C_specific_handler+0xa0
000000a0`105fae30 00007ff8`6e824cef : 000000a0`105fb3a0 00000000`00000000 00000000`00000000 00007ff8`6b320000 : ntdll!RtlpExecuteHandlerForException+0xf
000000a0`105fae60 00007ff8`6e828ae6 : 000000a0`105fb5d0 00007ff8`6e8288d1 000000a0`105fb5d0 00000000`00000000 : ntdll!RtlDispatchException+0x40f
000000a0`105fb590 00007ff8`6b359689 : 000056a2`95294154 00000000`80004005 00000000`00000440 00007ff7`3a54eff8 : ntdll!RtlRaiseException+0x316
000000a0`105fbd90 00007ff7`3a4eb220 : 000000a0`105fbeb0 00000000`00002000 000000a0`105fbec0 00007ff8`6b2d180d : KERNELBASE!RaiseException+0x69
000000a0`105fbe70 00007ff8`5ba9d3e3 : 00007ff7`3a54eff8 00007ff7`3a54ee90 00007ff7`3a54eff8 00007ff8`6e86e7d0 : sqlservr!CDmpDump::Dump+0x50
000000a0`105fbeb0 00007ff8`5c7300b5 : 00007ff7`3a54eff8 00007ff8`5db6cd1c 00000000`00000000 00007ff7`3a4ea748 : sqllang!SQLDumperLibraryInvoke+0x1f3
000000a0`105fbef0 00007ff8`5c730f46 : 00000000`00025160 00000000`00000000 00007ff8`5db6c8e0 00007ff7`3a54eff8 : sqllang!SQLLangDumperLibraryInvoke+0x185
000000a0`105fbfb0 00007ff8`5c6fbae5 : 00000000`00000000 000000a0`105fc2f0 000000a0`105fc2f0 00000000`00000000 : sqllang!CImageHelper::DoMiniDump+0x6f6
000000a0`105fc1d0 00007ff8`5ba9d539 : 0000026a`00000001 00000000`00000000 000000a0`105fdc48 00007ff8`5cc5da45 : sqllang!stackTrace+0xa45
000000a0`105fdbf0 00007ff8`5b110e0f : 00007ff8`5cc5da10 000000a0`105fe0a0 000000a0`105fdfe0 000000a0`105ff6a0 : sqllang!stackTraceCallBack+0x99
000000a0`105fdc40 00007ff8`6b3a71bc : 00007ff8`5b110d00 00007ff8`5b110d00 000000a0`105fdfe0 000000a0`105fdf40 : sqldk!ex_handle_except+0x10f
000000a0`105fde90 00007ff8`6e8f12b8 : 00000000`00000005 00007ff8`6b3a7000 000000a0`105fe880 000000a0`105fed70 : KERNELBASE!UnhandledExceptionFilter+0x1bc
000000a0`105fdfa0 00007ff8`6e8c36b0 : 00007ff8`6c210ab3 00000000`00000000 00000000`00000000 00007ff8`6e826b6f : ntdll!LdrpLogFatalUserCallbackException+0x98
000000a0`105fe0e0 00007ff8`6e8c4a2f : 00007ff8`6e98a000 00007ff8`6e820000 0000dd7c`001ed000 00000000`00000000 : ntdll!KiUserCallbackDispatcherHandler+0x20
000000a0`105fe120 00007ff8`6e824cef : 000000a0`105fe690 00000000`00000000 00007ff8`6c29d9bc 00007ff8`6c1f0000 : ntdll!RtlpExecuteHandlerForException+0xf
000000a0`105fe150 00007ff8`6e8c379e : 0000026a`24650000 0000026a`24654140 000000a0`105ff080 00007ff8`00000017 : ntdll!RtlDispatchException+0x40f
000000a0`105fe880 00007ff8`2f466efd : 02bf026f`b69bc930 45a1728d`0efff48f 37dba249`63530180 0000f90c`1bff4105 : ntdll!KiUserExceptionDispatch+0x2e
000000a0`105fefa0 02bf026f`b69bc930 : 45a1728d`0efff48f 37dba249`63530180 0000f90c`1bff4105 000000a0`00000000 : mso20win32client+0x236efd
000000a0`105fefa8 45a1728d`0efff48f : 37dba249`63530180 0000f90c`1bff4105 000000a0`00000000 00007ff8`2ba3baf0 : 0x02bf026f`b69bc930
000000a0`105fefb0 37dba249`63530180 : 0000f90c`1bff4105 000000a0`00000000 00007ff8`2ba3baf0 00007ff8`2ba3baf0 : 0x45a1728d`0efff48f
000000a0`105fefb8 0000f90c`1bff4105 : 000000a0`00000000 00007ff8`2ba3baf0 00007ff8`2ba3baf0 00007ff8`2ba3baf0 : 0x37dba249`63530180
000000a0`105fefc0 000000a0`00000000 : 00007ff8`2ba3baf0 00007ff8`2ba3baf0 00007ff8`2ba3baf0 000000a0`105fe0b0 : 0x0000f90c`1bff4105
000000a0`105fefc8 00007ff8`2ba3baf0 : 00007ff8`2ba3baf0 00007ff8`2ba3baf0 000000a0`105fe0b0 00000000`000002ea : 0x000000a0`00000000
000000a0`105fefd0 00007ff8`2ba3baf0 : 00007ff8`2ba3baf0 000000a0`105fe0b0 00000000`000002ea 0000026f`b687f220 : mso30win32client+0x50baf0
000000a0`105fefd8 00007ff8`2ba3baf0 : 000000a0`105fe0b0 00000000`000002ea 0000026f`b687f220 00007ff8`26b916f9 : mso30win32client+0x50baf0
000000a0`105fefe0 000000a0`105fe0b0 : 00000000`000002ea 0000026f`b687f220 00007ff8`26b916f9 00000000`0148f8c4 : mso30win32client+0x50baf0
000000a0`105fefe8 00000000`000002ea : 0000026f`b687f220 00007ff8`26b916f9 00000000`0148f8c4 00000000`00000000 : 0x000000a0`105fe0b0
000000a0`105feff0 0000026f`b687f220 : 00007ff8`26b916f9 00000000`0148f8c4 00000000`00000000 000000a0`105ff0a1 : 0x2ea
000000a0`105feff8 00007ff8`26b916f9 : 00000000`0148f8c4 00000000`00000000 000000a0`105ff0a1 00000000`00000002 : 0x0000026f`b687f220
000000a0`105ff000 00000000`0148f8c4 : 00000000`00000000 000000a0`105ff0a1 00000000`00000002 00000000`00000000 : mso+0x5116f9
000000a0`105ff008 00000000`00000000 : 000000a0`105ff0a1 00000000`00000002 00000000`00000000 00007ff8`2675b6df : 0x148f8c4
STACK_COMMAND: .cxr 0x26a24654140 ; kb
SYMBOL_NAME: sqlservr!CDmpDump::InvokeSqlDumper+1ee
MODULE_NAME: sqlservr
IMAGE_NAME: sqlservr.exe
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_sqlservr.exe!CDmpDump::InvokeSqlDumper
OS_VERSION: 10.0.17763.1
BUILDLAB_STR: rs5_release
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
FAILURE_ID_HASH: {6b430894-9380-9a17-d873-aa6ce6504c56}
Followup: MachineOwner
———
0:000> .sympath srv*c:\debugsymbols*https://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\debugsymbols*https://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\debugsymbols*https://msdl.microsoft.com/download/symbols
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*c:\debugsymbols*https://msdl.microsoft.com/download/symbols
0:000> .reload /f
….
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
……………………………………………………
……………………………………………………….
……………..Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso20win32client.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso20win32client.dll
…Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso30win32client.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso30win32client.dll
..Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso40uiwin32client.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso40uiwin32client.dll
..Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso50win32client.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso50win32client.dll
.Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso98win32client.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso98win32client.dll
…Unable to load image C:\Program Files\Common Files\Microsoft Shared\Office16\mso.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for mso.dll
..Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACECORE.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ACECORE.DLL
……………………..Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\1033\ACEINTL.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ACEINTL.DLL
.Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\1033\ACEWSTR.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ACEWSTR.DLL
..Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACEES.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ACEES.DLL
.Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\VBAJET32.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for VBAJET32.DLL
.Unable to load image C:\Program Files\Common Files\Microsoft Shared\OFFICE16\expsrv.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for expsrv.dll
…
..
Loading unloaded module list
……………………………………………………….
************* Symbol Loading Error Summary **************
Module name Error
SharedUserData No error – symbol load deferred
msoledbsql The system cannot find the file specified
MSOLEDBSQLR The system cannot find the file specified
SQLNCLIR11 The system cannot find the file specified
SQLNCLIRDAR11 The system cannot find the file specified
mscorlib.ni The system cannot find the file specified
msfte The system cannot find the file specified
ACEOLEDB The system cannot find the file specified
JitV The system cannot find the file specified
C2R64 The system cannot find the file specified
mso20win32client The system cannot find the file specified
mso30win32client The system cannot find the file specified
mso40uiwin32client The system cannot find the file specified
mso50win32client The system cannot find the file specified
mso98win32client The system cannot find the file specified
mso The system cannot find the file specified
ACECORE The system cannot find the file specified
ACEINTL The system cannot find the file specified
ACEWSTR The system cannot find the file specified
ACEES The system cannot find the file specified
VBAJET32 The system cannot find the file specified
expsrv The system cannot find the file specified
msdasqlr The system cannot find the file specified
ACEODBC The system cannot find the file specified
You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded.
You should also verify that your symbol search path (.sympath) is correct.
0:000> !analyze –v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
Failed to request MethodData, not in JIT code range
PROCESS_NAME: sqlservr.exe
ERROR_CODE: (NTSTATUS) 0x42ac –
SYMBOL_NAME: sqlservr!CDmpDump::InvokeSqlDumper+1ee
MODULE_NAME: sqlservr
IMAGE_NAME: sqlservr.exe
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_sqlservr.exe!CDmpDump::InvokeSqlDumper
FAILURE_ID_HASH: {6b430894-9380-9a17-d873-aa6ce6504c56}
Followup: MachineOwner
———
0:000> !analyze –v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
Failed to request MethodData, not in JIT code range
PROCESS_NAME: sqlservr.exe
ERROR_CODE: (NTSTATUS) 0x42ac –
SYMBOL_NAME: sqlservr!CDmpDump::InvokeSqlDumper+1ee
MODULE_NAME: sqlservr
IMAGE_NAME: sqlservr.exe
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_sqlservr.exe!CDmpDump::InvokeSqlDumper
FAILURE_ID_HASH: {6b430894-9380-9a17-d873-aa6ce6504c56}
Followup: MachineOwner
———
0:000> kC 1000
# Call Site
00 ntdll!NtWaitForSingleObject
01 KERNELBASE!WaitForSingleObjectEx
02 sqlservr!CDmpDump::InvokeSqlDumper
03 sqlservr!CDmpDump::DumpInternal
04 sqlservr!CDmpDump::DumpFilter
05 sqlservr!`CDmpDump::Dump’::`1′::filt$0
06 VCRUNTIME140!__C_specific_handler
07 ntdll!RtlpExecuteHandlerForException
08 ntdll!RtlDispatchException
09 ntdll!RtlRaiseException
0a KERNELBASE!RaiseException
0b sqlservr!CDmpDump::Dump
0c sqllang!SQLDumperLibraryInvoke
0d sqllang!SQLLangDumperLibraryInvoke
0e sqllang!CImageHelper::DoMiniDump
0f sqllang!stackTrace
10 sqllang!stackTraceCallBack
11 sqldk!ex_handle_except
12 KERNELBASE!UnhandledExceptionFilter
13 ntdll!LdrpLogFatalUserCallbackException
14 ntdll!KiUserCallbackDispatcherHandler
15 ntdll!RtlpExecuteHandlerForException
16 ntdll!RtlDispatchException
17 ntdll!KiUserExceptionDispatch
18 mso20win32client
19 0x0
1a 0x0
1b 0x0
1c 0x0
1d 0x0
1e mso30win32client
1f mso30win32client
20 mso30win32client
21 0x0
22 0x0
23 0x0
24 mso
25 0x0
25 0x0
please help me on this
Vahé Boyadjian said
Dear Karthick P.K,
I will appreciate help with the following dump:
Our Production environment consists of Windows Server 2012 R2 on a host environment with Windows Cluster, and SQL Server version is “Microsoft SQL Server 2012 (SP4-GDR) (KB4583465)” Enterprise Edition with SQL Server Failover Clustering (2 Nodes), the storage system is SAN.
The issue is that the transactional replication(Peer to Peer) for many publications is collapsing with data loss (not sent to subscribers and not existing in the pending commands) and mini dump files are created with “Read Memory Access Violation” exception on the exe file of a distribution agent named “distrib.exe”.
The dump file says:
C:\Program Files\Microsoft SQL Server\110\COM\rdistcom.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 0
Distribution Agent Jobs Errors:
Messages:
The replication agent encountered a failure. See the previous job step history message or Replication Monitor for more information. The step failed.
Executed as user: . String or binary data would be truncated. [SQLSTATE 22001] (Error 8152). The step failed.
A replication agent encountered a fatal error and was shut down. A mini-dump has been generated at the following location:
C:\Program Files\Microsoft SQL Server\110\Shared\ErrorDumps\ReplAgent20210820082801_0.mdmp
dump Stack trace:
0:006> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*************************************************************************
*** ***
*** ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn’t have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing “.symopt- 100”. Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: kernelbase!gpServerNlsUserInfo ***
*** ***
*************************************************************************
KEY_VALUES_STRING: 1
Key : AV.Dereference
Value: NullPtr
Key : AV.Fault
Value: Read
Key : Analysis.CPU.mSec
Value: 1218
Key : Analysis.DebugAnalysisProvider.CPP
Value: Create: 8007007e on V-BOYADJIAN
Key : Analysis.DebugData
Value: CreateObject
Key : Analysis.DebugModel
Value: CreateObject
Key : Analysis.Elapsed.mSec
Value: 8593
Key : Analysis.Init.CPU.mSec
Value: 3655
Key : Analysis.Init.Elapsed.mSec
Value: 72398
Key : Analysis.Memory.CommitPeak.Mb
Value: 117
Key : Analysis.System
Value: CreateObject
Key : Timeline.Process.Start.DeltaSec
Value: 6492
Key : WER.Process.Version
Value: 2011.110.7507.2
ADDITIONAL_XML: 1
OS_BUILD_LAYERS: 1
COMMENT: A replication agent encountered a fatal error and was shut down.
NTGLOBALFLAG: 0
CONTEXT: (.ecxr)
rax=0000000000000000 rbx=0000000000000001 rcx=00000000009acf00
rdx=0000000000000001 rsi=0000000000000000 rdi=00007fff0d3ea880
rip=00007fff0d46fc41 rsp=000000000211f2c0 rbp=000000000211f3c0
r8=0000000001990390 r9=0000000000000000 r10=00310030002d0031
r11=0000000002506a2d r12=0000000000000032 r13=0000000001990390
r14=0000000000000002 r15=000000000000002d
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
rdistcom!CSubscriber::PrepareDataBufferBlobStreams+0x271:
00007fff`0d46fc41 8b30 mov esi,dword ptr [rax] ds:00000000`00000000=????????
Resetting default scope
EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007fff0d46fc41 (rdistcom!CSubscriber::PrepareDataBufferBlobStreams+0x0000000000000271)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000
PROCESS_NAME: DISTRIB.exe
READ_ADDRESS: 0000000000000000
ERROR_CODE: (NTSTATUS) 0xc0000005 – The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
EXCEPTION_CODE_STR: c0000005
EXCEPTION_PARAMETER1: 0000000000000000
EXCEPTION_PARAMETER2: 0000000000000000
STACK_TEXT:
00000000`0211f2c0 00007fff`0d46ec96 : 00000000`0211001d 00000000`0211f680 00000000`0211f680 00000000`01990390 : rdistcom!CSubscriber::PrepareDataBufferBlobStreams+0x271
00000000`0211f510 00007fff`0d46f2ba : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : rdistcom!CSubscriber::ProcessParamCmd+0x4a6
00000000`0211f640 00007fff`0d445b29 : 00000000`00000000 00000000`01990390 00000000`0211f77c 00000000`0211f780 : rdistcom!CSubscriber::ProcessParamCmdBatch+0x49a
00000000`0211f740 00007fff`0d44041e : 00000000`00000001 00000000`b4581ed2 00000000`0199eed0 00000000`01990390 : rdistcom!CSubscriber::DistCmds+0x3b9
00000000`0211fd10 00000000`72b71d9f : 00000000`00000001 00000000`01990390 00000000`0199eed0 00000000`00000000 : rdistcom!DistCmdBucketThread+0x10e
00000000`0211fd70 00000000`72b71e3b : 00000000`72c02ac0 00000000`019fdbd0 00000000`00000000 00000000`00000000 : msvcr100!_callthreadstartex+0x17
00000000`0211fda0 00007fff`158213f2 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : msvcr100!_threadstartex+0x7f
00000000`0211fdd0 00007fff`17a254f4 : 00007fff`158213d0 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x22
00000000`0211fe00 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34
SYMBOL_NAME: rdistcom!CSubscriber::PrepareDataBufferBlobStreams+271
MODULE_NAME: rdistcom
IMAGE_NAME: rdistcom.dll
STACK_COMMAND: ~6s ; .ecxr ; kb
FAILURE_BUCKET_ID: NULL_POINTER_READ_c0000005_rdistcom.dll!CSubscriber::PrepareDataBufferBlobStreams
BUCKET_ID_MODPRIVATE: 1
OSPLATFORM_TYPE: x64
OSNAME: Windows 8
IMAGE_VERSION: 2011.110.7507.2
FAILURE_ID_HASH: {b6903cc6-e1aa-f6a6-099e-db789490f3a7}
Followup: MachineOwner
saumil said
Hi Karthik,
Could you please help to spot the issue on below
SYMBOL_NAME: sqllang!SQLDumperLibraryInvoke+1f3
MODULE_NAME: sqllang
IMAGE_NAME: sqllang.dll
STACK_COMMAND: ~0s ; .ecxr ; kb
FAILURE_BUCKET_ID: APPLICATION_FAULT_42ac_sqllang.dll!SQLDumperLibraryInvoke
OS_VERSION: 10.0.17763.1
BUILDLAB_STR: rs5_release
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
IMAGE_VERSION: 2019.150.4123.1
FAILURE_ID_HASH: {ab1e43e2-da46-c388-f696-a374d74f9a5d}
Followup: MachineOwner
———
0:000> kC 1000
# Call Site
00 ntdll!NtWaitForSingleObject
01 KERNELBASE!WaitForSingleObjectEx
02 sqlservr!CDmpDump::InvokeSqlDumper
03 sqlservr!CDmpDump::DumpInternal
04 sqlservr!CDmpDump::DumpFilter
05 sqlservr!`CDmpDump::Dump’::`1′::filt$0
06 VCRUNTIME140!__C_specific_handler
07 ntdll!RtlpExecuteHandlerForException
08 ntdll!RtlDispatchException
09 ntdll!RtlRaiseException
0a KERNELBASE!RaiseException
0b sqlservr!CDmpDump::Dump
0c sqllang!SQLDumperLibraryInvoke
0d sqllang!SQLLangDumperLibraryInvoke
0e sqllang!CImageHelper::DoMiniDump
0f sqllang!stackTrace
10 sqllang!stackTraceCallBack
11 sqldk!ex_handle_except
12 KERNELBASE!UnhandledExceptionFilter
13 ntdll!RtlUserThreadStart$filt$0
14 ntdll!_C_specific_handler
15 ntdll!RtlpExecuteHandlerForException
16 ntdll!RtlDispatchException
17 ntdll!KiUserExceptionDispatch
18 ntdll!RtlpWaitOnCriticalSection
19 ntdll!RtlpEnterCriticalSectionContended
1a ntdll!RtlEnterCriticalSection
1b SimbaClient
1c 0x0
1d SimbaClient
1e 0x0
1f sbicuuc58_64