ports/169165: Calling fchown(2) on sshfs filesystem causes panic

Risto Erik dh at bsd.ee
Sat Jun 16 20:50:11 UTC 2012


>Number:         169165
>Category:       ports
>Synopsis:       Calling fchown(2) on sshfs filesystem causes panic
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 16 20:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Risto Erik
>Release:        9.0
>Organization:
>Environment:
FreeBSD test 9.0-RELEASE-p2 FreeBSD 9.0-RELEASE-p2 #0: Thu May 31 22:01:52 EEST 2012     root at test:/usr/obj/usr/src/sys/DEBUG  amd64
>Description:
Calling fchown() function on a file descriptor opened from a filesystem mounted using sshfs causes FreeBSD 9.0 to panic. I didn't experience panics on FreeBSD 8.x versions. I discovered the issue when I tried to save a file using vim opened from sshfs filesystem. It doesn't matter if filesystem was mounted by regular user or root.

I have following fusefs ports installed (which are latest versions available at the time of reporting):

fusefs-kmod-0.3.9.p1.20080208_10
fusefs-libs-2.7.4
fusefs-sshfs-2.4

Kernel is GENERIC kernel configuration with to extra options:
options DDB
options GDB


>How-To-Repeat:
1) Install sysutils/fusefs-kmod, sysutils/fusefs-libs and fusefs-sshfs ports on a FreeBSD 9.0 system
2) Load fusefs kernel module: /usr/local/etc/rc.d/fusefs onestart
3) Mount a sshfs filesystem: sshfs user at example.com:. /mnt
4) Compile crash.c program (code below): gcc ~/crash.c -o ~/crash
5) Run compiled program on a sshfs filesystem: cd /mnt && ~/crash
6) Panic

--- crash.c code ---
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>

int main(void)
{
    int fd;

    if ((fd = open("crash.test", O_RDWR|O_CREAT)) == -1)
    {
        perror("open");
        exit(1);
    }

	/* This call will cause panic */
    if (fchown(fd, 0, 0) == -1) 
    {
        perror("fchown");
        exit(1);
    }
    
    close(fd);

    return 0;
}
--- end crash.c code ---

>Fix:


Patch attached with submission follows:

test dumped core - see /var/crash/vmcore.1

Fri Jun  8 23:02:33 EEST 2012

FreeBSD test 9.0-RELEASE-p2 FreeBSD 9.0-RELEASE-p2 #0: Thu May 31 22:01:52 EEST 2012     root at test:/usr/obj/usr/src/sys/DEBUG  amd64

panic: from debugger

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 "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read instruction, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xffffff80003c9ad0
frame pointer	        = 0x28:0xffffff80003c9b20
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1096 (crash)
panic: from debugger
cpuid = 0
KDB: stack backtrace:
Uptime: 7m30s
Dumping 309 out of 2029 MB:..6%..11%..21%..31%..42%..52%..62%..73%..83%..93%

Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
#0  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:260
260		if (textdump && textdump_pending) {
(kgdb) #0  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:260
#1  0xffffffff80840de5 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:442
#2  0xffffffff80841291 in panic (fmt=Variable "fmt" is not available.
)
    at /usr/src/sys/kern/kern_shutdown.c:607
#3  0xffffffff802fbd37 in db_panic (addr=Variable "addr" is not available.
)
    at /usr/src/sys/ddb/db_command.c:481
#4  0xffffffff802fc141 in db_command (last_cmdp=0xffffffff810f52c0, cmd_table=Variable "cmd_table" is not available.

) at /usr/src/sys/ddb/db_command.c:448
#5  0xffffffff802fc390 in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:501
#6  0xffffffff802fe4c9 in db_trap (type=Variable "type" is not available.
) at /usr/src/sys/ddb/db_main.c:229
#7  0xffffffff80876981 in kdb_trap (type=12, code=0, tf=0xffffff80003c9a20)
    at /usr/src/sys/kern/subr_kdb.c:620
#8  0xffffffff80b33efd in trap_fatal (frame=0xffffff80003c9a20, eva=Variable "eva" is not available.
)
    at /usr/src/sys/amd64/amd64/trap.c:814
#9  0xffffffff80b34239 in trap_pfault (frame=0xffffff80003c9a20, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:735
#10 0xffffffff80b346ff in trap (frame=0xffffff80003c9a20)
    at /usr/src/sys/amd64/amd64/trap.c:474
#11 0xffffffff80b1e84f in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:228
#12 0x0000000000000000 in ?? ()
#13 0xffffffff808e0cf5 in sys_fchown (td=0xfffffe0002ea3000, 
    uap=0xffffff80003c9bc0) at file.h:324
#14 0xffffffff80b337e0 in amd64_syscall (td=0xfffffe0002ea3000, traced=0)
    at subr_syscall.c:131
#15 0xffffffff80b1eb37 in Xfast_syscall ()
    at /usr/src/sys/amd64/amd64/exception.S:387
#16 0x00000008008a0e1c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) 

------------------------------------------------------------------------
ps -axl

  UID   PID  PPID CPU PRI NI    VSZ    RSS MWCHAN STAT  TT     TIME COMMAND
    0     0     0   0 -52 -1      0      0 -      D<L   ??  0:00.00 [M-NM-zM-oM
    0     1     0   0  20 -1   6276      0 wait   D<L   ??  0:00.01 [M-NM-zM-oM
    0     2     0   0 -16 -1      0      0 waitin D<L   ??  0:00.00 [M-NM-zM-oM
    0     3     0   0 -16 -1      0      0 ccb_sc D<L   ??  0:00.00 [M-NM-zM-oM
    0     4     0   0 -16 -1      0      0 psleep D<L   ??  0:00.00 [M-NM-zM-oM
    0     5     0   0 -16 -1      0      0 psleep D<L   ??  0:00.00 [M-NM-zM-oM
    0     6     0   0 155 -1      0      0 pgzero D<L   ??  0:00.00 [M-NM-zM-oM
    0     7     0   0 -16 -1      0      0 psleep D<L   ??  0:00.00 [M-NM-zM-oM
    0     8     0   0 -16 -1      0      0 vlruwt D<L   ??  0:00.00 [M-NM-zM-oM
    0     9     0   0  16 -1      0      0 syncer D<L   ??  0:00.00 [M-NM-zM-oM
    0    10     0   0 -16 -1      0      0 audit_ D<L   ??  0:00.00 [M-NM-zM-oM
    0    11     0   0 155 -1      0      0 -      R<L   ??  1:29.34 [M-NM-zM-oM
    0    12     0   0 -84 -1      0      0 -      W<L   ??  0:00.47 [M-NM-zM-oM
    0    13     0   0  -8 -1      0      0 -      D<L   ??  0:00.40 [M-NM-zM-oM
    0    14     0   0 -16 -1      0      0 -      D<L   ??  0:00.01 [M-NM-zM-oM
    0    15     0   0 -16 -1      0      0 sdflus D<L   ??  0:00.00 [M-NM-zM-oM
    0   144     1   0  52 -1   3928      0 pause  D<    ??  0:00.00 [M-NM-zM-oM
    0   409     1   0  52 -1  10056      0 select D<    ??  0:00.00 [M-NM-zM-oM
   65   447     1   0  52 -1  10056      0 select D<    ??  0:00.00 [M-NM-zM-oM
    0   463     1   0  20 -1  10372      0 select D<    ??  0:00.00 [M-NM-zM-oM
    0   601     1   0  20 -1  12316      0 select D<    ??  0:00.01 [M-NM-zM-oM
    0   892     1   0  20 -1  47004      0 select D<    ??  0:00.00 [M-NM-zM-oM
    0   899     1   0  20 -1  20516      0 select D<    ??  0:00.00 [M-NM-zM-oM
    0   907     1   0  20 -1  14264      0 nanslp D<    ??  0:00.00 [M-NM-zM-oM
    0   968     1   0  23 -1  41304      0 wait   D<+   ??  0:00.00 [M-NM-zM-oM
    0   969     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   970     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   971     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   972     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   973     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   974     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   975     1   0  52 60  12188      0 ttyin  DN+   ??  0:00.00 [M-NM-zM-oM
    0   976   968   0  20 -1  17672      0 pause  D<+   ??  0:00.00 [M-NM-zM-oM
    0  1043     1   0  20 -1  38400      0 select D<+   ??  0:00.00 [M-NM-zM-oM
    0  1044   892   0  23 -1  68144      0 sbwait D<    ??  0:00.00 [M-NM-zM-oM
 1001  1046  1044   0  20 -1  68144      0 select D<    ??  0:00.00 [M-NM-zM-oM
 1001  1047  1046   0  27 -1  17672      0 pause  D<    ??  0:00.00 [M-NM-zM-oM
 1001  1049  1047   0  20 -1  36276      0 select D<    ??  0:00.00 [M-NM-zM-oM
    0  1050     1   0  20 -1  27412      0 sbwait D<    ??  0:00.00 [M-NM-zM-oM
    0  1096   976   0  20 -1   3920      0 -      R<+   ??  0:00.00 [M-NM-zM-oM

------------------------------------------------------------------------
vmstat -s

   105960 cpu context switches
     6353 device interrupts
    30969 software interrupts
   313551 traps
   216925 system calls
       15 kernel threads created
     1046  fork() calls
       35 vfork() calls
        0 rfork() calls
        0 swap pager pageins
        0 swap pager pages paged in
        0 swap pager pageouts
        0 swap pager pages paged out
      736 vnode pager pageins
     6771 vnode pager pages paged in
        0 vnode pager pageouts
        0 vnode pager pages paged out
        0 page daemon wakeups
        0 pages examined by the page daemon
      196 pages reactivated
    37272 copy-on-write faults
      129 copy-on-write optimized faults
   230579 zero fill pages zeroed
        0 zero fill pages prezeroed
       15 intransit blocking page faults
   305566 total VM faults taken
        0 pages affected by kernel thread creation
   532136 pages affected by  fork()
    16572 pages affected by vfork()
        0 pages affected by rfork()
        0 pages cached
   298848 pages freed
        0 pages freed by daemon
        0 pages freed by exiting processes
     4445 pages active
     5835 pages inactive
       48 pages in VM cache
    58563 pages wired down
   435011 pages free
     4096 bytes per page
    24546 total name lookups
          cache hits (84% pos + 7% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%

------------------------------------------------------------------------
vmstat -m

vmstat: memstat_kvm_malloc: Too many CPUs
         Type InUse MemUse HighUse Requests  Size(s)

------------------------------------------------------------------------
vmstat -z

ITEM                   SIZE  LIMIT     USED     FREE      REQ FAIL SLEEP

UMA Kegs:               208,      0,      84,       1,      84,   0,   0
UMA Zones:              512,      0,      84,       0,      84,   0,   0
UMA Slabs:              568,      0,     851,       3,    1288,   0,   0
UMA RCntSlabs:          568,      0,     197,       6,     197,   0,   0
UMA Hash:               256,      0,       3,      12,       3,   0,   0
16 Bucket:              152,      0,      42,       8,      42,   0,   0
32 Bucket:              280,      0,      37,       5,      37,   0,   0
64 Bucket:              536,      0,      15,       6,      15,  57,   0
128 Bucket:            1048,      0,      96,       0,      96, 569,   0
VM OBJECT:              216,      0,    1175,      49,   15028,   0,   0
MAP:                    232,      0,       7,      25,       7,   0,   0
KMAP ENTRY:             120,  87668,      24,     131,    1364,   0,   0
MAP ENTRY:              120,      0,     777,     153,   33393,   0,   0
fakepg:                 120,      0,       0,       0,       0,   0,   0
mt_zone:               4112,      0,     306,       5,     306,   0,   0
16:                      16,      0,     975,     201,   11326,   0,   0
32:                      32,      0,    1047,     165,    6792,   0,   0
64:                      64,      0,    2462,    4146,   19870,   0,   0
128:                    128,      0,    3300,    2210,    9770,   0,   0
256:                    256,      0,     303,    4002,    7581,   0,   0
512:                    512,      0,     245,      21,    1899,   0,   0
1024:                  1024,      0,      37,      59,    1572,   0,   0
2048:                  2048,      0,      24,      10,     125,   0,   0
4096:                  4096,      0,     403,      20,    6739,   0,   0
Files:                   80,      0,      68,      67,    5381,   0,   0
TURNSTILE:              136,      0,      88,      12,      88,   0,   0
umtx pi:                 96,      0,       0,       0,       0,   0,   0
MAC labels:              40,      0,       0,       0,       0,   0,   0
PROC:                  1160,      0,      39,      12,    1096,   0,   0
THREAD:                1112,      0,      74,      13,      74,   0,   0
SLEEPQUEUE:              80,      0,      88,      28,      88,   0,   0
VMSPACE:                392,      0,      25,      15,    1083,   0,   0
cpuset:                  72,      0,       2,      98,       2,   0,   0
audit_record:           960,      0,       0,       0,       0,   0,   0
mbuf_packet:            256,      0,     256,     141,     304,   0,   0
mbuf:                   256,      0,       2,     139,     236,   0,   0
mbuf_cluster:          2048,  25600,     384,       6,     384,   0,   0
mbuf_jumbo_page:       4096,  12800,       0,       2,       5,   0,   0
mbuf_jumbo_9k:         9216,  19200,       0,       0,       0,   0,   0
mbuf_jumbo_16k:       16384,  12800,       0,       0,       0,   0,   0
mbuf_ext_refcnt:          4,      0,       0,       0,       0,   0,   0
g_bio:                  232,      0,       0,     368,   16825,   0,   0
ttyinq:                 160,      0,     120,      24,     255,   0,   0
ttyoutq:                256,      0,      64,      11,     136,   0,   0
ata_request:            328,      0,       1,      23,   10586,   0,   0
ata_composite:          336,      0,       0,       0,       0,   0,   0
VNODE:                  480,      0,     736,       8,     778,   0,   0
VNODEPOLL:              112,      0,       0,       0,       0,   0,   0
S VFS Cache:            108,      0,     736,      56,    1815,   0,   0
L VFS Cache:            328,      0,       0,       0,       0,   0,   0
NAMEI:                 1024,      0,       0,      12,   10570,   0,   0
NCLNODE:                560,      0,       0,       0,       0,   0,   0
DIRHASH:               1024,      0,      94,       2,      94,   0,   0
pipe:                   728,      0,       5,      10,     587,   0,   0
Mountpoints:            768,      0,       3,       7,       3,   0,   0
ksiginfo:               112,      0,      43,    1013,      63,   0,   0
itimer:                 344,      0,       0,       0,       0,   0,   0
KNOTE:                  128,      0,       0,      58,      18,   0,   0
socket:                 680,  25602,      18,       6,     169,   0,   0
ipq:                     56,    819,       0,       0,       0,   0,   0
udp_inpcb:              392,  25600,       2,      18,     106,   0,   0
udpcb:                   16,  25704,       2,     166,     106,   0,   0
tcp_inpcb:              392,  25600,       5,      15,       8,   0,   0
tcpcb:                  976,  25600,       5,       7,       8,   0,   0
tcptw:                   72,   5150,       0,       0,       0,   0,   0
syncache:               152,  15375,       0,      50,       1,   0,   0
hostcache:              136,  15372,       0,       0,       0,   0,   0
tcpreass:                40,   1680,       0,       0,       0,   0,   0
sackhole:                32,      0,       0,       0,       0,   0,   0
sctp_ep:               1368,  25600,       0,       0,       0,   0,   0
sctp_asoc:             2280,  40000,       0,       0,       0,   0,   0
sctp_laddr:              48,  80064,       0,     144,       3,   0,   0
sctp_raddr:             704,  80000,       0,       0,       0,   0,   0
sctp_chunk:             136, 400008,       0,       0,       0,   0,   0
sctp_readq:             104, 400032,       0,       0,       0,   0,   0
sctp_stream_msg_out:    112, 400026,       0,       0,       0,   0,   0
sctp_asconf:             40, 400008,       0,       0,       0,   0,   0
sctp_asconf_ack:         48, 400032,       0,       0,       0,   0,   0
ripcb:                  392,  25600,       1,      19,       1,   0,   0
unpcb:                  240,  25600,       9,      23,      45,   0,   0
rtentry:                200,      0,      13,      25,      14,   0,   0
selfd:                   56,      0,      38,      88,    1462,   0,   0
SWAPMETA:               288, 116519,       0,       0,       0,   0,   0
FFS inode:              168,      0,     703,      23,     743,   0,   0
FFS1 dinode:            128,      0,       0,       0,       0,   0,   0
FFS2 dinode:            256,      0,     703,      17,     743,   0,   0


------------------------------------------------------------------------
vmstat -i

interrupt                          total       rate
irq1: atkbd0                        1152         82
irq14: ata0                         5141        367
irq15: ata1                           17          1
irq19: em0                            43          3
cpu0:timer                         27117       1936
Total                              33470       2390

------------------------------------------------------------------------
pstat -T

 68/12328 files
0M/511M swap space

------------------------------------------------------------------------
pstat -s

Device          512-blocks     Used    Avail Capacity
/dev/ada0p3        1048320        0  1048320     0%

------------------------------------------------------------------------
iostat

iostat: kvm_read(_tk_nin): invalid address (0x0)
iostat: disabling TTY statistics
            ada0              cd0            pass0             cpu
  KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s  us ni sy in id
 80.68 353 27.85   0.00   0  0.00   0.00   0  0.00   1  0  1  0 98

------------------------------------------------------------------------
ipcs -a

Message Queues:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP                 CBYTES                 QNUM               QBYTES        LSPID        LRPID STIME    RTIME    CTIME   

Shared Memory:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP         NATTCH        SEGSZ         CPID         LPID ATIME    DTIME    CTIME   

Semaphores:
T           ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP          NSEMS OTIME    CTIME   


------------------------------------------------------------------------
ipcs -T

msginfo:
	msgmax:        16384	(max characters in a message)
	msgmni:           40	(# of message queues)
	msgmnb:         2048	(max characters in a message queue)
	msgtql:           40	(max # of messages in system)
	msgssz:            8	(size of a message segment)
	msgseg:         2048	(# of message segments in system)

shminfo:
	shmmax:    536870912	(max shared memory segment size)
	shmmin:            1	(min shared memory segment size)
	shmmni:          192	(max number of shared memory identifiers)
	shmseg:          128	(max shared memory segments per process)
	shmall:       131072	(max amount of shared memory in pages)

seminfo:
	semmni:           50	(# of semaphore identifiers)
	semmns:          340	(# of semaphores in system)
	semmnu:          150	(# of undo structures in system)
	semmsl:          340	(max # of semaphores per id)
	semopm:          100	(max # of operations per semop call)
	semume:           50	(max # of undo entries per process)
	semusz:          632	(size in bytes of undo structure)
	semvmx:        32767	(semaphore maximum value)
	semaem:        16384	(adjust on exit max value)


------------------------------------------------------------------------
nfsstat

Client Info:
Rpc Counts:
  Getattr   Setattr    Lookup  Readlink      Read     Write    Create    Remove
        0         0         0         0         0         0         0         0
   Rename      Link   Symlink     Mkdir     Rmdir   Readdir  RdirPlus    Access
        0         0         0         0         0         0         0         0
    Mknod    Fsstat    Fsinfo  PathConf    Commit
        0         0         0         0         0
Rpc Info:
 TimedOut   Invalid X Replies   Retries  Requests
        0         0         0         0         0
Cache Info:
Attr Hits    Misses Lkup Hits    Misses BioR Hits    Misses BioW Hits    Misses
        0         0         0         0         0         0         0         0
BioRLHits    Misses BioD Hits    Misses DirE Hits    Misses Accs Hits    Misses
        0         0         0         0         0         0         0         0

Server Info:
  Getattr   Setattr    Lookup  Readlink      Read     Write    Create    Remove
        0         0         0         0         0         0         0         0
   Rename      Link   Symlink     Mkdir     Rmdir   Readdir  RdirPlus    Access
        0         0         0         0         0         0         0         0
    Mknod    Fsstat    Fsinfo  PathConf    Commit
        0         0         0         0         0
Server Ret-Failed
                0
Server Faults
            0
Server Cache Stats:
   Inprog      Idem  Non-idem    Misses
        0         0         0         0
Server Write Gathering:
 WriteOps  WriteRPC   Opsaved
        0         0         0

------------------------------------------------------------------------
netstat -s

tcp:
	51 packets sent
		38 data packets (5901 bytes)
		0 data packets (0 bytes) retransmitted
		0 data packets unnecessarily retransmitted
		0 resends initiated by MTU discovery
		10 ack-only packets (6 delayed)
		0 URG only packets
		0 window probe packets
		0 window update packets
		3 control packets
	50 packets received
		41 acks (for 5823 bytes)
		1 duplicate ack
		0 acks for unsent data
		39 packets (6455 bytes) received in-sequence
		0 completely duplicate packets (0 bytes)
		0 old duplicate packets
		0 packets with some dup. data (0 bytes duped)
		0 out-of-order packets (0 bytes)
		0 packets (0 bytes) of data after window
		0 window probes
		0 window update packets
		0 packets received after close
		0 discarded for bad checksums
		0 discarded for bad header offset fields
		0 discarded because packet too short
		0 discarded due to memory problems
	2 connection requests
	1 connection accept
	0 bad connection attempts
	0 listen queue overflows
	0 ignored RSTs in the windows
	3 connections established (including accepts)
	3 connections closed (including 0 drops)
		0 connections updated cached RTT on close
		0 connections updated cached RTT variance on close
		0 connections updated cached ssthresh on close
	0 embryonic connections dropped
	41 segments updated rtt (of 41 attempts)
	0 retransmit timeouts
		0 connections dropped by rexmit timeout
	0 persist timeouts
		0 connections dropped by persist timeout
	0 Connections (fin_wait_2) dropped because of timeout
	0 keepalive timeouts
		0 keepalive probes sent
		0 connections dropped by keepalive
	6 correct ACK header predictions
	5 correct data packet header predictions
	1 syncache entry added
		0 retransmitted
		0 dupsyn
		0 dropped
		1 completed
		0 bucket overflow
		0 cache overflow
		0 reset
		0 stale
		0 aborted
		0 badack
		0 unreach
		0 zone failures
	1 cookie sent
	0 cookies received
	0 hostcache entries added
		0 bucket overflow
	0 SACK recovery episodes
	0 segment rexmits in SACK recovery episodes
	0 byte rexmits in SACK recovery episodes
	0 SACK options (SACK blocks) received
	0 SACK options (SACK blocks) sent
	0 SACK scoreboard overflow
	0 packets with ECN CE bit set
	0 packets with ECN ECT(0) bit set
	0 packets with ECN ECT(1) bit set
	0 successful ECN handshakes
	0 times ECN reduced the congestion window
udp:
	11 datagrams received
	0 with incomplete header
	0 with bad data length field
	0 with bad checksum
	0 with no checksum
	0 dropped due to no socket
	2 broadcast/multicast datagrams undelivered
	0 dropped due to full socket buffers
	0 not for hashed pcb
	9 delivered
	9 datagrams output
	0 times multicast source filter matched
ip:
	62 total packets received
	0 bad header checksums
	0 with size smaller than minimum
	0 with data size < data length
	0 with ip length > max ip packet size
	0 with header length < data size
	0 with data length < header length
	0 with bad options
	0 with incorrect version number
	0 fragments received
	0 fragments dropped (dup or out of space)
	0 fragments dropped after timeout
	0 packets reassembled ok
	61 packets for this host
	0 packets for unknown/unsupported protocol
	0 packets forwarded (0 packets fast forwarded)
	1 packet not forwardable
	0 packets received for unknown multicast group
	0 redirects sent
	60 packets sent from this host
	0 packets sent with fabricated ip header
	0 output packets dropped due to no bufs, etc.
	0 output packets discarded due to no route
	0 output datagrams fragmented
	0 fragments created
	0 datagrams that can't be fragmented
	0 tunneling packets that can't find gif
	0 datagrams with bad address in header
icmp:
	0 calls to icmp_error
	0 errors not generated in response to an icmp message
	0 messages with bad code fields
	0 messages less than the minimum length
	0 messages with bad checksum
	0 messages with bad length
	0 multicast echo requests ignored
	0 multicast timestamp requests ignored
	0 message responses generated
	0 invalid return addresses
	0 no return routes
igmp:
	0 messages received
	0 messages received with too few bytes
	0 messages received with wrong TTL
	0 messages received with bad checksum
	0 V1/V2 membership queries received
	0 V3 membership queries received
	0 membership queries received with invalid field(s)
	0 general queries received
	0 group queries received
	0 group-source queries received
	0 group-source queries dropped
	0 membership reports received
	0 membership reports received with invalid field(s)
	0 membership reports received for groups to which we belong
	0 V3 reports received without Router Alert
	0 membership reports sent
arp:
	2 ARP requests sent
	3 ARP replies sent
	6 ARP requests received
	1 ARP reply received
	7 ARP packets received
	0 total packets dropped due to no ARP entry
	0 ARP entrys timed out
	0 Duplicate IPs seen
ip6:
	0 total packets received
	0 with size smaller than minimum
	0 with data size < data length
	0 with bad options
	0 with incorrect version number
	0 fragments received
	0 fragments dropped (dup or out of space)
	0 fragments dropped after timeout
	0 fragments that exceeded limit
	0 packets reassembled ok
	0 packets for this host
	0 packets forwarded
	0 packets not forwardable
	0 redirects sent
	0 packets sent from this host
	0 packets sent with fabricated ip header
	0 output packets dropped due to no bufs, etc.
	0 output packets discarded due to no route
	0 output datagrams fragmented
	0 fragments created
	0 datagrams that can't be fragmented
	0 packets that violated scope rules
	0 multicast packets which we don't join
	Mbuf statistics:
		0 one mbuf
		0 one ext mbuf
		0 two or more ext mbuf
	0 packets whose headers are not contiguous
	0 tunneling packets that can't find gif
	0 packets discarded because of too many headers
	0 failures of source address selection
	Source addresses selection rule applied:
		5 same address
icmp6:
	0 calls to icmp6_error
	0 errors not generated in response to an icmp6 message
	0 errors not generated because of rate limitation
	0 messages with bad code fields
	0 messages < minimum length
	0 bad checksums
	0 messages with bad length
	Histogram of error messages to be generated:
		0 no route
		0 administratively prohibited
		0 beyond scope
		0 address unreachable
		0 port unreachable
		0 packet too big
		0 time exceed transit
		0 time exceed reassembly
		0 erroneous header field
		0 unrecognized next header
		0 unrecognized option
		0 redirect
		0 unknown
	0 message responses generated
	0 messages with too many ND options
	0 messages with bad ND options
	0 bad neighbor solicitation messages
	0 bad neighbor advertisement messages
	0 bad router solicitation messages
	0 bad router advertisement messages
	0 bad redirect messages
	0 path MTU changes
rip6:
	0 messages received
	0 checksum calculations on inbound
	0 messages with bad checksum
	0 messages dropped due to no socket
	0 multicast messages dropped due to no socket
	0 messages dropped due to full socket buffers
	0 delivered
	0 datagrams output

------------------------------------------------------------------------
netstat -m

netstat: memstat_kvm_all: Too many CPUs

------------------------------------------------------------------------
netstat -id

Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll Drop
em0    1500 <Link#1>      08:00:27:29:5f:bf       23     0     0       20     0     0    0 
em0    1500 0.0.0.0&0xfff cloud                   15     -     -       14     -     -    - 
lo0   16384 <Link#2>                              46     0     0       46     0     0    0 
lo0   16384 localhost     ::1                      0     -     -        0     -     -    - 
lo0   16384 fe80::1%lo0   fe80::1                  0     -     -        0     -     -    - 
lo0   16384 0.0.0.0&0xfff localhost               46     -     -       46     -     -    - 

------------------------------------------------------------------------
netstat -anr

Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.100.1      UGS         0        5    em0
127.0.0.1          link#2             UH          0       46    lo0
192.168.100.0/24   link#1             U           0        9    em0
192.168.100.176    link#1             UHS         0        0    lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               ::1                           UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff01::%lo0/32                     ::1                           U           lo0
ff02::/16                         ::1                           UGRS        lo0
ff02::%lo0/32                     ::1                           U           lo0

------------------------------------------------------------------------
netstat -anA

Active Internet connections (including servers)
Tcpcb            Proto Recv-Q Send-Q Local Address      Foreign Address    (state)
fffffe00028697a0 tcp4       0     80 127.0.0.1.22       127.0.0.1.48110    ESTABLISHED
fffffe0002869000 tcp4       0      0 127.0.0.1.48110    127.0.0.1.22       ESTABLISHED
fffffe00028693d0 tcp4       0      0 127.0.0.1.25       *.*                LISTEN
fffffe0002869b70 tcp4       0      0 *.22               *.*                LISTEN
fffffe0002863000 tcp6       0      0 *.22               *.*                LISTEN
fffffe00028547a8 udp4       0      0 *.514              *.*                
fffffe0002854ab8 udp6       0      0 *.514              *.*                
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
fffffe000296b2d0 stream      0      0        0 fffffe000296b3c0        0        0
fffffe000296b3c0 stream      0      0        0 fffffe000296b2d0        0        0
fffffe000296be10 stream      0      0        0 fffffe000286a000        0        0
fffffe000286a000 stream      0      0        0 fffffe000296be10        0        0
fffffe000296bd20 stream      0      0 fffffe0002878000        0        0        0 /var/run/devd.pipe
fffffe000296bb40 dgram       0      0        0 fffffe000296b5a0        0 fffffe000296b960
fffffe000296b960 dgram       0      0        0 fffffe000296b5a0        0        0
fffffe000296b5a0 dgram       0      0 fffffe000298b000        0 fffffe000296bb40        0 /var/run/logpriv
fffffe000296b4b0 dgram       0      0 fffffe000298b1e0        0        0        0 /var/run/log

------------------------------------------------------------------------
netstat -aL

Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen         Local Address         
tcp4  0/0/10         localhost.smtp         
tcp4  0/0/128        *.ssh                  
tcp6  0/0/128        *.ssh                  
unix  0/0/4          /var/run/devd.pipe

------------------------------------------------------------------------
fstat

USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
root     Îúï¾È»     1096 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1096   wd -         -     ?(fuse)    -
root     Îúï¾È»     1096 text /        495304 -rwxr-xr-x    6869  r
root     Îúï¾È»     1096    0 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»     1096    1 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»     1096    2 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»     1050 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1050   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1050 text /         22367 -r-xr-xr-x   69536  r
root     Îúï¾È»     1050    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1050    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1050    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1050    3 /dev         77 crw-rw----   fuse0 rw
root     Îúï¾È»     1050    4* local stream fffffe000286a000 <-> fffffe000296be10
dh       Îúï¾È»     1049 root /             2 drwxr-xr-x    1024  r
dh       Îúï¾È»     1049   wd /        521059 drwxr-xr-x     512  r
dh       Îúï¾È»     1049 text /        575899 -r-xr-xr-x   32624  r
dh       Îúï¾È»     1049    0* pipe fffffe0002803000 <-> fffffe0002803158      0 rw
dh       Îúï¾È»     1049    1* pipe fffffe000280a9e0 <-> fffffe000280a888      0 rw
dh       Îúï¾È»     1049    2* pipe fffffe000280a708 <-> fffffe000280a5b0      0 rw
dh       Îúï¾È»     1049    3 /        521063 -rwsr-----       0 rw
dh       Îúï¾È»     1047 root /             2 drwxr-xr-x    1024  r
dh       Îúï¾È»     1047   wd /        521059 drwxr-xr-x     512  r
dh       Îúï¾È»     1047 text /         94732 -r-xr-xr-x  368968  r
dh       Îúï¾È»     1047   16* pipe fffffe0002803000 <-> fffffe0002803158      0 rw
dh       Îúï¾È»     1047   17* pipe fffffe000280a9e0 <-> fffffe000280a888      0 rw
dh       Îúï¾È»     1047   18* pipe fffffe000280a708 <-> fffffe000280a5b0      0 rw
dh       Îúï¾È»     1047   19* pipe fffffe0002803000 <-> fffffe0002803158      0 rw
dh       Îúï¾È»     1046 root /             2 drwxr-xr-x    1024  r
dh       Îúï¾È»     1046   wd /             2 drwxr-xr-x    1024  r
dh       Îúï¾È»     1046 text /        575593 -r-xr-xr-x  269568  r
dh       Îúï¾È»     1046    0 /dev         27 crw-rw-rw-    null rw
dh       Îúï¾È»     1046    1 /dev         27 crw-rw-rw-    null rw
dh       Îúï¾È»     1046    2 /dev         27 crw-rw-rw-    null rw
dh       Îúï¾È»     1046    3* internet stream tcp fffffe00028697a0
dh       Îúï¾È»     1046    4* local stream fffffe000296b3c0 <-> fffffe000296b2d0
dh       Îúï¾È»     1046    5* pipe fffffe000280a000 <-> fffffe000280a158      0 rw
dh       Îúï¾È»     1046    6* pipe fffffe000280a158 <-> fffffe000280a000      0 rw
dh       Îúï¾È»     1046    8* pipe fffffe0002803158 <-> fffffe0002803000      0 rw
dh       Îúï¾È»     1046    9* pipe fffffe000280a888 <-> fffffe000280a9e0      0 rw
dh       Îúï¾È»     1046   11* pipe fffffe000280a5b0 <-> fffffe000280a708      0 rw
root     Îúï¾È»     1044 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1044   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1044 text /        575593 -r-xr-xr-x  269568  r
root     Îúï¾È»     1044    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1044    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1044    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»     1044    3* internet stream tcp fffffe00028697a0
root     Îúï¾È»     1044    5* local stream fffffe000296b2d0 <-> fffffe000296b3c0
root     Îúï¾È»     1043 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1043   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»     1043 text /        578819 -r-xr-xr-x  162456  r
root     Îúï¾È»     1043    0* local stream fffffe000296be10 <-> fffffe000286a000
root     Îúï¾È»     1043    1* local stream fffffe000296be10 <-> fffffe000286a000
root     Îúï¾È»     1043    2 /dev         27 crw-rw-rw-    null  w
root     Îúï¾È»     1043    3* internet stream tcp fffffe0002869000
root     Îúï¾È»     1043    4* local stream fffffe000296be10 <-> fffffe000286a000
root     Îúï¾È»     1043    5* local stream fffffe000296be10 <-> fffffe000286a000
root     Îúï¾È»     1043    6 /dev         27 crw-rw-rw-    null  w
root     Îúï¾È»      976 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      976   wd -         -     ?(fuse)    -
root     Îúï¾È»      976 text /         94732 -r-xr-xr-x  368968  r
root     Îúï¾È»      976   15 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      976   16 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      976   17 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      976   18 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      976   19 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      975 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      975   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      975 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      975    0 /dev         49 crw-------   ttyv7 rw
root     Îúï¾È»      975    1 /dev         49 crw-------   ttyv7 rw
root     Îúï¾È»      975    2 /dev         49 crw-------   ttyv7 rw
root     Îúï¾È»      974 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      974   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      974 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      974    0 /dev         48 crw-------   ttyv6 rw
root     Îúï¾È»      974    1 /dev         48 crw-------   ttyv6 rw
root     Îúï¾È»      974    2 /dev         48 crw-------   ttyv6 rw
root     Îúï¾È»      973 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      973   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      973 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      973    0 /dev         47 crw-------   ttyv5 rw
root     Îúï¾È»      973    1 /dev         47 crw-------   ttyv5 rw
root     Îúï¾È»      973    2 /dev         47 crw-------   ttyv5 rw
root     Îúï¾È»      972 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      972   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      972 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      972    0 /dev         46 crw-------   ttyv4 rw
root     Îúï¾È»      972    1 /dev         46 crw-------   ttyv4 rw
root     Îúï¾È»      972    2 /dev         46 crw-------   ttyv4 rw
root     Îúï¾È»      971 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      971   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      971 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      971    0 /dev         45 crw-------   ttyv3 rw
root     Îúï¾È»      971    1 /dev         45 crw-------   ttyv3 rw
root     Îúï¾È»      971    2 /dev         45 crw-------   ttyv3 rw
root     Îúï¾È»      970 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      970   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      970 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      970    0 /dev         44 crw-------   ttyv2 rw
root     Îúï¾È»      970    1 /dev         44 crw-------   ttyv2 rw
root     Îúï¾È»      970    2 /dev         44 crw-------   ttyv2 rw
root     Îúï¾È»      969 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      969   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      969 text /        575866 -r-xr-xr-x   27480  r
root     Îúï¾È»      969    0 /dev         43 crw-------   ttyv1 rw
root     Îúï¾È»      969    1 /dev         43 crw-------   ttyv1 rw
root     Îúï¾È»      969    2 /dev         43 crw-------   ttyv1 rw
root     Îúï¾È»      968 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      968   wd /        473600 drwxr-xr-x     512  r
root     Îúï¾È»      968 text /        578939 -r-sr-xr-x   25048  r
root     Îúï¾È»      968    0 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      968    1 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      968    2 /dev         42 crw-------   ttyv0 rw
root     Îúï¾È»      968    3* local dgram fffffe000296bb40 <-> fffffe000296b5a0
root     Îúï¾È»      907 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      907   wd /         47368 drwxr-x---     512  r
root     Îúï¾È»      907 text /        575651 -r-xr-xr-x   41344  r
root     Îúï¾È»      907    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      907    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      907    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      907    3 /         47446 -rw-------       3  w
root     Îúï¾È»      899 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      899   wd /         47386 drwxr-xr-x     512  r
root     Îúï¾È»      899 text /        575914 -r-xr-sr-x  707416  r
root     Îúï¾È»      899    0 /dev         27 crw-rw-rw-    null  r
root     Îúï¾È»      899    1 /dev         27 crw-rw-rw-    null  w
root     Îúï¾È»      899    2 /dev         27 crw-rw-rw-    null  w
root     Îúï¾È»      899    3* local dgram fffffe000296b960 <-> fffffe000296b5a0
root     Îúï¾È»      899    4* internet stream tcp fffffe00028693d0
root     Îúï¾È»      899    5 /         47445 -rw-------      78  w
root     Îúï¾È»      892 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      892   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      892 text /        575593 -r-xr-xr-x  269568  r
root     Îúï¾È»      892    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      892    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      892    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      892    3* internet6 stream tcp fffffe0002863000
root     Îúï¾È»      892    4* internet stream tcp fffffe0002869b70
root     Îúï¾È»      601 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      601   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      601 text /        575817 -r-xr-xr-x   39776  r
root     Îúï¾È»      601    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      601    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      601    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      601    3 /         47831 -rw-------       3  w
root     Îúï¾È»      601    4* local dgram fffffe000296b4b0
root     Îúï¾È»      601    5* local dgram fffffe000296b5a0
root     Îúï¾È»      601    6* internet6 dgram udp fffffe0002854ab8
root     Îúï¾È»      601    7* internet dgram udp fffffe00028547a8
root     Îúï¾È»      601    8 /dev         34 crw-------    klog  r
root     Îúï¾È»      601   10 -         -         bad    -
root     Îúï¾È»      601   11 /         47439 -rw-r--r--   39784  w
root     Îúï¾È»      601   12 /         47441 -rw-------      59  w
root     Îúï¾È»      601   13 /         47434 -rw-------    2751  w
root     Îúï¾È»      601   14 /         47450 -rw-r-----    2824  w
root     Îúï¾È»      601   15 /         47437 -rw-r--r--      59  w
root     Îúï¾È»      601   16 /         47442 -rw-------      59  w
root     Îúï¾È»      601   17 /         47435 -rw-------   23360  w
root     Îúï¾È»      601   18 /         47436 -rw-------      59  w
root     Îúï¾È»      601   19 /         47440 -rw-r-----      59  w
root     Îúï¾È»      463 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      463   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      463 text /        520975 -r-xr-xr-x  443424  r
root     Îúï¾È»      463    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      463    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      463    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      463    3 /dev          3 crw-------  devctl  r
root     Îúï¾È»      463    4* local stream fffffe000296bd20
root     Îúï¾È»      463    5 /         47807 -rw-------       3  w
_dhcp    Îúï¾È»      447 root /         47370 dr-xr-xr-x     512  r
_dhcp    Îúï¾È»      447   wd /         47370 dr-xr-xr-x     512  r
_dhcp    Îúï¾È»      447 jail /         47370 dr-xr-xr-x     512  r
_dhcp    Îúï¾È»      447 text /        520977 -r-xr-xr-x   92208  r
_dhcp    Îúï¾È»      447    0 /dev         27 crw-rw-rw-    null rw
_dhcp    Îúï¾È»      447    1 /dev         27 crw-rw-rw-    null rw
_dhcp    Îúï¾È»      447    2 /dev         27 crw-rw-rw-    null rw
_dhcp    Îúï¾È»      447    4* route raw 0 fffffe0002866000
_dhcp    Îúï¾È»      447    5* pipe fffffe000280a430 <-> fffffe000280a2d8      0 rw
_dhcp    Îúï¾È»      447    6 /         47428 ----------    1420  w
_dhcp    Îúï¾È»      447    7 /dev         10 crw-------     bpf rw
_dhcp    Îúï¾È»      447    8* internet raw ip fffffe0002970000
root     Îúï¾È»      409 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      409   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      409 text /        520977 -r-xr-xr-x   92208  r
root     Îúï¾È»      409    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      409    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      409    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      409    4* pipe fffffe000280a2d8 <-> fffffe000280a430      0 rw
root     Îúï¾È»      144 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      144   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»      144 text /        520964 -r-xr-xr-x    9216  r
root     Îúï¾È»      144    0 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      144    1 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»      144    2 /dev         27 crw-rw-rw-    null rw
root     Îúï¾È»        1 root /             2 drwxr-xr-x    1024  r
root     Îúï¾È»        1   wd /             2 drwxr-xr-x    1024  r
root     Îúï¾È»        1 text /        521001 -r-xr-xr-x  790272  r
root     Îúï¾Ì»        0 root /             2 drwxr-xr-x    1024  r
root     Îúï¾Ì»        0   wd /             2 drwxr-xr-x    1024  r

------------------------------------------------------------------------
dmesg

Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-RELEASE-p2 #0: Thu May 31 22:01:52 EEST 2012
    root at test:/usr/obj/usr/src/sys/DEBUG amd64
CPU: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz (1979.18-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x106a4  Family = 6  Model = 1a  Stepping = 4
  Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x209<SSE3,MON,SSSE3>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
real memory  = 2147418112 (2047 MB)
avail memory = 2046959616 (1952 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <VBOX   VBOXAPIC>
ioapic0: Changing APIC ID to 1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe7ffffff irq 18 at device 2.0 on pci0
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.3> port 0xd010-0xd017 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0
em0: Ethernet address: 08:00:27:29:5f:bf
pci0: <base peripheral> at device 4.0 (no driver attached)
pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at device 5.0 on pci0
pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
pci0: <bridge> at device 7.0 (no driver attached)
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
qpi0: <QPI system bus> on motherboard
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
Event timer "RTC" frequency 32768 Hz quality 0
ppc0: cannot reserve I/O port range
Timecounters tick every 10.000 msec
pcm0: measured ac97 link rate at 43694 Hz
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA-6 device
ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes)
ada0: 10240MB (20971520 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad0
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <VBOX CD-ROM 1.0> Removable CD-ROM SCSI-0 device 
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Timecounter "TSC" frequency 1979182033 Hz quality 800
Trying to mount root from ufs:/dev/ada0p2 [rw]...
WARNING: / was not properly dismounted
/: mount pending error: blocks 64 files 0
Setting hostuuid: 98643bca-99e5-47b1-96cb-ed4fc3a87da6.
Setting hostid: 0x50eb6ed6.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
** SU+J Recovering /dev/ada0p2
** Reading 33554432 byte journal from inode 4.
** Building recovery table.
** Resolving unreferenced inode list.
** Processing journal entries.
** 8 journal records in 1536 bytes for 16.67% utilization
** Freed 2 inodes (0 dirs) 0 blocks, and 1 frags.

***** FILE SYSTEM MARKED CLEAN *****
Mounting local file systems:.
Setting hostname: test.
Starting Network: lo0 em0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
	ether 08:00:27:29:5f:bf
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
Starting devd.
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.100.1
bound to 192.168.100.176 -- renewal in 43200 seconds.
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
add net fe80::: gateway ::1
add net ff02::: gateway ::1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
32-bit compatibility ldconfig path: /usr/lib32
Creating and/or trimming log files.
Starting syslogd.
savecore: reboot after panic: from debugger
Jun  8 22:54:02 test savecore: reboot after panic: from debugger
savecore: writing core to vmcore.0
Writing crash summary to /var/crash/core.txt.0.
Clearing /tmp (X related).
Updating motd:.
Configuring syscons: keymap blanktime.
Starting sshd.
Jun  8 22:54:14 test sm-mta[898]: My unqualified host name (cloud) unknown; sleeping for retry
Jun  8 22:55:14 test sm-mta[898]: unable to qualify my own domain name (cloud) -- using short name
Jun  8 22:55:14 test sm-msp-queue[902]: My unqualified host name (cloud) unknown; sleeping for retry
Script /etc/rc.d/sendmail interrupted
Starting cron.
Starting background file system checks in 60 seconds.

Fri Jun  8 22:55:32 EEST 2012
Jun  8 22:55:36 test login: ROOT LOGIN (root) ON ttyv0
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read instruction, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xffffff80003c9ad0
frame pointer	        = 0x28:0xffffff80003c9b20
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1096 (crash)
panic: from debugger
cpuid = 0
KDB: stack backtrace:
Uptime: 7m30s
Dumping 309 out of 2029 MB:..6%..11%..21%..31%..42%..52%..62%..73%..83%..93%

------------------------------------------------------------------------
kernel config

options	CONFIG_AUTOGENERATED
ident	GENERIC
machine	amd64
cpu	HAMMER
makeoptions	DEBUG=-g
options	USB_DEBUG
options	AH_SUPPORT_AR5416
options	IEEE80211_SUPPORT_MESH
options	IEEE80211_AMPDU_AGE
options	IEEE80211_DEBUG
options	SC_PIXEL_MODE
options	AHD_REG_PRETTY_PRINT
options	AHC_REG_PRETTY_PRINT
options	ATA_STATIC_ID
options	ATA_CAM
options	SMP
options	GDB
options	DDB
options	KDB_TRACE
options	KDB
options	INCLUDE_CONFIG_FILE
options	MAC
options	AUDIT
options	HWPMC_HOOKS
options	KBD_INSTALL_CDEV
options	PRINTF_BUFR_SIZE=128
options	_KPOSIX_PRIORITY_SCHEDULING
options	SYSVSEM
options	SYSVMSG
options	SYSVSHM
options	STACK
options	KTRACE
options	SCSI_DELAY=5000
options	COMPAT_FREEBSD7
options	COMPAT_FREEBSD6
options	COMPAT_FREEBSD5
options	COMPAT_FREEBSD4
options	COMPAT_FREEBSD32
options	GEOM_LABEL
options	GEOM_PART_GPT
options	PSEUDOFS
options	PROCFS
options	CD9660
options	MSDOSFS
options	NFS_ROOT
options	NFSLOCKD
options	NFSD
options	NFSCL
options	MD_ROOT
options	UFS_GJOURNAL
options	UFS_DIRHASH
options	UFS_ACL
options	SOFTUPDATES
options	FFS
options	SCTP
options	INET6
options	INET
options	PREEMPTION
options	SCHED_ULE
options	NEW_PCIB
options	GEOM_PART_MBR
options	GEOM_PART_EBR_COMPAT
options	GEOM_PART_EBR
options	GEOM_PART_BSD
device	isa
device	mem
device	io
device	uart_ns8250
device	cpufreq
device	acpi
device	pci
device	fdc
device	ahci
device	ata
device	mvs
device	siis
device	ahc
device	ahd
device	esp
device	hptiop
device	isp
device	mpt
device	mps
device	sym
device	trm
device	adv
device	adw
device	aic
device	bt
device	scbus
device	ch
device	da
device	sa
device	cd
device	pass
device	ses
device	amr
device	arcmsr
device	ciss
device	dpt
device	hptmv
device	hptrr
device	iir
device	ips
device	mly
device	twa
device	aac
device	aacp
device	ida
device	mfi
device	mlx
device	twe
device	tws
device	atkbdc
device	atkbd
device	psm
device	kbdmux
device	vga
device	splash
device	sc
device	agp
device	cbb
device	pccard
device	cardbus
device	uart
device	ppc
device	ppbus
device	lpt
device	plip
device	ppi
device	puc
device	bxe
device	de
device	em
device	igb
device	ixgbe
device	le
device	ti
device	txp
device	vx
device	miibus
device	ae
device	age
device	alc
device	ale
device	bce
device	bfe
device	bge
device	dc
device	et
device	fxp
device	jme
device	lge
device	msk
device	nfe
device	nge
device	pcn
device	re
device	rl
device	sf
device	sge
device	sis
device	sk
device	ste
device	stge
device	tl
device	tx
device	vge
device	vr
device	wb
device	xl
device	cs
device	ed
device	ex
device	ep
device	fe
device	sn
device	xe
device	wlan
device	wlan_wep
device	wlan_ccmp
device	wlan_tkip
device	wlan_amrr
device	an
device	ath
device	ath_pci
device	ath_hal
device	ath_rate_sample
device	ipw
device	iwi
device	iwn
device	malo
device	mwl
device	ral
device	wi
device	wpi
device	loop
device	random
device	ether
device	vlan
device	tun
device	pty
device	md
device	gif
device	faith
device	firmware
device	bpf
device	uhci
device	ohci
device	ehci
device	xhci
device	usb
device	uhid
device	ukbd
device	ulpt
device	umass
device	ums
device	urio
device	u3g
device	uark
device	ubsa
device	uftdi
device	uipaq
device	uplcom
device	uslcom
device	uvisor
device	uvscom
device	aue
device	axe
device	cdce
device	cue
device	kue
device	rue
device	udav
device	rum
device	run
device	uath
device	upgt
device	ural
device	urtw
device	zyd
device	firewire
device	fwe
device	fwip
device	dcons
device	dcons_crom
device	sound
device	snd_es137x
device	snd_hda
device	snd_ich
device	snd_uaudio
device	snd_via8233

------------------------------------------------------------------------
ddb capture buffer




>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list