Re: video drivers are locked up; panic during shutdown

2012-05-22 Thread John Baldwin
On Saturday, May 19, 2012 7:41:37 pm deeptec...@gmail.com wrote:
 A perhaps more useful crashinfo output, gathered with the use of the 
original (non-debug) kernel.
 

It seems like the mutex was zero'd which can result in this panic when it 
tries to adaptively spin (it sees a thread owner of NULL).

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


video drivers are locked up; panic during shutdown

2012-05-19 Thread deeptech71

So while the unstable, reverse-engineered ATI drivers were locked up (which is 
usual, it happens ~5 times a day on average), I pressed the ATX power button to 
initiate a clean shutdown (statistically, this usually succeeds). During the 
shutdown procedure, a panic occurred. (As a result, the filesystem wasn't 
cleanly unmounted.)

I was doing a ``git pull --rebase'' (which turned out to have succeeded) when 
the driver lockup occurred.

The crashinfo output is attached. Note: the kernel used during the panic has no 
debugging symbols; a version compiled with debugging symbols was used for 
crashinfo.
 dumped core - see /var/crash/vmcore.0

Sat May 19 18:36:13 CEST 2012

FreeBSD  10.0-CURRENT FreeBSD 10.0-CURRENT #1 r235500M: Sat May 19 17:53:32 
CEST 2012 root@:/usr/obj/usr/src/sys/HQ  i386

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...
Cannot access memory at address 0x0
(kgdb) #0  0x in ?? ()
(kgdb) 


ps -axl

UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT  TIME COMMAND


vmstat -s

0 cpu context switches
3230491304 device interrupts
0 software interrupts
3230491296 traps
0 system calls
3230491472 kernel threads created
0  fork() calls
3230491464 vfork() calls
0 rfork() calls
0 swap pager pageins
0 swap pager pages paged in
3230491336 swap pager pageouts
3230491344 swap pager pages paged out
0 vnode pager pageins
0 vnode pager pages paged in
3230491352 vnode pager pageouts
3230491360 vnode pager pages paged out
0 page daemon wakeups
3230491376 pages examined by the page daemon
3230491368 pages reactivated
0 copy-on-write faults
3230491320 copy-on-write optimized faults
0 zero fill pages zeroed
3230491328 zero fill pages prezeroed
0 intransit blocking page faults
3230491312 total VM faults taken
3230491488 pages affected by kernel thread creation
0 pages affected by  fork()
3230491480 pages affected by vfork()
0 pages affected by rfork()
0 pages cached
3230491392 pages freed
3230491384 pages freed by daemon
0 pages freed by exiting processes
3230491424 pages active
3230491432 pages inactive
0 pages in VM cache
0 pages wired down
3230491416 pages free
0 bytes per page
-2108415131 total name lookups
  cache hits (0% pos + 0% neg) system 0% per-directory
  deletions 0%, falsehits 50%, toolong -1%


vmstat -m

vmstat: memstat_kvm_malloc: invalid address (0x7cd6d6c6)
 Type InUse MemUse HighUse Requests  Size(s)


vmstat -z

ITEM   SIZE  LIMIT USED FREE  REQ FAIL SLEEP




vmstat -i

vmstat: malloc(): Cannot allocate memory


pstat -T

 19/  0 files
0M/0M swap space


pstat -s

Device  1K-blocks UsedAvail Capacity


iostat

iostat: devstat_checkversion: userland devstat version 6 is not the same as the 
kernel
devstat_checkversion: devstat version -1065155924
devstat_checkversion: libdevstat newer than kernel



ipcs -a

ipcs: shmsegs: invalid address (0x0)
Message Queues:
T   ID  KEY MODEOWNERGROUPCREATOR  CGROUP   
  CBYTES QNUM   QBYTESLSPID
LRPID STIMERTIMECTIME   



ipcs -T

msginfo:
msgmax:0(max characters in a message)
msgmni:0(# of message queues)
msgmnb:  1312130(max characters in a message queue)
msgtql:   -65536(max # of messages in system)
msgssz:   60(size of a message segment)
msgseg:0(# of message segments in system)

shminfo:
shmmax: 25165824(max shared memory segment size)
shmmin:268435455(min shared memory segment size)
shmmni:   3227543568(max number of shared memory identifiers)
shmseg:   3230161136(max shared memory