| View previous topic :: View next topic |
| Author |
Message |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sun Mar 07, 2010 2:20 pm Post subject: What are core.xxx files? |
|
|
Hello,
We recently had an unusual occurence: a dozen or so instances of the bot were found running with ps -u username.
No idea why.
I'm looking around now for clues.
I see a lot of files in the botdir named core.xxxx where xxxx is a number, some four digit, but mostly five digit.
What are they? and if there is some place good to read about them, please direct me. I didn't find it with google or forum search.
Thanks |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Mar 07, 2010 2:29 pm Post subject: |
|
|
Those files are coredumps.
Roughly put, they're a snapshot of the process (the numbers tell the process id) leading up to a crash. They're mainly used to track down bugs, and are loaded into tools such as gdb. Once loaded, you could use commands such as bt (backtrace), which will show the chain of functioncalls which led to the crash.
google for core dump and/or gdb, and you'll find alot more information. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sun Mar 07, 2010 2:38 pm Post subject: |
|
|
| nml375 wrote: | Those files are coredumps.
Roughly put, they're a snapshot of the process (the numbers tell the process id) leading up to a crash. They're mainly used to track down bugs, and are loaded into tools such as gdb. Once loaded, you could use commands such as bt (backtrace), which will show the chain of functioncalls which led to the crash.
google for core dump and/or gdb, and you'll find alot more information. |
Will do.
I assume gdb is something that I would need to ask the server admin to install?
And thank you for the reply, especially so fast. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Mar 07, 2010 2:56 pm Post subject: |
|
|
If it's not already been installed, you'd probably be better off having your admin install it, though you could try and build it yourself.
A third, though more complicated way, would be to build it locally - though for this you'll need a copy of the binary (eggdrop + modules) and any dynamic library it has loaded on the local server. Personally, I try to avoid this option whenever possible.
Also see the doc/BUG-REPORT in your eggdrop istallation for details on what you can do with the output from the coredumps. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Mar 17, 2010 2:43 pm Post subject: |
|
|
Analyzing cores under Windows is... I'd say, a step beyond "option three", and something I wouldn't do volontary..
If you got your cores from an eggdrop running under a cygwin environment, you should be able to use the gdb provided by cygwin though. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
cengbrecht Voice

Joined: 16 Mar 2010 Posts: 6 Location: Calgary, AB, Canada
|
Posted: Wed Mar 17, 2010 2:47 pm Post subject: Oops |
|
|
| Sorry I thought he was talking about my server. I posted in the wrong area. |
|
| Back to top |
|
 |
|