Date: Mon, 08 Sep 2014 18:53:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193465] [mips] malloc failures on mips, ath(4) Message-ID: <bug-193465-8-gesZfUAHk5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-193465-8@https.bugs.freebsd.org/bugzilla/> References: <bug-193465-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193465 --- Comment #3 from Sean Bruno <sbruno@FreeBSD.org> --- (In reply to Sean Bruno from comment #2) > Specifically, this is what I am doing to work around this issue: >=20 > Index: sys/kern/kern_malloc.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/kern/kern_malloc.c (revision 271278) > +++ sys/kern/kern_malloc.c (working copy) > @@ -151,10 +151,21 @@ > {1024, "1024", }, > {2048, "2048", }, > {4096, "4096", }, > +#if PAGE_SIZE > 4096 > {8192, "8192", }, > +#if PAGE_SIZE > 8192 > {16384, "16384", }, > +#if PAGE_SIZE > 16384 > {32768, "32768", }, > +#if PAGE_SIZE > 32768 > {65536, "65536", }, > +#if PAGE_SIZE > 65536 > +#error "Unsupported PAGE_SIZE" > +#endif > +#endif > +#endif > +#endif > +#endif > {0, NULL}, > }; This is incorrect. I had to revert r266964 and r266963 in order to get the system to work again. Just using this change results in a panic: Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r271278M: Mon Sep 8 11:36:16 PDT 2014 =20=20=20 sbruno@alice:/home/sbruno/bsd/obj/mips/mips.mips/home/sbruno/bsd/fbsd_head/= sys/WZR-300HP mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0800000 MEMGUARD map size: 104860 KBytes Preloaded elf kernel "kernel" at 0x80646970. real memory =3D 67108864 (65536K bytes) Physical memory chunk(s): 0x006e1000 - 0x03ebcfff, 58572800 bytes (14300 pages) avail memory =3D 57790464 (55MB) Trap cause =3D 2 (TLB miss (load or instr. fetch) - kernel mode) [ thread pid 0 tid 0 ] Stopped at strncmp+0x8: lb v1,0(a0) db> reset --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193465-8-gesZfUAHk5>