From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.comet.ch ([193.135.218.122]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YXssx-0005W6-ED for ptxdist@pengutronix.de; Tue, 17 Mar 2015 15:54:23 +0100 From: "Morand, Guy" Date: Tue, 17 Mar 2015 14:54:17 +0000 Message-ID: <68AC191B3EB2874F99C36CD9CA3A6D42192F33@cgpmbx01.comet.ch> Content-Language: de-DE MIME-Version: 1.0 Subject: [ptxdist] core dump Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" Ok I found the problem ... There was a configuration missing inside the kernel: CONFIG_ELF_CORE General setup ---> -*- Configure standard kernel features (expert users) ---> [*] Enable ELF core dumps Now it's working as expected, sorry for all the noise! Kind regards, Guy Morand -----Urspr=FCngliche Nachricht----- Von: Morand, Guy = Gesendet: Dienstag, 17. M=E4rz 2015 12:55 An: 'ptxdist@pengutronix.de' Betreff: core dump Hello ptxdist developers, My application is crashing and I cannot get the core dump. To narrow down t= he problem, I wrote a simple program: int main(int argc, char* argv[]) { int *a =3D 0; *a =3D 0; return 0; } Then I make sure that the core dump is generated correctly: # ulimit -c unlimited # echo /tmp/%e.%p.core > /proc/sys/kernel/core_pattern # ulimit -c unlimite= d # cat /proc/sys/kernel/core_pattern /tmp/%e.%p.core Run my test buggy software: # ./test Segmentation fault And no core dump is generated: # ls /tmp/ I was expecting to have an indication about the core dump being generated o= n segmentation fault, as it happens on my host system, I have this error me= ssage: = Segmentation fault (core dumped) Core dump is activated in the kernel: $ cat .config | grep COREDUMP CONFIG_COREDUMP=3Dy I have no setui, setgid bit set for my application: # ls -l = -rwxr-xr-x 1 xuser 1000 10481 Mar 17 11:25 test Moreover, I'm pretty sure there is enough space in temp to generate the core dump: # df -h Filesystem Size Used Available Use% Mounted on 192.168.3.10:/home/admin/bsp/platform-ifc/root 25.3G 21.1G 2.9G 88% / devtmpfs 61.1M 0 61.1M 0% /dev tmpfs 61.1M 0 61.1M 0% /dev/shm tmpfs 61.1M 124.0K 61.0M 0% /run tmpfs 61.1M 0 61.1M 0% /sys/fs/cgroup none 61.1M 0 61.1M 0% /var/tmp none 61.1M 0 61.1M 0% /var/lock tmpfs 61.1M 124.0K 61.0M 0% /var/run none 61.1M 632.0K 60.5M 1% /var/log none 61.1M 4.0K 61.1M 0% /tmp /dev/sda1 7.5G 1.3M 7.5G 0% /mnt/usbstick What am I missing? Kind regards, Guy -- = ptxdist mailing list ptxdist@pengutronix.de