SSH and MEX: Assertion default???!!

Hello everybody, I'm working with Matlab 2011a on linux 64bit, I got an assertion error calling a mex function, a system() method, another time the mex and then the system(), as following:
Init = ElaborateModelRFAll(I, 50); %function which contains a calling to a mex
disp('first');
system('ssh jotunn "qsub cluprocess_RF.sh"');
disp('second');
Init = ElaborateModelRFAll(I, 50); %function which contains a calling to a mex
disp('third');
system('ssh jotunn "qsub cluprocess_RF.sh"');
disp('fourth');
the result is till the third text displayed, then it crashes (assertion fault) when it calls the second time the system()... Why? It's because I called the second MEX!! Can anybody give to me a reasonable answer of this unbelievable behavior???!! Thanks, Matt

답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 19일

1 개 추천

The usual reason for something like this is that there is a bug in the mex file that is corrupting MATLAB's internal memory in such a way that the corruption happens to be critical the next time system() is called.

댓글 수: 1

Kaustubha Govind
Kaustubha Govind 2011년 11월 21일
Mett: If you have access to the source code, I would recommend debugging it to find the cause of the SegV (http://www.mathworks.com/help/techdoc/matlab_external/f32489.html). If you don't have the source code, you should contact the vendor.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2011년 11월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by