On Wed, Mar 6, 2013 at 8:44 AM, Brian Wood <[email protected]> wrote:
> I've done > ulimit -c unlimited > > and looked at /proc/sys/kernel/core_pattern. > > I have a script that does > > kill -s SIGSEGV $$ > > But I don't find a core file in the current directory > or anywhere else. This is on a recent version of > Arch Linux. Can you give me some idea on how > to figure this out? Tia. > > The process must have been started after the 'ulimit' change as it doesn't effect the current running processes. ulimit -c unlimited mkdir -p /var/log/cores echo '/var/log/cores/core.%e.%s.%p.%t' > /proc/sys/kernel/core_pattern echo '1' > /proc/sys/fs/suid_dumpable Start process Kill the process $$ is the current process so that would be the shell script. You want a dump of the shell? Please read the kernel docs suid_dumpable in sysctl/fs.txt ( at least on my 2.6.32 kernel). _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
