#2999 closed defect (fixed)
Divide by zero in algorithm crashes omc
| Reported by: | 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 , 11 years ago
| Component: | Unknown → Run-time |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:3 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Closing own ticket. Seems to no longer be a problem.
comment:4 by , 10 years ago
| Milestone: | Future → pre1.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 , 8 years ago
| Milestone: | pre1.9.4 → 1.9.4 |
|---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
Note:
See TracTickets
for help on using tickets.

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!
So could you please fix this issue soon?
Thank you!
BR Jan