This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: No core dump


I get core dumps all the time under RH9.0.  Most likely you are running the
program from a directory in which you don't have write permissions, OR the
program is changing the current working directory internally (chdir) to a
directory which is write protected.

-----Original Message-----
From: Mihnea Balta [mailto:dark_lkml@mymail.ro]
Sent: Thursday, October 30, 2003 6:55 AM
To: Lev Assinovsky; Claudio Bley
Cc: Krzysztof.Wisniowski@siemens.com; gcc-help@gcc.gnu.org
Subject: Re: No core dump


  It's not the compiler's job to produce a core dump. Redhat disables core 
dump from one of its startup scripts. Just tipe "ulimit -c unlimited" before

running the faulty program.

On Thursday 30 October 2003 14:49, Lev Assinovsky wrote:
> I know for sure that in RedHat 8.x, 9.x gcc doesn't produce core dump.
>
> ----
> Lev Assinovsky
> Aelita Software Corporation
> O&S InTrust Framework Division, Team Leader
> ICQ# 165072909
>
> > -----Original Message-----
> > From: Claudio Bley [mailto:bley@cs.uni-magdeburg.de]
> > Sent: Thursday, October 30, 2003 3:42 PM
> > To: Lev Assinovsky
> > Cc: Krzysztof.Wisniowski@siemens.com; gcc-help@gcc.gnu.org
> > Subject: Re: No core dump
> >
> > On Thu, Oct 30, 2003 at 03:02:50PM +0300, Lev Assinovsky wrote:
> > > If your system is Linux then "no coredump" is a feature.
> > > I heard to fix that you have to recompile the kernel.
> > >
> > > > -----Original Message-----
> > > > From: Krzysztof.Wisniowski@siemens.com
> > > > [mailto:Krzysztof.Wisniowski@siemens.com]
> > > > Sent: Thursday, October 30, 2003 2:55 PM
> > > > To: gcc-help@gcc.gnu.org
> > > > Subject: No core dump
> > > >
> > > >
> > > > Hi all,
> > > > Recently I had to switch to gcc 3.2.  My program crashes with
> > > > segmentation
> > > > fault, however no core is dumped. Is there some compiler
> > > > option to force the
> > > > system to generate the core file, or is it system feature?
> >
> > I think you're talking about a kernel core dump. Normally Linux should
> > support core dumps of normal programs and I don't think there is an
> > option for that, I may be wrong though.
> >
> > You (Krzysztof) should just check your process resource limits which
> > you usually can check and adjust using your shell. E.g. in bash:
> >
> > $ ulimit -c            # print core file size limit
> > 0                      # <- don't generate core dumps
> > $ ulimit -c unlimited  # always generate a core file
> > regardless how big it is
> >
> >
> > If you want to control this from your program, have a look at the
> > getrlimit and setrlimit functions.
> >
> > --
> > Claudio Bley                                 ASCII ribbon campaign (")
> > Debian GNU/Linux user                         - against HTML email  X
> > http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \
>
> ---------------------------------------------------------------
> Acasa.ro vine cu albumele, tu vino doar cu pozele ;)
> http://poze.acasa.ro/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]