From owner-freebsd-current@FreeBSD.ORG Tue Mar 17 02:03:59 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7E55106564A; Tue, 17 Mar 2009 02:03:59 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f158.google.com (mail-fx0-f158.google.com [209.85.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 491158FC13; Tue, 17 Mar 2009 02:03:58 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: by fxm2 with SMTP id 2so3597620fxm.43 for ; Mon, 16 Mar 2009 19:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=tVqlo6CazGWjGdZkTmA7VCUo8t8p74hbYV8VZ19GMjc=; b=TR9BW/+UFU93DOC7yIYRpgVTnesx1LP9Ru4Vv3us0fHoE/JSpi9+csngXckcJx6gGt qr6PUCFg4+c+j4KdTVkht7V+BTlgBpLCGMu0Ol9N1g6KNJhZIbYUpkddNM949hyL7a0Z 8BrbX8RcFtM+7PdZ2B4smB7qyeYxUVAdXu8js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=P6XVrsJp3atpHGLxyDvB3zpHVmj41tuYh5jWsg35RWBuk+pSqQsd4lzEBJh5LUOJFQ YJmFElThp5YdQ7QG2wLJi/5bgmVhZRrZmEysngZIvX/RLyuTbtVB1r5PqEe1DP7EdNDu gKdxy5ah949fs1pASrNGhFeAYvoyPGM9xRLcY= Received: by 10.86.98.18 with SMTP id v18mr3070860fgb.46.1237255438275; Mon, 16 Mar 2009 19:03:58 -0700 (PDT) Received: from localhost (95-24-69-29.broadband.corbina.ru [95.24.69.29]) by mx.google.com with ESMTPS id l19sm349132fgb.47.2009.03.16.19.03.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Mar 2009 19:03:57 -0700 (PDT) From: Anonymous To: Kostik Belousov References: <864oxtuzct.fsf@gmail.com> <20090316194541.GO41617@deviant.kiev.zoral.com.ua> <86ljr5p3f0.fsf@gmail.com> <20090316215205.GS41617@deviant.kiev.zoral.com.ua> <868wn5qaca.fsf@gmail.com> Date: Tue, 17 Mar 2009 05:03:53 +0300 Message-ID: <86ab7koqgm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org, dchagin@freebsd.org Subject: Re: lang/sbcl consumes all available memory and dies X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Mar 2009 02:04:00 -0000 (oops, vague wording) Anonymous writes: > Kostik Belousov writes: >> Please, try this patch. >> >> diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c >> index f2bdcf5..5604ea5 100644 >> --- a/sys/kern/imgact_elf.c >> +++ b/sys/kern/imgact_elf.c >> @@ -1330,14 +1330,14 @@ __elfN(check_note)(struct image_params *imgp, Elf_Brandnote *checknote, >> int32_t *osrel) >> { >> const Elf_Note *note, *note_end; >> - const Elf32_Phdr *phdr, *pnote; >> - const Elf32_Ehdr *hdr; >> + const Elf_Phdr *phdr, *pnote; >> + const Elf_Ehdr *hdr; >> const char *note_name; >> int i; >> >> pnote = NULL; >> - hdr = (const Elf32_Ehdr *)imgp->image_header; >> - phdr = (const Elf32_Phdr *)(imgp->image_header + hdr->e_phoff); >> + hdr = (const Elf_Ehdr *)imgp->image_header; >> + phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); >> >> for (i = 0; i < hdr->e_phnum; i++) { >> if (phdr[i].p_type == PT_NOTE) { > > Double-checked on more recent revision (r189900) under qemu-amd64 > with/without the patch. The problem disappears. ^^^^^^^ It disappears only *after* applying your patch. > > Don't know about i386, though. Just tested under qemu-i386. Looks like it's not affected. Anyway, *with* the patch sbcl works, too.