Attempt to execute non-executable address in memcpy??

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<pre class="x_x_bz_comment_text" id="x_x_comment_text_35 A read or write access error in memcpy, I could understand, but I dont understand how I can get a no-execute error there. I have pasted the diagnostics from windbg below. Any ideas how this could possibly happen? I have worked around the problem by linking with /NXCOMPAT:NO. Thanks, Thomas 0:006> !analyze -v -vv
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************

GetPageUrlData failed, server returned HTTP status 404
URL requested:
http://watson.microsoft.com/StageOne/camloader_exe/4_0_0_0/4f4f47f8/msvcr100_dll/10_0_30319_415/4d26c6a1/c0000005/00001f20.htm?Retriage=1 http://watson.microsoft.com/StageOne/camloader_exe/4_0_0_0/4f4f47f8/msvcr100_dll/10_0_30319_415/4d26c6a1/c0000005/00001f20.htm?Retriage=1

FAULTING_IP:
msvcr100!memcpy+0 [f:ddvctoolscrt_bldSELF_X86crtsrcINTELmemcpy.asm @
101]
731a1f20 55 push ebp

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 731a1f20 (msvcr100!memcpy)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000008
Parameter[1]: 731a1f20
Attempt to execute non-executable address 731a1f20

PROCESS_NAME: camloader.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced
memory at 0x%08lx. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced
memory at 0x%08lx. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 00000008

EXCEPTION_PARAMETER2: 731a1f20

WRITE_ADDRESS: 731a1f20

FOLLOWUP_IP:
msvcr100!memcpy+0 [f:ddvctoolscrt_bldSELF_X86crtsrcINTELmemcpy.asm @
101]
731a1f20 55 push ebp

WATSON_BKT_PROCVER: 4.0.0.0

WATSON_BKT_PROCSTAMP: 4f4f47f8

PROCESS_VER_PRODUCT: EasyViz

WATSON_BKT_MODULE: msvcr100.dll

WATSON_BKT_MODVER: 10.0.30319.415

WATSON_BKT_MODSTAMP: 4d26c6a1

WATSON_BKT_MODOFFSET: 1f20

MODULE_VER_PRODUCT: Microsoft® Visual Studio® 2010

BUILD_VERSION_STRING: 6.1.7601.17651 (win7sp1_gdr.110715-1504)

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG: 400

APPLICATION_VERIFIER_FLAGS: 0

ANALYSIS_SESSION_HOST: LITHIUM

ANALYSIS_SESSION_TIME: 03-01-2012 14:29:30.0586

THREAD_ATTRIBUTES:

[ GLOBAL ]

Global PID: [3344]
Global Thread_Count: [11]
Global LoadedModule_Count: [78]
Global UnloadedModule_Count: [5]
Global PageSize: [4096]
Global ModList_SHA1_Hash: [a45d9642325a1c97f80bc23941401cc46b753d59]
Global ProcessName: [camloader.exe]
Global Desktop_Name: [Winsta0Default]
Global Debugger_CPU_Architecture: [X64]
Global CPU_ProcessorCount: [8]
Global CPU_MHZ: [1580]
Global CPU_Architecture: [X86]
Global CPU_Family: [6]
Global CPU_Model: [10]
Global CPU_Stepping: [5]
Global CPU_VendorString: [GenuineIntel]
Global GFlags: [1024]
Global Application_Verifer_Flags: [0]
Global FinalExh: [-1957298293]
Global SystemUpTime: [2 days 1:32:15.000]
Global SystemUpTime: [178335]
Global ProcessUpTime: [0 days 0:00:08.000]
Global ProcessUpTime: [8]
Global CurrentTimeDate: [Thu Mar 1 11:14:12.000 2012 (UTC + 1:00)]
Global CurrentTimeDate: [1330596852]
Global ProductType: [1]
Global SuiteMask: [272]
Global CustomDumpFlags: [3079]
Global HeapDump

[ THREAD ]

06 Id: d10.68c

Frame[00] Is_OriginalExceptionThread
Frame[00] Stack_Frames_Extraction_Time_(ms): [0x10]
Frame[00] ThreadStartAddress: [msvcr100!_threadstartex]
Frame[00] ThreadStartAddress: [0x731b1073]
Frame[1c] CompleteStackWalk
Frame[1d] CompleteStackWalk
Frame[1e] CompleteStackWalk
Frame[00] Thread_LastStatus: [0xc0000302]
Frame[00] ThreadLocale: [0x409]
Frame[00] SoftwareNXFault
Frame[00] SoftwareNXFault
Frame[00] NX_LoadedModule_EXECUTE: [0x731a1f20]
Frame[00] Number_of_Stack_Frames: [0x1f]
Frame[00] Bad_Frame_Count: [0x0]
Frame[00] Ignored_Frame_Count: [0x2]
Frame[00] Frames_not_in_stack_range: [0x0]
Frame[00] BogusSymbol
Frame[10] BogusSymbol
Frame[00] NotSysEnter
Frame[00] Arch_AX_Register: [0x03aaf834]
Frame[00] Arch_BX_Register: [0x03a98628]
Frame[00] vft_Arch_CX: [0x6aeb45a4]
Frame[00] badptr_Arch_DX: [0x0e28c2c8]
Frame[00] badptr_Arch_SI: [0x00000066]
Frame[00] Arch_DI_Register: [0x0e28c9c4]
Frame[00] Arch_SP_Register: [0x0e28c1cc]
Frame[00] Arch_BP_Register: [0x0e28c1f4]
Frame[00] NX_LoadedModule_Arch_IP: [0x731a1f20]
Frame[00] Instruction_Pointer: [0x731a1f20]
Frame[00] ip_not_executable: [0x731a1f20]
Frame[00] Stack_Attribute_Extraction_Time_(ms): [0x2f]
Frame[00] SoftwareNXFault


FAULTING_THREAD: 0000068c

PROBLEM_CLASSES:

SOFTWARE_NX_FAULT
Tid [0x68c]
Frame [0x00]: msvcr100!memcpy

CODE
Tid [0x68c]
Frame [0x00]: msvcr100!memcpy
Failure Bucketing


BUGCHECK_STR: APPLICATION_FAULT_SOFTWARE_NX_FAULT_CODE

PRIMARY_PROBLEM_CLASS: SOFTWARE_NX_FAULT_CODE

DEFAULT_BUCKET_ID: SOFTWARE_NX_FAULT_CODE

LAST_CONTROL_TRANSFER: from 6ab43d27 to 731a1f20

STACK_TEXT:
0e28c1c8 6ab43d27 0e28c2c8 03aaf834 00000002 msvcr100!memcpy
[f:ddvctoolscrt_bldSELF_X86crtsrcINTELmemcpy.asm @ 101]
0e28c1f4 6ab557b4 0e28c2c8 00000002 0e28c970
vdbclient!DcmBufferProducer::read+0x107
[c:packdcmtkdcmtkdcmdatalibsrcdcistrmb.cc @ 115]
0e28c20c 6ab0d826 0e28c2c8 00000002 1cd3c69d
vdbclient!DcmInputStream::read+0x24
[c:packdcmtkdcmtkdcmdatalibsrcdcistrma.cc @ 76]
0e28c340 6ab0df9a 0e28c44c 0e28c970 00000002
vdbclient!DcmItem::readTagAndLength+0x616
[c:packdcmtkdcmtkdcmdatalibsrcdcitem.cc @ 795]
0e28c47c 6ab18e9d 0e28c4f8 0e28c970 00000002 vdbclient!DcmItem::read+0x20a
[c:packdcmtkdcmtkdcmdatalibsrcdcitem.cc @ 924]
0e28c510 6ab193ee 0e28c60c 0e28c970 0e28c61c
vdbclient!DcmSequenceOfItems::readSubItem+0xbd
[c:packdcmtkdcmtkdcmdatalibsrcdcsequen.cc @ 467]
0e28c640 6ab0da8d 0e28c6cc 0e28c970 00000002
vdbclient!DcmSequenceOfItems::read+0x2fe
[c:packdcmtkdcmtkdcmdatalibsrcdcsequen.cc @ 535]
0e28c6ec 6ab0e057 0e28c7f8 0e28c970 0e28c80c
vdbclient!DcmItem::readSubElement+0xcd
[c:packdcmtkdcmtkdcmdatalibsrcdcitem.cc @ 842]
0e28c82c 6ab1c3eb 0e28c904 0e28c970 00000002 vdbclient!DcmItem::read+0x2c7
[c:packdcmtkdcmtkdcmdatalibsrcdcitem.cc @ 940]
0e28c944 6ac0e960 0e28c9e8 0e28c970 00000002 vdbclient!DcmDataset::read+0x3db
[c:packdcmtkdcmtkdcmdatalibsrcdcdatset.cc @ 264]
0e28cb1c 6ac0a18e 0e28cb6c 03a98628 00000000
vdbclient!DIMSE_receiveDataSetInMemory+0x5a0
[c:packdcmtkdcmtkdcmnetlibsrcdimse.cc @ 1700]
0e28cdfc 6a785251 0e28d0b8 03a98628 00000005 vdbclient!DIMSE_findUser+0x3ce
[c:packdcmtkdcmtkdcmnetlibsrcdimfind.cc @ 229]
0e28d1c4 6a782cfa 0e28d610 0e28d214 6b078f94
vdbclient!vdbclient::DICOMFindSCU::FindSCUEnv::processQuery+0x621
[c:srceasyvizvdbclientsrcdicomfindscu.cc @ 531]
0e28d208 6a9f7a63 0e28d610 6b06142d 0e28d754
vdbclient!vdbclient::DICOMFindSCU::studyCFind+0xfa
[c:srceasyvizvdbclientsrcdicomfindscu.cc @ 621]
0e28d754 6a9f6e54 0e28e110 00000003 00000001
vdbclient!vdbclient::PacsSource::readEntityInfo+0xb73
[c:srceasyvizvdbclientsrcpacssource.cc @ 521]
0e28d8f8 6a91cdab 0e28e110 1cd3db19 00bdef5c
vdbclient!vdbclient::PacsSource::queryRelated+0x404
[c:srceasyvizvdbclientsrcpacssource.cc @ 452]
0e28dec4 6a91e5e4 02a79ea4 0e28e110 00000001
vdbclient!vdbclient::DICOMService::queryRelatedSources+0x132b
[c:srceasyvizvdbclientsrcdicomservice.cc @ 842]
0e28e2b8 68be4a48 039d6120 1cd3e0a9 03aa5110
vdbclient!vdbclient::DICOMService::queryRelated+0xc14
[c:srceasyvizvdbclientsrcdicomservice.cc @ 933]
0e28e7ac 68beaa94 03a936d0 03a936c8 03a4d910
camutility!camutility::DICOMSeriesProxy::DICOMSeriesProxy+0x5f8
[c:srceasyvizcamutilitysrcdicomseriesproxy.cc @ 77]
0e28f464 68be97fb 0e28f70c 0e28fcb8 1cd3f3c5
camutility!camutility::DICOMStudyProxy::init+0xee4
[c:srceasyvizcamutilitysrcdicomstudyproxy.cc @ 144]
0e28f4c0 68b5198e 0e28f534 0e28f70c 0e28fcb8
camutility!camutility::DICOMStudyProxy::create+0x8b
[c:srceasyvizcamutilitysrcdicomstudyproxy.cc @ 64]
0e28f610 68b521f9 0e28f6cc 0e28f70c 0e28fcb8
camutility!camutility::CAMLoader::createProxy+0x14e
[c:srceasyvizcamutilitysrccamloader.cc @ 1321]
0e28f7cc 68b4db0d 0e28fa90 0e28fa98 0e28fcb8
camutility!camutility::CAMLoader::addStudyToProcess+0x289
[c:srceasyvizcamutilitysrccamloader.cc @ 1373]
0e28fc1c 68b5cec2 0e28fc88 00bdef68 0e28fcb8
camutility!camutility::CAMLoader::loadData+0x6cd
[c:srceasyvizcamutilitysrccamloader.cc @ 1011]
0e28fccc 72620e81 1cd0067c 00000000 00000000
camutility!camutility::CAMLoader::LoadDataThread::run+0x82
[c:srceasyvizcamutilitysrccamloader.cc @ 1078]
0e28fcf4 731b0fac 03a99d18 1cd00764 00000000 QtCore4!QThreadPrivate::start+0xd1
[c:packqtsrccorelibthreadqthread_win.cpp @ 317]
0e28fd2c 731b10b1 00000000 0e28fd44 74a7339a msvcr100!_callthreadstartex+0x1b
[f:ddvctoolscrt_bldself_x86crtsrcthreadex.c @ 314]
0e28fd38 74a7339a 03a42a60 0e28fd84 772f9ef2 msvcr100!_threadstartex+0x64
[f:ddvctoolscrt_bldself_x86crtsrcthreadex.c @ 292]
0e28fd44 772f9ef2 03a42a60 73b5d3ab 00000000 kernel32!BaseThreadInitThunk+0xe
0e28fd84 772f9ec5 731b1073 03a42a60 00000000 ntdll!__RtlUserThreadStart+0x70
0e28fd9c 00000000 731b1073 03a42a60 00000000 ntdll!_RtlUserThreadStart+0x1b


STACK_COMMAND: ~6s; .ecxr ; kb

FAULT_INSTR_CODE: 57ec8b55

SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: msvcr100!memcpy+0

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: msvcr100

IMAGE_NAME: msvcr100.dll

DEBUG_FLR_IMAGE_TIMESTAMP: 4d26c6a1

FAILURE_BUCKET_ID: SOFTWARE_NX_FAULT_CODE_c0000005_msvcr100.dll!memcpy

BUCKET_ID: APPLICATION_FAULT_SOFTWARE_NX_FAULT_CODE_msvcr100!memcpy+0

WATSON_STAGEONE_URL:
http://watson.microsoft.com/StageOne/camloader_exe/4_0_0_0/4f4f47f8/msvcr100_dll/10_0_30319_415/4d26c6a1/c0000005/00001f20.htm?Retriage=1 http://watson.microsoft.com/StageOne/camloader_exe/4_0_0_0/4f4f47f8/msvcr100_dll/10_0_30319_415/4d26c6a1/c0000005/00001f20.htm?Retriage=1

ANALYSIS_SESSION_ELAPSED_TIME: 203c

Followup: MachineOwner
---------

0:006> !address 731a1f20


Failed to map Heaps (error 80004005)
Usage: Image
Allocation Base: 731a0000
Base Address: 731a1000
End Address: 73251000
Region Size: 000b0000
Type: 01000000 MEM_IMAGE
State: 00001000 MEM_COMMIT
Protect: 00000020 PAGE_EXECUTE_READ
More info: lmv m msvcr100
More info: !lmi msvcr100
More info: ln 0x731a1f20 [/code]

View the full article
 
Back
Top