Skip to content

Segmentation fault (core dumped) #22

@pristinawang

Description

@pristinawang

Hi,
@angeloskath Thank you and your team for creating this library.
I am trying to run the example mnist program when I encountered this problem.

root@4d9b40a6f414:/vol/attention-sampling# ./mnist.py ./test_mnist/mnist-small ./test_mnist/mnist-experiment
2023-03-25 02:57:58.914902: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/vol/attention-sampling/ats/ops/extract_patches
Loaded dataset with the following parameters
{
    "n_train": 5000,
    "n_test": 1000,
    "width": 500,
    "height": 500,
    "scale": 0.2,
    "noise": false,
    "seed": 0
}
Segmentation fault (core dumped)

I tracked down the problem and it appears that the problem is associated with libpatches.so which was built when I install the library.

My environment:

Package                          Version        Location
-------------------------------- -------------- -----------------------
absl-py                          0.10.0
astor                            0.8.1
async-generator                  1.10
attention-sampling               0.2
attrs                            20.2.0
audioread                        2.1.8
backcall                         0.2.0
bleach                           3.2.1
certifi                          2020.6.20
cffi                             1.14.3
chardet                          3.0.4
cloudpickle                      1.6.0
contextlib2                      0.6.0.post1
cupy                             8.0.0rc1
cycler                           0.10.0
Cython                           0.29.21
dataclasses                      0.7
decorator                        4.4.2
defusedxml                       0.6.0
DLLogger                         0.1.0          /workspace/src/dllogger
entrypoints                      0.3
fastrlock                        0.5
future                           0.18.2
gast                             0.2.2
google-pasta                     0.2.0
googledrivedownloader            0.4
graphsurgeon                     0.4.5
grpcio                           1.32.0
h5py                             2.10.0
horovod                          0.20.0
html2text                        2020.1.16
idna                             2.10
imageio                          2.15.0
importlib-metadata               2.0.0
iniconfig                        1.1.1
ipykernel                        5.3.4
ipython                          7.16.1
ipython-genutils                 0.2.0
jedi                             0.17.2
Jinja2                           2.11.2
joblib                           0.14.0
json5                            0.9.5
jsonschema                       3.2.0
jupyter-client                   6.1.7
jupyter-core                     4.6.3
jupyter-tensorboard              0.2.0
jupyterlab                       1.2.14
jupyterlab-pygments              0.1.2
jupyterlab-server                1.2.0
jupytext                         1.6.0
Keras                            2.3.1
Keras-Applications               1.0.8
Keras-Preprocessing              1.1.2
kiwisolver                       1.2.0
librosa                          0.7.1
llvmlite                         0.30.0
Markdown                         3.3.1
markdown-it-py                   0.5.5
MarkupSafe                       1.1.1
matplotlib                       3.1.1
mistune                          0.8.4
mock                             3.0.5
mpi4py                           3.0.3
munch                            2.5.0
nbclient                         0.5.0
nbconvert                        6.0.7
nbformat                         5.0.7
nest-asyncio                     1.4.1
networkx                         2.5
nibabel                          3.1.1
nltk                             3.4.5
notebook                         6.0.3
numba                            0.46.0
numpy                            1.17.3
nvidia-dali-cuda110              0.26.0
nvidia-dali-tf-plugin-cuda110    0.26.0
nvidia-tensorboard               1.15.0+nv20.10
nvidia-tensorboard-plugin-dlprof 0.8
nvtx-plugins                     0.1.8
onnx                             1.7.0
opt-einsum                       3.3.0
packaging                        20.4
pandas                           0.25.3
pandocfilters                    1.4.2
parso                            0.7.1
pexpect                          4.7.0
pickleshare                      0.7.5
Pillow                           6.2.1
pip                              20.2.3
pluggy                           0.13.1
portalocker                      2.0.0
portpicker                       1.3.1
progressbar                      2.5
prometheus-client                0.8.0
prompt-toolkit                   3.0.8
protobuf                         3.13.0
psutil                           5.7.0
ptyprocess                       0.6.0
py                               1.9.0
pycocotools                      2.0.0
pycparser                        2.20
Pygments                         2.7.1
pyparsing                        2.4.7
pyrsistent                       0.17.3
pytest                           6.1.1
python-dateutil                  2.8.1
python-speech-features           0.6
pytz                             2020.1
PyWavelets                       1.1.1
PyYAML                           5.3.1
pyzmq                            19.0.2
requests                         2.24.0
resampy                          0.2.2
sacrebleu                        1.2.10
scikit-image                     0.17.2
scikit-learn                     0.23.2
scipy                            1.3.1
Send2Trash                       1.5.0
sentencepiece                    0.1.83
setuptools                       50.3.0
SimpleITK                        1.1.0
six                              1.13.0
SoundFile                        0.10.3.post1
tensorboard                      1.15.9999+nv
tensorflow                       1.15.4+nv
tensorflow-estimator             1.15.1
tensorrt                         7.2.1.4
termcolor                        1.1.0
terminado                        0.9.1
testpath                         0.4.4
tf2onnx                          1.7.1
threadpoolctl                    2.1.0
tifffile                         2020.9.3
toml                             0.10.1
toposort                         1.5
tornado                          6.0.4
tqdm                             4.50.2
traitlets                        4.3.3
typing                           3.7.4.3
typing-extensions                3.7.4.3
uff                              0.6.9
urllib3                          1.25.10
wcwidth                          0.2.5
webencodings                     0.5.1
Werkzeug                         1.0.1
wheel                            0.35.1
wrapt                            1.12.1
zipp                             3.3.0

g++ and gcc==4.8.5
Ubuntu version 18.04

Any help will be deeply appreciated. Thanks in advance!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions