Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#2999 closed defect (fixed)

Divide by zero in algorithm crashes omc

Reported by: crupp@… Owned by: Willi Braun
Priority: critical Milestone: 1.9.4
Component: Run-time Version: trunk
Keywords: Cc:

Description

Sometimes one makes the silly mistake of dividing by zero, but it shouldn't be crashing the omc.

Crashing since r23516 and somewhat earlier.

loadString("
model crash_bug
  Real pos = crash_func();
end crash_bug;

function crash_func
  import Modelica.Math.Vectors;
  output Real A;
algorithm
    A := 1.0 / 0.0;
end crash_func;
");

checkModel(crash_bug); // crashes omc!

Change History (5)

comment:1 by Lennart Ochel, 10 years ago

Component: UnknownRun-time
Owner: changed from somebody to Willi Braun
Status: newassigned

comment:2 by Jan Kokert, 10 years ago

Hi!
I experience this issue in my models from time to time without being "silly". Sometimes div/0 is just not so obvious. A crash of OM (or at least OMEdit) is then very annoying!
In my models the crash happens also in the equation part!
So could you please fix this issue soon?
Thank you!
BR Jan

Last edited 10 years ago by Jan Kokert (previous) (diff)

comment:3 by crupp@…, 9 years ago

Resolution: fixed
Status: assignedclosed

Closing own ticket. Seems to no longer be a problem.

comment:4 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:5 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.