System Panics and Core Dump help

2005-06-01 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Just trying to get a heads up if I'm going about
this in the right way, if I've understood what
I've read and applied, outlined below.
I read an article at Onlamp on how to prepare
for system panics and core dumps. Article here:

http://www.onlamp.com/pub/a/bsd/2002/03/21/Big_Scary_Daemons.html?page=2

After rebuilding my kernel with the

options KDB
options DDB
makeoptions DEBUG=-g

I copied kernel.debug to /var/crash/kernel.debug.date for
future use. I added the following below to /etc/rc.conf, leaving
the dump directory at its default /var/crash in /etc/defaults/rc.conf:

dumpdev=/dev/amrd0s1b (this is my swap partition)
savecore_flags=-z (added flag for compression)

Now, in /var/log/messages, I get:

savecore: unable to open bounds file, using 0
savecore: no dumps found

Am I right in assuming that the system's doing exactly what
it's supposed to do? That is, checking for a dump when booting,
not finding any, reporting as much, and proceeding booting as
usual? I assumed that, even though the message is a bit
misleading to a relative newbie like myself, after reading the
following at another web site:

- 
PROBLEMS AND REMEDIES

No Dump Was Saved
Cause:

The system may have shut down successfully.
Remedy:

No dump is expected. Core dumps are only
created for abnormal shutdowns.
- ---

Thanks for any help, advice and clarification.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCnWMRy0Ty5RZE55oRAoIdAKDLBzHivK8U0f+sagqNMcmPG3YF4wCdETzG
noqTYEnxXHRrfcNtRzA4oYA=
=VBh0
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: System Panics and Core Dump help

2005-06-01 Thread Greg 'groggy' Lehey
On Wednesday,  1 June 2005 at  2:25:56 -0500, Denny White wrote:

 Just trying to get a heads up if I'm going about
 this in the right way, if I've understood what
 I've read and applied, outlined below.
 I read an article at Onlamp on how to prepare
 for system panics and core dumps. Article here:

 ...

 Now, in /var/log/messages, I get:

 savecore: unable to open bounds file, using 0
 savecore: no dumps found

Did you get a dump?  Otherwise the second message is normal.  The
first one is harmless, and should only occur on the first real dump.

 Am I right in assuming that the system's doing exactly what it's
 supposed to do? That is, checking for a dump when booting, not
 finding any, reporting as much, and proceeding booting as usual?

Assuming that you didn't write a dump, yes.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
The virus contained in this message was not detected.

Finger [EMAIL PROTECTED] for PGP public key.
See complete headers for address and phone numbers.


pgpeFVFj2K56D.pgp
Description: PGP signature


Re: System Panics and Core Dump help

2005-06-01 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Okay, didn't get a dump. Everything's fine
on the system. I was just trying to follow
how to be prepared for a panic, crash, etc.,
to be able to do a backtrace and have info
to give someone trying to help debug the
kernel. First time I rebooted after adding
the new settings, I got:

unable to open bounds file, using 0
no dumps found

And to the best of my knowledge, there was
no bounds file in /var/crash. Now there is,
size is 2k  has an internal value of 5.
Also, now when I boot, I get:

Checking for core dump on /dev/amrd0s1b
no dumps found

And, after rebooting again, I see that the
internal value of /var/crash/bounds has
been incremented by 1, so now it's at 6.
I read where it does that each time it
checks it. Only reason I bugged anyone on
the mailing list about this was I'm still
a relative newbie  didn't want to trash
all the work I'd done with my experimenting
before getting it where it could be fixed if
I did. :) So, as best as I can see it, it's
doing just what it's supposed to do. Thanks
for helping me clear that up, Greg.



On Wed, 1 Jun 2005, Greg 'groggy' Lehey wrote:


On Wednesday,  1 June 2005 at  2:25:56 -0500, Denny White wrote:


Just trying to get a heads up if I'm going about
this in the right way, if I've understood what
I've read and applied, outlined below.
I read an article at Onlamp on how to prepare
for system panics and core dumps. Article here:

...

Now, in /var/log/messages, I get:

savecore: unable to open bounds file, using 0
savecore: no dumps found


Did you get a dump?  Otherwise the second message is normal.  The
first one is harmless, and should only occur on the first real dump.


Am I right in assuming that the system's doing exactly what it's
supposed to do? That is, checking for a dump when booting, not
finding any, reporting as much, and proceeding booting as usual?


Assuming that you didn't write a dump, yes.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
The virus contained in this message was not detected.

Finger [EMAIL PROTECTED] for PGP public key.
See complete headers for address and phone numbers.





-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCnd8Cy0Ty5RZE55oRAsYeAKCncUDXMAlnnT45hWHtn7TLK9/QdACeOVgQ
rSSLP5BqgFAxeY5ICufJcrw=
=QJke
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]