Giter VIP home page Giter VIP logo

Comments (6)

DerDakon avatar DerDakon commented on July 29, 2024

Please add some debug info to findUseFlagCombis() in tatt/usecombis.py. Interesting would be the values of len(uselist), s, and r.

from tatt.

Whissi avatar Whissi commented on July 29, 2024

Does this help?

> /usr/lib/python3.5/site-packages/tatt/usecombis.py(42)findUseFlagCombis()
-> if config['usecombis'] == 0:
(Pdb) p len(uselist)
20
(Pdb) p s
*** NameError: name 's' is not defined
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(49)findUseFlagCombis()
-> elif len(uselist) > math.log(config['usecombis'],2):
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(51)findUseFlagCombis()
-> s = 2**(len (uselist))
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(52)findUseFlagCombis()
-> rnds = set()
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(53)findUseFlagCombis()
-> random.seed()
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(54)findUseFlagCombis()
-> while len(swlist) < config['usecombis'] and len(rnds) < s:
(Pdb) p rnds
set()
(Pdb) p s
1048576
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(55)findUseFlagCombis()
-> r = random.randint(0, s-1)
(Pdb) n
> /usr/lib/python3.5/site-packages/tatt/usecombis.py(56)findUseFlagCombis()
-> if r in rnds:
(Pdb) p r
710324
(Pdb) p rnds
set()

from tatt.

DerDakon avatar DerDakon commented on July 29, 2024

looks sensible so far. does r repeat it's value after a while or are things properly random?

from tatt.

Whissi avatar Whissi commented on July 29, 2024

Would call it random, see (print added in line 56):
tatt-debug.log.gz

from tatt.

Whissi avatar Whissi commented on July 29, 2024

Bug https://bugs.gentoo.org/show_bug.cgi?id=641566 is another bug which is triggering the loop.

from tatt.

Whissi avatar Whissi commented on July 29, 2024

I run into the same problem for a bug which was previously working with tatt (bug 631800). Reverting commit 8dd9253 fixed the problem for me.

from tatt.

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.