#!/bin/bash

mkdir -p /data/dump

ulimit -c unlimited

echo "ulimit -c unlimited" >>  /etc/profile

echo "1" > /proc/sys/kernel/core_uses_pid
echo "/data/dump/core-%e-%p-%t" > /proc/sys/kernel/core_pattern


kill -s SIGSEGV $$

echo "finish"

