我是靠谱客的博主 粗暴机器猫,最近开发中收集的这篇文章主要介绍matlab单步调试不出错,Matlab的程序单步调试没问题,而直接运行就会有错误?,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

为什么我的程序单步调试没问题,而直接运行就会有错误?下面是一大堆的错误提示:

------------------------------------------------------------------------

Segmentation violation detected at Mon Mar 29 09:37:12 2010

------------------------------------------------------------------------

Configuration:

MATLAB Version:   7.8.0.347 (R2009a)

MATLAB License:   161051

Operating System: Microsoft Windows Vista

Window System:    Version 6.1 (Build 7600)

Processor ID:     x86 Family 6 Model 15 Stepping 6, GenuineIntel

Virtual Machine:  Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode

Default Encoding:  GBK

Fault Count: 1

Register State:

EAX = 0511bc50  EBX = 1deaf0d0

ECX = 012b0000  EDX = 1deaf0d0

ESI = 2a088bc6  EDI = 1deaf0c8

EBP = 00c28a68  ESP = 00c28a34

EIP = 77511ffe  FLG = 00210206

Stack Trace:

[0] ntdll.dll:0x77511ffe(0x1deaf0d0, 0x7b291e70, 0x0e7d6468, 0x1deaf0c8)

[1] ntdll.dll:0x77511faf(0x012b0000, 0, 0x1deaf0d0, 0x00c28ae0)

[2] kernel32.dll:0x75a5f1cc(0x012b0000, 0, 0x1deaf0d0, 0x4b3ed314)

[3] MSVCR80.dll:0x71584c39(0x1deaf0d0, 0x00c28bb8, 0x7a0c52e5, 0x1deaf0d0)

[4] libut.dll:_utFree(0x1deaf0d0, 0x0f3c0ef0, 0x00c29504, 0x0e7d6468) + 30 bytes

[5] m_interpreter.dll:public: bool __thiscall inPredictor::Lookup(class Mfh_MATLAB_fn *,struct inPredictorContext,int,class mpsType *,int,class mpsType const *,enum inPredictorFlags *,bool)(0x0f3c0ef0, 0x0e7d6468, 1, 0x00c29558) + 1781 bytes

[6] m_interpreter.dll:public: bool __thiscall inPredictor::Lookup(int,struct inPredictorContext,int,class mpsType *,int,class mpsType const *,enum inPredictorFlags *)(18, 1, 0x00c29558, 2) + 987 bytes

[7] m_interpreter.dll:public: unsigned int __thiscall tfAnalyzer::MathOp(int *,int,int,int,int,class mpsType *,class tfFlowInfo *,int,class mpsType const *,class tfFlowInfo const *,int const *,int const *,bool)(840, 68, 68, 18) + 323 bytes

[8] m_interpreter.dll:private: unsigned int __thiscall typeflowPcodeWalker::MathOp(int *,int,int,int,int,bool)(0x00c2cf4c, 68, 18, 2) + 598 bytes

[9] m_interpreter.dll:public: virtual int * __thiscall typeflowPcodeWalker::MatlabFcn(int *)(1, 0x00c2cf20, 0x7a0e2117, 79) + 122 bytes

[10] m_interpreter.dll:public: virtual int * __thiscall inPcodeWalkerDefault::walkReport(int,int *)(79, 0x1e02fdfc, 0x1e02fe10, 0x00c2cf4c) + 105 bytes

[11] m_interpreter.dll:public: virtual int * __thiscall typeflowPcodeWalker::walkReport(int,int *)(79, 0x1e02fdfc, 0x0e9f74c0, 0) + 215 bytes

[12] m_interpreter.dll:public: int * __thiscall inPcodeWalkerBase::walkPcode(int *)(0x0e90fd28, 1, 111, 0x0e9f74c0) + 127 bytes

[13] m_interpreter.dll:void __cdecl inPerformFlowAnalyzeHotSegment(class Mfh_mp *,class _jitSegInfo *,int,struct _mioList *,int,unsigned __int64 *)(0x0e90fd28, 0x0e9f74c0, 0, 0) + 4540 bytes

[14] m_interpreter.dll:bool __cdecl inFlowAnalyzeHotSegment(class Mfh_mp *,class _jitSegInfo *,bool,int,unsigned __int64 *)(0x0e90fd28, 0, 0x00c2d70c, 0xffffffff) + 103 bytes

[15] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2d8cc, 0x00c2da20, 0x00c2d9b4, 0x00c2db70) + 6398 bytes

[16] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 522, 28, 0) + 826 bytes

[17] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 522, 12, 0) + 39 bytes

[18] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 522, 12, 0) + 251 bytes

[19] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0x05262e00, 0xffffffff, 0x0e90fd28, 2) + 935 bytes

[20] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(2, 0x00c2de44, 5, 0x00c2dea4) + 466 bytes

[21] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 2, 0x00c2de44, 5) + 23 bytes

[22] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(2, 0x00c2de44, 5, 0x00c2dea4) + 22 bytes

[23] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(2, 0x00c2de44, 5, 0x00c2dea4) + 204 bytes

[24] m_interpreter.dll:int __cdecl inDispatchFromStack(int,char const *,int,int)(672, 0x1de5ce1f "ADABOOST_svm_tr", 2, 5) + 623 bytes

[25] m_interpreter.dll:_inCallFcnFromReference(0x1e237fc0, 0x1e11f268, 0, 0x00c2dfa4) + 80 bytes

[26] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 0, 3, 0) + 6177 bytes

[27] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 0, 0) + 39 bytes

[28] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 0, 0) + 251 bytes

[29] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0x7a3f6001, 0xffffffff, 0x0e910ef8, 0) + 935 bytes

[30] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2e650, 0, 0x00c2e5c0) + 466 bytes

[31] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2e650, 0) + 23 bytes

[32] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e650, 0, 0x00c2e5c0) + 22 bytes

[33] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e650, 0, 0x00c2e5c0) + 204 bytes

[34] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(0, 0x00c2e650, 0, 0x00c2edb8) + 81 bytes

[35] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2e898, 0, 1, 0x1e179258) + 1209 bytes

[36] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0, 0xffffffff, 0x1e18acd0, 0x0e9f5c68) + 266 bytes

[37] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2edb8, 0xffffffff, 0xffffffff, 0x0e9f5c68) + 170 bytes

[38] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2f058, 0xffffffff, 0, 0) + 115 bytes

[39] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2f1b4, 0x00c2f308, 0x00c2f29c, 0x00c2f458) + 2523 bytes

[40] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 0, 0, 0) + 826 bytes

[41] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 0, 0) + 39 bytes

[42] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 0, 0) + 251 bytes

[43] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff01, 0xffffffff, 0x1e1409b0, 0) + 935 bytes

[44] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2f94c, 0, 0) + 466 bytes

[45] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2f94c, 0) + 23 bytes

[46] m_interpreter.dll:public: virtual void __thiscall Mfh_mp:

最后

以上就是粗暴机器猫为你收集整理的matlab单步调试不出错,Matlab的程序单步调试没问题,而直接运行就会有错误?的全部内容,希望文章能够帮你解决matlab单步调试不出错,Matlab的程序单步调试没问题,而直接运行就会有错误?所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部