[BUG REPORT] Resharper 6.1 causing blue screen

Hi,

We have been using Resharper with absolute pleasure for a long time now. Few weeks back we stumbled upon a blue screen when runnning a nunit (v 2.5.3) test using Resharper 6.1 within Visual Studio 2010  SP1 on a Windows XP SP3 machine. We were able to reproduce the crash on all the systems when we tried this test.

We got the kernel dump analyzed and here is the analysis report.

Root Cause:

Driver “Hooks.sys” has referred to an object that was  already freed leading to the bugcheck.

Re-commendation:

Please engage the vendor and check whether they have an  update for this driver “Hook.Sys

Detailed dump analysis report:

======

0: kd> ||

.  0 32-bit Kernel summary dump:  \\blr-setcore\core3\amitdix\112011270044491_Ramesh\MEMORY.DMP

0: kd> vertarget

Windows XP Kernel Version 2600 (Service Pack 3) MP (2 procs)  Free x86 compatible

Product: WinNt, suite: TerminalServer  SingleUserTS

Built by: 2600.xpsp_sp3_gdr.101209-1647

Machine Name: "WP3CX970-932897"

Kernel base = 0x804d7000 PsLoadedModuleList =  0x805634c0

Debug session time: Wed Jan 18 21:16:43.761 2012 (UTC +  5:30)

System Uptime: 0 days 1:38:55.839

0: kd> .bugcheck

Bugcheck code 0000008E

Arguments c0000005 804e1948 a872caac 00000000

ErrCode = 00000002

eax=00000000 ebx=004c0044 ecx=004c0044 edx=e80c2008  esi=004c002c edi=ffffffff

eip=804e1948 esp=a872cb20 ebp=a872cd40 iopl=0         nv up  ei ng nz na pe nc

cs=0008  ss=0010  ds=0023  es=0023  fs=0030   gs=0000             efl=00010286

nt!ObfDereferenceObject+0x1c:

804e1948 f00fc13e        lock xadd dword ptr [esi],edi  ds:0023:004c002c=????????

*** ERROR: Module load completed but symbols could not be  loaded for hooks.sys

  *** Stack trace for last set context - .thread/.cxr resets  it

ChildEBP RetAddr

a872cb28 f760098c nt!ObfDereferenceObject(void * Object =  0xe80c2008)+0x1c

WARNING: Stack unwind information not available. Following  frames may be wrong.

a872cd40 804dd99f hooks+0x998c

a872cd40 00000000 nt!KiFastCallEntry(<HRESULT  0x80004005>)+0xfc

Object: e80c2008  Type: (dc0254c2)

    ObjectHeader: e80c1ff0 (old version)

    HandleCount: 3691140290  PointerCount:  3691140290

    Directory Object: 54c2dc02  Name: (*** Name not  accessible ***)

Pool page e80c2008 region is Paged pool

*e80c2000 size:  408 previous size:    0  (Free ) *Io    <------------- Hooks.sys tried accessing object that was freed

  Pooltag Io   : general IO allocations, Binary :  nt!io

start    end        module name

f75f7000 f7606900   hooks      (no symbols)          

    Loaded symbol image file: hooks.sys

    Image path: hooks.sys

    Image name: hooks.sys

    Timestamp:        Thu Aug 09 01:09:45 2007  (46BA1C01)

    CheckSum:         00012EE3

    ImageSize:        0000F900

    Translations:     0000.04b0 0000.04e4 0409.04b0  0409.04e4

THREAD 88d981b0  Cid 05c8.03dc  Teb: 7ffd4000 Win32Thread:  00000000 RUNNING on processor 0

Not impersonating

DeviceMap                 e332edc0

Owning Process            0       Image:          <Unknown>

Attached Process          88e06ac0       Image:          JetBrains.ReSharper.TaskRunner.MSIL.exe

Wait Start TickCount      379893         Ticks:  0

Context Switch Count      378            IdealProcessor:  0            

UserTime                  00:00:00.234

KernelTime                00:00:00.015

Win32 Start Address 0x79f0e20f

Start Address 0x7c8106f9

Stack Init a872d000 Current a872bf20 Base a872d000 Limit  a872a000 Call 0

Priority 8 BasePriority 8 PriorityDecrement 0 DecrementCount  16

ChildEBP RetAddr  Args to Child             

a872c674 80522241 0000008e c0000005 804e1948  nt!KeBugCheckEx+0x1b (FPO: [Non-Fpo]) (CONV: stdcall)

a872ca3c 804de403 a872ca58 00000000 a872caac  nt!KiDispatchException+0x3b1 (FPO: [Non-Fpo]) (CONV: stdcall)

a872caa4 804de3b4 a872cd40 804e1948 badb0d00  nt!CommonDispatchException+0x4d (FPO: [0,20,0])

a872cb28 f760098c a872cd64 0465ba20 02040202  nt!Kei386EoiHelper+0x5e

WARNING: Stack unwind information not available. Following  frames may be wrong.

a872cd40 804dd99f 0465ba54 000f0005 00000000  hooks+0x998c

a872cd40 00000000 0465ba54 000f0005 00000000  nt!KiFastCallEntry+0xfc (FPO: [0,0] TrapFrame @ ffffffff)

Let me know if you need the visual studio project/solution,  to repro the crash and I'll attach it.

Request you to look into this.

Thanks

6 comments
Avatar
Andrey Serebryansky
Comment actions Permalink

Hello
     Do I understand correctly that this happens with a single test only? It would be great if you could attach a repro solution here. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hi Andre,

Thanks for responding. It does seem to occur in a very specific scenario. I've attached the VS solution. Here are the repro steps:

1) Open FooCompany.FooDept.FooProject.Services.sln in Visual Studio 2010 Developer/Premium Edition SP1 on a Windows XP SP3 machine.

2) Run the InvokeTest() test in the FooDeptProjectRepositoryTests test class using Resharper 6 / 6.1

We have reproduced this on HP workstations & Lenovo ThinkPad laptop as well.

Let me know what you find.

Thanks



Attachment(s):
BSOD.rar.zip
0
Avatar
Andrey Serebryansky
Comment actions Permalink

Hello
     Thank you for this information! One last question, do I understand correctly that the BSOD doesn't appear when you run the same test using the original NUnit GUI?

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Thats right Andrey. We were able to run the test succesfully using original NUnit GUI.

0
Avatar
Andrey Serebryansky
Comment actions Permalink

Hello
     I've logged this problem under http://youtrack.jetbrains.net/issue/RSRP-288026 in our tracker and our QA team will work on it. You're welcome to monitor the status of this request. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hi, Faith

Sorry for the delay. I can' reproduce such behavior not with R# 6.1 or R# 6.1.1 with NUnit 2.5.3. Also, please make sure that you have the latest NUnit assemblies or you could run your test with embedded NUnit (R#). Thanks!

Kirill Falk

0

Please sign in to leave a comment.