You are here

Creation of core.* file in current running directory

3 posts / 0 new
Last post
Creation of core.* file in current running directory
#1

Good afternoon,

I'm using Rosetta as a library inside my own code and I'm running several instances of my programs on a cluster. It happens that, sometimes, a file named core.* is created in the directory where the programs are launched where * is a number (e.g. 1041, 15897, etc.). This file can weight up to 2GB but its size varies.

Can anyone explain this behavior, tell me if it's normal and give me some clues to avoid the creation of this file?

Thank you in advance for your help

Post Situation: 
Tue, 2011-12-06 06:19
alejandro

These are core dumps, http://en.wikipedia.org/wiki/Core_dump. Those are bad. Basically it means your code crashed. If you don't know how to use a core dump (I certainly don't), just delete them, and try to figure out from the log file why the code is crashing. Do you have Rosetta's tracer output being printed to file?

In my experience, Rosetta never core dumps - segfaults, yes, but not core dumps. I think it's an OS setting that causes it to generate core dumps instead of just silently deleting them, or something to do with your program.

Tue, 2011-12-06 09:24
smlewis

In my experience, Rosetta never core dumps - segfaults, yes, but not core dumps. I think it's an OS setting that causes it to generate core dumps instead of just silently deleting them, or something to do with your program.

You're probably right because this doesn't seem to happen when my code crashes. I'm just going to delete them.

Thanks for your help

Tue, 2011-12-06 23:10
alejandro