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 171
    • Issues 171
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • 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
  • #499
Closed
Open
Issue created Jan 22, 2016 by mantis-gitlab-migration@mantis-gitlab-migration

Unexpected error (Invalid_argument("Z.shift_left: count argument must be positive"))

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


Id Project Category View Due Date Updated
ID0002201 Frama-C Plug-in > wp public 2016-01-22 2016-06-21
Reporter rcl Assigned To correnson Resolution fixed
Priority normal Severity minor Reproducibility always
Platform Linux OS Ubuntu OS Version 14.04
Product Version Frama-C Sodium Target Version - Fixed in Version Frama-C Aluminium

Description :

With the help of a custom csmith variant, a program was discovered that causes an unexpected error in the wp plugin. The following program is a reduced minimal example of the failing program discovered by csmith:

/*@ assigns \nothing; */
int main()
{
    int foo = 1;
    1 & (foo & 0x80000000000001LL) << 1;
    return 0;
}

The crash message is:

     Raised at file "src/wp/register.ml", line 579, characters 30-32
     Called from file "queue.ml", line 134, characters 6-20
     Called from file "src/kernel/boot.ml", line 37, characters 4-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
     
     Unexpected error (Invalid_argument("Z.shift_left: count argument must be positive")).
     Please report as 'crash' at http://bts.frama-c.com/.
     Your Frama-C version is Sodium-20150201.

Steps To Reproduce :

Save the aforementioned program into a file named test.c, then execute

frama-c -wp test.c

to cause the crash.

Attachments

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