Giter Site home page Giter Site logo

Comments (4)

dilawar avatar dilawar commented on June 15, 2024

If function are moved out of moose.Stoich.path, deterministic solver produces the correct results but stochastic solver does produce correct results. Putting the function back into moose.Stoich.path causes segfault.

from moose-core.

dilawar avatar dilawar commented on June 15, 2024

Debug trace.

0x00007ffff2ef036d in std::vector<unsigned int, std::allocator<unsigned int> >::vector(std::vector<unsigned int, std::allocator<unsigned int> > const&) ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
(gdb) bt
#0  0x00007ffff2ef036d in std::vector<unsigned int, std::allocator<unsigned int> >::vector(std::vector<unsigned int, std::allocator<unsigned int> > const&) ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#1  0x00007ffff33950b1 in Gsolve::fillMathDep() ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#2  0x00007ffff3395c3b in Gsolve::rebuildGssaSystem() ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#3  0x00007ffff3396285 in Gsolve::reinit(Eref const&, ProcInfo const*) ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#4  0x00007ffff3118588 in SrcFinfo1<ProcInfo const*>::send(Eref const&, ProcInfo const*) const () from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#5  0x00007ffff310f1ce in Clock::handleReinit(Eref const&) ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#6  0x00007ffff30a772d in Shell::doReinit() ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#7  0x00007ffff2eadc35 in moose_reinit ()
   from /home_local/dilawars/Work/BhallaLab/moose-core/python/moose/_moose.so
#8  0x000000000049968d in PyEval_EvalFrameEx ()
#9  0x00000000004a090c in PyEval_EvalCodeEx ()
#10 0x0000000000499a52 in PyEval_EvalFrameEx ()
#11 0x0000000000499ef2 in PyEval_EvalFrameEx ()
#12 0x00000000004a1634 in ?? ()
#13 0x000000000044e4a5 in PyRun_FileExFlags ()
#14 0x000000000044ec9f in PyRun_SimpleFileExFlags ()
#15 0x000000000044f904 in Py_Main ()
#16 0x00007ffff7818ec5 in __libc_start_main (main=0x44f9c2 <main>, argc=2, 
    argv=0x7fffffffd7c8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffd7b8) at libc-start.c:287
#17 0x0000000000578c4e in _start ()

from moose-core.

dilawar avatar dilawar commented on June 15, 2024

Adding an assert statement at Stoich.cpp line no 570: assert(func_[i]) before returning this value.

/home_local/dilawars/Work/BhallaLab/moose-core/ksolve/Stoich.cpp:570: const FuncTerm* Stoich::funcs(unsigned int) const: Assertion `funcs_[i]' failed

from moose-core.

dilawar avatar dilawar commented on June 15, 2024

Fixed by recent commits.

from moose-core.

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.