Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Mex file from codegen seg faulting
Date: Fri, 7 Dec 2012 21:17:14 +0000 (UTC)
Organization: Rincon Research Corp
Lines: 8
Message-ID: <k9tmcq$r3f$1@newscl01ah.mathworks.com>
References: <k9tg40$3a1$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1354915034 27759 172.30.248.46 (7 Dec 2012 21:17:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Dec 2012 21:17:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2235717
Xref: news.mathworks.com comp.soft-sys.matlab:784413

"Chuck37" wrote in message <k9tg40$3a1$1@newscl01ah.mathworks.com>...
> I have a mex file that I generated from Matlab using codegen.  It worked fine for a long time but recently it has been seg faulting.  The seg faults are improbable, but will always happen within 100 runs.  Is there some sort of debugging I can turn on to catch the error, to isolate it to a line of code or something?
> 
> Making this more difficult is the fact the with codegen integrity checks on, the code is unusable due to being so slow.  It takes many minutes where the plain old matlab will run in seconds.  Not sure what that means, but I expect it'll make it harder to find this problem.
> 
> Any ideas would be great. 

Okay, I thought I knew which mex this was, but it looks like its happening in any one of three randomly.  How could that be?  I notice the crash dump files have "crash decoding: disabled".  Would that be of value, and if so how do you enable it?