daily CVS update output

2023-10-15 Thread NetBSD source update


Updating src tree:
P src/distrib/sets/lists/comp/mi
P src/distrib/sets/lists/debug/mi
P src/distrib/sets/lists/tests/mi
P src/external/gpl3/gcc/README.gcc12
P src/lib/libc/sys/stat.2
P src/sys/arch/news68k/news68k/locore.s
P src/sys/arch/x86/x86/identcpu.c
P src/sys/ddb/db_command.c
P src/sys/ddb/db_syncobj.c
P src/sys/ddb/db_syncobj.h
P src/sys/ddb/db_xxx.c
P src/sys/dev/sequencer.c
P src/sys/dev/pci/igc/if_igc.c
P src/sys/dev/raidframe/rf_dagdegwr.c
P src/sys/dev/raidframe/rf_dagffwr.c
P src/sys/dev/raidframe/rf_pq.c
P src/sys/dev/raidframe/rf_pqdeg.c
P src/sys/dev/raidframe/rf_pqdegdags.c
P src/sys/dev/raidframe/rf_pqdegdags.h
P src/sys/kern/kern_condvar.c
P src/sys/kern/kern_ktrace.c
P src/sys/kern/kern_lwp.c
P src/sys/kern/kern_mutex.c
P src/sys/kern/kern_rwlock.c
P src/sys/kern/kern_sleepq.c
P src/sys/kern/kern_synch.c
P src/sys/kern/kern_turnstile.c
P src/sys/kern/sys_lwp.c
P src/sys/kern/sys_select.c
P src/sys/rump/librump/rumpkern/emul.c
P src/sys/rump/librump/rumpkern/lwproc.c
P src/sys/sys/Makefile
P src/sys/sys/lwp.h
P src/sys/sys/sleepq.h
P src/sys/sys/sleeptab.h
P src/sys/sys/syncobj.h
U src/sys/sys/wchan.h
P src/tests/kernel/Makefile
U src/tests/kernel/t_fdrestart.c

Updating xsrc tree:


Killing core files:



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

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



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

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



Updating release-10 src tree (netbsd-10):
P crypto/external/bsd/heimdal/Makefile.inc
P crypto/external/bsd/heimdal/include/config.h
P crypto/external/bsd/heimdal/lib/libhdb/Makefile
P crypto/external/bsd/heimdal/lib/libkrb5/Makefile
P crypto/external/bsd/heimdal/libexec/digest-service/Makefile
P crypto/external/bsd/heimdal/libexec/hpropd/Makefile
P crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile
P crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile
P crypto/external/bsd/heimdal/libexec/kadmind/Makefile
P crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile
P crypto/external/bsd/heimdal/sbin/hprop/Makefile
P crypto/external/bsd/heimdal/sbin/iprop-log/Makefile
P crypto/external/bsd/heimdal/sbin/kadmin/Makefile
P crypto/external/bsd/heimdal/sbin/kdc/Makefile
P crypto/external/bsd/heimdal/sbin/kstash/Makefile
U doc/CHANGES-10.0
P share/man/man4/agr.4
P share/mk/bsd.prog.mk
P sys/arch/arm/arm32/pmap.c
P sys/arch/arm/include/arm32/pmap.h
P sys/arch/evbarm/adi_brh/brh_machdep.c
P sys/arch/evbarm/conf/GENERIC64
P sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c
P sys/arch/evbarm/gumstix/gumstix_machdep.c
P sys/arch/evbarm/hdl_g/hdlg_machdep.c
P sys/arch/evbarm/iq80310/iq80310_machdep.c
P sys/arch/evbarm/iq80321/iq80321_machdep.c
P sys/arch/evbarm/ixdp425/ixdp425_machdep.c
P sys/arch/evbarm/iyonix/iyonix_machdep.c
P sys/arch/evbarm/lubbock/lubbock_machdep.c
P sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c
P sys/arch/evbarm/nslu2/nslu2_machdep.c
P sys/arch/evbarm/viper/viper_machdep.c
P sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c
P sys/arch/iyonix/iyonix/iyonix_machdep.c
P sys/arch/zaurus/zaurus/machdep.c
P sys/dev/pci/if_ixl.c
P sys/dev/pci/if_rge.c
P sys/dev/pci/igc/if_igc.c
P sys/dev/usb/if_ure.c
P sys/dev/usb/if_urndis.c
P sys/dev/usb/usbnet.c

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




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  41731179 Oct 16 03:13 ls-lRA.gz


Automated report: NetBSD-current/i386 build success

2023-10-15 Thread NetBSD Test Fixture
The NetBSD-current/i386 build is working again.

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

2023.10.15.13.04.15 riastradh src/distrib/sets/lists/comp/mi 1.2450
2023.10.15.13.04.15 riastradh src/sys/sys/Makefile 1.183
2023.10.15.13.13.22 riastradh src/sys/arch/x86/x86/identcpu.c 1.124
2023.10.15.13.22.52 riastradh src/distrib/sets/lists/debug/mi 1.419
2023.10.15.13.22.52 riastradh src/distrib/sets/lists/tests/mi 1.1294
2023.10.15.13.22.52 riastradh src/tests/kernel/Makefile 1.76
2023.10.15.13.22.52 riastradh src/tests/kernel/t_fdrestart.c 1.1

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2023.10.html#2023.10.15.13.22.52


Re: new rust (was: gdb issues?)

2023-10-15 Thread RVP

On Wed, 11 Oct 2023, Havard Eidnes wrote:


Program terminated with signal SIGSEGV, Segmentation fault.

...

#0  0x60d0fe74 in _cpuset_isset () from /usr/lib/libc.so.12
#1  0x03d2bf8c in std::sys::unix::thread::available_parallelism ()


...


At least it gives a bit of clue about where to go looking for the
null pointer de-reference, so that's at least something...


This gets me to

work/rustc-1.73.0-src/library/std/src/sys/unix/thread.rs

which says:

   for i in 0..u64::MAX {
   match libc::_cpuset_isset(i, set) {
[...]
but ... under which conditions would it seg-fault inside that function?



What's does the Rust impl. of _cpuset_isset() look like? Does it
take ints by any chance and you're passing a u64 to it here. A C
compiler will complain if you use `-m32', but, that's all. Don't
know how the Rust FFI will handle this. That's all I can think
of...


Debugging the C program reveals that pthread_getaffinity_np() has
done exactly nothing to the "cset" contents as near as I can
tell, the "bits" entry doesn't change.



pthread_getaffinity_np() _can_ be used to get the no. of "online"
CPUs on both Linux and FreeBSD, but it looks (from my perusal just
now) like threads default to no affinity on NetBSD and the scheduler
just picks whatever CPUs available for it--unless the affinity is
explicitly set, in which case it's inherited.

I think you should just use sysconf(_SC_NPROCESSORS_ONLN) or the
equivalent on NetBSD.

HTH,

-RVP


Automated report: NetBSD-current/i386 build failure

2023-10-15 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 2023.10.15.10.46.51.

An extract from the build.sh output follows:

CC=/tmp/build/2023.10.15.10.46.51-i386/tools/bin/i486--netbsdelf-c++ 
/tmp/build/2023.10.15.10.46.51-i386/tools/bin/nbmkdep -f 
sanitizer_symbolizer_libbacktrace.d.tmp  --   -std=gnu++11 -Wall 
-Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Werror  
--sysroot=/tmp/build/2023.10.15.10.46.51-i386/destdir 
-I/tmp/build/2023.10.15.10.46.51-i386/src/external/gpl3/gcc.old/dist/libsanitizer/include
 
-I/tmp/build/2023.10.15.10.46.51-i386/src/external/gpl3/gcc.old/dist/libsanitizer
 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-DSANITIZER_HAS_EXCEPTIONS=1 -DSANITIZER_NEEDS_SEGV=1 -DCAN_SANITIZE_UB=0 
/tmp/build/2023.10.15.10.46.51-i386/src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
 &&  mv -f sanitizer_symbolizer_libbacktrace.d.tmp 
sanitizer_symbolizer_libbacktrace.d
--- sanitizer_platform_limits_netbsd.d ---
In file included from 
/tmp/build/2023.10.15.10.46.51-i386/destdir/usr/include/sys/proc.h:71,
 from 
/tmp/build/2023.10.15.10.46.51-i386/destdir/usr/include/sys/sysctl.h:41,
 from 
/tmp/build/2023.10.15.10.46.51-i386/src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc:25:
/tmp/build/2023.10.15.10.46.51-i386/destdir/usr/include/sys/lwp.h:50:10: 
fatal error: sys/wchan.h: No such file or directory
   50 | #include 
  |  ^
compilation terminated.
nbmkdep: compile failed.
*** Failed target: sanitizer_platform_limits_netbsd.d

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

2023.10.15.10.27.11 riastradh src/sys/ddb/db_syncobj.h 1.2
2023.10.15.10.27.11 riastradh src/sys/kern/kern_condvar.c 1.61
2023.10.15.10.27.11 riastradh src/sys/kern/kern_ktrace.c 1.183
2023.10.15.10.27.11 riastradh src/sys/kern/kern_lwp.c 1.266
2023.10.15.10.27.11 riastradh src/sys/kern/kern_mutex.c 1.111
2023.10.15.10.27.11 riastradh src/sys/kern/kern_rwlock.c 1.75
2023.10.15.10.27.11 riastradh src/sys/kern/kern_sleepq.c 1.85
2023.10.15.10.27.11 riastradh src/sys/kern/kern_synch.c 1.364
2023.10.15.10.27.11 riastradh src/sys/kern/kern_turnstile.c 1.54
2023.10.15.10.27.11 riastradh src/sys/kern/sys_lwp.c 1.88
2023.10.15.10.27.11 riastradh src/sys/kern/sys_select.c 1.65
2023.10.15.10.27.11 riastradh src/sys/sys/lwp.h 1.229
2023.10.15.10.27.11 riastradh src/sys/sys/sleepq.h 1.41
2023.10.15.10.27.11 riastradh src/sys/sys/sleeptab.h 1.3
2023.10.15.10.27.11 riastradh src/sys/sys/syncobj.h 1.18
2023.10.15.10.27.11 riastradh src/sys/sys/wchan.h 1.1
2023.10.15.10.27.25 riastradh src/sys/ddb/db_command.c 1.188
2023.10.15.10.27.25 riastradh src/sys/ddb/db_syncobj.c 1.3
2023.10.15.10.27.25 riastradh src/sys/ddb/db_syncobj.h 1.3
2023.10.15.10.27.33 riastradh src/sys/ddb/db_command.c 1.189
2023.10.15.10.28.00 riastradh src/sys/kern/kern_condvar.c 1.62
2023.10.15.10.28.14 riastradh src/sys/kern/kern_lwp.c 1.267
2023.10.15.10.28.23 riastradh src/sys/kern/kern_mutex.c 1.112
2023.10.15.10.28.48 riastradh src/sys/kern/kern_rwlock.c 1.76
2023.10.15.10.29.02 riastradh src/sys/kern/kern_sleepq.c 1.86
2023.10.15.10.29.10 riastradh src/sys/kern/kern_synch.c 1.365
2023.10.15.10.29.24 riastradh src/sys/kern/sys_lwp.c 1.89
2023.10.15.10.29.34 riastradh src/sys/kern/sys_select.c 1.66
2023.10.15.10.29.44 riastradh src/sys/sys/lwp.h 1.230
2023.10.15.10.30.00 riastradh src/sys/sys/sleepq.h 1.42
2023.10.15.10.30.20 riastradh src/sys/kern/kern_turnstile.c 1.55
2023.10.15.10.40.52 martin src/sys/ddb/db_xxx.c 1.79
2023.10.15.10.46.51 tsutsui src/sys/arch/news68k/news68k/locore.s 1.71

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2023.10.html#2023.10.15.10.46.51