Re: panic: Going nowhere without my init!

2009-01-20 Thread Dag-Erling Smørgrav
Kamlesh Patel  writes:
> I made wrong comment in Getpid():
>
> Getpid() {
>
> /* ..
>
> /* ... */
>
>  */
>
> return()
> }

That still doesn't tell us anything.  To start with, there is no
function named Getpid() anywhere in the tree.  Secondly, the code you
show us won't even compile (improperly nested comments), much less run.
Thirdly, you haven't told us what you were trying to achieve with your
modification, so we can't even help you get it right.

Also, please don't top-post.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: panic: Going nowhere without my init!

2009-01-19 Thread Kamlesh Patel
Hi All,

Sorry for late reply, i was out of work for a week.
I made wrong comment in Getpid():

Getpid() {

/* ..

/* ... */

 */

return()
}

I removed it and now it is working fine.

Thanks


--- On Mon, 1/19/09, Dag-Erling Smørgrav  wrote:
From: Dag-Erling Smørgrav 
Subject: Re: panic: Going nowhere without my init!
To: "Ed Schouten" 
Cc: "Garrett Cooper" , shilp.ka...@yahoo.com, "FreeBSD 
Hackers" 
Date: Monday, January 19, 2009, 3:13 PM

Ed Schouten  writes:
> I guess if you break getpid() to not return 1 in the case of init(8), it
> will just say "init: already running" and quit. This causes this
panic
> to occur.

Who knows?  We have no idea what the OP actually did, because he didn't
bother to tell us.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to
"freebsd-hackers-unsubscr...@freebsd.org"




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: panic: Going nowhere without my init!

2009-01-19 Thread Dag-Erling Smørgrav
Ed Schouten  writes:
> I guess if you break getpid() to not return 1 in the case of init(8), it
> will just say "init: already running" and quit. This causes this panic
> to occur.

Who knows?  We have no idea what the OP actually did, because he didn't
bother to tell us.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: panic: Going nowhere without my init!

2009-01-19 Thread Ed Schouten
* Garrett Cooper  wrote:
> I still don't understand why adding a [C, etc] `comment' would cause
> these problems.

I guess if you break getpid() to not return 1 in the case of init(8), it
will just say "init: already running" and quit. This causes this panic
to occur.

-- 
 Ed Schouten 
 WWW: http://80386.nl/


pgpgNsKwUqyHe.pgp
Description: PGP signature


Re: panic: Going nowhere without my init!

2009-01-18 Thread Garrett Cooper
On Sat, Jan 17, 2009 at 6:00 PM, Kamlesh Patel  wrote:
> Ya, I added three extra lines.
>
> --- On Thu, 1/15/09, Garrett Cooper  wrote:
>
>> From: Garrett Cooper 
>> Subject: Re: panic: Going nowhere without my init!
>> To: shilp.ka...@yahoo.com
>> Cc: "Hackers freeBSD" 
>> Date: Thursday, January 15, 2009, 11:33 PM
>> On Wed, Jan 14, 2009 at 9:30 PM, Kamlesh Patel
>>  wrote:
>> > Hi All,
>> >
>> > Thanks for answering my previous question
>> "FreeBSD kernel Debugging tools for Virtual Memory
>> Module", thank you Dag-Erling Smørgrav.
>> >
>> > Today i made a comment in Getpid() function of
>> sys/kern/kern_prot.c file and i got error of
>> >
>> >
>> 
>> > panic: Going nowhere without my init!
>> > Can not dump. No dump device defined.
>> > Automatic reboot in 15 seconds - press a key on the
>> console to
>> abort
>> >
>> > Could anyone help me in solving this error?
>>
>> "Made a comment" -- what kind of comment? Do you
>> in fact mean add
>> additional code?
>> -Garrett

Ok...? Why not just replace the init with a working copy off of a compatible CD?

I still don't understand why adding a [C, etc] `comment' would cause
these problems.

Thanks,
-Garrett

PS Please don't top-post.
PPS Please CC the list.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: panic: Going nowhere without my init!

2009-01-15 Thread Garrett Cooper
On Wed, Jan 14, 2009 at 9:30 PM, Kamlesh Patel  wrote:
> Hi All,
>
> Thanks for answering my previous question "FreeBSD kernel Debugging tools for 
> Virtual Memory Module", thank you Dag-Erling Smørgrav.
>
> Today i made a comment in Getpid() function of sys/kern/kern_prot.c file and 
> i got error of
>
> 
> panic: Going nowhere without my init!
> Can not dump. No dump device defined.
> Automatic reboot in 15 seconds - press a key on the console to 
> abort
>
> Could anyone help me in solving this error?

"Made a comment" -- what kind of comment? Do you in fact mean add
additional code?
-Garrett
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"