Hi everyone,
I think I can recreate the behaviour (wsl2, ubuntu 20.04, kernel
4.19.104-microsoft-standard).
I pumped the loop in foo.py from 100 to 10000 and the used ressource
climbs steadily from ~30k to 60k.
This happens under g++9.3 and clang++-12.
I'll investigate further when I have the time.
Best regards,
Philipp
Le 2022-01-29 12:54, Yechuan Xia a écrit :
The foo.py example prints increasing values for me. I
attach the
output.
I am using a WSL environment(Linux version 4.4.0-19041-Microsoft).
I use gcc version 9.3.0 to compile the tarball.
The Spot version I used was Spot-2.9.7, now I have updated to
Spot-2.10.3 and they produce the same output.
On Sat, Jan 29, 2022 at 4:00 AM Alexandre Duret-Lutz
<adl(a)lrde.epita.fr> wrote:
Yechuan Xia <xiaozi465(a)gmail.com> writes:
On my machine, an example like this results in a
leak:
aut = spot.translate(spot.formula('(F(p & X(p & Xh)) & G((!h | Xp)
&
(!m | X!p))) | (F(h & X!p) & G((!m | X!p)
& (!p | X(!p |
X!h))))'))
for i in range(100):
newaut = spot.automaton(aut.to_str())
for i in range(0, 10):
for t in newaut.out(i):
pass
del newaut
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)
Indeed, the out_iteraser method is really a bit inconvenient to
use ;
)
The attached example always print the same value for me, so no leak.
Do you see those values increasing?
Can you tell me more about your setup? What version of Spot do
you use ? did you build it yourself (and if so how), or did you use
some
precompiled binaries ?
_______________________________________________
Spot mailing list -- spot(a)lrde.epita.fr
To unsubscribe send an email to spot-leave(a)lrde.epita.fr