title: My program was "Killed"
body: <p>Probably by the kernel as suggested in this <a href="https://stackoverflow.com/questions/726690/who-killed-my-process-and-why">question</a>. I would like to see why I was killed, something like the function the assassination took place. :)</p>
  
  <p>Moreover, is there anything I can do to allow my program execute normally?</p>
  
  <hr>
  
  <p><em>Chronicle</em></p>
  
  <p>My program executes properly. However, we encountered a big dataset, 1.000.000 x 960 floats and my laptop at home couldn't take it (gave an <code>std::bad_alloc()</code>).</p>
  
  <p>Now, I am in the lab, in a desktop with 9.8 GiB at a processor 3.00GHz × 4, which has more than twice of the memory the laptop at home has.</p>
  
  <p>At home, the data set could not be loaded in the <code>std::vector</code>, where the data is stored. Here, in the lab, this was accomplished and the program continued with building a data structure.</p>
  
  <p>That was the last time I heard from it:</p>
  
  <pre><code>Start building...
  Killed
  </code></pre>
  
  <p>The desktop in the lab runs on Debian 8. My program runs as expected for a subset of the data set, in particular 1.00.000 x 960 floats.</p>
  
  <hr>
  
  <p><em>EDIT</em></p>
  
  <p><code>strace</code> output is finally available:</p>
  
  <pre><code>...
  brk..
  brk(0x352435000)                        = 0x352414000
  mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
  mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f09c1563000
  munmap(0x7f09c1563000, 44683264)        = 0
  munmap(0x7f09c8000000, 22425600)        = 0
  mprotect(0x7f09c4000000, 135168, PROT_READ|PROT_WRITE) = 0
  ...
  mprotect(0x7f09c6360000, 8003584, PROT_READ|PROT_WRITE) = 0
  +++ killed by SIGKILL +++
  </code></pre>
  
  <p>So this tells us I am out of memory, I <em>guess</em>.</p>