Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 01:57:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230175] sched_rr_get_interval(9) fails in 32-bit emulation
Message-ID:  <bug-230175-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230175

            Bug ID: 230175
           Summary: sched_rr_get_interval(9) fails in 32-bit emulation
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

sched_rr_get_interval fails in 32-bit emulation.  It's supposed to fetch a
timespec from kernelspace to userspace.  But it fetches the seconds value i=
nto
the nanoseconds field.  To reproduce, run the i386 build of
lib/librt/sched_test:sched_rr_get_interval_2 on a system with an amd64 kern=
el.=20
For example:

$ sudo chroot /root32 /bin/sh
# cd /usr/tests/lib/librt
# kyua debug sched_test:sched_rr_get_interval_2
sched_test:sched_rr_get_interval_2  ->  failed:
/usr/home/somers/freebsd/base/head/contrib/netbsd-tests/lib/librt/t_sched.c=
:237:
tv1.tv_sec =3D=3D tv2.tv_sec not met

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230175-227>