catching a superclass causes crash
ID0002051: This issue was created automatically from Mantis Issue 2051. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0002051 | Frama-Clang | Plug-in > clang | public | 2015-01-15 | 2015-02-14 |
Reporter | Jochen | Assigned To | virgile | Resolution | open |
Priority | normal | Severity | crash | Reproducibility | always |
Platform | Neon-20140301+dev-STANCE-Jan2015 | OS | - | OS Version | xubuntu-cfe13.10 |
Product Version | - | Target Version | - | Fixed in Version | - |
Description :
output:
Now output intermediate result [fclang] failure: Did not find struct for mangled class name _Z9Underflow [kernel] Current source was: 432.cpp:6 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_link.ml", line 71, characters 36-53 Called from file "src/lib/FCSet.ml", line 332, characters 37-58 Called from file "src/frama-clang/convert_link.ml", line 86, characters 16-112 Called from file "src/frama-clang/convert_link.ml", line 104, characters 16-62 Called from file "list.ml", line 57, characters 20-23 Called from file "src/frama-clang/convert_link.ml", line 102, characters 12-142 Called from file "src/kernel/visitor.ml", line 75, characters 14-33 Called from file "cil/src/cil.ml", line 2046, characters 15-31 Called from file "cil/src/cil.ml", line 3095, characters 5-86 Called from file "cil/src/cil.ml", line 2085, characters 13-16 Called from file "cil/src/cil.ml", line 3255, characters 16-40 Called from file "cil/src/cil.ml", line 2061, characters 21-41 Called from file "cil/src/cil.ml", line 3484, characters 14-39 Called from file "cil/src/cil.ml", line 2061, characters 21-41 Called from file "cil/src/cil.ml", line 3446, characters 5-91 Called from file "cil/src/cil.ml", line 3538, characters 16-38 Called from file "cil/src/cil.ml", line 2085, characters 13-16 Called from file "cil/src/cil.ml", line 2130, characters 24-57 Called from file "cil/src/cil.ml", line 3532, characters 5-53 Called from file "cil/src/cil.ml", line 6151, characters 16-36 Called from file "list.ml", line 69, characters 12-15 Called from file "cil/src/cil.ml", line 5741, characters 3-30 Called from file "cil/src/cil.ml", line 6152, characters 2-420 Called from file "cil/src/cil.ml", line 2061, characters 21-41 Called from file "cil/src/cil.ml", line 6185, characters 7-84 Called from file "src/kernel/file.ml", line 1803, characters 2-8 Called from file "queue.ml", line 134, characters 6-20 Called from file "src/kernel/file.ml", line 1880, characters 2-36 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 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 some member variable (e.g. "int x;") is added to the body of class "Matherr" in line 2 or/and the body of class "Underflow" in line 3.
The problem disappears if either: (1) the definition of "Underflow" in line 3 is deleted, (2) the definition of "foo" in line 5-10 is deleted, (3) "Matherr" is changed to "Underflow" in the catch statement in line 8, or (4) "public" is changed to "private" in line 3.