Closed james-d-mitchell closed 12 months ago
@dimpase, there were some leaks in Semigroups and downstream in Digraphs that are now resolved (I think, final checking tomorrow). I don’t think they accounted for the std::bad_allocs seen above though, they were mostly some memory allocated on start up, so fixed in size and not growing. Im going to check if it’s still an issue on the openBSD machine tomorrow.
@dimpase I'm trying to check if this resolves the std::bad_alloc
s that you observed above on the openbsd machine that you gave me access to, but I'm getting:
Error, LOAD_DYN: failed to load kernel module /home/jdm/gap/pkg/Semigroups//bin/x86_64-unknown-openb\
sd7.3-default64-kv9/semigroups.so, Cannot load specified object in
LOAD_DYN( filename ) at /home/jdm/gap/lib/files.gd:594 called from
<function "LoadDynamicModule">( <arguments> )
called from read-eval loop at /home/jdm/gap/pkg/Semigroups/init.g:22
Error, was not in any namespace at /home/jdm/gap/lib/variable.g:269 called from
LEAVE_NAMESPACE( ); at /home/jdm/gap/lib/package.gi:1324 called from
ReadPackage( pkgname, "init.g" ); at /home/jdm/gap/lib/package.gi:1697 called from
<function "LoadPackage">( <arguments> )
called from read-eval loop at *stdin*:1
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>
Any ideas how I can resolve this?
export LD_LIBRARY_PATH=
then start GAP in this shell
(cf comments on this issue)
it should point to the location of libsemigroups.so
Aha, thanks, that works. When using the vendored libsemigroups wouldn't it make sense to set LD_LIBRARY_PATH so that this works automatically?
the better way is to use -rpath mechanism, so that in the kernel module semigroups.so the location of libsemigroup.so is baked in. That's something I've promised to implement, hopefully today.
Great, thank you very much @dimpase
Great, thank you very much @dimpase
See #954 - ready for review. @fingolfin
Resolved in v5.3.0, thanks @fingolfin and @dimpase
Leaking/broken test is apparently
semigroups/tst/standard/semigroups/semidp.tst
andsemigroups/tst/standard/semigroups/semiquo.tst
, possibly more, only when run withacting methods disabled
.So here what all the logs I made have in common:
Also,when it comes to running these tests, memory used by GAP shots up by about 1GB - another indication of a leak to me.
Originally posted by @dimpase in https://github.com/semigroups/Semigroups/issues/942#issuecomment-1712458666