Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
acfcd68e
Commit
acfcd68e
authored
May 08, 2017
by
Georg Martin Reinke
Browse files
fix segfault on shmem pool underrun
parent
72c90bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/VillasInterface.cpp
View file @
acfcd68e
...
...
@@ -51,7 +51,10 @@ void VillasInterface::readValues() {
void
VillasInterface
::
writeValues
(
SystemModel
&
model
)
{
struct
sample
*
sample
;
sample_alloc
(
&
mShmem
->
pool
,
&
sample
,
1
);
if
(
sample_alloc
(
&
mShmem
->
pool
,
&
sample
,
1
)
<
1
)
{
std
::
cerr
<<
"fatal error: shmem pool underrun"
<<
std
::
endl
;
std
::
exit
(
1
);
}
Int
len
=
0
;
for
(
auto
vd
:
mExportedVoltages
)
{
Real
real
=
0
,
imag
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment