Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2004 20:24:06 +0200
From:      =?ISO-8859-1?Q?Eirik_=D8verby?= <ltning@anduin.net>
To:        Elliot Finley <lists@efinley.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Beta3 core dump
Message-ID:  <192E4189-05B2-11D9-831C-000D9335BCEC@anduin.net>
In-Reply-To: <09fb01c499b4$5892b870$32cba1cd@science1>
References:  <06c601c4973a$1d1c5570$32cba1cd@science1><7m8ybip6qm.wl@black.imgsrc.co.jp><072201c4975c$db5bfa00$32cba1cd@science1><7mzn3xo1mj.wl@black.imgsrc.co.jp><07bb01c49812$bf4463a0$32cba1cd@science1><7my8jgomga.wl@black.imgsrc.co.jp> <7misainsd4.wl@black.imgsrc.co.jp> <09fb01c499b4$5892b870$32cba1cd@science1>

next in thread | previous in thread | raw e-mail | index | archive | help
Same here.
Thanks!

Is this patch (or a fix like it) going to be committed?

/Eirik

On 13. Sep 2004, at 19:08, Elliot Finley wrote:

> This patch works for me.
>
> ----- Original Message -----
> From: "Jun Kuriyama" <kuriyama@imgsrc.co.jp>
> To: "Elliot Finley" <lists@efinley.com>
> Cc: <freebsd-current@freebsd.org>
> Sent: Monday, September 13, 2004 8:41 AM
> Subject: Re: Beta3 core dump
>
>
>> At Sun, 12 Sep 2004 00:27:17 +0900,
>> kuriyama wrote:
>>>> Just so you're clear on what I'm doing.  I made the code change, 
>>>> then
> in
>>>> /usr/src/lib/libc I do a 'make' then a 'make install', then I do a
>>>> 'portsdb -fu'.
>>>
>>> Thanks.  My patch fixes 3 boxes in my office, but I find next one
>>> still dumps core even with patch.  I'll dig into more...
>>
>> Okay, I find NetBSD has already fixes for this.  Please test with this
>> patch if you still have problem with "portsdb -u".
>>
>>
>> ==== //depot/user/kuriyama/ref5/src/lib/libc/db/btree/bt_split.c#3 -
> /home/kuriyama/p4/kuriyama/ref5/src/lib/libc/db/btree/bt_split.c ====
>> @@ -355,8 +355,6 @@
>>   /* Put the new right page for the split into place. */
>>   if ((r = __bt_new(t, &npg)) == NULL)
>>   return (NULL);
>> - /* XXX: Workaround for broken page data. */
>> - memset(r, 0xff, t->bt_psize);
>>   r->pgno = npg;
>>   r->lower = BTDATAOFF;
>>   r->upper = t->bt_psize;
>> @@ -728,7 +726,7 @@
>>   * the right page.
>>   */
>>   if (skip <= off) {
>> - skip = 0;
>> + skip = MAX_PAGE_OFFSET;
>>   rval = l;
>>   } else {
>>   rval = r;
>> @@ -738,7 +736,7 @@
>>   for (off = 0; nxt < top; ++off) {
>>   if (skip == nxt) {
>>   ++off;
>> - skip = 0;
>> + skip = MAX_PAGE_OFFSET;
>>   }
>>   switch (h->flags & P_TYPE) {
>>   case P_BINTERNAL:
>>
>>
>> -- 
>> Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
>>              <kuriyama@FreeBSD.org> // FreeBSD Project
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to 
> "freebsd-current-unsubscribe@freebsd.org"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?192E4189-05B2-11D9-831C-000D9335BCEC>