Giter Site home page Giter Site logo

Crashes when attaching to process about dprofiler HOT 4 OPEN

xwlan avatar xwlan commented on September 25, 2024
Crashes when attaching to process

from dprofiler.

Comments (4)

xwlan avatar xwlan commented on September 25, 2024

you can run as admin to have a test, profiler require admin to attach to other process.

from dprofiler.

Boscop avatar Boscop commented on September 25, 2024

When I run it as admin it also crashes when I try to attach!

from dprofiler.

xwlan avatar xwlan commented on September 25, 2024

Can you please paste a stack trace of crash here?

from dprofiler.

Boscop avatar Boscop commented on September 25, 2024

Unhandled exception at 0x00007FF8B5C11B70 (ntdll.dll) in dprofiler.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FF8B5C4ED40).

VOID
CcrDeleteTask(
	__in HWND hWnd 
	)
{
	HWND hWndCtrl;
	PAPS_PROCESS Process;
	int Count, i;
	
	hWndCtrl = GetDlgItem(hWnd, IDC_LIST_TASK);
	Count = ListView_GetItemCount(hWndCtrl);

	for(i = 0; i < Count; i++) {
		ListViewGetParam(hWndCtrl, i, (LPARAM *)&Process);
		if (Process != NULL) {
			ApsFreeProcess(Process); // this line
			ListViewSetParam(hWndCtrl, i, (LPARAM)NULL);
		}
	}
}

Call stack:

 	ntdll.dll!00007ff8b5c11b70()	Unknown
 	ntdll.dll!00007ff8b5c14db2()	Unknown
 	ntdll.dll!00007ff8b5c159b0()	Unknown
 	ntdll.dll!00007ff8b5bca810()	Unknown
 	dprofiler.exe!_free_base(void * block) Line 107	C++
>	dprofiler.exe!CcrDeleteTask(HWND__ * hWnd) Line 507	C
 	dprofiler.exe!CpuTaskOnFinish(HWND__ * hWnd, _WIZARD_CONTEXT * Context) Line 438	C
 	dprofiler.exe!CpuTaskOnNotify(HWND__ * hWnd, unsigned int lp, unsigned __int64) Line 478	C
 	[External Code]	
 	dprofiler.exe!CpuWizard(HWND__ * hWndParent, _WIZARD_CONTEXT * Context) Line 135	C
 	dprofiler.exe!FrameOnCpu(HWND__ * hWnd, unsigned int) Line 1420	C
 	dprofiler.exe!FrameProcedure(HWND__ * hWnd, unsigned int uMsg, unsigned __int64 wp, __int64 lp) Line 1023	C
 	[External Code]	
 	dprofiler.exe!MainMessagePump() Line 44	C
 	dprofiler.exe!wWinMain(HINSTANCE__ * Instance, HINSTANCE__ * Previous, wchar_t * CommandLine, int nCmdShow) Line 69	C
 	[External Code]	

from dprofiler.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.