Segmentation violation when compliling with GUI

1 vue (au cours des 30 derniers jours)
thalia
thalia le 1 Juil 2017
Hello,
I m compiling with Matlab2013a(8.1) and I m getting a Segmentation violation Fatal Error. I ve read similar cases and I assume this happens because I add the whole m flder of my project and there is a conflict that I cannot resolve.
As my code has many feval I cannot add %#function to each function to denote them for the compiler; Thus I have to add the whole source folder (m). However when I do so, I have the following error.
Any help would be highly appreciated.
Thank you
Lia
> In Completion>Completion.initializeRootSet at 1120
In Completion>Completion.Completion at 1336
In Manifest>Manifest.Manifest at 27
In genmanifest at 8
Error using meta.class.fromName
Cannot redefine class 'sym' without a call to 'clear classes'.
Error in matlab.depfun.internal.MatlabSymbol/lookupMetaClass (line 804)
mc = meta.class.fromName(name);
Error in matlab.depfun.internal.MatlabSymbol/determineClassType (line 348)
mc = lookupMetaClass(symObj, symObj.Symbol);
Error in matlab.depfun.internal.MatlabSymbol/getTypeUsingEnvironment (line 317)
determineClassType(symObj);
Error in matlab.depfun.internal.MatlabSymbol/determineMatlabType (line 260)
getTypeUsingEnvironment(symObj);
Error in matlab.depfun.internal.MatlabInspector/evaluateSymbols (line 245)
determineMatlabType(symObj);
Error in matlab.depfun.internal.MatlabInspector/analyzeSymbols (line 119)
evaluateSymbols(obj, S, F, symbol);
Error in matlab.depfun.internal.Completion/findDependentFiles (line 922)
analyzeSymbols(inspector, symbol);
Error in matlab.depfun.internal.Completion/computeDependencies (line 186)
findDependentFiles(obj);
Error in matlab.depfun.internal.Completion/calltree (line 1347)
computeDependencies(obj);
Error in matlab.depfun.internal.Manifest (line 28)
obj.DependencyGraph = calltree(c);
Error in matlab.depfun.internal.genmanifest (line 8)
m = matlab.depfun.internal.Manifest(src, target);
------------------------------------------------------------------------
Segmentation violation detected at Sat Jul 1 12:14:05 2017
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : None
Default Encoding : UTF-8
GNU C Library : 2.12 stable
MATLAB Architecture: glnxa64
MATLAB Root : /usr/local/unb_matlab/R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Linux 2.6.32-504.8.1.el6_lustre.x86_64 #1 SMP Thu Feb 26 22:39:27 PST 2015 x86_64
Processor ID : x86 Family 15 Model 33 Stepping 2, AuthenticAMD
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007fb4a11ff1e7 RBX = 0000000000000003
RCX = 00007fb4a11ff0d0 RDX = 00007fb4a11ff1e6
RSP = 00007fb4a11feb80 RBP = 00007fb4a11ff220
RSI = 0000000000000070 RDI = 0000000000000000
R8 = 00000000ffffffff R9 = 00007fb43757a0f0
R10 = 00007fb426dbd9e0 R11 = 0000000000000000
R12 = 00007fb4a11fefe8 R13 = 00007fb4a1205820
R14 = 00007fb4b9cdd980 R15 = 0000000000000000
RIP = 00007fb4b6062b01 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fb4b6062b01 /usr/local/unb_matlab/R2013a/bin/glnxa64/libmx.so+00224001 mxGetNumberOfElements+00000001
[ 1] 0x00007fb4bbe8d5fc /usr/local/unb_matlab/R2013a/bin/glnxa64/libmwcompiler.so+00935420
[ 2] 0x00007fb4bbe91aa3 /usr/local/unb_matlab/R2013a/bin/glnxa64/libmwcompiler.so+00952995
[ 3] 0x00007fb4bbe93f47 /usr/local/unb_matlab/R2013a/bin/glnxa64/libmwcompiler.so+00962375 _Z8compilerP15_memory_contextP17_namehash_contextPFiPKcEciPS4_PFiPvS4_iES8_SA_S8_PFvS8_b12LICENSE_TYPES4_PS8_SC_ES8_bPbPc+00000919
[ 4] 0x0000000000409dcc /usr/local/unb_matlab/R2013a/bin/glnxa64/mcc+00040396
[ 5] 0x00000030aa607aa1 /lib64/libpthread.so.0+00031393
[ 6] 0x00000030a9ee8bcd /lib64/libc.so.6+00953293 clone+00000109
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.** This crash report has been saved to disk as /home/tnikolai/matlab_crash_dump.4779-1 **
MATLAB is exiting because of fatal error

Réponses (1)

Walter Roberson
Walter Roberson le 1 Juil 2017
There is a hint in that error message that you might be attempting to compile a function that uses the Symbolic Toolbox in a section that is not protected by if ~isdeployed() . It is not necessarily in any function that would actually be called: it could be in some function that just happens to be in the same folder, since you are adding in the entire folder.
If this is the case, then you have the problem that nothing about the Symbolic Toolbox can be compiled.

Catégories

En savoir plus sur Java Package Integration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by