Re: Force Coredump

From: Breno
Date: Mon Nov 24 2003 - 08:48:54 EST


Done , but no coredump file

%ulimit -c unlimited
%./test
Segmention fault
%ls -lisa
test* test.c


-----test.c ------
#include <stdio.h>

int main()
{
int *i = 0;
if(*i)
exit(1);
}
------------------

test is owned by the same user of directory

att,
Breno
----- Original Message -----
From: <tim@xxxxxxxxxxxx>
To: "Breno" <brenosp@xxxxxxxxxxxxxxxx>
Cc: <linux-kernel@xxxxxxxxxxxxxxx>
Sent: Monday, November 24, 2003 11:31 AM
Subject: Re: Force Coredump


> On Mon, Nov 24, 2003 at 11:15:51AM -0200, Breno wrote:
> > Anybody knows why ?
>
> Perhaps you don't have writing access to the directory where the program
is placed, or there is already a core file in the same directory, which you
don't have writing access to. Another possibility (more likely) is that
'ulimit -c' is set too low. Try typing 'ulimit -c unlimited' and see if that
works. This command will produce a core file for every segfault that occurs,
which may be inconvenient, so take a note of what ulimit is set to before
you change it.
>
> Hope that helps. Good luck.
>
> --
> Tim Cambrant <tim@xxxxxxxxxxxx>
> GPG KeyID 0x59518702
> Fingerprint: 14FE 03AE C2D1 072A 87D0 BC4D FA9E 02D8 5951 8702
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/