buildworld selfbuild failure
Weiß, Dr. Jürgen
weiss at uni-mainz.de
Mon Nov 17 21:53:33 UTC 2014
Same problem with freebsd current of 2 days ago on a Jetson TK1.
After unmounting /usr/src and /usr/obj and mounting again, compilation without -j x
succeeds.
Without unmounting /usr/src and /usr/obj calling cc directly from the shell gives the
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=973143810, ino=32026, mode=0100644, nlink=1, uid=0, gid=0, rdev=20792, atime=1416131826.751760829, stime=1403290613, ctime=1413735753.593422297, birthtim
e=-1, size=4623536, blksize=4096, blocks=9225, flags=0x0 }
59705 cc RET fstat 0
59705 cc CALL fstat(0x4,0xbfffe220)
59705 cc STRU struct stat {dev=973143810, ino=32026, mode=0100644, nlink=1, uid=0, gid=0, rdev=20792, atime=1416131826.751760829, stime=1403290613, ctime=1413735753.593422297, birthtim
e=-1, size=4623536, blksize=4096, blocks=9225, flags=0x0 }
59705 cc RET fstat 0
59705 cc CALL mmap(0,0x468cb0,0x1<PROT_READ>,0x2<MAP_PRIVATE>,0x4,0xbfffe580,0,0)
59705 cc RET mmap 574619648/0x22400000
59705 cc CALL close(0x4)
59705 cc RET close 0
59705 cc PSIG SIGBUS caught handler=0x152de90 mask=0x0 code=SI_NOINFO
running cc in gdb and doing
x/x 0x22400000
after the bus error occurred, gives the following kernel panic:
panic: pmap_demote_section: No l2_bucket for wired mapping
cpuid = 0
KDB: stack backtrace:
db_trace_self() at db_trace_self
pc = 0xc052b8d8 lr = 0xc023498c (db_trace_self_wrapper+0x30)
sp = 0xf0502738 fp = 0xf0502850
r10 = 0xc563a000
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
pc = 0xc023498c lr = 0xc03dc920 (kdb_backtrace+0x38)
sp = 0xf0502858 fp = 0xf0502860
r4 = 0xc0679a64 r5 = 0x00000001
r6 = 0xc05b6429 r7 = 0xc066a6f8
kdb_backtrace() at kdb_backtrace+0x38
pc = 0xc03dc920 lr = 0xc03a1798 (vpanic+0x114)
sp = 0xf0502868 fp = 0xf0502888
r4 = 0x00000100
vpanic() at vpanic+0x114
pc = 0xc03a1798 lr = 0xc03a166c ($d)
sp = 0xf0502890 fp = 0xf05028c0
r4 = 0xc066a5f8 r5 = 0xc05b6429
r6 = 0xf05028cc r7 = 0xc066a560
r8 = 0xc27012c0 r9 = 0x00000224
r10 = 0x22400000
$d() at $d
pc = 0xc03a166c lr = 0xc0534e58 (pmap_demote_section+0x848)
sp = 0xf05028d8 fp = 0xf0502938
r4 = 0x22400000 r5 = 0x22400000
r6 = 0xc5641a9c r7 = 0xe001983e
pmap_demote_section() at pmap_demote_section+0x848
pc = 0xc0534e58 lr = 0xc0539a40 (pmap_enter_locked+0xfc)
sp = 0xf0502940 fp = 0xf05029b0
r4 = 0xc05b59ef r5 = 0x22400000
r6 = 0xc5641a9c r7 = 0xc27012c0
r8 = 0xc06a1b80 r9 = 0x00000001
r10 = 0xc5641aac
pmap_enter_locked() at pmap_enter_locked+0xfc
pc = 0xc0539a40 lr = 0xc0539090 (pmap_enter+0x74)
sp = 0xf05029b8 fp = 0xf0502a18
r4 = 0x22400000 r5 = 0xc27012c0
r6 = 0x00000001 r7 = 0xc05b59ef
r8 = 0xc5641a9c r9 = 0x22400000
r10 = 0xc5641aac
pmap_enter() at pmap_enter+0x74
pc = 0xc0539090 lr = 0xc04fe714 (vm_fault_hold+0x2b0)
sp = 0xf0502a20 fp = 0xf0502b98
r4 = 0xf0502b28 r5 = 0xc56419e0
r6 = 0xc27012c0 r7 = 0xc05af0a4
r8 = 0x00000001 r9 = 0x22400000
r10 = 0xc56419e0
vm_fault_hold() at vm_fault_hold+0x2b0
pc = 0xc04fe714 lr = 0xc03fdf84 (proc_rwmem+0xa4)
sp = 0xf0502ba0 fp = 0xf0502be0
r4 = 0xc069ae00 r5 = 0x00000000
r6 = 0xc0596ab1 r7 = 0x22400000
r8 = 0xc0596ab1 r9 = 0x22400000
r10 = 0x00000004
proc_rwmem() at proc_rwmem+0xa4
pc = 0xc03fdf84 lr = 0xc03feea4 ($a+0x624)
sp = 0xf0502be8 fp = 0xf0502cf8
r4 = 0xc65c5c80 r5 = 0xf0502d08
r6 = 0x00000016 r7 = 0xc65c5d2c
r8 = 0xc0596ab1 r9 = 0xc65c8a20
r10 = 0xc65c5e70
$a() at $a+0x624
pc = 0xc03feea4 lr = 0xc03fe190 ($a+0x38)
sp = 0xf0502d00 fp = 0xf0502d98
r4 = 0xf0502e10 r5 = 0xc563a000
r6 = 0xf0502d08 r7 = 0xbffff0f8
r8 = 0xf0502e10 r9 = 0xf0502e08
r10 = 0x00000000
$a() at $a+0x38
pc = 0xc03fe190 lr = 0xc0541f18 (swi_handler+0x2cc)
sp = 0xf0502da0 fp = 0xf0502e58
r4 = 0xc563a000 r5 = 0xc562f000
r6 = 0x00000000
swi_handler() at swi_handler+0x2cc
pc = 0xc0541f18 lr = 0xc052d628 (swi_exit)
sp = 0xf0502e60 fp = 0xbffff128
r4 = 0xbffff1de r5 = 0x002ad930
r6 = 0x00000000 r7 = 0x0000001a
r8 = 0x00000000 r9 = 0x00000000
r10 = 0x22400000
swi_exit() at swi_exit
pc = 0xc052d628 lr = 0xc052d628 (swi_exit)
sp = 0xf0502e60 fp = 0xbffff128
KDB: enter: panic
After disabling superpages by
vm.pmap.sp_enabled=0
the error is gone.
Regards
Juergen
Juergen Weiss |Universitaet Mainz, Zentrum fuer Datenverarbeitung,
weiss at uni-mainz.de |55099 Mainz, Tel: +49(6131)39-26361, FAX: +49(6131)39-26407
> -----Original Message-----
> From: owner-freebsd-arm at freebsd.org [mailto:owner-freebsd-arm at freebsd.org] On Behalf Of
> Bernd Walter
> Sent: Wednesday, September 10, 2014 1:16 PM
> To: freebsd-arm at freebsd.org
> Cc: Bernd Walter
> Subject: buildworld selfbuild failure
>
> 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.
>
> ...
> --- 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/builder/arm-
> build/head/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -
> DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-
> format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-
> arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-
> unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-
> 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/builder/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 -DNDEBUG -
> DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-
> format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-
> arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-
> unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-
> equality -Wno-unused-function -Wno-enum-conversion -Qunused-arguments -c
> /home/builder/arm-
> build/head/lib/ncurses/ncursesw/../../../contrib/ncurses/ncurses/tinfo/free_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 invocation)
> 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.freebsd.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
>
> make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsqlite
> --- lib/msun__L ---
> A failure has been detected in another branch of the parallel make
>
> 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
>
> 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
>
> make[4]: stopped in /home/builder/arm-build/head/lib/ncurses/ncurses
> --- kerberos5/lib/libheimsqlite__L ---
> 1 error
>
> make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsqlite
> --- secure/lib/libcrypto__L ---
> A failure has been detected in another branch of the parallel make
>
> make[4]: stopped in /home/builder/arm-build/head/secure/lib/libcrypto
> A failure has been detected in another branch of the parallel make
>
> make[3]: stopped in /home/builder/arm-build/head
> *** [libraries] Error code 2
>
> make[2]: stopped in /home/builder/arm-build/head
> 1 error
>
> make[2]: stopped in /home/builder/arm-build/head
> *** [_libraries] Error code 2
>
> make[1]: stopped in /home/builder/arm-build/head
> 1 error
>
> make[1]: stopped in /home/builder/arm-build/head
> *** [buildworld] Error code 2
>
> make: stopped in /home/builder/arm-build/head
> 1 error
>
> make: stopped in /home/builder/arm-build/head
> 71773.091u 36752.279s 2:47:24.86 1080.4% -40+98k 2728+6318io 4153pf+0w
> Exit 2
>
>
> [170]wandboard# gdb /usr/obj/home/builder/arm-build/head/tmp/usr/bin/cc cc.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 conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> 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)
>
>
> Retry without -j:
> CC='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=gnu99
> /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/bin/cc -cc1 -
> triple armv6--freebsd11.0-gnueabi -Eonly -disable-free -main-file-name sqlite3.c -
> mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu arm1176jzf-s
> -target-feature +soft-float -target-feature +soft-float-abi -target-feature -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 -isysroot
> /usr/obj/home/builder/arm-build/head/tmp -std=gnu99 -fno-dwarf-directory-asm -fdebug-
> compilation-dir /usr/obj/home/builder/arm-build/head/kerberos5/lib/libheimsqlite -ferror-
> limit 19 -fmessage-length 132 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -
> 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 invocation)
> 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.freebsd.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
>
> Stop.
> make[4]: stopped in /home/builder/arm-build/head/kerberos5/lib/libheimsqlite
> *** Error code 1
>
> Stop.
> make[3]: stopped in /home/builder/arm-build/head
> *** Error code 1
>
> Stop.
> make[2]: stopped in /home/builder/arm-build/head
> *** Error code 1
>
> Stop.
> make[1]: stopped in /home/builder/arm-build/head
> *** Error code 1
>
> 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#
>
> [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 cc.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 conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> 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 ()
>
>
> It's not obvious from -j8 run, but it happened when compiling in the same
> directory, maybe even the same file.
>
> --
> B.Walter <bernd at bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list