boot -d not working?

2013-12-08 Thread Paul Goyette
Trying to debug another issue, so I attempted to boot a special kernel 
using 'boot netbsd.test -d'.


Much to my surprise, after loading the kernel, it immediately crashed 
with no console output at all, and proceeded to reboot.


With the exact same kernel, I am able to use 'boot -s' and then enter 
ddb (via Ctrl-Alt-Esc key-combo) and set my breakpoint.


Is anyone else having this problem?



-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Still trying to get nfsserver module working correctly

2013-12-08 Thread Paul Goyette
Ever since my upgrade from 6.99.23 6.99.24, I've had issues with the 
nfsserver module.  (See [1] and [2] and PR kern/48027).  The issue in 
[2] was resolved by Christos, but the initial problem remains.


I'm still digging in, and today I tried to get more details on what was 
sending the SIGSYS error.


The kernel being used has noth the nfs and nfsserver modules built-in 
so there is no need for autoload and auto-unload.


I'm pretty sure that mountd is successfully started, since there are 
numerous successful calls to nfssvc with flags SETEXPORTSLIST set, two 
calls for each entry in /etc/exports


However, when nfsd starts to run, it gets as far calling tryconf() for 
tcp6 and udp6 (src/usr.sbin/nfsd/nfsd.c line 369).  The next step should 
be to create the worker threads.  But it appears that this fails, and 
the kernel signals ENOSYS.  Here's the final part dmesg, including the 
entry to sys_nosys() breakpoint:



sys_nfssvc: Enter, lwp 0xfe882899b5c0
sys_nfssvc: SETEXPORTSLIST flag set
sys_nfssvc: Exit 9, lwp 0xfe882899b5c0, error 0
sys_nfssvc: Enter, lwp 0xfe882899b5c0
sys_nfssvc: SETEXPORTSLIST flag set
sys_nfssvc: Exit 9, lwp 0xfe882899b5c0, error 0
fatal breakpoint trapfatal breakpoint trap in supervisor mode
 in supervisor mode
trap type 1 code 0 rip 8020e621 cs 8 rflags 282 cr2 7f7ff67fcd88 ilevel 0
 rsp fe813b896bc8
trap type 1 code 0 rip 8020e621 cs 8 rflags 282 cr2 7f7ff63fbc88 ilevel 0
 rsp fe813b899bc8
sys_nfssvc: Enter, lwp 0xfe87f4792600
curlwp 0xfe87f47921e0 pid 339.4 lowest kstack 0xfe813b894000

A backtrace doesn't seem to be very helpful here; it indicates that the 
syscall being handled was syscall 0


crash bt
_KERNEL_OPT_NVLAN() at 0
_KERNEL_OPT_NVLAN() at 0
db_fncall() at db_fncall
db_command() at db_command+0xf2
db_command_loop() at db_command_loop+0xd8
db_trap() at db_trap+0xe9
kdb_trap() at kdb_trap+0x10d
trap() at trap+0x353
--- trap (number 1) ---
sys_sa_enable() at sys_sa_enable+0x1
syscall() at syscall+0x9a
--- syscall (number 0) ---
7f7ff709d59a:


It is rather curious, however, that sys_sa_enable() is listed in the 
backtrace.  I thought that sa (scheduler activations) had been 
removed?  If so, then why would a simple/normal userland call to 
pthread_create()?


And, if this is normal, why does this not trigger an attempt to 
auto-load the compat module, in order to enable the sa_enable syscall?




[1] http://mail-index.netbsd.org/current-users/2013/07/07/msg023001.html
[2] http://mail-index.netbsd.org/current-users/2013/09/14/msg023299.html

-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Error in crash(8)'s processing of exam/inst on amd64

2013-12-08 Thread Paul Goyette

With everything built from today's sources, I get

crash exam/ins syscall
syscall:pushq   %rbp
syscall+0x1:H\211\345AWAVAUATSH\203\354(I\211\374eH\213\034%\340\001
crash

I don't think the second line should be printed...   :)


More:

crash exam/inst syscall,5
syscall:pushq   %rbp
syscall+0x1: 
H\211\345AWAVAUATSH\203\354(I\211\374eH\213\034%\340\001addb%

cl,ffab (%rbx,%rcx,4)
syscall+0x20:   \300\001addb%dh,%dh
syscall+0x25:   \203\341\001addb%al,0 (%rcx)
syscall+0x2b:   \017\205\215\001addb%cl,ff8b (%rbp)
syscall+0x33:   \264$\220
crash


-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Automated report: NetBSD-current/i386 build failure

2013-12-08 Thread NetBSD Test Fixture
This is an automatically generated notice of a NetBSD-current/i386
build failure.

The failure occurred on babylon5.NetBSD.org, a NetBSD/amd64 host,
using sources from CVS date 2013.12.08.20.45.30.

An extract from the build.sh output follows:


CC=/tmp/bracket/build/2013.12.08.20.45.30-i386/tools/bin/i486--netbsdelf-gcc 
/tmp/bracket/build/2013.12.08.20.45.30-i386/tools/bin/nbmkdep -f 
svr4_ttold.d.tmp  --  
-I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/common/include 
--sysroot=/tmp/bracket/build/2013.12.08.20.45.30-i386/destdir -DSYSVSHM 
-DSYSVSEM -DSYSVMSG -DCOMPAT_SVR4 -DEXEC_ELF32 
-I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/common/include  -nostdinc -I. 
-I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/modules/compat_svr4 
-isystem /tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys -isystem 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/arch -isystem 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/../common/include -D_KERNEL 
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/compat/svr4/svr4_ttold.c  
 mv svr4_ttold.d.tmp svr4_ttold.d
--- dependall-drm ---

CC=/tmp/bracket/build/2013.12.08.20.45.30-i386/tools/bin/i486--netbsdelf-gcc 
/tmp/bracket/build/2013.12.08.20.45.30-i386/tools/bin/nbmkdep -f drm_irq.d.tmp  
--  -I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/common/include 
--sysroot=/tmp/bracket/build/2013.12.08.20.45.30-i386/destdir 
-I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/external/bsd/drm/dist/shared-core
 -I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/common/include  -nostdinc 
-I. -I/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/modules/drm -isystem 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys -isystem 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/arch -isystem 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/../common/include -D_KERNEL 
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/external/bsd/drm/dist/bsd-core/drm_irq.c
   mv drm_irq.d.tmp drm_irq.d
--- dependall-compat_freebsd ---
In file included from 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/compat/freebsd/freebsd_sysent.c:27:0:
./machine/freebsd_machdep.h:162:23: error: field 'sv_env' has incomplete 
type
*** [freebsd_sysent.o] Error code 1
nbmake[8]: stopped in 
/tmp/bracket/build/2013.12.08.20.45.30-i386/src/sys/modules/compat_freebsd
1 error

The following commits were made between the last successful build and the 
failed build:

2013.12.08.18.00.51 dsl src/sys/arch/amd64/amd64/cpufunc.S,v 1.22
2013.12.08.18.00.51 dsl src/sys/arch/x86/include/cpufunc.h,v 1.14
2013.12.08.18.00.51 dsl src/sys/arch/x86/include/specialreg.h,v 1.74
2013.12.08.18.08.34 dsl src/sys/arch/x86/include/cputypes.h,v 1.4
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/freebsd_machdep.c,v 1.56
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/ibcs2_machdep.c,v 1.41
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/machdep.c,v 1.740
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/process_machdep.c,v 1.75
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/svr4_machdep.c,v 1.97
2013.12.08.20.45.30 dsl src/sys/arch/i386/i386/trap.c,v 1.267
2013.12.08.20.45.30 dsl src/sys/arch/i386/include/freebsd_machdep.h,v 1.10
2013.12.08.20.45.30 dsl src/sys/arch/i386/include/npx.h,v 1.27
2013.12.08.20.45.30 dsl src/sys/arch/i386/isa/npx.c,v 1.147

Log files can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2013.12.html#2013.12.08.20.45.30


daily CVS update output

2013-12-08 Thread NetBSD source update

Updating src tree:
P src/bin/cat/cat.c
P src/lib/csu/arch/mips/crt0.S
P src/lib/libc/shlib_version
P src/sbin/gpt/add.c
P src/sbin/gpt/gpt.8
P src/sbin/gpt/resize.c
P src/sbin/gpt/show.c
P src/sys/arch/amd64/amd64/cpufunc.S
P src/sys/arch/arm/pic/pic.c
P src/sys/arch/i386/i386/freebsd_machdep.c
P src/sys/arch/i386/i386/ibcs2_machdep.c
P src/sys/arch/i386/i386/machdep.c
P src/sys/arch/i386/i386/process_machdep.c
P src/sys/arch/i386/i386/svr4_machdep.c
P src/sys/arch/i386/i386/trap.c
P src/sys/arch/i386/include/freebsd_machdep.h
P src/sys/arch/i386/include/npx.h
P src/sys/arch/i386/isa/npx.c
P src/sys/arch/sparc/sparc/pmap.c
P src/sys/arch/sparc/stand/ofwboot/Makefile
P src/sys/arch/sparc/stand/ofwboot/loadfile_machdep.c
P src/sys/arch/sparc/stand/ofwboot/version
P src/sys/arch/sparc64/include/pte.h
P src/sys/arch/sparc64/sparc64/hvcall.S
P src/sys/arch/x86/include/cpufunc.h
P src/sys/arch/x86/include/cputypes.h
P src/sys/arch/x86/include/specialreg.h
P src/sys/arch/x86/x86/tsc.c
P src/sys/compat/linux/arch/alpha/linux_syscall.h
P src/sys/compat/linux/arch/alpha/linux_syscallargs.h
P src/sys/compat/linux/arch/alpha/linux_syscalls.c
P src/sys/compat/linux/arch/alpha/linux_sysent.c
P src/sys/compat/linux/arch/alpha/syscalls.master
P src/sys/compat/linux/arch/amd64/linux_syscall.h
P src/sys/compat/linux/arch/amd64/linux_syscallargs.h
P src/sys/compat/linux/arch/amd64/linux_syscalls.c
P src/sys/compat/linux/arch/amd64/linux_sysent.c
P src/sys/compat/linux/arch/amd64/syscalls.master
P src/sys/compat/linux/arch/arm/linux_syscall.h
P src/sys/compat/linux/arch/arm/linux_syscallargs.h
P src/sys/compat/linux/arch/arm/linux_syscalls.c
P src/sys/compat/linux/arch/arm/linux_sysent.c
P src/sys/compat/linux/arch/arm/syscalls.master
P src/sys/compat/linux/arch/m68k/linux_syscall.h
P src/sys/compat/linux/arch/m68k/linux_syscallargs.h
P src/sys/compat/linux/arch/m68k/linux_syscalls.c
P src/sys/compat/linux/arch/m68k/linux_sysent.c
P src/sys/compat/linux/arch/m68k/syscalls.master
P src/sys/compat/linux/arch/mips/linux_syscall.h
P src/sys/compat/linux/arch/mips/linux_syscallargs.h
P src/sys/compat/linux/arch/mips/linux_syscalls.c
P src/sys/compat/linux/arch/mips/linux_sysent.c
P src/sys/compat/linux/arch/mips/syscalls.master
P src/sys/compat/linux/arch/powerpc/linux_syscall.h
P src/sys/compat/linux/arch/powerpc/linux_syscallargs.h
P src/sys/compat/linux/arch/powerpc/linux_syscalls.c
P src/sys/compat/linux/arch/powerpc/linux_sysent.c
P src/sys/compat/linux/arch/powerpc/syscalls.master
P src/sys/compat/linux/common/linux_file.c
P src/sys/dev/pci/if_athn_pci.c
P src/sys/dev/pci/pcidevs
P src/sys/dev/pci/pcidevs.h
P src/sys/dev/pci/pcidevs_data.h
P src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h
P src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
P src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c
P src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c
P src/sys/rump/kern/lib/libsys_linux/syscalls.master

Updating xsrc tree:


Killing core files:

Running the SUP scanner:
SUP Scan for current starting at Mon Dec  9 03:06:45 2013
SUP Scan for current completed at Mon Dec  9 03:07:55 2013
SUP Scan for mirror starting at Mon Dec  9 03:07:55 2013
SUP Scan for mirror completed at Mon Dec  9 03:10:39 2013



Updating release-5-0 src tree (netbsd-5-0):

Updating release-5-0 xsrc tree (netbsd-5-0):

Running the SUP scanner:
SUP Scan for release-5-0 starting at Mon Dec  9 03:14:57 2013
SUP Scan for release-5-0 completed at Mon Dec  9 03:15:07 2013



Updating release-6 src tree (netbsd-6):

Updating release-6 xsrc tree (netbsd-6):

Running the SUP scanner:
SUP Scan for release-6 starting at Mon Dec  9 03:22:49 2013
SUP Scan for release-6 completed at Mon Dec  9 03:23:03 2013




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  36661206 Dec  9 03:27 ls-lRA.gz