Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Running Matlab 2011b or 2012a under Purify
Replies: 1   Last Post: Dec 3, 2012 4:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nikita Visnevski

Posts: 3
Registered: 12/3/12
Running Matlab 2011b or 2012a under Purify
Posted: Dec 3, 2012 3:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I know TMW offers no support for this issue, but I was wondering if anybody had success instrumenting and running Matlab 2011b or 2012 under latest PurifyPlus from Rational (v. 7.0.1)?

I want to perform memory integrity checks for my S-Fcns and Mex files. We use 2011b as a baseline, but I also have access to 2009b. 2009b instruments and runs under Purify with no problem. 2011b (and above), however, instruments, but fails to run throwing an unhandled null pointer exception. I have fragments of log files below is somebody is interested in taking a closer look. The problem boils down to a functions call in libmwservices.dll called svMatlabDescription. This is not happening in 2009b, and is in 2011b.

Any suggestion is appreciated.

Nikita

=======================================
DETAILS:

(I have full logs from both Visual Studio 2010 and Purify for both 2009b and 2011b. I have no option to attach them to this post, but I can provide them if somebody is interested. I am only pasting relevant fragments of these logs here.)

1. Fragment of Visual Studio log where the problem occurs:

a. Uninstrumented run (runs OK):
...
'matlab.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
First-chance exception at 0x752fd36f in matlab.exe: Microsoft C++ exception: std::runtime_error at memory location 0x008ff1f8..
SetThrowSegvLongjmpSEHFilter(): filter function installed
mnSigInit: Installing purecall handler and unhandled exception filter
'matlab.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file
'matlab.exe': Loaded 'C:\Program Files\Java\jdk1.6.0_31\jre\bin\client\jvm.dll', Cannot find or open the PDB file
...

b. Instrumented run (fails with null pointer exception in 2011b, and runs fine in 2009b):
...
'matlab$Purify_C_Program Files_MATLAB_R2011b_bin_win32.exe': Loaded 'C:\Program Files\IBM\RationalPurifyPlus\x86\cache\CRYPTBASE$Purify_C_Windows_system32.dll', Cannot find or open the PDB file
First-chance exception at 0x752fd36f in matlab$Purify_C_Program Files_MATLAB_R2011b_bin_win32.exe: Microsoft C++ exception: std::runtime_error at memory location 0x00c4e680..
SXS: RtlpQueryFilesInAssemblyInformationActivationContextDetailedInformation() received invalid sub-instance index 2 out of 3 Assemblies in the Acitvation Context
SXS: RtlpQueryFilesInAssemblyInformationActivationContextDetailedInformation() received invalid sub-instance index 2 out of 3 Assemblies in the Acitvation Context
First-chance exception at 0x01b1f467 in matlab$Purify_C_Program Files_MATLAB_R2011b_bin_win32.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x3f012ee1 in matlab$Purify_C_Program Files_MATLAB_R2011b_bin_win32.exe: 0x80000001: Not implemented.
SXS: RtlpQueryFilesInAssemblyInformationActivationContextDetailedInformation() received invalid sub-instance index 2 out of 3 Assemblies in the Acitvation Context
SXS: RtlpQueryFilesInAssemblyInformationActivationContextDetailedInformation() received invalid sub-instance index 2 out of 3 Assemblies in the Acitvation Context
SXS: RtlpQueryFilesInAssemblyInformationActivationContextDetailedInformation() received invalid sub-instance index 2 out of 3 Assemblies in the Acitvation Context
The thread 'Win32 Thread' (0x12c4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x14a0) has exited with code 0 (0x0).


2. Purify log fragment describing the problem:
...
[E] NPR: NULL pointer read in svMatlabDescription {1 occurrence}
Reading 4 bytes from 0x00000000 (4 bytes at 0x00000000 illegal)
Address 0x00000000 points into invalid memory
Thread ID: 0x144c
Error location
svMatlabDescription [c:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL]
svMatlabVersion [C:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL]
init_regConfigFeatures(int) [C:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL]
init_regConfigFeatures(int) [C:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL]
services::machine_config::instance(void) [C:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL]
GetTickCount64 [C:\Windows\system32\KERNEL32.DLL]
[E] EXU: Unhandled exception in svMatlabDescription {1 occurrence}
Exception code: 0xc0000005 [Error: access violation reading from 0x00000000]
Exception address: [C:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL ip=0x5561F76C]
Filter: [C:\Program Files\IBM\RationalPurifyPlus\PURERT.DLL ip=0x3F0026D0]
Exception location
[c:\PROGRAM FILES\MATLAB\R2011B\BIN\WIN32\LIBMWSERVICES.DLL ip=0x5561F76E]
...




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.