Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

AppVerifier: Unknown Exception error detected by AppVerifier regarding “An invalid parameter was passed to a service or function.” from CloseHandle( m_CancelEvent ) #58

Closed
jhkimnew opened this issue Jan 14, 2017 · 0 comments

Comments

@jhkimnew
Copy link
Contributor

@pan-wang

I found an Unknown Exception error detected by AppVerifier regarding “An invalid parameter was passed to a service or function.” from “CloseHandle( m_CancelEvent )”.

It looks the m_CancelEvent is not used at all by ANCM and so we will want to clean up that and this issue might be fixed together.

REPRO STEPS

  1. Enable Appverifier for w3wp.exe, which is worker process (a.k.a AppPool) of IIS
  2. Attach a debugger to w3wp.exe
  3. Start stress test to aspnetcore app
  4. During the stress test change the ANCM attribute “processesPerApplication” from 1 to 5 and rollback from 5 to 1 and you will see the Unknown Exception

EXPECTED:

No error

ACTUAL:

Unknown Exception is invoked by the AppVerifier and !analyze -v gives below information about the problem.

<><><>

FAULT_INSTR_CODE: 28b3894c

FAULTING_SOURCE_LINE: f:\iis_main\projects\aspnetcoremodule\dll\serverprocess.cxx

FAULTING_SOURCE_FILE: f:\iis_main\projects\aspnetcoremodule\dll\serverprocess.cxx

FAULTING_SOURCE_LINE_NUMBER: 1687

FAULTING_SOURCE_CODE:
1683:
1684: if( m_CancelEvent != NULL )
1685: {
1686: SetEvent( m_CancelEvent );

1687: CloseHandle( m_CancelEvent );
1688: m_CancelEvent = NULL;
1689: }
1690:
1691: for(INT i=0;i<MAX_ACTIVE_CHILD_PROCESSES;++i)
1692: {

<><><>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants