FreeBSD_HEAD_arm64 - Build #3714 - Still Failing

jenkins-admin at FreeBSD.org jenkins-admin at FreeBSD.org
Thu Jul 28 09:56:45 UTC 2016


FreeBSD_HEAD_arm64 - Build #3714 - Still Failing:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/3714/
Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/3714/changes
Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/3714/console

Change summaries:

303427 by ed:
Change type of MB_CUR_MAX and MB_CUR_MAX_L() to size_t.

POSIX requires that MB_CUR_MAX expands to an expression of type size_t.
It currently expands to an int. As these are already macros, don't
change the underlying type of these functions. There is no ned to touch
those.

Differential Revision:	https://reviews.freebsd.org/D6645

303426 by kib:
Rewrite subr_sleepqueue.c use of callouts to not depend on the
specifics of callout KPI.  Esp., do not depend on the exact interface
of callout_stop(9) return values.

The main change is that instead of requiring precise callouts, code
maintains absolute time to wake up.  Callouts now should ensure that a
wake occurs at the requested moment, but we can tolerate both run-away
callout, and callout_stop(9) lying about running callout either way.

As consequence, it removes the constant source of the bugs where
sleepq_check_timeout() causes uninterruptible thread state where the
thread is detached from CPU, see e.g. r234952 and r296320.

Patch also removes dual meaning of the TDF_TIMEOUT flag, making code
(IMO much) simpler to reason about.

Tested by:	pho
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 month
Differential revision:	https://reviews.freebsd.org/D7137

303425 by kib:
Extract the calculation of the callout fire time into the new function
callout_when(9).  See the man page update for the description of the
intended use.

Tested by:	pho
Reviewed by:	jhb, bjk (man page updates)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 month
X-Differential revision:	https://reviews.freebsd.org/D7137

303424 by kib:
Fix typo in comment.

MFC after:  3 days

303423 by kib:
When a debugger attaches to the process, SIGSTOP is sent to the
target.  Due to a way issignal() selects the next signal to deliver
and report, if the simultaneous or already pending another signal
exists, that signal might be reported by the next waitpid(2) call.
This causes minor annoyance for debuggers, which must be prepared to
take any signal as the first event, then filter SIGSTOP later.

More importantly, for tools like gcore(1), which attach and then
detach without processing events, SIGSTOP might leak to be delivered
after PT_DETACH.  This results in the process being unintentionally
stopped after detach, which is fatal for automatic tools.

The solution is to force SIGSTOP to be the first signal reported after
the attach.  Attach code is modified to set P2_PTRACE_FSTP to indicate
that the attaching ritual was not yet finished, and issignal() prefers
SIGSTOP in that condition.  Also, the thread which handles
P2_PTRACE_FSTP is made to guarantee to own p_xthread during the first
waitpid(2).  All that ensures that SIGSTOP is consumed first.

Additionally, if P2_PTRACE_FSTP is still set on detach, which means
that waitpid(2) was not called at all, SIGSTOP is removed from the
queue, ensuring that the process is resumed on detach.

In issignal(), when acting on STOPing signals, remove the signal from
queue before suspending.  Otherwise parallel attach could result in
ptracestop() acting on that STOP as if it was the STOP signal from the
attach.  Then SIGSTOP from attach leaks again.

As a minor refactoring, some bits of the common attach code is moved
to new helper proc_set_traced().

Reported by:	markj
Reviewed by:	jhb, markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D7256



The end of the build log:

Started by an SCM change
Building remotely on kyua1.nyi.freebsd.org (jailer) in workspace /jenkins/workspace/FreeBSD_HEAD_arm64
Updating svn://svnmir.freebsd.org/base/head at revision '2016-07-28T09:55:07.885 +0000'
U         include/stdlib.h
U         include/xlocale/_stdlib.h
U         sys/ddb/db_ps.c
U         sys/kern/kern_thread.c
U         sys/kern/subr_sleepqueue.c
U         sys/kern/kern_timeout.c
U         sys/kern/kern_exit.c
U         sys/kern/kern_fork.c
U         sys/kern/kern_sig.c
U         sys/kern/sys_process.c
U         sys/sys/proc.h
U         sys/sys/callout.h
U         share/man/man9/Makefile
U         share/man/man9/timeout.9
U         bin/ps/ps.1
At revision 303427

No emails were triggered.
[FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson8140774213607810473.sh
+ export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'
+ export 'jname=FreeBSD_HEAD_arm64'
+ echo 'clean up jail FreeBSD_HEAD_arm64'
clean up jail FreeBSD_HEAD_arm64
+ sudo jail -r FreeBSD_HEAD_arm64
+ true
+ sudo ifconfig igb0 inet6 2610:1c1:1:607c::101:1 -alias
+ true
+ sudo umount FreeBSD_HEAD_arm64/usr/src
+ true
+ sudo umount FreeBSD_HEAD_arm64/dev
+ true
+ sudo rm -fr FreeBSD_HEAD_arm64
+ sudo chflags -R noschg FreeBSD_HEAD_arm64
+ true
+ sudo rm -fr FreeBSD_HEAD_arm64
[FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson164767804803916947.sh
+ export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'
+ export 'jname=FreeBSD_HEAD_arm64'
+ echo env:
env:
+ /usr/bin/env
BUILD_NUMBER=3714
HUDSON_SERVER_COOKIE=0657dbe3541f1b1a
JOB_NAME=FreeBSD_HEAD_arm64
LOGNAME=jenkins
JAVA_HOME=/usr/local/openjdk8
SVN_URL=svn://svnmir.freebsd.org/base/head
BUILDER_JAIL_IP=2610:1c1:1:607c::101:1
jname=FreeBSD_HEAD_arm64
JENKINS_URL=https://jenkins.FreeBSD.org/
JENKINS_HOME=/usr/local/jenkins
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
JOB_BASE_NAME=FreeBSD_HEAD_arm64
HUDSON_HOME=/usr/local/jenkins
OLDPWD=/
BUILD_ID=3714
BUILDER_NETIF=igb0
JENKINS_SERVER_COOKIE=0657dbe3541f1b1a
PWD=/jenkins/workspace/FreeBSD_HEAD_arm64
BUILD_TAG=jenkins-FreeBSD_HEAD_arm64-3714
NODE_LABELS=jailer kyua1.nyi.freebsd.org
BUILD_DISPLAY_NAME=#3714
HOME=/jenkins
USER=jenkins
BUILD_URL=https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/3714/
SVN_URL_1=svn://svnmir.freebsd.org/base/head
SVN_REVISION=303427
SVN_REVISION_1=303427
BUILDER_JAIL_IP6=2610:1c1:1:607c::101:1
JOB_URL=https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/
SHELL=/bin/sh
HUDSON_URL=https://jenkins.FreeBSD.org/
HUDSON_COOKIE=246a4d72-b116-4e42-9f69-1a7f4eb5a9d2
BUILDER_RESOLV_CONF=nameserver 2610:1c1:1:6002::100\nnameserver 2610:1c1:1:6002::200\n
WORKSPACE=/jenkins/workspace/FreeBSD_HEAD_arm64
NODE_NAME=kyua1.nyi.freebsd.org
EXECUTOR_NUMBER=0
+ echo 'setup jail FreeBSD_HEAD_arm64'
setup jail FreeBSD_HEAD_arm64
+ fetch -m http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/10.2-RELEASE/base.txz
+ fetch -m http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/10.2-RELEASE/lib32.txz
+ mkdir FreeBSD_HEAD_arm64
+ cd FreeBSD_HEAD_arm64
+ sudo tar Jxf ../base.txz
+ sudo tar Jxf ../lib32.txz
+ cd -
+ sudo mount -t devfs devfs FreeBSD_HEAD_arm64/dev
+ sudo devfs -m FreeBSD_HEAD_arm64/dev rule -s 4 applyset
+ sudo mount -t nullfs src FreeBSD_HEAD_arm64/usr/src
+ printf 'nameserver 2610:1c1:1:6002::100\nnameserver 2610:1c1:1:6002::200\n'
+ sudo tee FreeBSD_HEAD_arm64/etc/resolv.conf
nameserver 2610:1c1:1:6002::100
nameserver 2610:1c1:1:6002::200
+ sudo ifconfig igb0 inet6 2610:1c1:1:607c::101:1 alias
ifconfig: ioctl (SIOCAIFADDR): File exists
Build step 'Execute shell' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
[PostBuildScript] - Execution post build scripts.
[FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson6987722559903839461.sh
+ export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'
+ export 'jname=FreeBSD_HEAD_arm64'
+ echo 'clean up jail FreeBSD_HEAD_arm64'
clean up jail FreeBSD_HEAD_arm64
+ sudo jail -r FreeBSD_HEAD_arm64
jail: "FreeBSD_HEAD_arm64" not found
+ true
+ sudo ifconfig igb0 inet6 2610:1c1:1:607c::101:1 -alias
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
+ true
+ sudo umount FreeBSD_HEAD_arm64/usr/src
+ sudo umount FreeBSD_HEAD_arm64/dev
+ sudo rm -fr FreeBSD_HEAD_arm64
+ true
+ sudo chflags -R noschg FreeBSD_HEAD_arm64
+ sudo rm -fr FreeBSD_HEAD_arm64
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any


More information about the freebsd-arm mailing list