From owner-freebsd-bugs@freebsd.org Wed Jan 31 12:56:24 2018 Return-Path: Delivered-To: freebsd-bugs@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 5268AEC9B88 for ; Wed, 31 Jan 2018 12:56:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C65A58289F for ; Wed, 31 Jan 2018 12:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0D844160A for ; Wed, 31 Jan 2018 12:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0VCuM6X023236 for ; Wed, 31 Jan 2018 12:56:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0VCuMC8023235 for freebsd-bugs@FreeBSD.org; Wed, 31 Jan 2018 12:56:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225584] Various compile process hang on Ryzen, but not on Intel Date: Wed, 31 Jan 2018 12:56:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mike@sentex.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 12:56:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225584 Bug ID: 225584 Summary: Various compile process hang on Ryzen, but not on Intel Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: mike@sentex.net Using the latest (non buggy Ryzens), compilation of certain ports leads to a hang. I have observed this on 11.1 as well as CURRENT as of r328611. An easy way to trigger the deadlock / hang is the compile net/samba47. Oth= ers see this bug too (https://lists.freebsd.org/pipermail/freebsd-stable/2018-January/088296.htm= l) The hang will happen at random places in the compile. ges/vfs_aio_linux.8.xml true --nonet -o default/docs-xml/manpages/vfs_aio_linux.8 /usr/ports/net/samba47/work/samba-4.7.4/docs-xml/xslt/man.xsl default/docs-xml/manpages/vfs_aio_linux.8.xml=20 [3749/3804] Generating manpages/vfs_audit.8 [3750/3804] Generating manpages/vfs_btrfs.8 [3751/3804] Generating manpages/vfs_cacheprime.8 runner XML_CATALOG_FILES=3D"file:///etc/xml/catalog file:///usr/local/share/xml/catalog file:///usr/ports/net/samba47/work/samba-4.7.4/bin/default/docs-xml/build/c= atalog.xml" export XML_CATALOG_FILES=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 true --xinclude --stringparam noreference 0 -o default/docs-xml/manpages/vfs_audit.8.xml --nonet /usr/ports/net/samba47/work/samba-4.7.4/docs-xml/xslt/expand-sambadoc.xsl /usr/ports/net/samba47/work/samba-4.7.4/docs-xml/manpages/vfs_audit.8.xml= =20=20=20=20=20=20 true --nonet -o default/docs-xml/manpages/vfs_audit.8 /usr/ports/net/samba47/work/samba-4.7.4/docs-xml/xslt/man.xsl default/docs-xml/manpages/vfs_audit.8.xml=20 load: 0.04 cmd: python2.7 64178 [usem] 2644.74r 31.01u 70.09s 0% 142756k make: Working in: /usr/ports/net/samba47 make[1]: Working in: /usr/ports/net/samba47 Occasionally, by loading up the CPU with other tasks, it can sometimes complete. In the hang, procstat shows root@amdtestr12:/home/mdtancsa # procstat -t 64178 PID TID COMM TDNAME CPU PRI STATE WCHAN= =20=20=20=20 64178 100793 python2.7 - -1 152 sleep usem= =20=20=20=20=20=20 64178 101077 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101078 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101079 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101080 python2.7 - -1 122 sleep usem= =20=20=20=20=20=20 64178 101081 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101082 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101083 python2.7 - -1 121 sleep umtxn= =20=20=20=20=20 64178 101084 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101085 python2.7 - -1 122 sleep usem= =20=20=20=20=20=20 64178 101086 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101087 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 64178 101088 python2.7 - -1 121 sleep usem= =20=20=20=20=20=20 root@amdtestr12:/home/mdtancsa # procstat -k 64178 PID TID COMM TDNAME KSTACK=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 64178 100793 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101077 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101078 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101079 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101080 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101081 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101082 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101083 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_lock_umutex __umtx_op_wait_umutex amd64_syscall fast_syscall_common=20 64178 101084 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101085 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101086 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101087 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 64178 101088 python2.7 - mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem2_wait __umtx_op_sem2_wait amd64_syscall fast_syscall_common=20 root@amdtestr12:/home/mdtancsa # procstat -kk 64178 PID TID COMM TDNAME KSTACK=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 64178 100793 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101077 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101078 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101079 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101080 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101081 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101082 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101083 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_lock_umutex+0x6e3 __umtx_op_wait_umutex+0x48 amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101084 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101085 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101086 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101087 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 64178 101088 python2.7 - mi_switch+0x18c sleepq_switch+0x10d sleepq_catch_signals+0x300 sleepq_wait_sig+0xf _sleep+0= x359 umtxq_sleep+0x163 do_sem2_wait+0x426 __umtx_op_sem2_wait+0x4b amd64_syscall+0x79b fast_syscall_common+0xfc=20 FreeBSD amdtestr12.sentex.ca 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r328611 CPU: AMD Ryzen 5 1600X Six-Core Processor (3593.36-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0x800f11 Family=3D0x17 Model=3D0x1 Stepp= ing=3D1 =20 Features=3D0x178bfbff =20 Features2=3D0x7ed8320b AMD Features=3D0x2e500800 AMD Features2=3D0x35c233ff Structured Extended Features=3D0x209c01a9 XSAVE Features=3D0xf AMD Extended Feature Extensions ID EBX=3D0x7 SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768 TSC: P-state invariant, performance statistics --=20 You are receiving this mail because: You are the assignee for the bug.=