NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/40651: kmem_alloc() returns misaligned pointers
The following reply was made to PR kern/40651; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/40651: kmem_alloc() returns misaligned pointers
Date: Mon, 16 Feb 2009 14:51:03 +0100
On Mon, Feb 16, 2009 at 09:16:12AM +0900, YAMAMOTO Takashi wrote:
> is it with DEBUG?
Yes, it is with DEBUG.
> #if defined(KMEM_SIZE)
> -#define SIZE_SIZE (min(KMEM_QUANTUM_SIZE, sizeof(size_t)))
> +#define SIZE_SIZE (max(KMEM_QUANTUM_SIZE, sizeof(size_t)))
> static void kmem_size_set(void *, size_t);
That makes it get a bit faster, but it dies later with:
cgsix0: framebuffer size: 1 MB
panic: kmem_poison_check: 0xf41cb600: 0x00 != 0x73
Stopped in pid 0.1 (system) at netbsd:cpu_Debugger+0x4: or
%
o7, %g0, %g1
db> bt
cpu_Debugger(0xf03b2cd0, 0xf03741d8, 0xf41cb600, 0xf03e7800, 0x104,
0xf043d000) a
t netbsd:kmem_poison_check+0x84
kmem_poison_check(0xf41cb600, 0xb8, 0x0, 0x0, 0x0, 0xa) at
netbsd:kmem_alloc+0xb
4
kmem_alloc(0xf41cb600, 0x1, 0xf03e1344, 0x0, 0x0, 0xa) at
netbsd:kmem_zalloc+0x8
kmem_zalloc(0xac, 0x1, 0x0, 0xf0397730, 0xf03e1330, 0x8) at
netbsd:config_devall
oc+0x138
config_devalloc(0xf404fae0, 0xf03e3b3c, 0x0, 0xf0357018, 0xf03e470c, 0x2) at
net
bsd:config_attach_loc+0x10
config_attach_loc(0xf404fae0, 0xf03e3b3c, 0x0, 0xf03e1344, 0xf031a1bc,
0xf031a1b
c) at netbsd:cg6attach+0x240
cg6attach(0xf41cb008, 0xf41cb274, 0x0, 0x70, 0x0, 0xfe130000) at
netbsd:cgsixatt
ach+0x39c
cgsixattach(0xf404f248, 0xf404fae0, 0xf03e14a0, 0xf043cfe8, 0xf03e470c, 0x2)
at n
etbsd:config_attach_loc+0x198
config_attach_loc(0xf404fae0, 0xf03e40dc, 0x0, 0xf03e14a0, 0xf023c3bc,
0xf023c3b
c) at netbsd:sbus_attach_common+0x240
sbus_attach_common(0xf40d0078, 0xf0379910, 0xffd5fa00, 0x0, 0xf03e470c, 0x2)
at n
..
Martin
Home |
Main Index |
Thread Index |
Old Index