Why do I receive a segmentation violation when I use the FEVAL function in MATLAB 7.0.4 (R14SP2)?

3 views (last 30 days)
I have a program that executes without error in MATLAB 7.0 (R14). I tried to execute the same program in MATLAB 7.0.4 (R14SP2) and upon executing a line that uses the FEVAL function, MATLAB crashes with the following segmentation violation:
------------------------------------------------------------------------
Segmentation violation detected at Sat Apr 02 08:11:51 2005
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.0.4.365 (R14) Service Pack 2
Operating System: Microsoft Windows 2000
Window System: Version 5.0 (Build 2195: Service Pack 4)
Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel
Virtual Machine: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997
Register State:
EAX = 000003f3 EBX = 19e70020
ECX = 000003f3 EDX = 199ba860
ESI = 199ba860 EDI = 00000006
EBP = 00cdd64c ESP = 00cdd64c
EIP = 78464162 FLG = 00010212
Stack Trace:
[0] libmx.dll:void __cdecl mxRemoveArrayFromLinkList(struct mxArray_tag *)(0x199ba860, 0x199ba860, 0x199ba860, 0x00cdd67c) + 18 bytes
[1] libmx.dll:void __cdecl mxDestroyArrayContents(struct mxArray_tag *)(0x199ba860, 0x199ba860, 0x19a36130, 29) + 67 bytes
[2] libmx.dll:_mxMoveArrayOntoHeader(0x199ba860, 0, 0x199ba860, 0x00cdd6b0 "ØÖÍ") + 123 bytes
[3] m_interpreter.dll:_inMatass1(0x199ba860, 0x19e70020, 29, 0) + 27 bytes
[4] m_interpreter.dll:private: static struct mxArray_tag * __cdecl inJitInterp::AssignArrayInSymbolTableOrStruct(class Mfh_mp *,int,struct mxArray_tag *,struct mxArray_tag *,struct mxArray_tag *,class _jitFieldInfo *,int *)(0x18070360, 29, 0x199ba860, 0x19e70020) + 307 bytes
[5] m_interpreter.dll:void __cdecl inJitMatass1MxArray(int,struct mxArray_tag *,class inJitSize *,struct inJitNonScalar *)(29, 0x19e70020, 0x02626fa0, 0x0262694c) + 47 bytes
<snip>

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.4 (R14SP2) that affects the way the FEVAL function is handled.
Currently, you can work around this issue by disabling the Accelerator. To do this, execute the following line of code before running your application:
feature('accel','off')

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!