Matlab'运行和时间'与mex文件崩溃

时间:2017-07-26 09:39:47

标签: matlab mex

我在Matlab的代码库中使用glmnet库,在正常操作期间没有问题。然而,当我使用Matlab' run&time'用于分析我的代码库性能的功能,Matlab会引发访问冲突。 Mex文件是随软件包一起提供的文件。

mex文件与'运行和时间是否存在根本不兼容,或者必须严格编写Mex文件以符合“运行和时间”标准。运行时标准(可能与内存分配/释放有关)?

我不想开始在第三方代码中挖掘 - 我想要的只是让分析器告诉我在代码库的上下文中执行mex文件花了多长时间 - 我对此不感兴趣mex文件中发生了什么。有没有办法配置探查器以这种方式处理mex文件?

堆栈跟踪如下:

------------------------------------------------------------------------
           Access violation detected at Wed Jul 26 10:10:39 2017
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled - No sandbox or build area path
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware 
  Default Encoding    : windows-1252
  Deployed            : false
  Graphics card 1     : Intel Corporation ( 0x8086 ) Intel(R) Iris(TM) Plus Graphics 640 Version 21.20.16.4664
  Host Name           : DESKTOP-MARUMC2
  MATLAB Architecture : win64
  MATLAB Entitlement ID: 1208320
  MATLAB Root         : C:\Program Files\MATLAB\R2016b
  MATLAB Version      : 9.1.0.441655 (R2016b)
  OpenGL              : hardware
  Operating System    : Microsoft Windows 10 Home
  Processor ID        : x86 Family 6 Model 142 Stepping 9, GenuineIntel
  Virtual Machine     : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  Window System       : Version 10.0 (Build 14393)

Fault Count: 1


Abnormal termination:
Access violation

Register State (from fault):
  RAX = 0000000000000000  RBX = 0000000000000000
  RCX = 00000000fc615760  RDX = 00000000043f8d10
  RSP = 00000000043f7128  RBP = 00000000043f8d10
  RSI = 00000000aaf4ba00  RDI = 0000000000000000

   R8 = 00000000043f7f30   R9 = 00000000fc615760
  R10 = 0000000000000000  R11 = 00000000043f8d10
  R12 = 0000000000000001  R13 = 0000000000000000
  R14 = 00000000043f8d10  R15 = 00000000fc615760

  RIP = 000000018008346f  EFL = 00010206

   CS = 0033   FS = 0053   GS = 002b

Stack Trace (from fault):
[  0] 0x000000018008346f C:\Program Files\MATLAB\R2016b\bin\win64\libmx.dll+00537711 MXGETPR+00000003
[  1] 0x00007ffb629619dc C:\Users\work\glmnet_matlab\glmnetMex.mexw64+00006620 MEXFUNCTION+00002524

0 个答案:

没有答案