Dump file / Core
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Dump file / Core




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Dump file / Core  
Marc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 05:35 PM

I am trying to reproduce a crash in lab environment. I crashes but I
do not see a dump file that should be there.

What is the filename and the extension of a dumpcore file of a program
named 'server'?

If you start the program through a shell script, does the core resides
in the directory where you started the script, in the directory where
the shell started the application, or in the directory where the
executable resides?





[ Post a follow-up to this message ]



    Re: Dump file / Core  
Jem Berkes


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 06:34 PM

> I am trying to reproduce a crash in lab environment. I crashes but I
> do not see a dump file that should be there.
>
> What is the filename and the extension of a dumpcore file of a program
> named 'server'?
>
> If you start the program through a shell script, does the core resides
> in the directory where you started the script, in the directory where
> the shell started the application, or in the directory where the
> executable resides?

On my Linux system, under bash the core files are always named 'core' but
are not produced by default. You may have to set your shell's ulimit to a
high value (see man bash for the ulimit command).
ulimit -c unlimited

AFAIK the core files are written to the working directory of your program,
so you have to make sure that your uid has write access to that path.

--
Jem Berkes
http://www.sysdesign.ca/





[ Post a follow-up to this message ]



    Re: Dump file / Core  
Rich Teer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 07:34 PM

On Mon, 26 Apr 2004, Marc wrote:

> I am trying to reproduce a crash in lab environment. I crashes but I
> do not see a dump file that should be there.

Core files are produced in the current working directory of
the process by default (and called "core", unless a ulimit
has been set.  Solaris allows you to configure where core
files go.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net





[ Post a follow-up to this message ]



    Re: Dump file / Core  
Frank Hickman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 09:35 PM

"Jem Berkes" <jb@users.pc9.org> wrote in message
news:Xns94D781CD1B627jbuserspc9org@130.179.16.24... 
>
> On my Linux system, under bash the core files are always named 'core' but
> are not produced by default. You may have to set your shell's ulimit to a
> high value (see man bash for the ulimit command).
> ulimit -c unlimited
>
> AFAIK the core files are written to the working directory of your program,
> so you have to make sure that your uid has write access to that path.
>
> --
> Jem Berkes
> http://www.sysdesign.ca/

Yep this is how both my Linux box and HPUX box do it.

--
Frank







[ Post a follow-up to this message ]



    Re: Dump file / Core  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 02:39 AM


"Marc" <marc1917@zonnet.nl> wrote in message
news:840f4b5b.0404260836.421b462b@posting.google.com...

>I am trying to reproduce a crash in lab environment. I crashes but I
> do not see a dump file that should be there.

> What is the filename and the extension of a dumpcore file of a program
> named 'server'?

Ask your system administrator. There is no way we could know how that
particular machine is configured. Did you check your resource limit for core
files?

> If you start the program through a shell script, does the core resides
> in the directory where you started the script, in the directory where
> the shell started the application, or in the directory where the
> executable resides?

Usually the directory in which the shell started the application. Note
that you will not get core dumps for setuid/setgid programs on most
machines. Note also that you must appropriately configure your resource
limit. The 'bash' shell allows 'ulimit -c unlimited', other shells do it
different ways.

What operating system? What shell?

DS







[ Post a follow-up to this message ]



    Re: Dump file / Core  
Marc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 05:35 PM

Jem Berkes <jb@users.pc9.org> wrote

> ulimit -c unlimited

Seems to work!!

By the way, it is a very special build unix thingie. If I say what, my
boss read, my boss knows, I do not know how to ... But problems
solved, as said.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register