From owner-freebsd-arm@freebsd.org Wed Jan 16 21:44:52 2019 Return-Path: Delivered-To: freebsd-arm@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 8915F14969B6 for ; Wed, 16 Jan 2019 21:44:52 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 045F288ED7 for ; Wed, 16 Jan 2019 21:44:51 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x0GLj9Je006610 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 16 Jan 2019 13:45:10 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x0GLj8xE006609; Wed, 16 Jan 2019 13:45:08 -0800 (PST) (envelope-from fbsd) Date: Wed, 16 Jan 2019 13:45:08 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Re: [Bug 234672] www/chromium: c++: error: unable to execute command: Segmentation fault (core dumped) Message-ID: <20190116214508.GA5922@www.zefox.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 045F288ED7 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2019 21:44:52 -0000 On Wed, Jan 16, 2019 at 08:56:42PM +0000, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234672 > > --- Comment #9 from Dimitry Andric --- > I tried the sprintf-4b97e4.{c,sh} test case, and that compiles without any > problem for me, with clang 7.0.1 on head r342759. I also tried clang 6.0.1 > succesfully. > > The other test case, partial_circular_buffer-563908.sh, is missing the > corresponding .cpp file, so I can't evaluate it. > Here's the latest segfault message, generated using make buildworld (with no -j) on r342987, from sources at 343001 ...... /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/openssl/opensslconf.h:107:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ 1 warning generated. cc: error: unable to execute command: Segmentation fault (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) Target: aarch64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin 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: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/serverloop-a25e04.c cc: note: diagnostic msg: /tmp/serverloop-a25e04.sh cc: note: diagnostic msg: ******************** root@www:/usr/src # root@www:/usr/src # find /usr/obj -name serverloop.o -depth -print root@www:/usr/src # ls -l /tmp/serverloop-a25e04.* -rw-r--r-- 1 root wheel 2320872 Jan 16 12:41 /tmp/serverloop-a25e04.c -rw-r--r-- 1 root wheel 4056 Jan 16 12:41 /tmp/serverloop-a25e04.sh The end of the build log contains: cc -target aarch64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -I/usr/src/crypto/openssh -include ssh_namespace.h -DHAVE_LDNS=1 -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 -DUSE_BLACKLIST=1 -I/usr/src/contrib/blacklist/include -include krb5_config.h -DLIBWRAP=1 -g -MD -MF.depend.serverloop.o -MTserverloop.o -std=gnu99 -fstack-protector-strong -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 -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -c /usr/src/crypto/openssh/serverloop.c -o serverloop.o *** Error code 254 Stop. make[5]: stopped in /usr/src/secure/usr.sbin/sshd *** Error code 1 Stop. make[4]: stopped in /usr/src/secure/usr.sbin *** Error code 1 Stop. make[3]: stopped in /usr/src/secure *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 make: stopped in /usr/src The diagnostic files are at http://www.zefox.net/~fbsd/rpi3/swaptests/r342987/ It's starting to look as if I've somehow corrupted my clang installation. Is it possible to download a precompiled binary, akin to a package, as a workaround? Failing that, a compilation sequence that more thoroughly sanitizes the buildworld process? The most careful sequence tried to date was kernel-toolchain, installkernel, reboot, then buildworld. Thanks for reading! bob prohaska