Skip to content

access to nested union/struct component causes crash

ID0001803: This issue was created automatically from Mantis Issue 1803. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001803 Frama-Clang Kernel public 2014-06-06 2015-02-14
Reporter Jochen Assigned To virgile Resolution open
Priority normal Severity crash Reproducibility always
Platform - OS xubuntu-cfe13.10 OS Version -
Product Version Frama-C Neon-20140301 Target Version - Fixed in Version -

Description :

If, in the resolved issue #1754 (closed), the outermost "struct" is changed to "union" (file "1_4_2us.cpp"), the crash re-appears:

Now output intermediate result 1_4_2us.cpp:2:[fclang] failure: No usable default constructor for _s::_w [kernel] Current source was: 1_4_2us.cpp:2 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 1367, characters 30-75 Called from file "convert.ml", line 1399, characters 17-43 Called from file "list.ml", line 74, characters 24-34 Called from file "convert.ml", line 1425, characters 23-65 Called from file "convert.ml", line 1802, characters 21-133 Called from file "list.ml", line 74, characters 24-34 Called from file "convert.ml", line 1876, characters 19-78 Called from file "convert.ml", line 2102, characters 21-48 Called from file "list.ml", line 74, characters 24-34 Called from file "convert.ml", line 2106, characters 4-79 Called from file "frama_Clang_register.ml", line 82, characters 13-36 Called from file "src/kernel/file.ml", line 1058, characters 10-43 Called from file "src/kernel/file.ml", line 1102, characters 23-30 Called from file "list.ml", line 74, characters 24-34 Called from file "src/kernel/file.ml", line 1099, characters 6-520 Called from file "src/kernel/file.ml", line 2144, characters 12-30 Called from file "src/kernel/file.ml", line 2229, characters 4-27 Called from file "src/kernel/ast.ml", line 113, characters 2-28 Called from file "src/kernel/ast.ml", line 125, characters 53-71 Called from file "src/kernel/boot.ml", line 29, characters 6-20 Called from file "src/kernel/cmdline.ml", line 735, characters 2-9 Called from file "src/kernel/cmdline.ml", line 214, 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.

If instead, or additionally, the inner "struct" is changed to "union" (files "1_4_2su.cpp" and "1_4_2uu.cpp"), a strange warning is issued:

Now output intermediate result 1_4_2su.cpp:3:[kernel] warning: Calling undeclared function Frama_C_memcpy. Old style K&R code?

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information