From owner-freebsd-net Wed May 31 0:46:13 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 9F5C737B795; Wed, 31 May 2000 00:46:01 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA06551; Wed, 31 May 2000 13:13:46 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Wed, 31 May 2000 13:13:46 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id NAA25680; Wed, 31 May 2000 13:13:41 +0530 (IST) Date: Wed, 31 May 2000 13:13:40 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: RE: system hangs... (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have posted this earlier. I didnt get any reply about system hangs. Please some body help me out to track down these hangs. Questions are below. thanks --gb ---------- Forwarded message ---------- Date: Tue, 30 May 2000 14:32:30 +0530 (IST) From: G.B.Naidu To: "Koster, K.J." Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: RE: system hangs... Hi, Please see my comments below: On Tue, 30 May 2000, Koster, K.J. wrote: > > > > We have made some kernel changes. And accordingly we are > > testing the changes using some user level daemon. After > > sending some packets, the system hangs. The number of > > packets sent before the system hangs varies from time to > > time. > > > What kind of changes? What kind of packets? What kind of deamon? What kind > of kernel? We are trying to implement MPLS on FreeBSD. so we are implementing forwarding tables in side the kernel. The chamges are done in ip_output() and ether_output(). We have added some more routing messages and corresponding functions. Dameon we are running is LDP daemon. The packets We are sending to test are ping packets. Kernel version is 3.3-RELEASE > > > > > Could some body tell me how to know what is happening? How > > do I find out the reason for hanging? Is there anyway to get > > such information through some core dump? I have enabled > > taking dumps and it is dumping when the system panics but > > not when it hangs. > > > You can make the system panic manually, and then you have your kernel core. I am concerned about hangs not panic. If it hangs, I cant type even enter. Nothing responds except the reset and power off key. SO is there a way I can take core dumps when the system hangs? > > As for how to know what's happening: printf() is your friend. > Is there a way to redirect the out put of printf() statements into /var/log/messages file? How do I do that? > > > > Is memory leakage can cause a system hang? If so how do I > > find out that there is a memory leakage? > > > There are many good books and web sites that cover basic debugging > techniques. Could you please give me some pointers to these locations and books? I would be glad to know those locations where I can get some debug techniques. > > You have to provide a *lot* more information than this. We can only help you > if you are able to produce some detailed description of your problem. If you > can't tell sitting behind the box, how are we supposed to know what you've > done wrong? If you need any more information, please let me know. The problem is because the system hangs, I cant do anything to find out what's happening. thanks a lot --gb > > Kees Jan > > ============================================== > Everyone is responsible for his own actions, > and (people tend to forget this) the effect > they have on others. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message