Segmentation error

username: Jesus
cooked: <p>Hello everyone. I hope you having a good Day.</p>
<p>I don’t know why at some random point in training a model i receive this message:<br>
“Thread 43 “train” received signal SIGSEGV, Segmentation fault.<br>
[Switching to Thread 0x7fff1bfff700 (LWP 24128)]<br>
0x00007fffe0077d00 in void c10::function_ref&lt;void (char**, long const*, long, long)&gt;::callback_fn&lt;at::TensorIteratorBase::loop_2d_from_1d&lt;at::native::AVX2::copy_kernel(at::TensorIterator&amp;, bool)::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#7</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda(char**, long const*, long)<span class="hashtag-raw">#1</span>}&gt;(at::native::AVX2::copy_kernel(at::TensorIterator&amp;, bool)::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#7</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda(char**, long const*, long)<span class="hashtag-raw">#1</span>} const&amp;)::{lambda(char**, long const*, long, long)<span class="hashtag-raw">#1</span>}&gt;(long, char**, long const*, long, long) ()<br>
from /home/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu/libtorch/lib/libtorch_cpu.so”</p>
<p>when i use bt to trace with the debugger gdb , this is what i get "<br>
<span class="hashtag-raw">#0</span>  0x00007fffe0077d00 in void c10::function_ref&lt;void (char**, long const*, long, long)&gt;::callback_fn&lt;at::TensorIteratorBase::loop_2d_from_1d&lt;at::native::AVX2::copy_kernel(at::TensorIterator&amp;, bool)::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#7</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda(char**, long const*, long)<span class="hashtag-raw">#1</span>}&gt;(at::native::AVX2::copy_kernel(at::TensorIterator&amp;, bool)::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#7</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda()<span class="hashtag-raw">#1</span>}::operator()() const::{lambda(char**, long const*, long)<span class="hashtag-raw">#1</span>} const&amp;)::{lambda(char**, long const*, long, long)<span class="hashtag-raw">#1</span>}&gt;(long, char**, long const*, long, long) ()<br>
at /home/modjo/mike/dependences/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu/libtorch/lib/libtorch_cpu.so<br>
<span class="hashtag-raw">#1</span>  0x00007fffdbc92d1f in at::TensorIteratorBase::serial_for_each(c10::function_ref&lt;void (char**, long const*, long, long)&gt;, at::Range) const ()<br>
at /home/modjo/mike/dependences/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu/libtorch/lib/libtorch_cpu.so<br>
<span class="hashtag-raw">#2</span>  0x00007fffdbc92ede in void at::internal::invoke_parallel&lt;at::TensorIteratorBase::for_each(c10::function_ref&lt;void (char**, long const*, long, long)&gt;, long)::{lambda(long, long)<span class="hashtag-raw">#1</span>}&gt;(long, long, long, at::TensorIteratorBase::for_each(c10::function_ref&lt;void (char**, long const*, long, long)&gt;, long)::{lambda(long, long)<span class="hashtag-raw">#1</span>} const&amp;) [clone ._omp_fn.0] ()<br>
at /home/modjo/mike/dependences/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu/libtorch/lib/libtorch_cpu.so<br>
<span class="hashtag-raw">#3</span>  0x00007fffd766696e in  () at /home/modjo/mike/dependences/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu/libtorch/lib/libgomp-52f2fd74.so.1<br>
<span class="hashtag-raw">#4</span>  0x00007fffda12017a in start_thread () at /usr/lib64/libpthread.so.0<br>
<span class="hashtag-raw">#5</span>  0x00007fffd9e4fdc3 in clone () at /usr/lib64/libc.so.6"</p>
<p>i am using libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu</p>