<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>After debuging I have been able to fix the issue;</div>
<div> </div>
<div> </div>
<div>I changed 2 lines on PeepholeOptimizer.cpp </div>
<div>Line 410:</div>
<div>from: <font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">for</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> (MachineFunction::iterator
 I = MF.begin(), E = MF.end(); I != E; ++I) {</font></font>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">to:  </font></font><font size="2" face="Consolas"><font size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">for</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
 (MachineFunction::iterator I = MF.begin(); I !=MF.end(); ++I) {</font></font></font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font></font></font> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">And line 421</font></font></font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">from: <font size="2" face="Consolas"><font size="2" face="Consolas">MII = I->begin(), MIE = I->end(); MII != MIE; ) {</p>
<p></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">to:  
<font size="2" face="Consolas"><font size="2" face="Consolas">MII = I->begin() ; MII != I->end(); ) {</font></font></font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font></font></font> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">This fixes teh problem, but I suspect that it comes from
<font size="2" face="Consolas"><font size="2" face="Consolas">OptimizeExtInstr as it seems removesome items from the vector.</font></font></font></font></font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font></font></font></font></font> </p>
<p>I'll do a full rebuild with this change and check if this fixes my issues.</p>
<p> </p>
<p>How should I manage this change? my fix, should work, but the may be the issue is located at other function, does the
<font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#000000">PeepholeOptimizer.cpp have owner?</font></p>
</font></font></font>
<p> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas">Unai.<font size="2" face="Consolas"><font size="2" face="Consolas"></p>
</font></font></font></font></font></font></font></font>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"><font size="2" face="Consolas"> </p>
</font></font></font></font></font></font></font></font></div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF261859"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Unai Landa<br>
<b>Sent:</b> Tuesday, July 24, 2012 1:09 PM<br>
<b>To:</b> cfe-dev@cs.uiuc.edu<br>
<b>Subject:</b> RE: [cfe-dev] More LLVM on VC2010 fun<br>
</font><br>
</div>
<div></div>
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>Building the versio with debug information, I found that the crash is at the
<font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">
<p> </p>
<p>bool</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas"> PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF)</font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">Functio at the PeepholeOptimizer.cpp line 460, I think there is some erro sit the stl iterator behabiour.</font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">Is there any way to check if any bugfix to that funtion has been done siende 3.1 release?</font></font></p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font> </p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">Unai</p>
</font></font></div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF729402"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Unai Landa<br>
<b>Sent:</b> Monday, July 23, 2012 5:36 PM<br>
<b>To:</b> cfe-dev@cs.uiuc.edu<br>
<b>Subject:</b> RE: [cfe-dev] More LLVM on VC2010 fun<br>
</font><br>
</div>
<div></div>
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>Hi all, after building the svn 3.1 version ussing the DEBUG target I have been able to compile withoit crashes, I'll continue uptating the bug database.</div>
<div> </div>
<div>As I coment in the bug this kind of bug usually is caused by uninitialized memory or bad stl use, I'll build a RELEASE target with debug information so I can try to find the crash.</div>
<div> </div>
<div>Unai<br>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<div>
<div>
<div class="gmail_quote">On Thu, Jul 19, 2012 at 3:00 AM, Unai Landa <span dir="ltr">
<<a href="mailto:ulanda@digital-legends.com" target="_blank">ulanda@digital-legends.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; FONT-SIZE: 13px">
<div>Hello, after some test my latest clang+llvm build "almsot worked" but I was experiencinf some crashes.</div>
<div> </div>
<div>I found the experimental win32 binry on the repo, so I donwnloaded and tested it on other machine and that version works fine, so I got mu svn pointing to the llvn and clang 31 release final tag and recompiled it.</div>
<div> </div>
<div>That improved my build (running on w7 profesional 64bits) but my clang still crashes on some files that with the provided 32bit binary work, so how can try to find/fix it...</div>
<div> </div>
<div>All Im geting is somethng like this:</div>
<div><font size="1">
<p>1>Stack dump:</p>
<p> </p>
<p>1>1. <eof> parser at end of file</p>
<p>1>2. Code generation</p>
<p>1>3. Running pass 'Function Pass Manager' on module 'c:/DLE/krmwork/krm/src/anm/codecs/CCodecMgr.cpp'.</p>
<p>1>4. Running pass 'Peephole Optimizations' on function <a href="mailto:'@_ZNK3krm3anm9CCodecMgr11GetPositionEfj'" target="_blank">
'@_ZNK3krm3anm9CCodecMgr11GetPositionEfj'</a></p>
<p> </p>
<p><font size="+0">What should I do? with 3.2 there are less crahses but without any info.</font></p>
<span class="HOEnZb"><font color="#888888">
<p><font size="+0"></font> </p>
<p><font size="+0"></font> </p>
<p><font size="+0">Unai</font></p>
</font></span></font></div>
</div>
</div>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>