Date: Mon, 30 Apr 2012 01:49:32 +0300 From: Aleksandr Rybalko <ray@dlink.ua> To: Adrian Chadd <adrian@freebsd.org> Cc: Jason Evans <jasone@freebsd.org>, current@freebsd.org Subject: Re: <jemalloc>: jemalloc_arena.c:182: Failed assertion: "p[i] == 0" Message-ID: <20120430014932.7a87f731.ray@dlink.ua> In-Reply-To: <CAJ-VmonHYUYeF8xbisO8MCkp_Li7=fjQJRDEHFaR1K0yL7%2BK=A@mail.gmail.com> References: <20120421185402.GH1743@albert.catwhisker.org> <7AD8956D-AD18-4CAB-9953-06E00185A7DA@freebsd.org> <20120428150941.e0464900.ray@dlink.ua> <C8857CA7-44D5-4EB0-A1E2-DE0E0F6A673E@FreeBSD.org> <20120428231703.374bc042.ray@dlink.ua> <CAJ-VmonU8-UwuZ84feEWdeaA5NjGyzdcY6DGjEbZse4=qWLfJQ@mail.gmail.com> <CAJ-Vmo=X8a-1oTSv9CuxQ9tC0wPVJSBvFgFQaupjGO8bKp%2BWgQ@mail.gmail.com> <CAJ-VmonHYUYeF8xbisO8MCkp_Li7=fjQJRDEHFaR1K0yL7%2BK=A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 29 Apr 2012 12:04:05 -0700 Adrian Chadd <adrian@freebsd.org> wrote: > .. and the output from the buildworld: > > cc -fpic -DPIC -O -pipe -G0 -march=mips32 > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips -DNLS > -DSOFTFLOAT -D__DBINTERFACE_PRIVATE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/gdtoa > -DINET6 > -I/usr/home/adrian/work/freebsd/svn/obj/mipseb/mips.mips/usr/home/adrian/work/freebsd/svn/src/lib/libc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/resolv > -D_ACL_PRIVATE -DPOSIX_MISTAKE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/jemalloc/include > -DMALLOC_PRODUCTION > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/tzcode/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/locale -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/rpc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips/softfloat > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/softfloat > -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized > -Wno-pointer-sign > -c /usr/home/adrian/work/freebsd/svn/src/lib/libc/stdlib/twalk.c -o > twalk.So cc -O -pipe -G0 -march=mips32 > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips -DNLS > -DSOFTFLOAT -D__DBINTERFACE_PRIVATE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/gdtoa > -DINET6 > -I/usr/home/adrian/work/freebsd/svn/obj/mipseb/mips.mips/usr/home/adrian/work/freebsd/svn/src/lib/libc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/resolv > -D_ACL_PRIVATE -DPOSIX_MISTAKE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/jemalloc/include > -DMALLOC_PRODUCTION > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/tzcode/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/locale -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/rpc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips/softfloat > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/softfloat > -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized > -Wno-pointer-sign -c jemalloc_jemalloc.c -o jemalloc_jemalloc.o cc > -fpic -DPIC -O -pipe -G0 -march=mips32 > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../include > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips -DNLS > -DSOFTFLOAT -D__DBINTERFACE_PRIVATE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/gdtoa > -DINET6 > -I/usr/home/adrian/work/freebsd/svn/obj/mipseb/mips.mips/usr/home/adrian/work/freebsd/svn/src/lib/libc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/resolv > -D_ACL_PRIVATE -DPOSIX_MISTAKE > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/jemalloc/include > -DMALLOC_PRODUCTION > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/../../contrib/tzcode/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/stdtime > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/locale -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/rpc > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/mips/softfloat > -I/usr/home/adrian/work/freebsd/svn/src/lib/libc/softfloat > -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized > -Wno-pointer-sign -c jemalloc_jemalloc.c -o jemalloc_jemalloc.So > jemalloc_jemalloc.c: In function 'calloc': jemalloc_jemalloc.c:1027: > internal compiler error: in change_address_1, at emit-rtl.c:1784 > Please submit a full bug report, with preprocessed source if > appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > > and the diff against build_freebsd: > > > Index: build_freebsd > =================================================================== > --- build_freebsd (revision 165) > +++ build_freebsd (working copy) > @@ -45,6 +45,9 @@ > X_TARGET_CPUTYPE="TARGET_CPUTYPE=${TARGET_CPUTYPE}" > fi > > +# Create a make.conf > +echo "MALLOC_PRODUCTION=" > ${X_DESTDIR}/../make.conf.${BUILDNAME} > + > while [ "x$1" != "x" ]; do > if [ "$1" = "installworld" ]; then > mkdir -p ${X_DESTDIR}/usr/local/bin/ > @@ -63,7 +66,8 @@ > ${X_TARGET_CPUTYPE} KERNCONF=${KERNCONF} > DESTDIR=${X_DESTDIR} \ > KODIR=/boot/kernel.${KERNCONF}/ > \ > KMODDIR=/boot/kernel.${KERNCONF}/ > \ > - __MAKE_CONF=/dev/null SRCCONF=/dev/null > \ > + __MAKE_CONF=${X_DESTDIR}/../make.conf.${BUILDNAME} > \ > + SRCCONF=/dev/null > \ > LOCAL_DIRS="${LOCAL_DIRS}" > \ > LOCAL_TOOL_DIRS="${LOCAL_TOOL_DIRS}" $1 > \ > || exit 1 > @@ -74,3 +78,6 @@ > fi > shift > done > + > +# __MAKE_CONF=/dev/null > \ > +# SRCCONF=${X_DESTDIR}/../src.conf.${BUILDNAME} > \ > > > > adrian Hi, confirm, same for zrouter builds, at least for MIPS32EB and MIPS32EL. In short, MALLOC_PRODUCTION flag for MIPS32EL used this way: make \ TARGET=mips \ TARGET_ARCH=mipsel \ TARGET_CPUARCH=mips \ ... \ MALLOC_PRODUCTION=yes toolchain make \ TARGET=mips \ TARGET_ARCH=mipsel \ TARGET_CPUARCH=mips \ ... \ MALLOC_PRODUCTION=yes buildworld Just s/mipsel/mips/ for MIPS32EB. WBW -- Aleksandr Rybalko <ray@dlink.ua>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120430014932.7a87f731.ray>