Bug #20586 how to make core dums on 2.6 kernels
Submitted: 20 Jun 2006 19:46 Modified: 5 Sep 2006 13:40
Reporter: pavel stano Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S4 (Feature request)
Version:all OS:Linux (linux 2.6)
Assigned to: CPU Architecture:Any

[20 Jun 2006 19:46] pavel stano
Description:
when you set core-file in my.cnf and set ulimit -c unlimited before mysql start and mysqld crash there is no core dump, because kernel after setuid() change dumpable flag of mysqld process to off
solution is easy, call prctl(PR_SET_DUMPABLE,1); after setuid() and setgid()

How to repeat:
x
[29 Jun 2006 13:26] Valeriy Kravchuk
Thank you for a feature request. There is no real need to fix code, as you can just use sysctl to set proper value for kernel.core_setuid_ok.
[5 Sep 2006 13:40] Domas Mituzas
Duplicate of Bug#21723