declaration of static class-type variable in function body causes crash
ID0002109: This issue was created automatically from Mantis Issue 2109. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0002109 | Frama-Clang | Plug-in > clang | public | 2015-04-27 | 2015-05-07 |
Reporter | Jochen | Assigned To | virgile | Resolution | open |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | Sodium-20150201 | OS | - | OS Version | xubuntu14.04 |
Product Version | - | Target Version | - | Fixed in Version | - |
Description :
output:
[kernel] Parsing FRAMAC_SHARE/libc/__fc_builtin_for_normalization.i (no preprocessing) [kernel] Parsing 472.cpp (external front-end) Now output intermediate result 472.cpp:5:[fclang] failure: Unknown local variable a [kernel] Current source was: 472.cpp:5 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 "convert.ml", line 256, characters 8-39 Called from file "convert.ml", line 441, characters 33-55 Called from file "convert.ml", line 485, characters 29-52 Called from file "convert.ml", line 894, characters 29-54 Called from file "list.ml", line 84, characters 24-34 Called from file "convert.ml", line 891, characters 4-213 Called from file "convert.ml", line 910, characters 24-55 Called from file "convert.ml", line 972, characters 31-71 Called from file "convert.ml", line 1201, characters 20-53 Called from file "convert.ml", line 1344, characters 20-46 Called from file "list.ml", line 84, characters 24-34 Called from file "convert.ml", line 1334, characters 17-40 Called from file "convert.ml", line 2508, characters 21-44 Called from file "convert.ml", line 2642, characters 21-41 Called from file "list.ml", line 84, characters 24-34 Called from file "convert.ml", line 2645, characters 4-74 Called from file "frama_Clang_register.ml", line 120, characters 13-36 Called from file "src/kernel/file.ml", line 1248, characters 8-41 Called from file "src/kernel/file.ml", line 1296, characters 23-30 Called from file "list.ml", line 84, characters 24-34 Called from file "src/kernel/file.ml", line 1293, characters 6-864 Called from file "src/kernel/file.ml", line 2287, characters 12-30 Called from file "src/kernel/file.ml", line 2372, 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 763, 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 Sodium-20150201.
The crash disappears if: (1) the type of "a" is changed from "A" to "int" in line 5, or (2) the "static" is removed in line 5.
Additional Information :
Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)