[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[creduce-bugs] Crash during replace-function-def-with-decl

Hi Markus,

Thanks for the bug report!

I can reproduce it. The crash happens in the Clang's parser, i.e. 
clang::ParseAST. On the other hand, I can't say it's a Clang bug because 
apparently the Clang standalone doesn't crash on this test case. So, it 
could be the case where some clang_delta's initialization code triggers 
the bug. It's hard to dig into Clang's implementation to locate the 
source. I will leave this bug open and check what would happen in 
Clang's next release.

- Yang

On 9/25/13 10:08 AM, Markus Trippelsdorf wrote:
> With remotes/origin/llvm-svn-compatible branch I get:
> markus at x4 /tmp % /var/tmp/creduce/clang_delta/clang_delta --query-instances=replace-function-def-with-decl test.ii
> Stack dump:
> 0.      test.ii:998:880: current parser token ';'
> 1.      test.ii:998:1: parsing struct/union/class body 'nsStringCaseInsensitiveHashKey'
> 2.      test.ii:998:700: parsing function body 'HashKey'
> [1]    7542 segmentation fault  /var/tmp/creduce/clang_delta/clang_delta  test.ii