Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
    • Contributors
    • Graph
    • Compare
  • Issues 209
    • Issues 209
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #890

Closed
Open
Created Nov 17, 2014 by Jochen Burghardt@burghardt

use of template class from namespace causes crash

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


Id Project Category View Due Date Updated
ID0001971 Frama-Clang Plug-in > clang public 2014-11-17 2015-02-15
Reporter Jochen Assigned To virgile Resolution fixed
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 :

The file attached to issue #1970 (closed) can be simplified somewhat further while still causing the same crash message (however with a possibly different call stack - I didn't check that):

Now output intermediate result 135a.cpp:3:[fclang] failure: Unknown aggregate type std::vector<...> [kernel] Current source was: 135a.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_env.ml", line 269, characters 43-71 Called from file "src/frama-clang/convert.ml", line 162, characters 17-69 Called from file "src/frama-clang/convert.ml", line 170, characters 17-52 Called from file "list.ml", line 57, characters 20-23 Called from file "src/frama-clang/convert.ml", line 1283, characters 13-45 Called from file "src/frama-clang/convert.ml", line 1910, characters 8-66 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 1998, characters 19-78 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.

Again, the problem disappears if the namespace environment is omitted (i.e. line 2,4 deleted, prefix "std::" deleted in line 6). It also disappears if "vector" is made an unparametrized class, i.e. if "template" is deleted in line 3 and "" is deleted in line 6.

Attachments

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