There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
creating a coredump

Reply  
Thread Tools
toonarific's Avatar
Junior Member with 18 posts.
 
Join Date: Aug 2004
Experience: Advanced
31-Aug-2006, 05:18 PM #1
creating a coredump
I just recently had my hosting company install gdb onto my server. I am running a mud on one of my IPs, that occassionally crashes. How do I create a coredump file to review it to see what is causing the crash? I havent used gdb before, and cant seem to find the right command to generate the coredump file
toonarific's Avatar
Junior Member with 18 posts.
 
Join Date: Aug 2004
Experience: Advanced
05-Sep-2006, 10:59 AM #2
*bump*

Does anyone know how to make these coredump files?
AGCurry's Avatar
Senior Member with 431 posts.
 
Join Date: Jun 2005
Location: Kansas City area
Experience: advanced but learning
05-Sep-2006, 03:51 PM #3
Quote:
Originally Posted by toonarific
*bump*

Does anyone know how to make these coredump files?
I almost tried to answer this question a few days ago but decided I didn't know enough about it.

In general, a core dump is created whenever a program has a fatal memory error. However, I don't know how you would prompt a core dump from "the outside" except by using the "kill" command. From WITHIN the program, the abort() function will do it - or, of course, you can purposely code something dangerous - like copying a string to a null pointer - and see if that works.

And, of course, the owner of the process must have write permission on the directory and on any existing core files...

That's about all I know.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
19-Sep-2006, 01:00 PM #4
Quote:
Originally Posted by toonarific
I just recently had my hosting company install gdb onto my server. I am running a mud on one of my IPs, that occassionally crashes. How do I create a coredump file to review it to see what is causing the crash? I havent used gdb before, and cant seem to find the right command to generate the coredump file
Hi toonarific,

First, read the man page on gdb, i.e. issue the command: man gdb

Next, you will at least have to run the "mud" under gdb for it to be useful, or execute gdb and attach it to the "mud" process.

A few key things about using gdb to debug software is:
1) was the program "mud" compiled with symbols or were they striped out of the executable
2) is the source code for the "mud" available or are you working from an executable only

Sometimes, simply running: gdb mud
and then starting up gdb to run the program may be all you need to do, i.e. by running the program until it crashes in gdb for you, but from what you say you want it to output a core dump - you should check out the GDB manual online for information on doing that. See: http://www.gnu.org/software/gdb/documentation/

Run ulimit -a to see if the core file size output is unlimited or set to zero.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein

Last edited by lotuseclat79; 19-Sep-2006 at 02:18 PM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:41 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.