[cfe-dev] Clang produces corrupt pch leading to crash

Nikola Smiljanic popizdeh at gmail.com
Mon Jun 16 06:55:36 PDT 2014


Thanks for the detailed report! The only thing you can do more is try and
debug this yourself ;)


On Mon, Jun 16, 2014 at 8:33 PM, Tobias Hahn <tobias.hahn at ableton.com>
wrote:

> Hi all,
>
> I've run into (what I believe is) a memory bug with clang while producing
> a precompiled header. In short, under certain circumstances, clang will
> write a pch that causes a crash when trying to use this pch in a later
> compilation unit.
>
> Occasionally, while clang is compiling the pch, malloc complains that one
> of its checksums has been overwritten; while at other times, clang throws
> an error that a definition has a different exception specification than the
> declaration two lines above it (when both have no exception specification).
> Both these symptoms lead me to believe that somewhere clang overwrites
> memory.
>
> I have stripped the code that reliably causes this crash down to a few
> hundred lines and have created a little script to reproduce the bug
> (details at http://llvm.org/bugs/show_bug.cgi?id=20026). I'm not sure,
> however, about your process for handling such bugs, which is why I'm
> cross-posting here. My main question is if there is anything else I could
> provide you with to help fixing this issue.
>
> Thank you very much in advance!
>
> Best,
> Tobias
>
>
> Ableton AG, Schoenhauser Allee 6-7, 10119 Berlin, Germany
> Sitz (Registered Office) Berlin, Amtsgericht Berlin-Charlottenburg, HRB
> 72838
> Vorstand (Management Board): Gerhard Behles, Jan Bohl
> Vorsitzender des Aufsichtsrats (Chair of the Supervisory Board): Uwe Struck
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140616/2b637e20/attachment.html>


More information about the cfe-dev mailing list