Mailinglist Archive: opensuse (1696 mails)

< Previous Next >
Re: [opensuse] Where does mysqld write a core file?
  • From: auxsvr@xxxxxxxxx
  • Date: Fri, 24 Jul 2009 12:26:35 +0300
  • Message-id: <200907241226.36181.auxsvr@xxxxxxxxx>
On Friday 24 of July 2009, Per Jessen wrote:
Per Jessen wrote:
auxsvr@xxxxxxxxx wrote:
Then set the directory by writing to this file. For example, echo
/cores/core > /proc/sys/kernel/core_pattern make core files reside in
/cores/. Also don't forget echo 1 > /proc/sys/kernel/core_uses_pid.

Okay, that might be worth a try, but I'd really like to get hold of
the core from this morning - I've already waited a couple of weeks for
it.

Well, it looks like mysqld just didn't write a core dump after all.
After googling some more, I'm beginning to think it's about
permissions, so I've now set up this:

mkdir /tmp/corefiles
chmod 777 /tmp/corefiles
echo "/tmp/corefiles/core" > /proc/sys/kernel/core_pattern

I've also got:

/proc/sys/fs/suid_dumpable = 2

# my.cnf
[mysqld]
core-file

[mysqld_safe]
core-file-size = unlimited

You'll also need to set ulimit accordingly, see man 5 core for a list of
settings that usually prevent core dumps.

Regards
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups