title: Cannot find Core dump on Azure Devops Hosted Ubuntu 1604
body: <p>We have experienced a 'segmentation fault' in test environment on Hosted Ubuntu 1604. However, despite trying to enable various settings, we still cannot get the core dump generated on this hosted machine and it worked fine on one of our local machines.</p>
  <p>We have a pipeline yml which define all the build and test script. We have added the following in a script step to enable the generating of core dump.</p>
  <pre><code>ulimit -c unlimited
  sudo systemctl enable apport.service
  sudo sysctl -w kernel.core_pattern=&quot;core.%p&quot;
  </code></pre>
  <p>This script output:</p>
  <pre><code>sudo systemctl enable apport.service
  apport.service is not a native service, redirecting to systemd-sysv-install
  Executing /lib/systemd/systemd-sysv-install enable apport
  sysctl -w kernel.core_pattern=core.%p
  kernel.core_pattern = core.%p
  core.%p
  </code></pre>
  <p>We also have a step to copy all the files from the where the test run, no core dump can be found in the build artefact after the test failed.</p>
  <p>Can anyone advise if there is anything else that I need to do in order for the core dump to be generated?</p>
  <p>Many thanks.</p>