It looks like some kind of file IO buffer overflow. I'm not dumping any long strings at one time, but I am keeping the file open for the entire run. I've yet to find a correlation to other C files.<br><br><div class="gmail_quote">
On Fri, Oct 26, 2012 at 3:17 PM, Ryan Taylor <span dir="ltr"><<a href="mailto:ryta1203@gmail.com" target="_blank">ryta1203@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm getting seemingly odd SegFaults  when writing out using a raw_fd_ostream in the current trunk (last version worked, believe it was 153818, or similar). Again, nothing in the release notes... should I be scanning the svn log?<br>

<br>For example, I have something like:<br><br>raw_fd_ostream fout("out.txt", errorStr="");<br>....<br>fout<<"Hello World, how are you!"\n";<br><br>and it'll write out to the file, "Hello Wor" and then seg fault without assert.<br>

<br>Sadly, this only happens for certain C code, any idea why this might be occuring?<br><br>Also, during build I get a lot of these warnings:llvm/ADT/DenseMap.h: In copy constructor ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT>::DenseMap(const llvm::DenseMap<KeyT, ValueT, KeyInfoT>&) [with KeyT = unsigned int, ValueT = llvm::PointerAlignElem, KeyInfoT = llvm::DenseMapInfo<unsigned int>]’:<br>

<br>I'm guessing I messed up when updating somehow? I just used gmake update.<br><br>Thanks.<br>
</blockquote></div><br>