Open kdheepak opened 7 years ago
I have seen this happen once before. I had a matlab GUI open where I had used the interactive prompt to fncs_initialize() and fncs_finalize(). That worked fine as expected. But when I tried to use the same matlab GUI instance to do another co-sim run, it crashed during the next fncs_initialize() with a similar error. Is this what you experienced?
On Fri, Nov 18, 2016 at 11:59 AM, Dheepak Krishnamurthy < notifications@github.com> wrote:
I've gotten this error twice in when trying to run fncs_initialize in MATLAB. I'm unfortunately not able to replicate it.
The first line of the error seems to suggest it is a ZMQ issue (?). Is it possible to add a check in fncs to raise a MATLAB error instead of exiting MATLAB altogether?
fncs_initialize() MATLAB: src/zsys.c:179: zsys_init: Assertion `!s_process_ctx' failed.
abort() detected at Fri Nov 18 12:47:58 2016
Configuration: Crash Decoding : Disabled Crash Mode : continue (default) Current Graphics Driver: Unknown software Current Visual : None Default Encoding : UTF-8 GNU C Library : 2.12 stable Host Name : login3 MATLAB Architecture : glnxa64 MATLAB Root : /apps/matlab/R2016a MATLAB Version : 9.0.0.341360 (R2016a) OpenGL : software Operating System : Linux 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Feb 20 12:17:37 EST 2013 x86_64 Processor ID : x86 Family 6 Model 45 Stepping 7, GenuineIntel Window System : No active display
Fault Count: 1
Abnormal termination: abort()
Register State (from fault): RAX = 0000000000000000 RBX = 00007fc33eef2000 RCX = ffffffffffffffff RDX = 0000000000000006 RSP = 00007fc31f2963b8 RBP = 00007fc3082be705 RSI = 000000000000cf52 RDI = 000000000000cf1a
R8 = fefefefefefefeff R9 = ff00000000000000 R10 = 0000000000000008 R11 = 0000000000000202 R12 = 00007fc3082be7cd R13 = 00007fc3082c00cd R14 = 0000000000000010 R15 = 00007fc3198ba0f0
RIP = 0000003545c328a5 EFL = 0000000000000202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault): [ 0] 0x0000003545c328a5 /lib64/libc.so.6+00207013 gsignal+00000053 [ 1] 0x0000003545c34085 /lib64/libc.so.6+00213125 abort+00000373 [ 2] 0x0000003545c2ba1e /lib64/libc.so.6+00178718 [ 3] 0x0000003545c2bae0 /lib64/libc.so.6+00178912 __assert_perror_fail+00000000 [ 4] 0x00007fc308277cb3 /$HOME/FNCS_install/lib/libczmq.so.3+00236723 [ 5] 0x00007fc308277cd7 /$HOME/FNCS_install/lib/libczmq.so.3+00236759 zsys_socket+00000023 [ 6] 0x00007fc30826fc2d /$HOME/FNCS_install/lib/libczmq.so.3+00203821 zsock_new_checked+00000077 [ 7] 0x00007fc3084ea231 /$HOME/FNCS_install/lib/libfncs.so.1+00066097 _ZN4fncs10initializeENS_6ConfigE+00002721 [ 8] 0x00007fc3084ec361 /$HOME/FNCS_install/lib/libfncs.so.1+00074593 _ZN4fncs10initializeEv+00000449 [ 9] 0x00007fc30875a7e0 /$HOME/GitRepos/fncs/matlab/fncs_initialize.mexa64+00002016 mexFunction+00000072 [ 10] 0x00007fc32c4168b0 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmex.so+00149680 mexRunMexFile+00000064 [ 11] 0x00007fc32c413214 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmex.so+00135700 [ 12] 0x00007fc32c413db4 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmex.so+00138676 [ 13] 0x00007fc32d1bd505 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_dispatcher.so+00746757 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2iS2+00001509 [ 14] 0x00007fc32d1bd9a0 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_dispatcher.so+00747936 _ZN8Mfh_file11dispatch_fhEiPP11mxArraytagiS2+00000032 [ 15] 0x00007fc32a1a91c9 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+09232841 [ 16] 0x00007fc32a2d5dbf /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10464703 [ 17] 0x00007fc32a2cba5a /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10422874 [ 18] 0x00007fc32a294911 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10197265 [ 19] 0x00007fc329d62b2a /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04750122 [ 20] 0x00007fc329d63a4c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04753996 [ 21] 0x00007fc329d61ebc /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04746940 [ 22] 0x00007fc329d5f9ea /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04737514 [ 23] 0x00007fc329d5fdb1 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04738481 [ 24] 0x00007fc329d61a63 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04745827 [ 25] 0x00007fc329d61be9 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04746217 [ 26] 0x00007fc329e1216f /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+05468527 [ 27] 0x00007fc329e1522a /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+05481002 [ 28] 0x00007fc32a0b7543 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08242499 [ 29] 0x00007fc32a08007e /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08015998 [ 30] 0x00007fc32a084058 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08032344 [ 31] 0x00007fc32a084107 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08032519 [ 32] 0x00007fc32a0fa32c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08516396 [ 33] 0x00007fc32a0fa792 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwm_lxe.so+08517522 [ 34] 0x00007fc32c651d7c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwbridge.so+00200060 [ 35] 0x00007fc32c6529c5 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwbridge.so+00203205 _Z8mnParserv+00000789 [ 36] 0x00007fc32d4a6c13 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00695315 [ 37] 0x00007fc3405b581c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmvm.so+02410524 _ZNK5boost9function0IvEclEv+00000028 [ 38] 0x00007fc32d4a8925 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00702757 [ 39] 0x00007fc32d4a9839 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00706617 _ZN5boost6detail17task_shared_stateINS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEvE6do_runEv+00000025 [ 40] 0x00007fc33b8898a0 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwms.so+03168416 _ZN5boost6detail22task_base_shared_stateIvE3runEv+00000064 [ 41] 0x00007fc32d4aa717 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00710423 [ 42] 0x00007fc32d4a675a /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00694106 [ 43] 0x00007fc32d819c06 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00969734 [ 44] 0x00007fc32d807b4c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00895820 _ZN5boost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028 [ 45] 0x00007fc32d80821f /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00897567 _ZNK5boost9function0INS_3anyEEclEv+00000031 [ 46] 0x00007fc32d807993 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00895379 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000163 [ 47] 0x00007fc32d4bb71d /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00780061 [ 48] 0x00007fc32d7e9f98 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00774040 [ 49] 0x00007fc32d7d45af /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00685487 [ 50] 0x00007fc32d7d17e3 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwiqm.so+00673763 [ 51] 0x00007fc33ff72a3a /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwservices.so+03443258 [ 52] 0x00007fc33ff718a7 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwservices.so+03438759 [ 53] 0x00007fc33ff7210c /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwservices.so+03440908 _Z25svWS_ProcessPendingEventsiib+00000092 [ 54] 0x00007fc32d4a6ed2 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00696018 [ 55] 0x00007fc32d4a7211 /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00696849 [ 56] 0x00007fc32d493cfd /$ROOT/apps/matlab/R2016a/bin/glnxa64/libmwmcr.so+00617725 [ 57] 0x0000003546807851 /lib64/libpthread.so.0+00030801 [ 58] 0x0000003545ce890d /lib64/libc.so.6+00952589 clone+00000109 [ 59] 0x0000000000000000
+00000000 This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.
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.
MATLAB is exiting because of fatal error [1] 53018 killed FNCS_CONFIG_FILE=matlab.zpl matlab -nodesktop -nojvm -nosplash -r
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FNCS/fncs/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3MOOmrtZdWodHkkqIDoOZvjHp5JP1kks5q_gOhgaJpZM4K23hE .
I've gotten this error twice in when trying to run
fncs_initialize
in MATLAB. I'm unfortunately not able to replicate it.The first line of the error seems to suggest it is a ZMQ issue (?). Is it possible to add a check in fncs to raise a MATLAB error instead of exiting MATLAB altogether?