<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/</id><updated>2020-02-27T13:48:10.937000Z</updated><subtitle>Recent posts to Access Violation when breakpoint is hit</subtitle><entry><title>Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/?limit=25#5492" rel="alternate"/><published>2020-02-27T13:48:10.937000Z</published><updated>2020-02-27T13:48:10.937000Z</updated><author><name>irfanmirza</name><uri>https://forge.codesys.com/u/irfanmirza/</uri></author><id>https://forge.codesys.come16c46b6f3cc256ea9a0614ac05cda6c58e834e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we found out that the ARM processor flag (in our case EABIv5) was missing in the makefiles. And because of that issue, the incorrect debug handler (ArmDebugHandler(...)) was called within SysCpuHandlingLinux.c file. &lt;br/&gt;
Hope it will help other users.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/?limit=25#30e5" rel="alternate"/><published>2020-02-27T13:48:10.882000Z</published><updated>2020-02-27T13:48:10.882000Z</updated><author><name>irfanmirza</name><uri>https://forge.codesys.com/u/irfanmirza/</uri></author><id>https://forge.codesys.comdfab586595b9f4bcc35b82d3efebc834b00a502b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks Dave for the hint about setting the flag.&lt;br/&gt;
I did a deep investigation on this special flag but could not find it. Can you please tell me which flag are you talking about?&lt;/p&gt;
&lt;p&gt;Were you also working on ARM target platform?&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Irfan&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/?limit=25#4e1b" rel="alternate"/><published>2020-02-27T13:48:10.827000Z</published><updated>2020-02-27T13:48:10.827000Z</updated><author><name>davec</name><uri>https://forge.codesys.com/u/davec/</uri></author><id>https://forge.codesys.com7f9856c73ca77c5dafc56b1244db673cee30bd1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
yes we found the issue. When compiling Codesys runtime, a specific flag needs to be added to enable debugging. If this flag is omitted, if you put breakpoints in your code, it'll just crash. It must be a security feature.&lt;br/&gt;
You'll only encounter this problem if Codesys is compiling the runtime for your specific application. If it's not the case, it must be something else&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Dave&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/?limit=25#cd35" rel="alternate"/><published>2020-02-27T13:48:10.772000Z</published><updated>2020-02-27T13:48:10.772000Z</updated><author><name>irfanmirza</name><uri>https://forge.codesys.com/u/irfanmirza/</uri></author><id>https://forge.codesys.com220613004c61b5a975327a5e7610ea80e84dbb48</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anybody found the reason for this exception?&lt;br/&gt;
Dave have you already solved it? please comment, as I am also facing this issue&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Access Violation when breakpoint is hit</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/fe46362c22/?limit=25#a181" rel="alternate"/><published>2020-02-27T13:48:10.653000Z</published><updated>2020-02-27T13:48:10.653000Z</updated><author><name>davec</name><uri>https://forge.codesys.com/u/davec/</uri></author><id>https://forge.codesys.comf87667710664e398e376884c4ca113e380f5de2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
we got a weird problem when trying to debug our application, each time I put a breakpoint (anywhere) and the code hit this breakpoint, the runtime  just crash with an Access Violation in CmpIecTask&lt;/p&gt;
&lt;p&gt;Here is a log output of the exception and a few entry before the exception&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_Logout received: App=Main_Control, SessionId=0xfc8d4a40, AppSessionId=0xdb505186 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
 &lt;span style="color: #FF0000;"&gt;&amp;lt;entry component="CmpIecTask" severity="exception" user="nobody"&amp;gt;&lt;em&gt;SOURCEPOSITION&lt;/em&gt; App=&lt;span&gt;[Main_Control]&lt;/span&gt; area=0, offset=22429936&amp;lt;/entry&amp;gt;&lt;/span&gt;&lt;br/&gt;
 &lt;span style="color: #FF0000;"&gt;&amp;lt;entry component="CmpIecTask" severity="exception" user="nobody"&amp;gt;&lt;em&gt;EXCEPTION&lt;/em&gt; &lt;span&gt;[AccessViolation]&lt;/span&gt; occurred: App=&lt;span&gt;[Main_Control]&lt;/span&gt;, Task=&lt;span&gt;[DefaultTask]&lt;/span&gt;&amp;lt;/entry&amp;gt;&lt;/span&gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpApp_Exception received: App=Main_Control, ulException=0x51 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_ConfigAppStoppedDone received &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_StopDone received: App=Main_Control, Reason=3 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb324f948, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb324f948, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb324d360, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb324d360, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb327d530, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb327d530, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb3285818, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb3285818, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb327db88, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb327db88, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_PrepareConfigAppStopped received &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_PrepareStop received: App=Main_Control, Reason=3 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_DenyStop received: App=Main_Control, Reason=3, bDeny=0 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;br/&gt;
    &amp;lt;entry component="hardware_v2" severity="information" user="nobody"&amp;gt;&lt;strong&gt;&lt;em&gt; EVT_CmpAppBP_CodePatch: Begin received: pbyCodePos=0xb324f948, nCodeLen=4 &lt;/em&gt;&lt;/strong&gt;&amp;lt;/entry&amp;gt;&lt;/p&gt;
&lt;p&gt;I've also found someone in the forum who got the same problem, though I don't know if he managed to resolve the issue&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=6147" rel="nofollow"&gt;viewtopic.php?f=21&amp;amp;t=6147&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;We are using runtime v3.5.6.10 on the target and Codesys 3.5 SP6 Patch 3&lt;/p&gt;
&lt;p&gt;Did anyone already got this problem and managed to resolve it ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Dave&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>