egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What are core.xxx files?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sun Mar 07, 2010 2:20 pm    Post subject: What are core.xxx files? Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Mar 07, 2010 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sun Mar 07, 2010 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Mar 07, 2010 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Mar 17, 2010 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
cengbrecht
Voice


Joined: 16 Mar 2010
Posts: 6
Location: Calgary, AB, Canada

PostPosted: Wed Mar 17, 2010 2:47 pm    Post subject: Oops Reply with quote

Sorry I thought he was talking about my server. I posted in the wrong area.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber