[cfe-dev] How to avoid Segmentation Fault 11 on infinite recursion?
David Blaikie via cfe-dev
cfe-dev at lists.llvm.org
Wed Jun 26 12:00:17 PDT 2019
You just have to hardcode in limits (avoid recursion as much as reasonable,
reduce stack frame sizes, etc - but ultimately you'll want counters in to
bail out at very deep recursions, like Clang has).
On Wed, Jun 26, 2019 at 11:57 AM Andrey Sharoyko via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hi.
>
> I am writing a simple interpreter using C++ and I need to throw exception
> on infinite recursion.
> Currently the program falls with Segmentation fault 11.
> Is there a method to avoid it?
>
> Thank you,
> Andrey Sharoyko.
> ----
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190626/d0344428/attachment.html>
More information about the cfe-dev
mailing list