Why did my program crash on some Windows XP SP3 , worked fine under other Windows XP SP3 and all windows 7 sp1?

0

The program compiled through visual c++ 2010 sp1 under windows 7 sp1, the compiled code worked fine on any Windows 7 SP1 machine, but mysteriously crashed on the some Windows XP sp3 machines and also normal on the other windows XP sp3 machines.

Could you help me?

Here is the windbg debug result with the commond "!analyze -v" on the Windows XP SP3 machine which my code crashed !

I could not debug the source because the crash happened before the all the depending dlls initialized.

Microsoft (R) Windows Debugger Version 6.12.0002.633 X86
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: C:\MTP\U99SYS\lib\CommonStageD.exe
Symbol search path is: C:\WINDOWS\Symbols;C:\MTP\U99SYS\lib
Executable search path is: 
ModLoad: 00400000 00f07000   CommonStageD.exe
ModLoad: 7c920000 7c9b3000   ntdll.dll
ModLoad: 7c800000 7c91e000   C:\WINDOWS\system32\kernel32.dll
ModLoad: 78b60000 79222000   C:\MTP\U99SYS\lib\mfc100d.dll
ModLoad: 10200000 10373000   C:\MTP\U99SYS\lib\MSVCR100D.dll
ModLoad: 77d10000 77da0000   C:\WINDOWS\system32\USER32.dll
ModLoad: 77ef0000 77f39000   C:\WINDOWS\system32\GDI32.dll
ModLoad: 77f40000 77fb6000   C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77da0000 77e49000   C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e50000 77ee2000   C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 77fc0000 77fd1000   C:\WINDOWS\system32\Secur32.dll
ModLoad: 77be0000 77c38000   C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77180000 77283000   C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
ModLoad: 762f0000 762f5000   C:\WINDOWS\system32\MSIMG32.dll
ModLoad: 7d590000 7dd84000   C:\WINDOWS\system32\SHELL32.dll
ModLoad: 76990000 76acd000   C:\WINDOWS\system32\ole32.dll
ModLoad: 770f0000 7717b000   C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 71a20000 71a37000   C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71a10000 71a18000   C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 020b0000 036ce000   C:\MTP\U99SYS\lib\ToolkitPro1531vc100D.dll
ModLoad: 4ae90000 4b036000   C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5512_x-ww_dfb54e0c\gdiplus.dll
ModLoad: 76b10000 76b3a000   C:\WINDOWS\system32\WINMM.dll
ModLoad: 76c60000 76c88000   C:\WINDOWS\system32\imagehlp.dll
ModLoad: 10000000 10039000   C:\MTP\U99SYS\lib\ComMapD.dll
ModLoad: 036f0000 037e8000   C:\MTP\U99SYS\lib\DigitalMapDllD.dll
ModLoad: 76680000 76726000   C:\WINDOWS\system32\WININET.dll
ModLoad: 765e0000 76673000   C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 76db0000 76dc2000   C:\WINDOWS\system32\MSASN1.dll
ModLoad: 76320000 76367000   C:\WINDOWS\system32\COMDLG32.dll
ModLoad: 03800000 03815000   C:\MTP\U99SYS\lib\VR_DemExD.dll
ModLoad: 03830000 0385d000   C:\MTP\U99SYS\lib\VR_MapSelectD.dll
ModLoad: 03870000 03885000   C:\MTP\U99SYS\lib\VR_LayerWndD.dll
ModLoad: 038a0000 038c4000   C:\MTP\U99SYS\lib\VR_MapLibD.dll
ModLoad: 038e0000 03940000   C:\MTP\U99SYS\lib\VR_MapPropertyD.dll
ModLoad: 03950000 03968000   C:\MTP\U99SYS\lib\VR_NavigationWndD.dll
ModLoad: 03980000 03ac0000   C:\MTP\U99SYS\lib\VR_Map2DD.dll
ModLoad: 03ad0000 03aed000   C:\MTP\U99SYS\lib\CdnTFun.dll
ModLoad: 5f400000 5f4ed000   C:\MTP\U99SYS\lib\MFC42D.DLL
ModLoad: 03af0000 03b5c000   C:\MTP\U99SYS\lib\MSVCRTD.dll
ModLoad: 03b60000 03b74000   C:\MTP\U99SYS\lib\VR_PublicFunctionD.dll
ModLoad: 03b90000 03c43000   C:\MTP\U99SYS\lib\VR_MapSetD.dll
ModLoad: 03c60000 03c73000   C:\MTP\U99SYS\lib\VR_TrueTypeSymbolD.dll
ModLoad: 03c90000 03ca3000   C:\MTP\U99SYS\lib\VR_BitmapSymbolD.dll
ModLoad: 03cc0000 03cdd000   C:\MTP\U99SYS\lib\VR_PolygonSymbolD.dll
ModLoad: 03cf0000 03d53000   C:\MTP\U99SYS\lib\VR_MapSymbolD.dll
ModLoad: 03d70000 03d8b000   C:\MTP\U99SYS\lib\VR_MapProjectionD.dll
ModLoad: 03da0000 03ddd000   C:\MTP\U99SYS\lib\2D_DataAccessAgentD.dll
ModLoad: 03df0000 0446b000   C:\MTP\U99SYS\lib\gdal19.dll
ModLoad: 73540000 7357d000   C:\WINDOWS\system32\ODBC32.dll
ModLoad: 7c360000 7c3b6000   C:\MTP\U99SYS\lib\MSVCR71.dll
ModLoad: 7c3c0000 7c43c000   C:\MTP\U99SYS\lib\MSVCP71.dll
ModLoad: 04470000 044db000   C:\MTP\U99SYS\lib\MCE_SDEBridgeEx.dll
ModLoad: 044e0000 0452a000   C:\WINDOWS\system32\mscoree.dll
ModLoad: 76300000 7631d000   C:\WINDOWS\system32\IMM32.DLL
ModLoad: 62c20000 62c29000   C:\WINDOWS\system32\LPK.DLL
ModLoad: 73fa0000 7400b000   C:\WINDOWS\system32\USP10.dll
ModLoad: 5adc0000 5adf7000   C:\WINDOWS\system32\UxTheme.dll
ModLoad: 5d360000 5d369000   C:\MTP\U99SYS\lib\MFC100CHS.DLL
Codejock ToolkitPro Initializing!
Codejock ToolkitPro Terminating!
(3a0.46c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000001 ebx=00000000 ecx=7c9375b4 edx=01f15000 esi=7c80ae30 edi=77da0000
eip=76db3623 esp=0012e97c ebp=0012e9e4 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
<Unloaded_MSASN1.dll>+0x3623:
76db3623 ??              ???
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for CommonStageD.exe

FAULTING_IP: 
MSASN1+3623
76db3623 ??              ???

EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 76db3623 (<Unloaded_MSASN1.dll>+0x00003623)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000008
   Parameter[1]: 76db3623
Attempt to execute non-executable address 76db3623

FAULTING_THREAD:  0000046c

PROCESS_NAME:  CommonStageD.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - "0x%08lx"

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - "0x%08lx"

EXCEPTION_PARAMETER1:  00000008

EXCEPTION_PARAMETER2:  76db3623

WRITE_ADDRESS:  76db3623 

FOLLOWUP_IP: 
MSASN1+3623
76db3623 ??              ???

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG:  2000000

APPLICATION_VERIFIER_FLAGS:  0

IP_MODULE_UNLOADED: 
CRYPT32+6354
765e6354 ??              ???

BUGCHECK_STR:  APPLICATION_FAULT_BAD_INSTRUCTION_PTR_SOFTWARE_NX_FAULT_INVALID

PRIMARY_PROBLEM_CLASS:  BAD_INSTRUCTION_PTR_INVALID

DEFAULT_BUCKET_ID:  BAD_INSTRUCTION_PTR_INVALID

LAST_CONTROL_TRANSFER:  from 765e6354 to 76db3623

STACK_TEXT:  
WARNING: Frame IP not in any known module. Following frames may be wrong.
0012e978 765e6354 00000000 765e633c 00004e58 <Unloaded_MSASN1.dll>+0x3623
0012ea88 7c92118a 765e0000 00000001 00000000 <Unloaded_CRYPT32.dll>+0x6354
0012eaa8 7c93c4da 765e1632 765e0000 00000001 ntdll!LdrpCallInitRoutine+0x14
0012ebb0 7c937e78 00000000 0012ee98 00000000 ntdll!LdrpRunInitializeRoutines+0x344
0012ec60 7c937ea0 044e0000 7c958a7c 00000000 ntdll!LdrpGetProcedureAddress+0x1c6
0012ec7c 7c958a1a 044e0000 7c958a7c 00000000 ntdll!LdrGetProcedureAddress+0x18
0012edb8 7c9587c9 0012ee98 00000000 00000000 ntdll!LdrpCorValidateImage+0xd6
0012edd8 7c958765 04484a2c 0012ee78 0012ee98 ntdll!LdrpCheckCorImage+0x25
0012eeb4 7c93d7a8 00020498 7ffdfc00 00000000 ntdll!LdrpMapDll+0x8db
0012f114 7c93d2cd 00020498 03a75142 03980000 ntdll!LdrpLoadImportModule+0x174
0012f144 7c93d274 7ffdd000 00020498 01fc2fb0 ntdll!LdrpHandleOneOldFormatImportDescriptor+0x5e
0012f15c 7c93c1ce 7ffdd000 00020498 01fc2fb0 ntdll!LdrpHandleOldFormatImportDescriptors+0x1f
0012f1d8 7c93d7c6 00020498 01fc2fb0 037d8118 ntdll!LdrpWalkImportDescriptor+0x19e
0012f428 7c93d2cd 00020498 037dabc0 036f0000 ntdll!LdrpLoadImportModule+0x1c8
0012f458 7c93d274 7ffdd000 00020498 01f88fb0 ntdll!LdrpHandleOneOldFormatImportDescriptor+0x5e
0012f470 7c93c1ce 7ffdd000 00020498 01f88fb0 ntdll!LdrpHandleOldFormatImportDescriptors+0x1f
0012f4ec 7c93d7c6 00020498 01f88fb0 1002d064 ntdll!LdrpWalkImportDescriptor+0x19e
0012f73c 7c93d2cd 00020498 1002effa 10000000 ntdll!LdrpLoadImportModule+0x1c8
0012f76c 7c93d274 7ffdd000 00020498 01f82fb0 ntdll!LdrpHandleOneOldFormatImportDescriptor+0x5e
0012f784 7c93c1ce 7ffdd000 00020498 01f82fb0 ntdll!LdrpHandleOldFormatImportDescriptors+0x1f
0012f800 7c93d7c6 00020498 01f82fb0 0056d948 ntdll!LdrpWalkImportDescriptor+0x19e
0012fa50 7c93d2cd 00020498 0057b1a6 00400000 ntdll!LdrpLoadImportModule+0x1c8
0012fa80 7c93d274 7ffdd000 00020498 01f18fb0 ntdll!LdrpHandleOneOldFormatImportDescriptor+0x5e
0012fa98 7c93c1ce 7ffdd000 00020498 01f18fb0 ntdll!LdrpHandleOldFormatImportDescriptors+0x1f
0012fb14 7c941e25 00020498 01f18fb0 7ffdf000 ntdll!LdrpWalkImportDescriptor+0x19e
0012fc94 7c94108f 0012fd30 7c920000 0012fce0 ntdll!LdrpInitializeProcess+0xe02
0012fd1c 7c92e437 0012fd30 7c920000 00000000 ntdll!_LdrpInitialize+0x183
00000000 00000000 00000000 00000000 00000000 ntdll!KiUserApcDispatcher+0x7


SYMBOL_STACK_INDEX:  0

SYMBOL_NAME:  msasn1!unloaded+3623

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: MSASN1

IMAGE_NAME:  MSASN1.dll

DEBUG_FLR_IMAGE_TIMESTAMP:  4802bddd

STACK_COMMAND:  dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~0s ; kb

FAILURE_BUCKET_ID:  BAD_INSTRUCTION_PTR_INVALID_c0000005_MSASN1.dll!unloaded

BUCKET_ID:  APPLICATION_FAULT_BAD_INSTRUCTION_PTR_SOFTWARE_NX_FAULT_INVALID_msasn1!unloaded+3623

Followup: MachineOwner
c++
windows
crash
asked on Stack Overflow Nov 23, 2013 by cxq • edited Nov 23, 2013 by cxq

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0