use of body-declared variable in loop annotation causes crash
ID0001997: This issue was created automatically from Mantis Issue 1997. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001997 | Frama-Clang | Plug-in > clang | public | 2014-11-27 | 2015-04-27 |
Reporter | Jochen | Assigned To | virgile | Resolution | open |
Priority | normal | Severity | crash | Reproducibility | always |
Platform | frama-c-Neon-20140301+dev-stance | OS | - | OS Version | xubuntu-cfe13.10 |
Product Version | - | Target Version | - | Fixed in Version | - |
Description :
output:
Now output intermediate result 161.cpp:3:[fclang] failure: Unknown local variable s [kernel] Current source was: 161.cpp:3 The full backtrace is: Raised at file "src/kernel/log.ml", line 524, characters 30-31 Called from file "src/kernel/log.ml", line 518, characters 9-16 Re-raised at file "src/kernel/log.ml", line 521, characters 15-16 Called from file "src/frama-clang/convert_acsl.ml", line 317, characters 18-77 Called from file "src/frama-clang/convert_acsl.ml", line 303, characters 13-52 Called from file "src/frama-clang/convert_acsl.ml", line 172, characters 38-72 Called from file "src/frama-clang/convert_acsl.ml", line 272, characters 4-30 Called from file "src/frama-clang/convert_acsl.ml", line 172, characters 38-72 Called from file "src/frama-clang/convert_acsl.ml", line 385, characters 13-38 Called from file "src/frama-clang/convert_acsl.ml", line 363, characters 11-42 Called from file "src/frama-clang/convert_acsl.ml", line 586, characters 14-40 Called from file "list.ml", line 57, characters 20-23 Called from file "src/frama-clang/convert.ml", line 1179, characters 18-70 Called from file "src/frama-clang/convert.ml", line 1275, characters 20-46 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 1265, characters 17-40 Called from file "src/frama-clang/convert.ml", line 2151, characters 21-44 Called from file "src/frama-clang/convert.ml", line 2262, characters 21-48 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 2266, characters 4-79 Called from file "src/frama-clang/frama_Clang_register.ml", line 86, characters 13-36 Called from file "src/kernel/file.ml", line 1073, characters 10-43 Called from file "src/kernel/file.ml", line 1117, characters 23-30 Called from file "list.ml", line 74, characters 24-34 Called from file "src/kernel/file.ml", line 1114, characters 6-520 Called from file "src/kernel/file.ml", line 2179, characters 12-30 Called from file "src/kernel/file.ml", line 2264, characters 4-27 Called from file "src/kernel/ast.ml", line 111, characters 2-28 Called from file "src/kernel/ast.ml", line 123, characters 53-71 Called from file "src/kernel/boot.ml", line 29, characters 6-20 Called from file "src/kernel/cmdline.ml", line 761, characters 2-9 Called from file "src/kernel/cmdline.ml", line 216, characters 4-8
Plug-in fclang aborted: internal error.
Please report as 'crash' at http://bts.frama-c.com/.
Your Frama-C version is Neon-20140301+dev-stance.
The problem remains if line 3 is changed to "//@ loop assigns s;", and if "s" is declared "static int" (in which case a reference to "s" in a loop annotation makes sense).