Re: Manageable core files

2006-05-17 Thread Oron Peled
On Wednesday, 17 בMay 2006 08:44, Michael Sternberg wrote: How can I manage core dump files ? I'm looking for some way to name them differently, so next one will not be written over the previous $ echo 1 /proc/sys/kernel/core_uses_pid Will make corefiles named 'core.12345' where 12345 is

Re: Manageable core files

2006-05-17 Thread Amos Shapira
On 5/17/06, Michael Sternberg [EMAIL PROTECTED] wrote: How can I manage core dump files ? I'm looking for some way to name them differently, so next one will not be written over the previous and maybe to give some information in core dump file name (version of application, You can get the

Re: Manageable core files

2006-05-17 Thread Shachar Shemesh
Michael Sternberg wrote: Thanks. P.S. There IS a way to do this in M$ Windows :) Do tell! I was looking for a way to dump core on Windows. All I know is the annoying GPF dialogs, that contain a subset of the information available in a core, and from which you cannot even copy/paste the

Re: Manageable core files

2006-05-17 Thread Gilad Ben-Yossef
Michael Sternberg wrote: How can I manage core dump files ? I'm looking for some way to name them differently, so next one will not be written over the previous and maybe to give some information in core dump file name (version of application, date of core dump creation, etc..). It can be

RE: Manageable core files

2006-05-17 Thread Michael Sternberg
Thanks everybody. The correct solutions was to use /proc/sys/kernel/core_pattern as Gilad has suggested. Still, it affects whole system and does not allows to change core dump file name for a single application only. Also, as far as I know, it does not works in 2.4.xx kernels. If anybody

Re: Manageable core files

2006-05-17 Thread Shachar Shemesh
Michael Sternberg wrote: In Windows you can use MiniDumpWriteDump() API together with __try and __catch M$ proprietary operators.. Read more in http://www.codeproject.com/debug/XCrashReportPt3.asp or http://www.debuginfo.com/examples/src/effminidumps/MiniDump.cpp So it's VisualStudio.Net

RE: Manageable core files

2006-05-17 Thread Michael Sternberg
No, its not a VisualStudio.Net extension. I'm using it happily in VS 6.0 and gather core dump files in W2K. All you need - is supply dbghelp.dll with your application and to get pointer to MiniDumpWriteDump from there with LoadLibrary and GetProcAddress.. But we're WAY OUT OFF TOPIC for

Manageable core files

2006-05-16 Thread Michael Sternberg
How can I manage core dump files ? I'm looking for some way to name them differently, so next one will not be written over the previous and maybe to give some information in core dump file name (version of application, date of core dump creation, etc..). It can be from crashing application