Opened 11 years ago

Closed 11 years ago

#2448 closed defect (fixed)

Dependency analysis caught in stack overflow

Reported by: Martin Sjölund Owned by: Per Östlund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description

NFSCodeDependency seems to be unable to handle Buildings.Fluid.Movers.Examples.FlowMachine_y_pumpCurves. That is fine, but omc should not crash (also RML fails to handle this):

Evaluating: loadModel(Buildings, {"latest"})
true
Evaluating: simulate(Buildings.Fluid.Movers.Examples.FlowMachine_y_pumpCurves)
Execution failed!
Stack overflow detected and was not caught.
Send us a bug report at https://trac.openmodelica.org/OpenModelica/newticket
    Include the following trace:
...
[bt] #50           /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_NFSCodeDependency_analyseItem+0x217) [0x7f2ede157217]
[bt] #51           /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_NFSCodeDependency_analyseClass+0xa6) [0x7f2ede1579d6]
...

Change History (1)

comment:1 by Per Östlund, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r17908. FlowMachine_y_pumpCurves now flattens but does not simulate.

Note: See TracTickets for help on using tickets.