Hi,
when trying to import a the inference and draw submodule, a script running with dmtcp_launch throws a segmentation fault error.
Here is a minimum working example:
dmtcp_test.py
from graph_tool import inference, draw # Segmentation fault
from graph_tool import centrality, clustering, collection, dynamics, flow, generation, search, spectral, stats, topology, util # no segmentation fault
# draw segmentation fault
# inference segmentation fault
def printText():
print("Hello World!")
if __name__ == '__main__':
printText()
$ dmtcp_launch python analysis/components/dmtcp_test.py
segmentation fault:
(gt2) julian@DESKTOP:~/InfluenceNetworks$ dmtcp_launch python analysis/components/dmtcp_test.py
[2023-08-08T17:17:20.201, 40000, 40000, WARNING] at dlwrappers.cpp:76 in dlopen; REASON='JWARNING(ret) failed'
filename = /home/julian/anaconda3/envs/gt2/lib/python3.11/site-packages/mkl/../../../libmkl_tbb_thread.so.2
flag = 5
Message: dlopen failed!
You may also see a message 'ERROR: ld.so:'
from libdl.so.
If this happens only under DMTCP, then consider setting the
environment variable 'DMTCP_DL_PLUGIN' to "0" before
'dmtcp_launch'.
If the problem persists, please write to the DMTCP developers.
[2023-08-08T17:17:20.264, 40000, 40000, WARNING] at dlwrappers.cpp:76 in dlopen; REASON='JWARNING(ret) failed'
filename = libmemkind.so
flag = 1
Message: dlopen failed!
You may also see a message 'ERROR: ld.so:'
from libdl.so.
If this happens only under DMTCP, then consider setting the
environment variable 'DMTCP_DL_PLUGIN' to "0" before
'dmtcp_launch'.
If the problem persists, please write to the DMTCP developers.
[2023-08-08T17:17:20.537, 41000, 41000, WARNING] at signalwrappers.cpp:152 in sigaction; REASON='JWARNING(false) failed'
stopSignal = 12
Message: Application trying to use DMTCP's signal for it's own use.
You should employ a different signal by setting the
environment variable DMTCP_SIGCKPT to the number
of the signal that DMTCP should use for checkpointing.
(Further warnings will be suppressed.)
Segmentation fault
no segmentation fault:
(gt2) julian@DESKTOP:~/InfluenceNetworks$ dmtcp_launch python analysis/components/dmtcp_test.py
[2023-08-08T17:25:56.085, 40000, 40000, WARNING] at dlwrappers.cpp:76 in dlopen; REASON='JWARNING(ret) failed'
filename = /home/julian/anaconda3/envs/gt2/lib/python3.11/site-packages/mkl/../../../libmkl_tbb_thread.so.2
flag = 5
Message: dlopen failed!
You may also see a message 'ERROR: ld.so:'
from libdl.so.
If this happens only under DMTCP, then consider setting the
environment variable 'DMTCP_DL_PLUGIN' to "0" before
'dmtcp_launch'.
If the problem persists, please write to the DMTCP developers.
[2023-08-08T17:25:56.108, 40000, 40000, WARNING] at dlwrappers.cpp:76 in dlopen; REASON='JWARNING(ret) failed'
filename = libmemkind.so
flag = 1
Message: dlopen failed!
You may also see a message 'ERROR: ld.so:'
from libdl.so.
If this happens only under DMTCP, then consider setting the
environment variable 'DMTCP_DL_PLUGIN' to "0" before
'dmtcp_launch'.
If the problem persists, please write to the DMTCP developers.
[2023-08-08T17:25:56.149, 41000, 41000, WARNING] at signalwrappers.cpp:152 in sigaction; REASON='JWARNING(false) failed'
stopSignal = 12
Message: Application trying to use DMTCP's signal for it's own use.
You should employ a different signal by setting the
environment variable DMTCP_SIGCKPT to the number
of the signal that DMTCP should use for checkpointing.
(Further warnings will be suppressed.)
Hello World!
Note that even when adjusting the environment variables as the error message I can supress the error messages but the segmentation fault persists. Can this have something to do with the mkl library, as displayed in the error message?
I am running the script with dmtcp_launch in a clean environment with only graph-tool and the packages mentioned in the installation instructions as well as polars.
gt version:
2.57 (commit a7d8d3b2, )
operating system:
WSL2 with:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
Thank you very much in advance for helping!
Best greetings,
Julian