Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on operator != for Floating Point #4905

Closed
jubnzv opened this issue Dec 18, 2020 · 0 comments
Closed

Segmentation fault on operator != for Floating Point #4905

jubnzv opened this issue Dec 18, 2020 · 0 comments

Comments

@jubnzv
Copy link

jubnzv commented Dec 18, 2020

Here is a minimal example:

#include <iostream>
#include "z3++.h"

int main() {
  z3::context c;
  auto fpa = c.fpa_val(0.1);
  std::cout << (fpa != 0) << std::endl;
}

Stack trace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a3ede4 in decl_plugin::mk_func_decl(int, unsigned int, parameter const*, unsigned int, expr* const*, sort*) () from /home/jubnzv/Dev/z3/build/libz3.so
(gdb) bt
#0  0x00007ffff7a3ede4 in decl_plugin::mk_func_decl(int, unsigned int, parameter const*, unsigned int, expr* const*, sort*) () from /home/jubnzv/Dev/z3/build/libz3.so
#1  0x00007ffff7a4b13c in ast_manager::mk_app(int, int, unsigned int, parameter const*, unsigned int, expr* const*, sort*) () from /home/jubnzv/Dev/z3/build/libz3.so
#2  0x00007ffff6c813b2 in Z3_mk_distinct () from /home/jubnzv/Dev/z3/build/libz3.so
#3  0x0000555555572e70 in z3::operator!=(z3::expr const&, int) ()
#4  0x000055555555ffec in main ()
@jubnzv jubnzv changed the title Segmentation fault on Floating point operator != Segmentation fault on operator != for Floating Point Dec 18, 2020
jubnzv added a commit to jubnzv/z3 that referenced this issue Dec 18, 2020
jubnzv added a commit to jubnzv/cppcheck that referenced this issue Dec 21, 2020
jubnzv added a commit to jubnzv/cppcheck that referenced this issue Dec 21, 2020
jubnzv added a commit to jubnzv/cppcheck that referenced this issue Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant