Code Monkey home page Code Monkey logo

Comments (7)

julien-tierny avatar julien-tierny commented on May 22, 2024

from ttk.

 avatar commented on May 22, 2024

I found an overflow. https://github.com/klacansky/ttk-testing/commit/dab76f0bb3647ee088ee915d4cc4bad07029f8cb

from ttk.

 avatar commented on May 22, 2024

The sort crashes, probably some other overflow as the value of b is -9.

Thread 1 "ttkFTMTreeCmd" received signal SIGSEGV, Segmentation fault.
0x00007ffff1a18fd1 in ttk::ftm::FTMTree_MT::isLower<unsigned short, long long> (this=0x66b5a0, a=1, b=-9)
    at /home/sci/klacansky/scratch/ttk/core/base/ftmTree/FTMTree_MT.h:686
686              return ((scalarType *)scalars_->values)[a] < ((scalarType *)scalars_->values)[b] ||
(gdb) bt
#0  0x00007ffff1a18fd1 in ttk::ftm::FTMTree_MT::isLower<unsigned short, long long> (this=0x66b5a0, a=1, b=-9)
    at /home/sci/klacansky/scratch/ttk/core/base/ftmTree/FTMTree_MT.h:686
#1  0x00007ffff1a1415f in void ttk::ftm::FTMTree_MT::sortInput<unsigned short, long long>()::{lambda(unsigned long const&, unsigned long const&)#1}::operator()(unsigned long const&, unsigned long const&) const (__closure=0x7fffffffd380,
    a=@0x7fffffffd358: 1, b=@0x7fffffffd350: 18446744073709551607)

from ttk.

 avatar commented on May 22, 2024

I fixed overflows (ones I found) and tested on a 2k^3 zeros field. The OpenMP stack overflow still needs work.

from ttk.

julien-tierny avatar julien-tierny commented on May 22, 2024

from ttk.

CharlesGueunet avatar CharlesGueunet commented on May 22, 2024

For the OpenMP stack overflow, I was able to solve the issue locally using the $OMP_STACKSIZE environnement variable (documented here)

from ttk.

 avatar commented on May 22, 2024

I was able to run a zero field success fully (64 bits enabled). @CharlesGueunet I would document the need to increase the stack size (or somehow do a check and return error if stack fails to grow, much easier with explicit stack).

from ttk.

Related Issues (20)

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.