Date: Mon, 17 Nov 2014 21:53:27 +0000 From: =?iso-8859-1?Q?Wei=DF=2C__Dr=2E_J=FCrgen?= <weiss@uni-mainz.de> To: "'ticso@cicely.de'" <ticso@cicely.de>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: RE: buildworld selfbuild failure Message-ID: <dcf812a27a0348e58e34cbda5238ce2c@e15be-01.zdv.Uni-Mainz.DE> In-Reply-To: <20140910111616.GA31990@cicely7.cicely.de> References: <20140910111616.GA31990@cicely7.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Same problem with freebsd current of 2 days ago on a Jetson TK1. After unmounting /usr/src and /usr/obj and mounting again, compilation with= out -j x=20 succeeds. Without unmounting /usr/src and /usr/obj calling cc directly from the shell= gives the=20 same error. using ktrace gives 59705 cc CALL open(0x22019050,0<O_RDONLY>,<unused>0xa5a50063) 59705 cc NAMI "/usr/src/kerberos5/lib/libheimsqlite/../../../crypto= /heimdal/lib/sqlite/sqlite3.c" 59705 cc RET open 4 59705 cc CALL fstat(0x4,0xbfffe450) 59705 cc STRU struct stat {dev=3D973143810, ino=3D32026, mode=3D010= 0644, nlink=3D1, uid=3D0, gid=3D0, rdev=3D20792, atime=3D1416131826.7517608= 29, stime=3D1403290613, ctime=3D1413735753.593422297, birthtim e=3D-1, size=3D4623536, blksize=3D4096, blocks=3D9225, flags=3D0x0 } 59705 cc RET fstat 0 59705 cc CALL fstat(0x4,0xbfffe220) 59705 cc STRU struct stat {dev=3D973143810, ino=3D32026, mode=3D010= 0644, nlink=3D1, uid=3D0, gid=3D0, rdev=3D20792, atime=3D1416131826.7517608= 29, stime=3D1403290613, ctime=3D1413735753.593422297, birthtim e=3D-1, size=3D4623536, blksize=3D4096, blocks=3D9225, flags=3D0x0 } 59705 cc RET fstat 0 59705 cc CALL mmap(0,0x468cb0,0x1<PROT_READ>,0x2<MAP_PRIVATE>,0x4,0= xbfffe580,0,0) 59705 cc RET mmap 574619648/0x22400000 59705 cc CALL close(0x4) 59705 cc RET close 0 59705 cc PSIG SIGBUS caught handler=3D0x152de90 mask=3D0x0 code=3DS= I_NOINFO running cc in gdb and doing=20 x/x 0x22400000 after the bus error occurred, gives the following kernel panic: panic: pmap_demote_section: No l2_bucket for wired mapping cpuid =3D 0 KDB: stack backtrace: db_trace_self() at db_trace_self pc =3D 0xc052b8d8 lr =3D 0xc023498c (db_trace_self_wrapper+0x30) sp =3D 0xf0502738 fp =3D 0xf0502850 r10 =3D 0xc563a000 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc =3D 0xc023498c lr =3D 0xc03dc920 (kdb_backtrace+0x38) sp =3D 0xf0502858 fp =3D 0xf0502860 r4 =3D 0xc0679a64 r5 =3D 0x00000001 r6 =3D 0xc05b6429 r7 =3D 0xc066a6f8 kdb_backtrace() at kdb_backtrace+0x38 pc =3D 0xc03dc920 lr =3D 0xc03a1798 (vpanic+0x114) sp =3D 0xf0502868 fp =3D 0xf0502888 r4 =3D 0x00000100 vpanic() at vpanic+0x114 pc =3D 0xc03a1798 lr =3D 0xc03a166c ($d) sp =3D 0xf0502890 fp =3D 0xf05028c0 r4 =3D 0xc066a5f8 r5 =3D 0xc05b6429 r6 =3D 0xf05028cc r7 =3D 0xc066a560 r8 =3D 0xc27012c0 r9 =3D 0x00000224 r10 =3D 0x22400000 $d() at $d pc =3D 0xc03a166c lr =3D 0xc0534e58 (pmap_demote_section+0x848) sp =3D 0xf05028d8 fp =3D 0xf0502938 r4 =3D 0x22400000 r5 =3D 0x22400000 r6 =3D 0xc5641a9c r7 =3D 0xe001983e pmap_demote_section() at pmap_demote_section+0x848 pc =3D 0xc0534e58 lr =3D 0xc0539a40 (pmap_enter_locked+0xfc) sp =3D 0xf0502940 fp =3D 0xf05029b0 r4 =3D 0xc05b59ef r5 =3D 0x22400000 r6 =3D 0xc5641a9c r7 =3D 0xc27012c0 r8 =3D 0xc06a1b80 r9 =3D 0x00000001 r10 =3D 0xc5641aac pmap_enter_locked() at pmap_enter_locked+0xfc pc =3D 0xc0539a40 lr =3D 0xc0539090 (pmap_enter+0x74) sp =3D 0xf05029b8 fp =3D 0xf0502a18 r4 =3D 0x22400000 r5 =3D 0xc27012c0 r6 =3D 0x00000001 r7 =3D 0xc05b59ef r8 =3D 0xc5641a9c r9 =3D 0x22400000 r10 =3D 0xc5641aac pmap_enter() at pmap_enter+0x74 pc =3D 0xc0539090 lr =3D 0xc04fe714 (vm_fault_hold+0x2b0) sp =3D 0xf0502a20 fp =3D 0xf0502b98 r4 =3D 0xf0502b28 r5 =3D 0xc56419e0 r6 =3D 0xc27012c0 r7 =3D 0xc05af0a4 r8 =3D 0x00000001 r9 =3D 0x22400000 r10 =3D 0xc56419e0 vm_fault_hold() at vm_fault_hold+0x2b0 pc =3D 0xc04fe714 lr =3D 0xc03fdf84 (proc_rwmem+0xa4) sp =3D 0xf0502ba0 fp =3D 0xf0502be0 r4 =3D 0xc069ae00 r5 =3D 0x00000000 r6 =3D 0xc0596ab1 r7 =3D 0x22400000 r8 =3D 0xc0596ab1 r9 =3D 0x22400000 r10 =3D 0x00000004 proc_rwmem() at proc_rwmem+0xa4 pc =3D 0xc03fdf84 lr =3D 0xc03feea4 ($a+0x624) sp =3D 0xf0502be8 fp =3D 0xf0502cf8 r4 =3D 0xc65c5c80 r5 =3D 0xf0502d08 r6 =3D 0x00000016 r7 =3D 0xc65c5d2c r8 =3D 0xc0596ab1 r9 =3D 0xc65c8a20 r10 =3D 0xc65c5e70 $a() at $a+0x624 pc =3D 0xc03feea4 lr =3D 0xc03fe190 ($a+0x38) sp =3D 0xf0502d00 fp =3D 0xf0502d98 r4 =3D 0xf0502e10 r5 =3D 0xc563a000 r6 =3D 0xf0502d08 r7 =3D 0xbffff0f8 r8 =3D 0xf0502e10 r9 =3D 0xf0502e08 r10 =3D 0x00000000 $a() at $a+0x38 pc =3D 0xc03fe190 lr =3D 0xc0541f18 (swi_handler+0x2cc) sp =3D 0xf0502da0 fp =3D 0xf0502e58 r4 =3D 0xc563a000 r5 =3D 0xc562f000 r6 =3D 0x00000000 swi_handler() at swi_handler+0x2cc pc =3D 0xc0541f18 lr =3D 0xc052d628 (swi_exit) sp =3D 0xf0502e60 fp =3D 0xbffff128 r4 =3D 0xbffff1de r5 =3D 0x002ad930 r6 =3D 0x00000000 r7 =3D 0x0000001a r8 =3D 0x00000000 r9 =3D 0x00000000 r10 =3D 0x22400000 swi_exit() at swi_exit pc =3D 0xc052d628 lr =3D 0xc052d628 (swi_exit) sp =3D 0xf0502e60 fp =3D 0xbffff128 KDB: enter: panic After disabling superpages by vm.pmap.sp_enabled=3D0 the error is gone. Regards Juergen Juergen Weiss |Universitaet Mainz, Zentrum fuer Datenverarbeitung, weiss@uni-mainz.de |55099 Mainz, Tel: +49(6131)39-26361, FAX: +49(6131)39-2= 6407 > -----Original Message----- > From: owner-freebsd-arm@freebsd.org [mailto:owner-freebsd-arm@freebsd.org= ] On Behalf Of > Bernd Walter > Sent: Wednesday, September 10, 2014 1:16 PM > To: freebsd-arm@freebsd.org > Cc: Bernd Walter > Subject: buildworld selfbuild failure >=20 > The same source code was used to build with crochet and is running on > the system. > It's a Wandboard Quad with a -j8 buildworld run. > Source tree is on NFS /usr/obj on local SD. >=20 > ... > --- lib_tputs.So --- > cc -fpic -DPIC -O -pipe -I. -I/usr/obj/home/builder/arm- > build/head/lib/ncurses/ncurses/../ncurses -I/home/builder/arm- > build/head/lib/ncurses/ncurses/../ncurses -I/home/builder/arm- > build/head/lib/ncurses/ncurses/../ncurses -I/home/builder/arm- > build/head/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/home/b= uilder/arm- > build/head/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DN= DEBUG - > DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=3Dgnu99 -Wsystem-headers -= Werror -Wall -Wno- > format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototy= pes -Wpointer- > arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-pl= us-int -Wno- > unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-pa= rentheses- > equality -Wno-unused-function -Wno-enum-conversion -Qunused-arguments -c > /home/builder/arm- > build/head/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/lib= _tputs.c -o > lib_tputs.So > --- lib/ncurses/ncursesw__L --- > --- free_ttype.So --- > cc -fpic -DPIC -O -pipe -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC -I. - > I/usr/obj/home/builder/arm-build/head/lib/ncurses/ncursesw/../ncursesw - > I/home/builder/arm-build/head/lib/ncurses/ncursesw/../ncursesw -I/home/bu= ilder/arm- > build/head/lib/ncurses/ncursesw/../ncurses -I/home/builder/arm- > build/head/lib/ncurses/ncursesw/../../../contrib/ncurses/include -I/home/= builder/arm- > build/head/lib/ncurses/ncursesw/../../../contrib/ncurses/ncurses -Wall -D= NDEBUG - > DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=3Dgnu99 -Wsystem-headers -= Werror -Wall -Wno- > format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototy= pes -Wpointer- > arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-pl= us-int -Wno- > unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-pa= rentheses- > equality -Wno-unused-function -Wno-enum-conversion -Qunused-arguments -c > /home/builder/arm- > build/head/lib/ncurses/ncursesw/../../../contrib/ncurses/ncurses/tinfo/fr= ee_ttype.c -o > free_ttype.So > --- kerberos5/lib/libheimsqlite__L --- > cc: error: unable to execute command: Bus error (core dumped) > cc: error: clang frontend command failed due to signal (use -v to see inv= ocation) > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > Target: armv6--freebsd11.0-gnueabi > Thread model: posix > cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.free= bsd.org/submit/ > and include the crash backtrace, preprocessed source, and associated run = script. > cc: note: diagnostic msg: Error generating preprocessed source(s). > *** [sqlite3.o] Error code 254 >=20 > make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsql= ite > --- lib/msun__L --- > A failure has been detected in another branch of the parallel make >=20 > make[4]: stopped in /home/builder/arm-build/head/lib/msun > --- lib/ncurses/ncursesw__L --- > A failure has been detected in another branch of the parallel make >=20 > make[4]: stopped in /home/builder/arm-build/head/lib/ncurses/ncursesw > --- lib/ncurses/ncurses__L --- > A failure has been detected in another branch of the parallel make >=20 > make[4]: stopped in /home/builder/arm-build/head/lib/ncurses/ncurses > --- kerberos5/lib/libheimsqlite__L --- > 1 error >=20 > make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsql= ite > --- secure/lib/libcrypto__L --- > A failure has been detected in another branch of the parallel make >=20 > make[4]: stopped in /home/builder/arm-build/head/secure/lib/libcrypto > A failure has been detected in another branch of the parallel make >=20 > make[3]: stopped in /home/builder/arm-build/head > *** [libraries] Error code 2 >=20 > make[2]: stopped in /home/builder/arm-build/head > 1 error >=20 > make[2]: stopped in /home/builder/arm-build/head > *** [_libraries] Error code 2 >=20 > make[1]: stopped in /home/builder/arm-build/head > 1 error >=20 > make[1]: stopped in /home/builder/arm-build/head > *** [buildworld] Error code 2 >=20 > make: stopped in /home/builder/arm-build/head > 1 error >=20 > make: stopped in /home/builder/arm-build/head > 71773.091u 36752.279s 2:47:24.86 1080.4% -40+98k 2728+6318io 4153p= f+0w > Exit 2 >=20 >=20 > [170]wandboard# gdb /usr/obj/home/builder/arm-build/head/tmp/usr/bin/cc c= c.core > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "armv6-marcel-freebsd"...(no debugging symbols= found)... > Core was generated by `cc'. > Program terminated with signal 10, Bus error. > #0 0x008dc410 in clang::SrcMgr::ContentCache::getBuffer () > (gdb) bt > #0 0x008dc410 in clang::SrcMgr::ContentCache::getBuffer () > #1 0x00914330 in clang::SourceManager::getBuffer () > #2 0x00912260 in clang::Preprocessor::EnterSourceFile () > #3 0x008f70e8 in clang::Preprocessor::EnterMainSourceFile () > #4 0x0030e760 in clang::ParseAST () > #5 0x000411bc in clang::ASTFrontendAction::ExecuteAction () > #6 0x001c0998 in clang::CodeGenAction::ExecuteAction () > #7 0x00040a38 in clang::FrontendAction::Execute () > #8 0x00060120 in clang::CompilerInstance::ExecuteAction () > #9 0x00010340 in $a () > #10 0x00010340 in $a () > (gdb) >=20 >=20 > Retry without -j: > CC=3D'cc ' mkdep -f .depend -a -I/home/builder/arm- > build/head/kerberos5/lib/libheimsqlite/../../../crypto/heimdal/lib/sqlite= -DHAVE_CONFIG_H > -I/home/builder/arm-build/head/kerberos5/lib/libheimsqlite/../../include = -std=3Dgnu99 > /home/builder/arm- > build/head/kerberos5/lib/libheimsqlite/../../../crypto/heimdal/lib/sqlite= /sqlite3.c > Stack dump: > 0. Program arguments: /usr/obj/home/builder/arm-build/head/tmp/usr/b= in/cc -cc1 - > triple armv6--freebsd11.0-gnueabi -Eonly -disable-free -main-file-name sq= lite3.c - > mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-= cpu arm1176jzf-s > -target-feature +soft-float -target-feature +soft-float-abi -target-featu= re -neon -target- > abi aapcs-linux -msoft-float -mfloat-abi soft -resource-dir /usr/obj/home= /builder/arm- > build/head/tmp/usr/bin/../lib/clang/3.4.1 -dependency-file - -MT sqlite3.= o -sys-header- > deps -D HAVE_CONFIG_H -I /home/builder/arm- > build/head/kerberos5/lib/libheimsqlite/../../../crypto/heimdal/lib/sqlite= -I > /home/builder/arm-build/head/kerberos5/lib/libheimsqlite/../../include -i= sysroot > /usr/obj/home/builder/arm-build/head/tmp -std=3Dgnu99 -fno-dwarf-director= y-asm -fdebug- > compilation-dir /usr/obj/home/builder/arm-build/head/kerberos5/lib/libhei= msqlite -ferror- > limit 19 -fmessage-length 132 -mstackrealign -fno-signed-char -fobjc-runt= ime=3Dgnustep - > fdiagnostics-show > -option -fcolor-diagnostics -vectorize-slp -x c /home/builder/arm- > build/head/kerberos5/lib/libheimsqlite/../../../crypto/heimdal/lib/sqlite= /sqlite3.c > cc: error: unable to execute command: Bus error (core dumped) > cc: error: clang frontend command failed due to signal (use -v to see inv= ocation) > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > Target: armv6--freebsd11.0-gnueabi > Thread model: posix > cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.free= bsd.org/submit/ > and include the crash backtrace, preprocessed source, and associated run = script. > cc: error: unable to execute command: Bus error (core dumped) > cc: note: diagnostic msg: Error generating preprocessed source(s). > mkdep: compile failed > *** Error code 1 >=20 > Stop. > make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsql= ite > *** Error code 1 >=20 > Stop. > make[3]: stopped in /home/builder/arm-build/head > *** Error code 1 >=20 > Stop. > make[2]: stopped in /home/builder/arm-build/head > *** Error code 1 >=20 > Stop. > make[1]: stopped in /home/builder/arm-build/head > *** Error code 1 >=20 > Stop. > make: stopped in /home/builder/arm-build/head > 24569.709u 5898.985s 6:06:54.09 138.4% 116+219k 2557+11302io 77pf+0w > Exit 1 > [175]wandboard# >=20 > [180]wandboard# date > Wed Sep 10 10:20:14 UTC 2014 > [181]wandboard# gdb /usr/obj/home/builder/arm-build/head/tmp/usr/bin/cc c= c.core > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "armv6-marcel-freebsd"...(no debugging symbols= found)... > Core was generated by `cc'. > Program terminated with signal 10, Bus error. > #0 0x008dc410 in clang::SrcMgr::ContentCache::getBuffer () > (gdb) bt > #0 0x008dc410 in clang::SrcMgr::ContentCache::getBuffer () > #1 0x00914330 in clang::SourceManager::getBuffer () > #2 0x00912260 in clang::Preprocessor::EnterSourceFile () > #3 0x008f70e8 in clang::Preprocessor::EnterMainSourceFile () > #4 0x00013ac8 in clang::PreprocessOnlyAction::ExecuteAction () > #5 0x00040a38 in clang::FrontendAction::Execute () > #6 0x00060120 in clang::CompilerInstance::ExecuteAction () > #7 0x00010340 in $a () > #8 0x00010340 in $a () >=20 >=20 > It's not obvious from -j8 run, but it happened when compiling in the same > directory, maybe even the same file. >=20 > -- > B.Walter <bernd@bwct.de> http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dcf812a27a0348e58e34cbda5238ce2c>