Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #887

use of initialized array causes crash

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


Id Project Category View Due Date Updated
ID0001986 Frama-Clang Plug-in > clang public 2014-11-24 2015-02-15
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 149.cpp:4:[fclang] failure: Unknown local variable a [kernel] Current source was: 149.cpp:4 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.ml", line 210, characters 8-39 Called from file "src/frama-clang/convert.ml", line 387, characters 33-55 Called from file "src/frama-clang/convert.ml", line 434, characters 29-52 Called from file "src/frama-clang/convert.ml", line 567, characters 29-52 Called from file "src/frama-clang/convert.ml", line 421, characters 29-52 Called from file "src/frama-clang/convert.ml", line 1082, characters 25-48 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 disappears if "a" isn't initialized in line 3, i.e. if "= {11,22,33}" is removed there.

Attachments

  • 149.cpp
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking