JonasToth added a comment.

@sbenza and @klimek the issue that occurs here is probably ASTMatchers related, 
thats why I added you.

The problem:

This patch introduces a stack overflow when building with `RelWithDebInfo` that 
is caught by the sanitizers. I isolated the issue in the big switch statements 
that has 256 case labels. On label 200 the overflow occurs, that is noted with 
a comment.
What I found while debugging is, that no matter which matcher I use the 
overflow occurs. The toplevel function is `parseAST` and then executing the 
frontend actions.

I think the problem is that every case label adds multiple recursive function 
calls coming from the nature of how case labels are stored in the AST. That 
produces the massive stack. Is there a way I could work around this Issue in 
the check?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D40737



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to