Date: Wed, 31 Jan 2018 12:56:22 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225584] Various compile process hang on Ryzen, but not on Intel Message-ID: <bug-225584-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,= MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> =20 Features2=3D0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVB= E,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=3D0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW= ,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX> Structured Extended Features=3D0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHO= PT,SHA> XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> AMD Extended Feature Extensions ID EBX=3D0x7<CLZERO,IRPerf,XSaveErPtr> 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225584-8>