2001-07-18 13:07:01

by mdaljeet

[permalink] [raw]
Subject: ppc Linux-2.4.2 not generating core dump for SIGSEGV and abort()

Hi all,
I am using Suse-linux-7.1 with default linux -ppc kernel on apple G4
machine.
SIGSEGV is never generating the core dump. though this signal is being
caught by the user process.
I also tried with "abort" call which should generate the core dump, but
this is also not working. The same program with abort call is generating
core dumps on other linux/unix platforms.
Can anybody tell me where is the problem?

Daljeet.



2001-07-18 13:22:43

by Jeff Mahoney

[permalink] [raw]
Subject: Re: ppc Linux-2.4.2 not generating core dump for SIGSEGV and abort()

On Wed, Jul 18, 2001 at 06:31:25PM +0530, [email protected] wrote:
> Hi all,
> I am using Suse-linux-7.1 with default linux -ppc kernel on apple G4
> machine.
> SIGSEGV is never generating the core dump. though this signal is being
> caught by the user process.
> I also tried with "abort" call which should generate the core dump, but
> this is also not working. The same program with abort call is generating
> core dumps on other linux/unix platforms.
> Can anybody tell me where is the problem?

Core dumps are disabled by default for a SuSE install.

If you're using bash:
ulimit -c unlimited

or csh:
unlimit coredumpsize

-Jeff
--
Jeff Mahoney
[email protected]
[email protected]

2001-07-18 13:24:53

by Andrey Panin

[permalink] [raw]
Subject: Re: ppc Linux-2.4.2 not generating core dump for SIGSEGV and abort()

On Wed, Jul 18, 2001 at 06:31:25PM +0530, [email protected] wrote:
> Hi all,
> I am using Suse-linux-7.1 with default linux -ppc kernel on apple G4
> machine.
> SIGSEGV is never generating the core dump. though this signal is being
> caught by the user process.
> I also tried with "abort" call which should generate the core dump, but
> this is also not working. The same program with abort call is generating
> core dumps on other linux/unix platforms.
> Can anybody tell me where is the problem?
>
> Daljeet.

What does 'ulimit -a' print ?

--
Andrey Panin | Embedded systems software engineer
[email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc


Attachments:
(No filename) (696.00 B)
(No filename) (232.00 B)
Download all attachments

2001-07-18 13:29:13

by Ronald Jeninga

[permalink] [raw]
Subject: Re: ppc Linux-2.4.2 not generating core dump for SIGSEGV and abort()

Hi,

you should probably check your limits. Try

ulimit -a

you'll probably have a coresize of 0 (SuSE's default I believe)
change it with

ulimit -c unlimited

(or some number, see also man ulimit).

This might help.

Ronald



[email protected] wrote:
>
> Hi all,
> I am using Suse-linux-7.1 with default linux -ppc kernel on apple G4
> machine.
> SIGSEGV is never generating the core dump. though this signal is being
> caught by the user process.
> I also tried with "abort" call which should generate the core dump, but
> this is also not working. The same program with abort call is generating
> core dumps on other linux/unix platforms.
> Can anybody tell me where is the problem?
>
> Daljeet.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/