From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6756 invoked by alias); 29 Sep 2002 22:39:13 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 6732 invoked from network); 29 Sep 2002 22:39:09 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 29 Sep 2002 22:39:09 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g8TMd6q03511; Mon, 30 Sep 2002 00:39:06 +0200 Date: Sun, 29 Sep 2002 15:39:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Roland McGrath , Glibc hackers Subject: [PATCH] Fix tst-timer (was Re: Some make check results) Message-ID: <20020930003906.N3451@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20020929155536.I3451@sunsite.ms.mff.cuni.cz> <3D974495.4000901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D974495.4000901@redhat.com>; from drepper@redhat.com on Sun, Sep 29, 2002 at 11:21:09AM -0700 X-SW-Source: 2002-09/txt/msg00101.txt.bz2 On Sun, Sep 29, 2002 at 11:21:09AM -0700, Ulrich Drepper wrote: > I have put in your patch but I've also moved bug-erange from tests to > xtests. This goal was creates for just this purpose, tests which cannot > generally be run but are still useful. Thanks. > > string/stratcliff failed on alpha/alphaev6/ia64 > > I've asked rth to review the strncpy patch... That's alpha. On IA-64 the following segfaults: #include #include #include char buf[128] __attribute__((aligned(128))); int main (void) { int i; char *p = mmap (NULL, 65536, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (p == NULL) abort (); memset (p + 65536 - 26, 'T', 26); strncpy (buf, p + 65536 - 26, 25); } Will debug it. > > and tst-timer on ia64/i686 (both builds). > > Don't know what that is. Works for me. tst-timer fails on sparc build too actually (well, there it run for 3 hours until I killed that test, with exception of bug-regex12 all other tests succeeded). On i686 and ia64 the reason is random value in sigev_notify_attributes. It may well be 0 for you and you don't see the crash, for me it died on: newtimer->attr = *(pthread_attr_t *) evp->sigev_notify_attributes; because evp->sigev_notify_attributes was garbage. Will need to check sparc if that is the same reason or something else. 2002-09-29 Jakub Jelinek * sysdeps/pthread/tst-timer.c (main): Clear sigev2.sigev_notify_attributes. --- linuxthreads/sysdeps/pthread/tst-timer.c.jj 2002-09-28 16:37:10.000000000 -0400 +++ linuxthreads/sysdeps/pthread/tst-timer.c 2002-09-29 18:30:42.000000000 -0400 @@ -76,6 +76,7 @@ main (void) sigev2.sigev_notify = SIGEV_THREAD; sigev2.sigev_notify_function = notify_func; + sigev2.sigev_notify_attributes = NULL; setvbuf (stdout, 0, _IOLBF, 0); Jakub