﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3345	omc crashes with stack overflow	Alexander Täschner <A.Taeschner@…>	Lennart Ochel	"Trying to find a workaround for bug #3089 for the HelmholtzMedia library, I slightly changed the inner structure of the model. With this changes omc can flatten the model, but crashes with a stack overflow while generating the simulation code:

Unhandled exception at 0x020992F8 (libOpenModelicaCompiler.dll) in omc.exe: 0xC00000FD: Stack overflow (parameters: 0x00000001, 0x00412F58).

One can test it with the test.mos at <https://github.com/AlexanderTaeschner/HelmholtzMedia/tree/master/HelmholtzMedia>.

The command line ""c:\OpenModelica1.9.2Nightly\bin\omc.exe +d=dumpdaelow,optdaedump,bltdump,dumpindxdae,backenddaeinfo test.mos > test.log 2>&1"" produced the attached ""test.log"". The used omc version on windows is 1.9.2+dev (r24630)."	defect	closed	critical	1.9.4	Code Generation	trunk	fixed		
