dtm
dtm copied to clipboard
Invalid free error when running
Hi,
I was able to compile using make
. However when I try to run using the instructions from https://markroxor.github.io/gensim/static/notebooks/dtm_example.html
I get the following error:
*** glibc detected *** /n/home09/hxue/dtm/bin/dtm-linux64: free(): invalid pointer: 0x000000000061cc18 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x75e66)[0x2b396cbfbe66] /n/sw/fasrcsw/apps/Core/gcc/7.1.0-fasrc01/lib64/libstdc++.so.6(_ZNSs6assignERKSs+0x92)[0x2b396c40eca2] /n/sw/fasrcsw/apps/Core/gflags/2.1.2-fasrc01/lib/libgflags.so.2(+0x6dbb)[0x2b396c124dbb] /n/sw/fasrcsw/apps/Core/gflags/2.1.2-fasrc01/lib/libgflags.so.2(+0x8caf)[0x2b396c126caf] /n/sw/fasrcsw/apps/Core/gflags/2.1.2-fasrc01/lib/libgflags.so.2(+0x9ce7)[0x2b396c127ce7] /n/home09/hxue/dtm/bin/dtm-linux64[0x4162fc] /lib64/libc.so.6(__libc_start_main+0xfd)[0x2b396cba4d5d] /n/home09/hxue/dtm/bin/dtm-linux64[0x402ea9]
Alternatively, I also tried directly running the precompiled binary and ran into the following error:
./dtm-linux64: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory
Any idea what might be going wrong here?
Thanks!
The first issue is probably related to the gflags library you are using. The second issue is because your system provides a version of GSL other than the expected by 'dtm-linux64'.
A solution to the first issue is to use a newer version of gflags (currently 2.2.1).
Regarding the second issue, I have just uploaded new binaries for Linux, all of them statically linked against gflags and gsl. Could you download 'dtm-linux64' again and test it?
I was able to compile this time and run the version compiled on my machine without any issues.
For the updated version of dtm-linux64 though, I got the message
FATAL: kernel too old Aborted
.
This is fine though because compiling from scratch seems to be working fine this time around. Thanks so much!!!