【问题标题】:Faulting application name: w3wp.exe, Faulting module name: KERNELBASE.dll, version: 6.1.7601.18847, Exception code: 0xe053534f错误应用程序名称:w3wp.exe,错误模块名称:KERNELBASE.dll,版本:6.1.7601.18847,异常代码:0xe053534f
【发布时间】:2015-08-20 21:28:01
【问题描述】:

我们有一个使用负载平衡器从 3 个服务器托管的 Asp.Net 应用程序(框架 3.5)。最近我们开始在所有三个生产服务器中崩溃。

错误应用程序名称:w3wp.exe,版本:7.5.7601.17514,时间戳:0x4ce7afa2 错误模块名称:KERNELBASE.dll,版本:6.1.7601.18847,时间戳:0x554d7df1 异常代码:0xe053534f 故障偏移量:0x000000000000b3dd 错误进程 ID: 0x%9 错误的应用程序启动时间: 0x%10 错误的应用程序路径: %11 错误模块路径: %12 报告 ID:%13

我使用 windbg 生成了一个故障转储,如下所示。

崩溃 - 特定进程 - w3wp - 添加异常“e053534f”

我试图分析转储,但我无处可去。下面给出了转储的摘录。

0:044>  .foreach (ex {!dumpheap -type Exception -short}){.echo      "********************************";!pe ${ex} }
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Exception object: 00000000ff6fd900
Exception type: System.NotSupportedException
Message: Specified method is not supported.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131515
********************************
Not a valid exception object
********************************
Exception object: 000000013f3100b0
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 8007000e
********************************
Exception object: 000000013f310138
Exception type: System.StackOverflowException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 800703e9
********************************
Exception object: 000000013f3101c0
Exception type: System.ExecutionEngineException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131506
********************************
Exception object: 000000013f310248
Exception type: System.Threading.ThreadAbortException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131530
********************************
Exception object: 000000013f3102d0
Exception type: System.Threading.ThreadAbortException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131530
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Exception object: 000000014265d7b0
Exception type: System.ObjectDisposedException
Message: Cannot access a disposed object.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131622
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Not a valid exception object
********************************
Unknown option: ------------------------------
0:044> !threads
ThreadCount: 34
UnstartedThread: 0
BackgroundThread: 34
PendingThread: 0
DeadThread: 0
Hosted Runtime: no
                                              PreEmptive                                                Lock
       ID OSID        ThreadOBJ     State   GC     GC Alloc Context                  Domain           Count APT Exception
   4    1 107c 0000000002549640      8220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  21    2  c28 000000000255c760      b220 Enabled  0000000181becd38:0000000181bee858 0000000002544870     0 MTA (Finalizer)
  15    3 1b28 0000000002599fd0   880a220 Enabled  000000018416e0d8:000000018416ff60 0000000002544870     0 MTA (Threadpool Completion Port)
  22    4  86c 000000000259c760    80a220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Completion Port)
  23    5 1700 000000000259da10      1220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  24    8 1d50 0000000005035b50   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  27    b  6e8 00000000051e77a0   200b220 Enabled  0000000000000000:0000000000000000 000000000259e4c0     0 MTA
   3   12 1d5c 00000000025b4460       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  25   14  37c 00000000025b5ba0       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
   6   18 1fa4 0000000004ed5bc0       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
   5   19 1564 0000000004ed6190       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  30    7 18b4 0000000004ed55f0   380b220 Enabled  0000000000000000:0000000000000000 000000000259e4c0     2 MTA (Threadpool Worker)
  31    9 1c64 00000000025b3e90   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  32    6 190c 0000000004ed78d0   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  33    f 1a60 0000000004ed6d30   200b220 Enabled  000000014265f930:00000001426618b8 000000000259e4c0     1 MTA
  34   11 1484 000000000fcb4d90       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  35    c 19b4 000000000fcb3080       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  37   25 11a8 000000000d6da270   180b220 Enabled  000000010516b2c8:000000010516c230 0000000002544870     0 MTA (Threadpool Worker)
  38   2e 1b08 000000000d795e60   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  39   38 1d0c 000000000db5a950   180b220 Enabled  00000001430b3ab0:00000001430b5a20 0000000002544870     0 MTA (Threadpool Worker)
  40   2d 1c8c 000000000d795890   180b220 Enabled  000000018416ca38:000000018416df60 0000000002544870     0 MTA (Threadpool Worker)
  41   34 1608 000000000d691c10   180b220 Enabled  0000000104fcd8b0:0000000104fcdc18 0000000002544870     0 MTA (Threadpool Worker)
  36   2b 1ba8 000000000db5a380       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  43   35 14a0 000000000d6921e0   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  44   1a 1dc0 000000000fcb3650   180b220 Disabled 0000000143390598:0000000143391a58 000000000259e4c0     1 MTA (Threadpool Worker)
  45   37  b08 000000000fcb5f00   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  46   13 11ac 000000000fcb5360       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  47   32  e5c 000000000fcb5930   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  48   17  cdc 000000000fcb47c0   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  49   24  ba8 000000000d6d9ca0   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  42    a 1ac0 000000000fcb41f0       220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 Ukn
  50   21 18cc 000000000fcb3c20   180b220 Enabled  00000001c6d2cd00:00000001c6d2dfa0 0000000002544870     0 MTA (Threadpool Worker)
  51   31 1a58 000000000db5af20   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
  52   1c 154c 000000000db5b4f0   180b220 Enabled  0000000000000000:0000000000000000 0000000002544870     0 MTA (Threadpool Worker)
0:044> !pe
There is no current managed exception on this thread
0:044> ~*e !pe
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
There is no current managed exception on this thread
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
The current thread is unmanaged
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
The current thread is unmanaged
There is no current managed exception on this thread
The current thread is unmanaged
The current thread is unmanaged
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
There is no current managed exception on this thread
0:044> !CLRStack -p -l
OS Thread Id: 0x1dc0 (44)
(!clrstack processes a max of 1000 stack frames)
Child-SP         RetAddr          Call Site
000000000f2d7280 000007fef920c365 System.Enum.System.IConvertible.ToInt64(System.IFormatProvider)
    PARAMETERS:
        this = <no data>
        provider = <no data>

000000000f2d72c0 000007fef921ae7d System.Convert.ToInt64(System.Object, System.IFormatProvider)
    PARAMETERS:
        value = <no data>
        provider = <no data>

000000000f2d72f0 000007fef9223aaf System.Enum.ToUInt64(System.Object)
    PARAMETERS:
        value = <no data>
    LOCALS:
        <no data>
        <no data>
        <no data>

000000000f2d7330 000007ff00425ead System.Enum.IsDefined(System.Type, System.Object)
    PARAMETERS:
        enumType = <no data>
        value = <no data>
    LOCALS:
        <no data>
        <no data>
        <no data>
        <CLR reg> = 0x0000000140d2b1b0
        <no data>
        <no data>
        <no data>
        <no data>
        <no data>

000000000f2d7390 000007ff00425f17 Microsoft.Practices.ObjectBuilder.Locator.Get(System.Object, Microsoft.Practices.ObjectBuilder.SearchMode)
    PARAMETERS:
        this = <no data>
        key = <no data>
        options = <no data>

000000000f2d73f0 000007ff00425df0 Microsoft.Practices.ObjectBuilder.Locator.Get(System.Object, Microsoft.Practices.ObjectBuilder.SearchMode)
    PARAMETERS:
        this = <no data>
        key = <no data>
        options = <no data>

000000000f2d7450 000007ff0042f7cf Microsoft.Practices.ObjectBuilder.ReadableLocator.Get[[System.__Canon, mscorlib]](System.Object)
    PARAMETERS:
        this = <no data>
        key = <no data>

000000000f2d7480 000007ff00429206 Microsoft.Practices.CompositeWeb.BuilderStrategies.SessionStateBindingStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = 0x00000001c1a44a20
        context = 0x000000014331e7f0
        typeToBuild = 0x000000017f3d0e08
        existing = 0x0000000143380460
        idToBuild = 0x00000001433193d0
    LOCALS:
        0x000000000f2d74b0 = 0x0000000000000000
        0x000000000f2d74b8 = 0x0000000000000000
        0x000000000f2d74c0 = 0x0000000000000000
        0x000000000f2d74c8 = 0x0000000000000000
        0x000000000f2d74d0 = 0x0000000000000000
        0x000000000f2d74d8 = 0x0000000000000000
        0x000000000f2d74e0 = 0x0000000000000000

000000000f2d7560 000007ff0042f96e Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = <no data>
        context = <no data>
        typeToBuild = <no data>
        existing = <no data>
        idToBuild = <no data>
    LOCALS:
        <CLR reg> = 0x000000000f2d68b0

000000000f2d75b0 000007ff00429206 Microsoft.Practices.CompositeWeb.BuilderStrategies.SessionStateBindingStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = 0x0000000180c82190
        context = 0x000000014331e7f0
        typeToBuild = 0x000000017f3d0e08
        existing = 0x0000000143380460
        idToBuild = 0x00000001433193d0
    LOCALS:
        0x000000000f2d75e0 = 0x000000013f34a2c0
        0x000000000f2d75e8 = 0x00000001433904d0
        0x000000000f2d75f0 = 0x0000000000000000
        0x000000000f2d75f8 = 0x0000000000000000
        0x000000000f2d7600 = 0x0000000000000000
        0x000000000f2d7608 = 0x0000000143390510
        0x000000000f2d7610 = 0x0000000000000000

000000000f2d7690 000007ff0042f96e Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = <no data>
        context = <no data>
        typeToBuild = <no data>
        existing = <no data>
        idToBuild = <no data>
    LOCALS:
        <CLR reg> = 0x000000000f2d68b0

000000000f2d76e0 000007ff00429206 Microsoft.Practices.CompositeWeb.BuilderStrategies.SessionStateBindingStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = 0x00000001c0e00448
        context = 0x000000014331e7f0
        typeToBuild = 0x000000017f3d0e08
        existing = 0x0000000143380460
        idToBuild = 0x00000001433193d0
    LOCALS:
        0x000000000f2d7710 = 0x000000013f34a2c0
        0x000000000f2d7718 = 0x00000001433903f0
        0x000000000f2d7720 = 0x0000000000000000
        0x000000000f2d7728 = 0x0000000000000000
        0x000000000f2d7730 = 0x0000000000000000
        0x000000000f2d7738 = 0x0000000143390430
        0x000000000f2d7740 = 0x0000000000000000

000000000f2d77c0 000007ff0042f96e Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = <no data>
        context = <no data>
        typeToBuild = <no data>
        existing = <no data>
        idToBuild = <no data>
    LOCALS:
        <CLR reg> = 0x000000000f2d68b0

000000000f2d7810 000007ff00429206 Microsoft.Practices.CompositeWeb.BuilderStrategies.SessionStateBindingStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = 0x0000000140cd6438
        context = 0x000000014331e7f0
        typeToBuild = 0x000000017f3d0e08
        existing = 0x0000000143380460
        idToBuild = 0x00000001433193d0
    LOCALS:
        0x000000000f2d7840 = 0x000000013f34a2c0
        0x000000000f2d7848 = 0x0000000143390310
        0x000000000f2d7850 = 0x0000000000000000
        0x000000000f2d7858 = 0x0000000000000000
        0x000000000f2d7860 = 0x0000000000000000
        0x000000000f2d7868 = 0x0000000143390350
        0x000000000f2d7870 = 0x0000000000000000

000000000f2d78f0 000007ff0042f96e Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = <no data>
        context = <no data>
        typeToBuild = <no data>
        existing = <no data>
        idToBuild = <no data>
    LOCALS:
        <CLR reg> = 0x000000000f2d68b0

000000000f2d7940 000007ff00429206 Microsoft.Practices.CompositeWeb.BuilderStrategies.SessionStateBindingStrategy.BuildUp(Microsoft.Practices.ObjectBuilder.IBuilderContext, System.Type, System.Object, System.String)
    PARAMETERS:
        this = 0x00000001c0deed28
        context = 0x000000014331e7f0
        typeToBuild = 0x000000017f3d0e08
        existing = 0x0000000143380460
        idToBuild = 0x00000001433193d0
    LOCALS:
        0x000000000f2d7970 = 0x000000013f34a2c0
        0x000000000f2d7978 = 0x0000000143390230
        0x000000000f2d7980 = 0x0000000000000000
        0x000000000f2d7988 = 0x0000000000000000
        0x000000000f2d7990 = 0x0000000000000000
        0x000000000f2d7998 = 0x0000000143390270
        0x000000000f2d79a0 = 0x0000000000000000

我无法找到发生这种情况的位置。看起来转储没有显示有关发生错误的页面或函数的任何详细信息。有人能指出我分析这个的正确方法吗?

谢谢, 阿努普

【问题讨论】:

  • 你有没有想过这个问题?

标签: asp.net windbg crash-dumps w3wp


【解决方案1】:

0xe053534f 是堆栈溢出异常,但不是托管异常,因此使用 SOS 等托管工具进行分析无济于事。

如果你没有太多WinDbg经验,可以试试DebugDiag; 2.1 版非常好,通常可以帮助立即发现问题。

在 WinDbg 中,从以下命令开始:

.symfix c:\symbols
.reload /f
.exr -1

应该给出异常代码,只是为了交叉检查转储中是否包含正确的信息(堆栈溢出异常)

~#s

选择发生异常的线程。

kbn

显示本机调用堆栈。由于这似乎是混合模式,你也可以试试

!dumpstack

!mk

看看之前在 .NET 方面发生了什么。

【讨论】:

  • 您好,感谢您提供详细信息。我尝试了 DebugDiag 分析,但没有发现任何有用的东西。我得到以下信息-“在 w3wp__MPulse7__PID__5540__Date__08_20_2015__Time_02_39_34PM__991__First Chance Exception 0XE053534F.dmp 中,来自 Microsoft Corporation 的 C:\Windows\System32\KERNELBASE.dll 中 KERNELBASE!RaiseException+39 处的汇编指令在线程 44 上导致了未知异常 (0xe053534f)。”当我尝试线程 44 时,它显示的内容与我之前的帖子中发布的相同。我将使用您指定的命令尝试使用 windbg。谢谢,阿努普
  • 嗨,我试过了,!mk 给我一条消息,上面写着“没有找到导出 mk”
  • @Anup:为了使用!mk,你必须下载SOSEX,在WinDbg中加载DLL.load c:\pathto\sosex.dll
  • @Anup:顺便说一句:第一次机会异常不一定会使进程崩溃。
猜你喜欢
  • 2015-04-17
  • 1970-01-01
  • 2017-12-25
  • 2016-08-12
  • 2012-12-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多