Giter Club home page Giter Club logo

libtsqubo's People

Contributors

rliang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

libtsqubo's Issues

segfault using test program

Hi

I tried to use your library but I received a Segmentation fault when executing the code in the README (I had to modify the call to tsqubo_instance_new because it needs a parameter.

The error was:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401b50 in compare_double (q=0x418cb0, v_=0x418df0, a=23, b=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:227
227 return v[q->N[a]] < v[q->N[b]] || (v[q->N[a]] == v[q->N[b]] && q->N[a] < q->N[b]);
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.37-4.fc38.x86_64 libgcc-13.1.1-1.fc38.x86_64 libstdc++-13.1.1-1.fc38.x86_64
(gdb) bt
#0 0x0000000000401b50 in compare_double (q=0x418cb0, v_=0x418df0, a=23, b=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:227
#1 0x0000000000401c88 in ipq_sift_up (q=0x418cb0, dx=0x418df0,
compare=0x401b10 <compare_double(ipq const*, void const*, size_t, size_t)>, k=11)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:235
#2 0x00000000004025ec in tsqubo_flip_current (ts=0x418c50, i=1)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:411
#3 0x00000000004029f8 in tsqubo_iterate (ts=0x418c50, ttc=10)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:479
#4 0x0000000000402a4b in tsqubo_iterate_cutoff (ts=0x418c50, ttc=10, cutoff=5)
at /home/rbras/trabalho/projDiogo-2022/software/libtsqubo-master/tsqubo.h:493
#5 0x0000000000402b69 in main () at test1.cpp:20
(gdb) print q
$1 = (const ipq *) 0x418cb0
(gdb) print *q
$2 = {N = 0x418e30, I = 0x418e50, size = 18446744073709551614}

Best regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.