From owner-freebsd-current@freebsd.org Tue Jul 7 22:17:36 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85B50996482 for ; Tue, 7 Jul 2015 22:17:36 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26C7B1205 for ; Tue, 7 Jul 2015 22:17:35 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by wiclp1 with SMTP id lp1so63849615wic.0 for ; Tue, 07 Jul 2015 15:17:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+ewAKmbckBMY7pw/YbqtqHKw4up8qNb2VNprMPuLlr4=; b=RT0K0ZlkNVX7DL6bf3be0c324r4Y5s2vGdxjVqYfLVi+IajjRKzAByjvnHxvf87kbI kEzw0iGHHJGMMToftHWQN+4/MhTPo0mmtV3eUPKsUmrrqZVT8EUywSwyODrg/6/40UsN kM3uLMuoyKUFoN3QaKTgvyhRoll7Rz8TJjMYCWszcG+8z0PgHh1CrMarBIDXjgtTRCnv t+vXIKErHkJlOmq9sb1sxR2utzvqNRNmLgPhVBDu0+w3AECqcMAxHImIPwbDGZNXytjr 2W7EdneXcsZTziY9Y/k7JS1LnmO8/IiZ0Jf9ARktCWGCM1sDFI/Hn/+PUCWFgpD/QxS7 zR0w== X-Gm-Message-State: ALoCoQkqbF0e0G/k7yu5VSitIPhwsfrvmZUldPiisyXRP//4lSWN4gFiQE8r8MaxG6KaeOZ7lDtu MIME-Version: 1.0 X-Received: by 10.180.19.103 with SMTP id d7mr105035458wie.19.1436307448545; Tue, 07 Jul 2015 15:17:28 -0700 (PDT) Received: by 10.194.73.6 with HTTP; Tue, 7 Jul 2015 15:17:28 -0700 (PDT) In-Reply-To: <657220ED-CF1D-4A9B-BF5D-AD4FCFE959E0@gmail.com> References: <657220ED-CF1D-4A9B-BF5D-AD4FCFE959E0@gmail.com> Date: Wed, 8 Jul 2015 00:17:28 +0200 Message-ID: Subject: Re: gettimeofday((void *)-1, NULL) implicates core dump on recent FreeBSD 11-CURRENT From: Oliver Pinter To: Garrett Cooper Cc: FreeBSD-Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2015 22:17:36 -0000 On Wed, Jul 8, 2015 at 12:09 AM, Garrett Cooper wrote: > >> On Jul 7, 2015, at 15:00, Oliver Pinter wrote: >> >> Hi all! >> >> We discovered that one of the kyua test failing from gettimeofday tests. >> The error is reproducible on recent snapshot from 11-CURRENT: >> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/ISO-IMAGES/11.0/FreeBSD-11.0-CURRENT-amd64-20150630-r284969-disc1.iso >> >> root@freebsd:~ # cat test-gtod.c >> #include >> #include >> >> int >> main(int argc, char **argv) >> { >> >> return (gettimeofday((void *)-1, NULL)); >> } >> root@freebsd:~ # make test-gtod >> cc -O2 -pipe test-gtod.c -o test-gtod >> root@freebsd:~ # uname -a >> FreeBSD freebsd 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284969: Tue Jun >> 30 22:05:35 UTC 2015 >> root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >> root@freebsd:~ # ./test-gtod >> Segmentation fault (core dumped) >> >> root@freebsd:~ # gdb ./test-gtod >> 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 "amd64-marcel-freebsd"...(no debugging >> symbols found)... >> (gdb) r >> Starting program: /root/test-gtod >> (no debugging symbols found)...(no debugging symbols found)... >> Program received signal SIGSEGV, Segmentation fault. >> 0x0000000800958fbd in bcopy () from /lib/libc.so.7 >> (gdb) bt >> #0 0x0000000800958fbd in bcopy () from /lib/libc.so.7 >> #1 0x00000000559c1291 in ?? () >> #2 0xf9fde38df0174b80 in ?? () >> #3 0xffffffffffffffff in ?? () >> #4 0x0000000000000000 in ?? () >> >> And this is the original kyua test: >> op@opn sys> kyua test gettimeofday_test >> gettimeofday_test:gettimeofday_err -> broken: Premature exit; test >> case received signal 11 (core dumped) [0.987s] >> gettimeofday_test:gettimeofday_mono -> passed [0.014s] >> >> Results file id is usr_tests_lib_libc_sys.20150707-215959-750045 >> Results saved to >> /usr/home/op/.kyua/store/results.usr_tests_lib_libc_sys.20150707-215959-750045.db >> >> 1/2 passed (1 failed) >> op@opn sys> pwd >> /usr/tests/lib/libc/sys > > Please file a bug. Will do. Btw, here is one of the know good state: op@robot sys# kyua test gettimeofday_test gettimeofday_test:gettimeofday_err -> passed [0.026s] gettimeofday_test:gettimeofday_mono -> passed [0.004s] Results file id is usr_tests_lib_libc_sys.20150707-221532-875455 Results saved to /root/.kyua/store/results.usr_tests_lib_libc_sys.20150707-221532-875455.db 2/2 passed (0 failed) op@robot sys# uname -a FreeBSD robot.hardenedbsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #100 6ab779a(HEAD): Wed May 27 02:04:09 EDT 2015 jenkins@nyi-01.build.hardenedbsd.org:/usr/obj/jenkins/workspace/HardenedBSD-master-amd64/sys/HARDENEDBSD amd64 op@robot sys# > > I have no idea where this broke because the Jenkins runs have been unreliable over the past few weeks ;(... Do you have died executors too?