DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default FreeBSD 7.0 hanging up randomly

Hi,
My freebsd 7.0 system keeps hanging up sometimes, and the computer becomes absolutely unresponsive( as in *nothing* works). Even the speakers emit garbage. The system does not even restart and there is no kernel dump(I did set all the dump parameters). I have to do a forced shutdown and I can't seem to pick up any evidence as to why the crash happened. I thought that this might be a bug of some sort in the release CD, so I synced with the latest stable tree and recompiled and it happened again today. It's not like it happens very often but it does happen. My hardware is the Dell Vostro 1400 laptop. The following is my make.conf:-

CPUTYPE=core2
CFLAGS= -O2 -fno-strict-aliasing -pipe
CXXFLAGS+= -fconserve-space
COPTFLAGS= -O -pipe
# added by use.perl 2008-06-29 04:07:27
PERL_VER=5.8.8
PERL_VERSION=5.8.8
KERNCONF=DEATHSTAR

FETCH_CMD=/usr/local/bin/wget
DISABLE_SIZE=YES

Also I had to patch my kernel to get my NIC working.

What could be the source of this problem?(I know it's very vague but this is excatly what it is)
Is there anyone out there with a similar problem?
Reply With Quote
  #2   (View Single Post)  
Old 25th July 2008
c0d3x c0d3x is offline
New User
 
Join Date: May 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default

I had a similar problem with my Dell Inspiron 9400 which has the Intel 3945ABG NIC. My system used to freeze when I copied large amounts of data via the network. Is there anything specific that you are doing to make it freeze or is it random?
Reply With Quote
  #3   (View Single Post)  
Old 25th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

i really can't say....to me it appeared completely random....or maybe I haven't yet figured out what was going on before the crash happened.

P.S I did do a memtest86 on my RAM and they're fine. Just to check for hardware problems.

Also I have the broasdcom BCM5906M NIC for which the kernel had no drivers and so I had to patch and recompile to get it working.
Reply With Quote
  #4   (View Single Post)  
Old 27th July 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Are you sure all your hardware is working properly. Random hang-ups could actually be caused by a CPU overheating or similar. It isn't entirely implausible if you were compiling software from ports at the time.

When the crash happened, what applications did you have running? Was X running? What are the complete specifications of this laptop?
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #5   (View Single Post)  
Old 27th July 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Thanked 5 Times in 4 Posts
Default

I had similar problems with FreeBSD 7. It would freeze for no apparent reason I thought. Then I figured out that when I turn off DBUS, HAL and related services this would stop. I've switched to OpenBSD on my laptop now so I don't have those problems any more and I can't go deeper into debugging but I wanted to share this observation.
Reply With Quote
  #6   (View Single Post)  
Old 27th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

I constantly moniter the CPU temperatures. They were within the safe thresholds. No, I wasn't compiling anything at that time. I had X running, and I was trying to watch a movie on vlc. The desktop environment I was using at that time was GNOME with all it's associated DBUS and HAL stuff. Also I had linuxdcpp running in the background.

The complete specifications of my laptop are:-
Intel core 2 duo T9300 @ 2.5 GHz
4 GB DDR2 ram @ 667 MHz
200 GB hard drive @ 7200 rpm
NVIDIA GeForce 8400M GS(I was running it on the "nv" driver)
Anything else you need?
I sort of have the problem which NightWeaver is having. *Random freezes*. I really don't know what's causing it and I have no clue as to which program might be the culprit. All the programs at that time was pretty run-of-the-mill. Plus even if one of those programs did cause the freeze, there was no way I could have found out cause it was like an absolute freeze. Help appreciated.
Reply With Quote
  #7   (View Single Post)  
Old 27th July 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Thanked 5 Times in 4 Posts
Default

Try disabling DBUS, HAL and related services and see what happens. Random freezing stopped for me with those disabled.
__________________
If it moves, crypt it. Unless it's static - than you should double-crypt it.
Reply With Quote
  #8   (View Single Post)  
Old 27th July 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

With "random" freezes, I'd likely start by testing the RAM. Get the latest memtest86+, boot with it, and get a good book to read while it runs its tests.

Also, check /var/log/messages for any signs that your system is complaining about hardware (especially anything power related).
__________________
Kill your t.v.
Reply With Quote
  #9   (View Single Post)  
Old 28th July 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Quote:
Originally Posted by Nightweaver View Post
I had similar problems with FreeBSD 7. It would freeze for no apparent reason I thought. Then I figured out that when I turn off DBUS, HAL and related services this would stop. I've switched to OpenBSD on my laptop now so I don't have those problems any more and I can't go deeper into debugging but I wanted to share this observation.
DBUS and HAL aren't included in the base system. So, that's only a possibility if you installed them via ports. Come to think of it, DBUS and HAL did exacerbate the poor situation with my hard drive at that time, causing even more random crashes. DBUS and HAL works great for me now that my hard drives have been replaced, but my previous experience and Nightweaver's experience suggest that they may be causing some issues. Check any related configuration files, but first and foremost, disable those services and test your install.

Testing RAM is also important here. I'd try the suggestion about services first and move on from there.

I thought /tmp and /var/tmp were not dumped during a crash or ever unless the option was specifically specified in rc.conf. You might have a poke around /tmp or /var/tmp. Also, is VLC a common denominator in all your crashes. I've had issues where mplayer wasn't configured properly and cause repeated crashes because of the output driver.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 28th July 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by ninjatux View Post
DBUS and HAL aren't included in the base system. So, that's only a possibility if you installed them via ports.
Indeed. They get installed with GNOME and mc_i2020 said he's using GNOME so that rang a bell in my head. I'd test RAM too but I'd start by disabling DBUS and HAL and see what happens.
__________________
If it moves, crypt it. Unless it's static - than you should double-crypt it.
Reply With Quote
Old 28th July 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

try these:

core2 is only supported on gcc 4.3 FreeBSD 7.0 uses 4.2 if you want 64bit then use nacona instead of prescott

-O -pipe were default on FreeBSD 4/5 now use these defaults: -O2 -fno-strict-aliasing -pipe

Code:
CPUTYPE=prescott
CFLAGS= -O2 -fno-strict-aliasing -pipe -s
CXXFLAGS+= -fconserve-space
COPTFLAGS= -O2 -fno-strict-aliasing -pipe -s
-s strips debug
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 28th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

I did run memtest86 and found no errors. As for the CPUTYPE, freebsd 7.0 automatically defaults to prescott for the 32 bit version if you set core2.And I did check /var/log/messages. Did not find anything unsual except for the following two line which seem to appear everytime I boot up.

503 Jul 28 16:22:14 Death-Star kernel: acpi0: reservation of 0, 9f000 (3) failed
504 Jul 28 16:22:14 Death-Star kernel: acpi0: reservation of 100000, dfd6d800 (3) failed

P.S This laptop is brand new. So I really don't think there's a hardware problem. And anyways I did run mentest86 just to check and there were no errors. I sort of have a feeling that whatever the problem is, it's in freeBSD 7.0. 6.2 was *rock-solid* for me. But that was on a different laptop.
Reply With Quote
Old 28th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

Damn!...It happened again!!...was just browsing the net on firefox...no other programs were running....cpu temperatures were hovering around 40 degrees centigrade (104 degrees Fahrenheit)...Is that ok?....am now suspecting that is might have something to do with the NIC drivers, but I don't know for sure.

Last edited by mc_i2020; 28th July 2008 at 06:30 PM.
Reply With Quote
Old 28th July 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

everytime I log out of opera, firefox, or seamonkey I run a small
shell script to clean out their cache. Started that in win98 when
firefox crashed without it. I'd start there...
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
Old 29th July 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

How long did you run Memtest? Also, vermaden, it's nocona, nacona.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 29th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

For about an hour and a half...it did not report any errors till then,so i just quit...should I continue it for longer?
Reply With Quote
Old 29th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I typically run memtest+ until it passes 2 or 3 times.
Reply With Quote
Old 29th July 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

You should run it for around 12 hours, which is the safe mark. I've had errors pop up after three or four hours. 90 minutes is not enough.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 30th July 2008
mc_i2020 mc_i2020 is offline
Port Guard
 
Join Date: Jul 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

Hi,
My computer crashed again today, but instead of forcing it to shutdown, I just waited and it did reboot and I got a kernel dump with a Fatal trap 12: Page fault.
The backtrace is given below:-



Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x8021
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc071c2c7
stack pointer = 0x28:0xe7386920
frame pointer = 0x28:0xe7386958
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 25119 (make)
trap number = 12
panic: page fault
cpuid = 1
Uptime: 21m41s
Physical memory: 3573 MB
Dumping 219 MB: 204 188 172 156 140 124 108 92 76 60 44 28 12

#0 doadump () at pcpu.h:195
195 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0 doadump () at pcpu.h:195
#1 0xc0579cf1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2 0xc0579fc4 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3 0xc078b144 in trap_fatal (frame=0xe73868e0, eva=32801) at /usr/src/sys/i386/i386/trap.c:899
#4 0xc078b394 in trap_pfault (frame=0xe73868e0, usermode=0, eva=32801) at /usr/src/sys/i386/i386/trap.c:812
#5 0xc078bcfa in trap (frame=0xe73868e0) at /usr/src/sys/i386/i386/trap.c:490
#6 0xc07736ab in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7 0xc071c2c7 in allocdirect_merge (adphead=0x1, newadp=0xc8cd4480, oldadp=0x8001) at /usr/src/sys/ufs/ffs/ffs_softdep.c:1744
#8 0xe7386974 in ?? ()
#9 0xc6c9f440 in ?? ()
#10 0x00080120 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00004000 in ?? ()
#13 0xc6c45a70 in ?? ()
#14 0xc865cd00 in ?? ()
#15 0x00000000 in ?? ()
#16 0xcb6e6e70 in ?? ()
#17 0xc6c21800 in ?? ()
#18 0xe73869e4 in ?? ()
#19 0xc070f6a1 in ffs_update (vp=0x926ce860, waitfor=1166802943) at /usr/src/sys/ufs/ffs/ffs_inode.c:110
Previous frame inner to this frame (corrupt stack?)
Reply With Quote
Old 30th July 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by mc_i2020 View Post
Hi,
My computer crashed again today, but instead of forcing it to shutdown, I just waited and it did reboot and I got a kernel dump with a Fatal trap 12: Page fault.
The backtrace is given below:-
Mate, post this to lists.freebsd.org to freebsd-bugs or send PR by freebsd.org/send-pr.html, FreeBSD developers do not visit these forums, but they are very interested in such backtraces.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Randomly Stops Working plexter OpenBSD Packages and Ports 21 4th May 2009 04:41 PM
opensolaris latop keeps hanging screen freezes chrisd Solaris 3 16th January 2009 07:08 PM
Hanging on boot command syscons caesius FreeBSD General 2 28th November 2008 09:07 AM
FreeBSD 7.0 hanging up randomly - again lumiwa FreeBSD General 6 6th September 2008 05:24 PM


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick