From owner-freebsd-emulation@freebsd.org Fri Feb 8 22:56:41 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E08BA14C96DA for ; Fri, 8 Feb 2019 22:56:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-14.consmr.mail.bf2.yahoo.com (sonic309-14.consmr.mail.bf2.yahoo.com [74.6.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79E89711B6 for ; Fri, 8 Feb 2019 22:56:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: FcbhHMoVM1mWr5t1jTFqx0NW4GjbV2crpwxNyzXLvr7.T6pSbBcnrImIEHNNYZT hJmk_wIdhP3LBW3cn29OXLcJBgnHcJL3ruN8J1J8VdYFHc5JuW8EH0MGIFzVD_5OI0mc725DxuDb fpvvuHr5oCSU4e66i1145KnGMYLTvfH8RaNzCeielTSTA7H4N3a6Ym4VoNqyAB7NeM9Gguu.xW7X CejxBDK0zNlDTcnEx3PXjDX3zJwLtKesvL1sgEJLNcdkIWB6tR2.kYD5AOU0UFM1EYxxg35xGyNF xXUj3aHwpjBkm_s6vUE6i0l8R6DpZX8SsSrquKixjE2nIMD5qYzhPKic5ZIVFRk35VpFGiNvbbOK YoAB_QG0PESpUeFfkGl009VttqD53T82MhDDwa6s4TCwGOr1hVuteEbejkSfGXLaYpB3Px_07WN. KJpeAoI_UU34l6seDXTl42_BpduP.STEoXeOEEwiyPbWwPekUbNKKe7NnBiIku16va8q4g7l418W h1FpKU01mJGHt.ZycQQN_Zv1FIMb7KpgTMOlZUq37EjFMq3qcIChKxUqRsmNaNegnE_Scw4xjTzY aBNLn85Qha4OY85n69LYzT_Bxr9z6ib_6dJMkw0jYJ3Jfxk6Hkp4BAKlbup30ywFaBWte_VY4uHV 4HugMkF5TlYt905rPAPovNAJ2DDOe_gjScHPGjIbsEnfBtMv6ggBzdVktSOBbxN6H.GAyR3.FyWo JpkmPdjKmQgxhzjbpG2iadYqVFmKRuCEwpkt9GTBKppeZs9Pjyh0SL9k_4i8wGu1ExtwWn1VE7in iBjRc15BQ2xxjgV424eo1ATOgvhvHB8i1d9emm.dgnPxttRzhSd1JdiMybOLzgZsNZh9wbmSzDN1 d6GnSAeGLBH8hLChl5MP7UZG.uNigENsANnt2IKDpXourYTGuDFY1n1yrYGwvdwV_RrKQRX.nvIW eXU5QjDdlhqKXqLtWG9ZvyfUMEIPrK9tBezVwNJWTJCWu8.z2NEkp8GvrpR85eXiCwwhfcJHfzej TNSHi02UOAwCw0aic_hV3YKxdrVxaQuSSKbjj2Uq2ZGhsY8bs7oxRdZQb Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Fri, 8 Feb 2019 22:56:33 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.113]) ([67.170.167.181]) by smtp413.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e3f07943d5d783d958957676b72323a2 for ; Fri, 08 Feb 2019 22:56:30 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: under qemu-arch64-static in use via poudriere on amd64: cmake ended up with a defunct child Message-Id: <1CE77CFA-1174-4B5E-ACAD-ACA64418C51C@yahoo.com> Date: Fri, 8 Feb 2019 14:56:27 -0800 To: freebsd-emulation@freebsd.org X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 79E89711B6 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.62 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.971,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-emulation@freebsd.org]; NEURAL_SPAM_MEDIUM(0.06)[0.059,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(1.25)[ip: (3.84), ipnet: 74.6.128.0/21(1.38), asn: 26101(1.10), country: US(-0.07)]; NEURAL_SPAM_LONG(0.85)[0.854,0]; RCVD_IN_DNSWL_NONE(0.00)[124.129.6.74.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 22:56:41 -0000 What happened ( from ps -auxd ): root 79018 0.0 0.0 12512 3088 0 I 13:58 0:00.07 = | | `-- sh: poudriere[FBSDFSSDjailCortexA57-default][06]: = build_pkg (poppler-qt5-0.72.0_1) (sh) root 93577 0.0 0.0 12512 3080 0 I 14:02 0:00.00 = | | `-- sh: poudriere[FBSDFSSDjailCortexA57-default][06]: = build_pkg (poppler-qt5-0.72.0_1) (sh) root 93578 0.0 0.0 10336 1756 0 IJ 14:02 0:00.01 = | | `-- /usr/bin/make -C /usr/ports/graphics/poppler-qt5 = build root 93581 0.0 0.0 10240 1800 0 IJ 14:02 0:00.00 = | | `-- /bin/sh -e -c (cd = /wrkdirs/usr/ports/graphics/poppler-qt5/work/poppler-0.72.0/qt5; if ! = /usr/bin/env QT root 93583 0.0 0.0 9860 1248 0 IJ 14:02 0:00.00 = | | `-- /usr/bin/make -f Makefile all root 93589 0.0 0.0 10312 1704 0 IJ 14:02 0:00.20 = | | `-- /nxb-bin/usr/bin/make -f = CMakeFiles/Makefile2 qt5/all root 3617 0.0 0.0 9860 1240 0 IJ 14:06 0:00.00 = | | `-- /nxb-bin/usr/bin/make -f = qt5/demos/CMakeFiles/poppler_qt5viewer_autogen.dir/build.make qt5/demos/ root 3626 0.0 0.0 250212 33880 0 SJ 14:06 0:00.18 = | | `-- /usr/local/bin/qemu-aarch64-static = /usr/local/bin/cmake -E cmake_autogen /wrkdirs/usr/ports/gra root 3628 0.0 0.0 0 0 0 ZJ 14:06 0:00.02 = | | `-- It has been stuck this way for some time. Context: # uname -apKU FreeBSD FBSDFSSD 13.0-CURRENT FreeBSD 13.0-CURRENT #9 r343884M: Thu Feb = 7 19:22:33 PST 2019 = markmi@FBSDFSSD:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/sys/G= ENERIC-NODBG amd64 amd64 1300010 1300010 This was from attempting to update to: # svnlite info /usr/ports | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 492409 Last Changed Rev: 492409 where the host amd64 environment had already been updated. Notes: I'm used to seeing wc /dev/null and head /dev/null zygote status and lld = (as ld) hang up for its thread fan-out. This is the first defunct that I've run into for such cross builds. Attaching to the emulated cmake and looking at threads: gdb) info threads Id Target Id Frame=20 * 1 LWP 101490 of process 3626 _nanosleep () at _nanosleep.S:3 2 LWP 101024 of process 3626 _umtx_op_err () at = /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37 3 LWP 101749 of process 3626 _umtx_op () at _umtx_op.S:3 (gdb) bt =20 #0 _nanosleep () at _nanosleep.S:3 #1 0x00000000601da2dc in __thr_nanosleep (time_to_sleep=3D0x7ffffffe34d0,= time_remaining=3D0x7ffffffe36b0) at = /usr/src/lib/libthr/thread/thr_syscalls.c:289 #2 0x0000000060041e56 in do_freebsd_nanosleep (arg1=3D, = arg2=3D0) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/freebsd/os-time.h:49 #3 do_freebsd_syscall (cpu_env=3D0x860edfb18, num=3D240, = arg1=3D, arg2=3D0, arg3=3D0, arg4=3D0, arg5=3D274932442568,= arg6=3D0, arg7=3D0, arg8=3D0) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall.c:1030 #4 0x000000006003903c in target_cpu_loop (env=3D0x860edfb18) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/aarch64/target_arch_cpu.h:100 #5 0x0000000060038e09 in cpu_loop (env=3D0x7ffffffe34d0) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/main.c:121 #6 0x0000000060039ecb in main (argc=3D, = argv=3D0x7fffffffd1e8) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/main.c:513 (gdb) thread 2 [Switching to thread 2 (LWP 101024 of process 3626)] #0 _umtx_op_err () at = /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37 37 RSYSCALL_ERR(_umtx_op) (gdb) bt #0 _umtx_op_err () at = /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37 #1 0x00000000601d2db0 in _thr_umtx_timedwait_uint (mtx=3D0x860523008, = id=3D, clockid=3D, abstime=3D, shared=3D) at /usr/src/lib/libthr/thread/thr_umtx.c:236 #2 0x00000000601dc5e8 in cond_wait_user (cvp=3D, = mp=3D0x8605153e0, abstime=3D0x0, cancel=3D1) at = /usr/src/lib/libthr/thread/thr_cond.c:307 #3 cond_wait_common (cond=3D, mutex=3D, = abstime=3D0x0, cancel=3D1) at /usr/src/lib/libthr/thread/thr_cond.c:367 #4 0x00000000601438dc in qemu_futex_wait (ev=3D, = val=3D4294967295) at util/qemu-thread-posix.c:350 #5 qemu_event_wait (ev=3D0x62735d10 ) at = util/qemu-thread-posix.c:445 #6 0x000000006014a94a in call_rcu_thread (opaque=3D) at = util/rcu.c:255 #7 0x00000000601dc266 in thread_start (curthread=3D0x860517500) at = /usr/src/lib/libthr/thread/thr_create.c:291 #8 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdfffd000 (gdb) thread 3 [Switching to thread 3 (LWP 101749 of process 3626)] #0 _umtx_op () at _umtx_op.S:3 3 RSYSCALL(_umtx_op) (gdb) bt #0 _umtx_op () at _umtx_op.S:3 #1 0x0000000060051cd0 in _umtx_wait_uint_private (addr=3D0x4003cae008, = target_val=3D, tsz=3D0, t=3D0x0, where=3D) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/freebsd/os-thread.c:258 #2 freebsd_umtx_wait_uint_private (obj=3D, = target_val=3D, tsz=3D0, t=3D0x0) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/freebsd/os-thread.c:269 #3 0x000000006004bebe in do_freebsd__umtx_op (obj=3D, = op=3D, val=3D, uaddr=3D, = target_time=3D) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/freebsd/os-thread.h:439 #4 0x00000000600427b8 in do_freebsd_syscall (cpu_env=3D0x86133b618, = num=3D454, arg1=3D, arg2=3D15, arg3=3D0, arg4=3D0, = arg5=3D0, arg6=3D0, arg7=3D0, arg8=3D7164779709595738991) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall.c:1364 #5 0x000000006003903c in target_cpu_loop (env=3D0x86133b618) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/aarch64/target_arch_cpu.h:100 #6 0x0000000060038e09 in cpu_loop (env=3D0x4003cae008) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/main.c:121 #7 0x0000000060051c66 in new_freebsd_thread_start (arg=3D) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/freebsd/os-thread.c:152 #8 0x00000000601dc266 in thread_start (curthread=3D0x86051a200) at = /usr/src/lib/libthr/thread/thr_create.c:291 #9 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdfdfc000 This is based on a somewhat patched variant of: # svnlite info /usr/ports | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 492409 Last Changed Rev: 492409 FBSDFSSD# pkg info qemu-user-static qemu-user-static-2.11.50.g20181011 Name : qemu-user-static Version : 2.11.50.g20181011 Installed on : Wed Jan 2 01:13:33 2019 PST Origin : emulators/qemu-user-static Architecture : FreeBSD:13:amd64 Prefix : /usr/local Categories : emulators Licenses : GPLv2 Maintainer : sbruno@FreeBSD.org WWW : http://wiki.qemu.org/Main_Page Comment : QEMU CPU Emulator github bsd-user branch - static user = targets Annotations : FreeBSD_version: 1300005 Flat size : 231MiB that has __packed commented out on the following in order to have the field offsets correct for both aarch64 and armv7 targets. struct target_freebsd11_kevent { abi_ulong ident; int16_t filter; uint16_t flags; uint32_t fflags; abi_long data; abi_ulong udata; } ; // __packed; =20 struct target_freebsd_kevent { abi_ulong ident; int16_t filter; uint16_t flags; uint32_t fflags; int64_t data; abi_ulong udata; uint64_t ext[4]; } ; // __packed; =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)