From owner-freebsd-ia64@FreeBSD.ORG Mon Apr 21 11:06:49 2008 Return-Path: Delivered-To: freebsd-ia64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DC1E106564A for ; Mon, 21 Apr 2008 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5A58FC25 for ; Mon, 21 Apr 2008 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3LB6nPb095178 for ; Mon, 21 Apr 2008 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3LB6m6Z095174 for freebsd-ia64@FreeBSD.org; Mon, 21 Apr 2008 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Apr 2008 11:06:49 GMT Message-Id: <200804211106.m3LB6m6Z095174@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ia64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ia64@FreeBSD.org X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2008 11:06:49 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ia64/120315 ia64 Backing store switch in exception_save_restart leaves 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ia64/86218 ia64 Mozilla / Firefox: regxpcom or regchrome broken on ia6 o ia64/113102 ia64 [MCA] Multiple records can have the same sequence numb 2 problems total. From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 23 12:45:44 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B34401065672 for ; Wed, 23 Apr 2008 12:45:44 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 68C938FC16 for ; Wed, 23 Apr 2008 12:45:44 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: by mailgate.hob.de (Postfix, from userid 104) id 1513A59A623; Wed, 23 Apr 2008 14:39:41 +0200 (CEST) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 511C561A3E7 for ; Wed, 23 Apr 2008 14:22:57 +0200 (CEST) Received: from [172.22.0.192] (linux04.hob.de [172.22.0.192]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id 8AB6DFD0FE for ; Wed, 23 Apr 2008 14:22:57 +0200 (CEST) From: Christian Kandeler Organization: HOB To: freebsd-ia64@freebsd.org Date: Wed, 23 Apr 2008 14:22:57 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200804231422.57226.christian.kandeler@hob.de> Subject: syscalls & mcontext X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 12:45:44 -0000 Hi, during testing of a FreeBSD/IA64 application I had written I noticed that it kept getting a SIGILL signal seemingly out of nowhere. On closer inspection, I found out that the following happens: - The library calls the kse_switchin syscall. - The kernel's kse_switchin() function is called with the second argument == address of trapframe + 0xe8, as set up by epc_syscall. - The kse_switchin() function calls set_mcontext(), which, among other things, sets tf->tf_scratch = mc->mc_scratch. But tf->tf_scratch overlaps the second argument of kse_switchin(), so now uap->tmbx in kse_switchin() is no longer a pointer to the thread mailbox, but some random value (whatever was in mc_scratch.gr16). - After set_mcontext() has returned, kse_switchin() sets td->td_mailbox = uap->tmbx, i.e. the bogus value is now copied into the thread structure. - ... - The thread_export_context() function tries to copy the thread's mailbox contents, chokes on the bogus pointer and calls sigexit(), which results in the SIGILL signal being sent to the process. Any idea of what is going wrong here? My first, uneducated guess would be that we shouldn't set tf_scratch (because why does a synchronous interruption need to restore the scratch registers), but my insight into the syscall mechanism is rather superficial and I assume the problem is more complex than that. Regards, Christian Kandeler PS: Kernel version is 6.1. From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 23 17:10:26 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5026A106566B for ; Wed, 23 Apr 2008 17:10:26 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.83]) by mx1.freebsd.org (Postfix) with ESMTP id 1AEBC8FC0A for ; Wed, 23 Apr 2008 17:10:26 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp008-s [10.150.69.71]) by smtpoutm.mac.com (Xserve/smtpout020/MantshX 4.0) with ESMTP id m3NHAPRa007838; Wed, 23 Apr 2008 10:10:25 -0700 (PDT) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp008/MantshX 4.0) with ESMTP id m3NHAMGZ019287 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 23 Apr 2008 10:10:22 -0700 (PDT) Message-Id: <3DFF6AF6-943F-4066-A424-3F6C73399C7B@mac.com> From: Marcel Moolenaar To: Christian Kandeler In-Reply-To: <200804231422.57226.christian.kandeler@hob.de> Content-Type: multipart/mixed; boundary=Apple-Mail-2-882670974 Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 23 Apr 2008 10:10:21 -0700 References: <200804231422.57226.christian.kandeler@hob.de> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ia64@freebsd.org Subject: Re: syscalls & mcontext X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 17:10:26 -0000 --Apple-Mail-2-882670974 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit On Apr 23, 2008, at 5:22 AM, Christian Kandeler wrote: > during testing of a FreeBSD/IA64 application I had written I noticed > that it kept getting a SIGILL signal seemingly out of nowhere. On > closer inspection, I found out that the following happens: > - The library calls the kse_switchin syscall. > - The kernel's kse_switchin() function is called with the second > argument == address of trapframe + 0xe8, as set up by epc_syscall. Yes, The 8 possible syscall arguments are put in the trapframe, starting at tf_scratch.gr16. tf_scratch.gr15 holds the syscall number. > - The kse_switchin() function calls set_mcontext(), which, among > other things, sets tf->tf_scratch = mc->mc_scratch. But > tf->tf_scratch overlaps the second argument of kse_switchin(), so now > uap->tmbx in kse_switchin() is no longer a pointer to the thread > mailbox, but some random value (whatever was in mc_scratch.gr16). Ah yes. We don't pass the actual arguments around. We pass a pointer to the arguments around. This pointer is typically called uap and as per above, it points to tf_scratch.gr16 in the trapframe. > - After set_mcontext() has returned, kse_switchin() sets > td->td_mailbox = uap->tmbx, i.e. the bogus value is now copied into > the thread structure. Oops... The solution could be as simple as putting uap->tmbx and uap->flags in local variables in kse_switchin(). This also has the added advantage of having slightly more optimal code, because the compiler will know that the fields are constant and will not forcibly reload them after function calls. > Any idea of what is going wrong here? My first, uneducated guess would > be that we shouldn't set tf_scratch (because why does a synchronous > interruption need to restore the scratch registers), but my insight > into the syscall mechanism is rather superficial and I assume the > problem is more complex than that. The complexity is in having 2 distinct kernel entry paths. The exception and the EPC syscall. The kse_switchin() syscall can be called with an asynchronous context (i.e. exception-based). It must switch the scratch registers in those cases. Note that the consequence of the above is that we can enter the kernel using the EPC syscall path, but that we need to leave the kernel using the exception path. This is handled in the EPC syscall code by checking the tf_flags field in the trapframe. A similar test is in the exception path. Could you try the attached patch. It's against 7-STABLE, but should be easy to make work for 6.1 (if it doesn't apply). I'll give it a spin myself too... Thanks, BTW: Good catch! This probably accounts for a lot of threading related core dumps and may be the root cause of PR 86218... -- Marcel Moolenaar xcllnt@mac.com --Apple-Mail-2-882670974 Content-Disposition: attachment; filename=kse_switchin.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="kse_switchin.diff" Content-Transfer-Encoding: 7bit Index: kern_kse.c =================================================================== RCS file: /home/ncvs/src/sys/kern/Attic/kern_kse.c,v retrieving revision 1.235.2.1 diff -u -r1.235.2.1 kern_kse.c --- kern_kse.c 18 Jan 2008 10:02:51 -0000 1.235.2.1 +++ kern_kse.c 23 Apr 2008 16:51:03 -0000 @@ -145,9 +145,17 @@ kse_switchin(struct thread *td, struct kse_switchin_args *uap) { #ifdef KSE - struct kse_thr_mailbox tmbx; + struct kse_thr_mailbox tmbx, *tmbxp; struct kse_upcall *ku; - int error; + int error, flags; + + /* + * Put the arguments in local variables, to allow uap to + * point into the trapframe. We clobber the trapframe as + * part of setting a new context. + */ + tmbxp = uap->tmbx; + flags = uap->flags; thread_lock(td); if ((ku = td->td_upcall) == NULL || TD_CAN_UNBIND(td)) { @@ -155,18 +163,18 @@ return (EINVAL); } thread_unlock(td); - error = (uap->tmbx == NULL) ? EINVAL : 0; + error = (tmbxp == NULL) ? EINVAL : 0; if (!error) - error = copyin(uap->tmbx, &tmbx, sizeof(tmbx)); - if (!error && (uap->flags & KSE_SWITCHIN_SETTMBX)) + error = copyin(tmbxp, &tmbx, sizeof(tmbx)); + if (!error && (flags & KSE_SWITCHIN_SETTMBX)) error = (suword(&ku->ku_mailbox->km_curthread, - (long)uap->tmbx) != 0 ? EINVAL : 0); + (long)tmbxp) != 0 ? EINVAL : 0); if (!error) error = set_mcontext(td, &tmbx.tm_context.uc_mcontext); if (!error) { - suword32(&uap->tmbx->tm_lwp, td->td_tid); - if (uap->flags & KSE_SWITCHIN_SETTMBX) { - td->td_mailbox = uap->tmbx; + suword32(&tmbxp->tm_lwp, td->td_tid); + if (flags & KSE_SWITCHIN_SETTMBX) { + td->td_mailbox = tmbxp; td->td_pflags |= TDP_CAN_UNBIND; } PROC_LOCK(td->td_proc); --Apple-Mail-2-882670974 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-2-882670974-- From owner-freebsd-ia64@FreeBSD.ORG Thu Apr 24 14:56:35 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22CD81065670 for ; Thu, 24 Apr 2008 14:56:35 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 016E48FC1A for ; Thu, 24 Apr 2008 14:56:34 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 129971647CF; Thu, 24 Apr 2008 16:56:34 +0200 (CEST) Received: from [172.22.0.192] (linux04.hob.de [172.22.0.192]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id B5191FCDAF; Thu, 24 Apr 2008 16:56:33 +0200 (CEST) From: Christian Kandeler Organization: HOB To: Marcel Moolenaar Date: Thu, 24 Apr 2008 16:56:33 +0200 User-Agent: KMail/1.6.2 References: <200804231422.57226.christian.kandeler@hob.de> <3DFF6AF6-943F-4066-A424-3F6C73399C7B@mac.com> In-Reply-To: <3DFF6AF6-943F-4066-A424-3F6C73399C7B@mac.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200804241656.33349.christian.kandeler@hob.de> Cc: freebsd-ia64@freebsd.org Subject: Re: syscalls & mcontext X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 14:56:35 -0000 On Wednesday 23 April 2008 19:10, you wrote: > Could you try the attached patch. It's against 7-STABLE, but > should be easy to make work for 6.1 (if it doesn't apply). > I'll give it a spin myself too... The bug was a bit volatile in that it wouldn't manifest itself all the time, but I think I have now done enough testing to say with some confidence that it's gone for good. Thanks! Regards, Christian Kandeler From owner-freebsd-ia64@FreeBSD.ORG Fri Apr 25 08:43:35 2008 Return-Path: Delivered-To: ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0974A106566C; Fri, 25 Apr 2008 08:43:35 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id BEBA58FC13; Fri, 25 Apr 2008 08:43:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.2/8.14.2) with ESMTP id m3P8hXCm033343; Fri, 25 Apr 2008 04:43:33 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.2/8.14.2) with ESMTP id m3P8hXHw005357; Fri, 25 Apr 2008 04:43:33 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 0161073039; Fri, 25 Apr 2008 04:43:32 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080425084333.0161073039@freebsd-current.sentex.ca> Date: Fri, 25 Apr 2008 04:43:32 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on clamscanner2 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 08:43:35 -0000 TB --- 2008-04-25 07:19:25 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-04-25 07:19:25 - starting HEAD tinderbox run for ia64/ia64 TB --- 2008-04-25 07:19:25 - cleaning the object tree TB --- 2008-04-25 07:19:56 - cvsupping the source tree TB --- 2008-04-25 07:19:56 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/ia64/ia64/supfile TB --- 2008-04-25 07:20:09 - building world (CFLAGS=-O -pipe) TB --- 2008-04-25 07:20:09 - cd /src TB --- 2008-04-25 07:20:09 - /usr/bin/make -B buildworld >>> World build started on Fri Apr 25 07:20:11 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Fri Apr 25 08:33:27 UTC 2008 TB --- 2008-04-25 08:33:27 - generating LINT kernel config TB --- 2008-04-25 08:33:27 - cd /src/sys/ia64/conf TB --- 2008-04-25 08:33:27 - /usr/bin/make -B LINT TB --- 2008-04-25 08:33:27 - building LINT kernel (COPTFLAGS=) TB --- 2008-04-25 08:33:27 - cd /src TB --- 2008-04-25 08:33:27 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Apr 25 08:33:28 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror /src/sys/ia64/ia64/interrupt.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror /src/sys/ia64/ia64/machdep.c /src/sys/ia64/ia64/machdep.c: In function 'cpu_idle': /src/sys/ia64/ia64/machdep.c:347: error: number of arguments doesn't match prototype /src/sys/sys/proc.h:811: error: prototype declaration cc1: warnings being treated as errors /src/sys/ia64/ia64/machdep.c: At top level: /src/sys/ia64/ia64/machdep.c:359: warning: initialization from incompatible pointer type *** Error code 1 Stop in /obj/ia64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-04-25 08:43:32 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-04-25 08:43:32 - ERROR: failed to build lint kernel TB --- 2008-04-25 08:43:32 - tinderbox aborted TB --- 3682.84 user 394.00 system 5047.44 real http://tinderbox.des.no/tinderbox-head-HEAD-ia64-ia64.full From owner-freebsd-ia64@FreeBSD.ORG Fri Apr 25 15:06:00 2008 Return-Path: Delivered-To: ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7BB3106564A; Fri, 25 Apr 2008 15:06:00 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 81B3D8FC1D; Fri, 25 Apr 2008 15:06:00 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m3PF5xQo016067; Fri, 25 Apr 2008 11:05:59 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.2/8.14.2) with ESMTP id m3PF5x8G095942; Fri, 25 Apr 2008 11:05:59 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 4A94173039; Fri, 25 Apr 2008 11:05:59 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080425150559.4A94173039@freebsd-current.sentex.ca> Date: Fri, 25 Apr 2008 11:05:59 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on clamscanner1 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 15:06:00 -0000 TB --- 2008-04-25 13:42:12 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-04-25 13:42:12 - starting HEAD tinderbox run for ia64/ia64 TB --- 2008-04-25 13:42:12 - cleaning the object tree TB --- 2008-04-25 13:42:44 - cvsupping the source tree TB --- 2008-04-25 13:42:44 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/ia64/ia64/supfile TB --- 2008-04-25 13:42:56 - building world (CFLAGS=-O -pipe) TB --- 2008-04-25 13:42:56 - cd /src TB --- 2008-04-25 13:42:56 - /usr/bin/make -B buildworld >>> World build started on Fri Apr 25 13:42:57 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Fri Apr 25 14:55:57 UTC 2008 TB --- 2008-04-25 14:55:57 - generating LINT kernel config TB --- 2008-04-25 14:55:57 - cd /src/sys/ia64/conf TB --- 2008-04-25 14:55:57 - /usr/bin/make -B LINT TB --- 2008-04-25 14:55:57 - building LINT kernel (COPTFLAGS=) TB --- 2008-04-25 14:55:57 - cd /src TB --- 2008-04-25 14:55:57 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Apr 25 14:55:57 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror /src/sys/ia64/ia64/interrupt.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror /src/sys/ia64/ia64/machdep.c /src/sys/ia64/ia64/machdep.c: In function 'cpu_idle': /src/sys/ia64/ia64/machdep.c:347: error: number of arguments doesn't match prototype /src/sys/sys/proc.h:811: error: prototype declaration cc1: warnings being treated as errors /src/sys/ia64/ia64/machdep.c: At top level: /src/sys/ia64/ia64/machdep.c:359: warning: initialization from incompatible pointer type *** Error code 1 Stop in /obj/ia64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-04-25 15:05:59 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-04-25 15:05:59 - ERROR: failed to build lint kernel TB --- 2008-04-25 15:05:59 - tinderbox aborted TB --- 3685.09 user 391.12 system 5026.09 real http://tinderbox.des.no/tinderbox-head-HEAD-ia64-ia64.full From owner-freebsd-ia64@FreeBSD.ORG Sat Apr 26 19:16:41 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D2E3106566B for ; Sat, 26 Apr 2008 19:16:41 +0000 (UTC) (envelope-from errors@mail6.reachmail.net) Received: from mail6.reachmail.net (mail6.reachmail.net [216.177.115.3]) by mx1.freebsd.org (Postfix) with ESMTP id 016DF8FC33 for ; Sat, 26 Apr 2008 19:16:41 +0000 (UTC) (envelope-from errors@mail6.reachmail.net) From: "Veracity USA, Inc." To: "Interop 2008 Attendee" Date: Sat, 26 Apr 2008 15:03:26 -0400 Message-ID: <20080426-15032609-1498@rmmailer.colo.reachmail.com> X-BPS1: 237056 X-BPS2: 2499 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="--=51B7B997CF3049148E1F_8B08_3466_15EA" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Visit Veracity at INTEROP 2008 in Booth #2401 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Veracity USA, Inc." List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 19:16:41 -0000 ----=51B7B997CF3049148E1F_8B08_3466_15EA Content-Type: text/plain;charset="iso-8859-1" Content-Transfer-Encoding: 8bit This email is being sent to freebsd-ia64@freebsd.org. Use this link to be deleted or to update your email address http://go.reachmail.net/r.asp?l=64772&ee=2499!free&s=237056,237056 _________________________________________________________________ You can choose to not receive further mailings by clicking on the link above. If you have trouble with this link, simply forward this message to rem@reachmail.com with "#RM#237056,237056" in the subject line. ReachMail does not tolerate spam. Please notify us via email at abuse@reachmail.com regarding any spam issues. If you have trouble with any of these methods, you can reach us toll-free at 800-404-6885. This message was sent by Veracity USA, Inc. using ReachMail. Read our Privacy Policy: http://reachmail.net/privacy.htm ----=51B7B997CF3049148E1F_8B08_3466_15EA-- From owner-freebsd-ia64@FreeBSD.ORG Sat Apr 26 19:23:56 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 882C8106566C for ; Sat, 26 Apr 2008 19:23:56 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.69]) by mx1.freebsd.org (Postfix) with ESMTP id 7351D8FC36 for ; Sat, 26 Apr 2008 19:23:56 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp006-s [10.150.69.69]) by smtpoutm.mac.com (Xserve/smtpout006/MantshX 4.0) with ESMTP id m3QJNuKn005423; Sat, 26 Apr 2008 12:23:56 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp006/MantshX 4.0) with ESMTP id m3QJNsmh027439 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 26 Apr 2008 12:23:54 -0700 (PDT) Message-Id: <0F96EAA4-9C68-407E-BAC1-AAB5035BAE97@mac.com> From: Marcel Moolenaar To: Christian Kandeler In-Reply-To: <200804241656.33349.christian.kandeler@hob.de> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sat, 26 Apr 2008 12:23:53 -0700 References: <200804231422.57226.christian.kandeler@hob.de> <3DFF6AF6-943F-4066-A424-3F6C73399C7B@mac.com> <200804241656.33349.christian.kandeler@hob.de> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ia64@freebsd.org Subject: Re: syscalls & mcontext X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 19:23:56 -0000 On Apr 24, 2008, at 7:56 AM, Christian Kandeler wrote: > On Wednesday 23 April 2008 19:10, you wrote: > >> Could you try the attached patch. It's against 7-STABLE, but >> should be easy to make work for 6.1 (if it doesn't apply). >> I'll give it a spin myself too... > > The bug was a bit volatile in that it wouldn't manifest itself all the > time, but I think I have now done enough testing to say with some > confidence that it's gone for good. Thanks! Thanks for testing. I committed the fix to 7-STABLE. FYI, -- Marcel Moolenaar xcllnt@mac.com