Hi Heylen,
I has asked you long time ago question regarding core_dump in openwrt.
It used to work but now it is not generating any core deump.I am following the 
following from the past:
I would like to enable core-dump functionality on my openwrt machine. I am 
using  latest atitude adjustmnet.I  enabled busybox->init->support dumping code 
for child processI also enabled  in kerneln_menuconfig     
GeneralSetup->configure standard kernel->Enable ELF core dump.I also set up   
/proc/sys/fs/suid_dumpable   /proc/sys/kernel/core_uses_pid
But I can't see any core dump created .I appreciate if someone can give some 
hints.

also I have setup the following from your E-mail:
touch /.init_enable_core
sysctl -w "kernel.core_pattern=/tmp/%e.%p.%s.%t.core"
But I am not seeing any coredump when I see a segfault or kill a process  kill 
-11 <pid>.
I would appreciate your help again,BR,farid 


     On Wednesday, February 26, 2014 11:11 AM, Farid Farid 
<[email protected]> wrote:
   

 Thanks Jan.  
It worked as you mentioned.
Farid 
 
     On Monday, February 24, 2014 4:51 AM, Jan Heylen <[email protected]> 
wrote:
   Hi Farid,

on your target you should extra do the following:
touch /.init_enable_core
sysctl -w "kernel.core_pattern=/tmp/%e.%p.%s.%t.core"

the first will enable core dumps on all applications started with busybox init 
(so the feature you enabled)

the second will tell the kernel where to store the core dumps (e.g. in /tmp/)

br,

Jan Heylen

    

  
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to