Opened 8 years ago
Closed 8 years ago
#4722 closed defect (fixed)
Example of (tested) PNlib crashes on Win7
| Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.13.0 |
| Component: | Run-time | Version: | v1.13.0-dev-nightly |
| Keywords: | PNlib | Cc: | christoph.brinkrolf@… |
Description
Apparently, libsundials_idas.dll is missing from the OM installer.
Change History (8)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
There is still something fishy, but it is not related to the dlls.
comment:3 by , 8 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
| Summary: | libsundials_idas.dll is missing from the installer → Example of (tested) PNlib crashes on Win7 |
Compilation of PNlib.Examples.ConTest.PCtoTC is successful.
Using OMEdit i get:
Compilation process finished successfully.
Simulation then crashes without any helpful message, given output is:
stdout | OMEditInfo | <p>C:/Users/cbrinkrolf/AppData/Local/Temp/OpenModelica/OMEdit/PNlib.Examples.ConTest.PCtoTC/PNlib.Examples.ConTest.PCtoTC.exe -port=49462 -logFormat=xmltcp -override=startTime=0,stopTime=10,stepSize=0.02,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.* -r=C:/Users/cbrinkrolf/AppData/Local/Temp/OpenModelica/OMEdit/PNlib.Examples.ConTest.PCtoTC/PNlib.Examples.ConTest.PCtoTC_res.mat -w -lv=LOG_STATS -inputPath=C:/Users/cbrinkrolf/AppData/Local/Temp/OpenModelica/OMEdit/PNlib.Examples.ConTest.PCtoTC -outputPath=C:/Users/cbrinkrolf/AppData/Local/Temp/OpenModelica/OMEdit/PNlib.Examples.ConTest.PCtoTC</p> stdout | error | <p>Process crashed</p> stdout | error | <p>Process crashed<br> Simulation process failed. Exited with code -1073741819.</p>
OpenModelica 1.12. stable release is working fine for me, but (current) nightly v1.13.0-dev-354-gc5ca0a5 (64-bit) preduces this error.
comment:4 by , 8 years ago
gdb tells me this:
Thread 1 received signal SIGSEGV, Segmentation fault.
calc_base_index_spec (ndims=1, idx_vec=0x0, arr=arr@entry=0x1e9d7a0,
spec=spec@entry=0x1e9d740) at util/base_array.c:281
281 int d = idx_vec[i];
(gdb) bt
#0 calc_base_index_spec (ndims=1, idx_vec=0x0, arr=arr@entry=0x1e9d7a0,
spec=spec@entry=0x1e9d740) at util/base_array.c:281
#1 0x0000000000426521 in indexed_assign_integer_array (source=...,
dest=0x1e9d7a0, dest_spec=0x1e9d740) at util/integer_array.c:311
#2 0x000000000040babd in omc_Modelica_Math_Random_Utilities_initialStateWithXorshift64star ()
#3 0x000000000041438a in PNlib_Examples_ConTest_PCtoTC_eqFunction_72 ()
#4 0x0000000000415a30 in PNlib_Examples_ConTest_PCtoTC_functionInitialEquations_0 ()
#5 0x0000000000415dac in PNlib_Examples_ConTest_PCtoTC_functionInitialEquations ()
#6 0x000000000045bb11 in symbolic_initialization (data=0x1,
data@entry=0x1e9fdb0, threadData=0x1e9f9e0, threadData@entry=0x1e9f700)
at simulation/solver/initialization/initialization.c:216
#7 0x000000000045ce97 in initialization (data=data@entry=0x1e9fdb0,
threadData=threadData@entry=0x1e9f700,
pInitMethod=pInitMethod@entry=0x1e9f410 "",
pInitFile=pInitFile@entry=0x1e9f430 "", initTime=initTime@entry=0)
at simulation/solver/initialization/initialization.c:665
#8 0x0000000000448460 in initializeModel (data=0x1e9fdb0,
data@entry=0x1e9f430, threadData=0x1e9f700, threadData@entry=0x0,
init_initMethod=0x1e9f410 "",
init_initMethod@entry=0x8 <error: Cannot access memory at address 0x8>,
init_file=0x1e9f430 "", init_file@entry=0x0, init_time=0,
init_time@entry=5.9168202943951335e-316)
at simulation/solver/solver_main.c:462
#9 0x00000000004495bf in solver_main (data=0x1e9f430, data@entry=0x0,
threadData=0x0, threadData@entry=0x7235bd0,
init_initMethod=0x8 <error: Cannot access memory at address 0x8>,
init_file=0x0, init_time=<optimized out>, init_time@entry=0,
solverID=<optimized out>, solverID@entry=8,
outputVariablesAtEnd=<optimized out>,
outputVariablesAtEnd@entry=0x1e9efb0 "",
argv_0=0x7235bd0 "C:\\OMDev\\tools\\msys\\tmp\\OpenModelica\\OMEdit\\PNlib.Examples.ConTest.PCtoTC\\PNlib.Examples.ConTest.PCtoTC.exe",
argv_0@entry=0x1e9f3a0 "▒▒▒\001") at simulation/solver/solver_main.c:693
#10 0x00000000004636ce in callSolver (simData=0x0, simData@entry=0x1e9fdb0,
threadData=0x7235bd0, threadData@entry=0x1e9f700,
init_initMethod=<error reading variable: Cannot access memory at address 0x8>, init_file=<error reading variable: Cannot access memory at address 0x8>,
init_time=init_time@entry=0, outputVariablesAtEnd=...,
cpuTime=<optimized out>, cpuTime@entry=0, argv_0=<optimized out>,
argv_0@entry=0x7235bd0 "C:\\OMDev\\tools\\msys\\tmp\\OpenModelica\\OMEdit\\PNlib.Examples.ConTest.PCtoTC\\PNlib.Examples.ConTest.PCtoTC.exe")
at simulation/simulation_runtime.cpp:664
#11 0x00000000004646ba in startNonInteractiveSimulation (argc=argc@entry=1,
argv=argv@entry=0x7235b50, data=data@entry=0x1e9fdb0,
threadData=threadData@entry=0x1e9f700)
at simulation/simulation_runtime.cpp:506
#12 0x0000000000467174 in _main_SimulationRuntime (argc=1, argv=0x7235b50,
data=0x1e9fdb0, threadData=0x1e9f700)
at simulation/simulation_runtime.cpp:952
#13 0x000000000040b00b in main ()
follow-up: 6 comment:5 by , 8 years ago
| Component: | Installation program → Run-time |
|---|---|
| Keywords: | PNlib added |
| Owner: | removed |
| Priority: | high → blocker |
| Status: | reopened → assigned |
This need to be fixed for the next release.
I guess the issue has been introduced with OMCompiler/cbe247e.
comment:6 by , 8 years ago
Replying to lochel:
This need to be fixed for the next release.
I guess the issue has been introduced with OMCompiler/cbe247e.
Yes, you are right. After reverting OMCompiler/cbe247e, the PNlib example is working again.
comment:7 by , 8 years ago
| Owner: | set to |
|---|---|
| Status: | assigned → accepted |

Well, it seems that the dll exists in OpenModelica1.13.0-dev-64bit/bin, but is not found when a simulation executable is executed.
Everything works fine with v1.12.