Date: Tue, 13 Nov 2018 19:44:11 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 233205] make(1) can stall, leak tons of memory, and trigger OOM during buildworld Message-ID: <bug-233205-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233205 Bug ID: 233205 Summary: make(1) can stall, leak tons of memory, and trigger OOM during buildworld Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kevans@freebsd.org I'm certain there's other ways to reproduce, but the simplest version I have is: cd /usr/src rm lib/Makefile.inc make -j4 buildworld buildworld will stall early on, probably in cleandir or obj walk. truss rev= eals tons and tons of: fstatat(AT_FDCWD,"/usr/src/lib/ncurses/ncurses/../../Makefile.inc",0x7fffff= ffca20,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/usr/src/lib/ncurses/ncurses/../../Makefile.inc",0x7fffff= ffca20,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"../Makefile.inc",0x7fffffffc908,0x0) ERR#2 'No such file = or directory' openat(AT_FDCWD,"/usr/src/lib/ncurses/ncurses/../Makefile.inc",O_RDONLY,00)= =3D 3 (0x3) fstat(3,{ mode=3D-rw-r--r-- ,inode=3D43789,size=3D94,blksize=3D4096 }) =3D = 0 (0x0) mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE,3,0x0) =3D 35266478080 (0x8360bc000) close(3) =3D 0 (0x0) It dies in different places, but always in a grandchild of lib/. The immedi= ate examples I have being: make obj DIRPRFX=3Dlib/csu/amd64/ make obj DIRPRFX=3Dlib/geom/cache/ make obj DIRPRFX=3Dlib/libalias/libalias/ make obj DIRPRFX=3Dlib/csu/tests/ make cleandir DIRPRFX=3Dlib/libbsnmp/libbsnmp/ [markj] Eventually the system runs out of memory and make(1) is killed, killing the buildworld. As indicated above, markj was also able to reproduce this. --=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-233205-227>