From owner-freebsd-current@freebsd.org Tue Jul 7 22:09:21 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 5FFBC996300 for ; Tue, 7 Jul 2015 22:09:21 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (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 2CC501CC4 for ; Tue, 7 Jul 2015 22:09:21 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pdbdz6 with SMTP id dz6so38249578pdb.0 for ; Tue, 07 Jul 2015 15:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FQYTtIKzfLEuNKI97ZerNFZ+lbySY/do8CoKS6s1Tew=; b=aBTcCGlu0zW56XSb5XeJMOX1/9Dx3upgGMRa62FXoPziSVVtvcEJaDiSWThPCPacY/ /08/TU88u05rNf2uCrRgltmOMWFRPME6NUKuBzG8aW7BpE18fjvi6+uP2woCR3ok1KlC AlLVJJ59clEG9vsbXNGnXWpLWiubiBymuy/XR0xbxX4hFToLmxH0SnfsuYABbVSP9omn hk8YkokvdLJ6Sq12kFMbd5OWxR1Vqp0xc3o545zChG//AWT0bS/ZTBzG404Un4LcqkFB qc2UHUdADOSZ+vsCkI1zPeB80DRZ1FLK+RC7QOQ0diTFY6Cz+Y6VsEjX+nUivMKJoQ8f CUfw== X-Received: by 10.69.27.33 with SMTP id jd1mr13191957pbd.34.1436306960599; Tue, 07 Jul 2015 15:09:20 -0700 (PDT) Received: from [192.168.245.140] (c-67-182-131-225.hsd1.wa.comcast.net. [67.182.131.225]) by smtp.gmail.com with ESMTPSA id h12sm116844pdk.77.2015.07.07.15.09.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jul 2015 15:09:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: gettimeofday((void *)-1, NULL) implicates core dump on recent FreeBSD 11-CURRENT From: Garrett Cooper X-Mailer: iPhone Mail (12H143) In-Reply-To: Date: Tue, 7 Jul 2015 15:09:18 -0700 Cc: FreeBSD-Current Content-Transfer-Encoding: quoted-printable Message-Id: <657220ED-CF1D-4A9B-BF5D-AD4FCFE959E0@gmail.com> References: To: Oliver Pinter 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:09:21 -0000 > On Jul 7, 2015, at 15:00, Oliver Pinter wr= ote: >=20 > Hi all! >=20 > 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/Fre= eBSD-11.0-CURRENT-amd64-20150630-r284969-disc1.iso >=20 > root@freebsd:~ # cat test-gtod.c > #include > #include >=20 > int > main(int argc, char **argv) > { >=20 > 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) >=20 > 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 a= re > welcome to change it and/or distribute copies of it under certain conditio= ns. > 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 ?? () >=20 > 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] >=20 > 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-75= 0045.db >=20 > 1/2 passed (1 failed) > op@opn sys> pwd > /usr/tests/lib/libc/sys Please file a bug. I have no idea where this broke because the Jenkins runs have been unreliabl= e over the past few weeks ;(...=