From owner-freebsd-current@FreeBSD.ORG Mon Mar 13 20:27:42 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06FE416A44E for ; Mon, 13 Mar 2006 20:27:42 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id A637943D45 for ; Mon, 13 Mar 2006 20:27:41 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: by lh.synack.net (Postfix, from userid 100) id 7643C5E48F2; Mon, 13 Mar 2006 12:27:41 -0800 (PST) Received: from [192.168.168.201] (moscow-cuda-gen2-68-64-60-20.losaca.adelphia.net [68.64.60.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id 152B25E48F2; Mon, 13 Mar 2006 12:27:41 -0800 (PST) Message-ID: <4415D5B7.8000807@FreeBSD.org> Date: Mon, 13 Mar 2006 12:27:35 -0800 From: Jason Evans User-Agent: Mozilla Thunderbird 1.0.7-1.4.1 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GeX References: <53cc795f0603130945g3462111fvb0747dfa1ce58f18@mail.gmail.com> In-Reply-To: <53cc795f0603130945g3462111fvb0747dfa1ce58f18@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.5 (2005-11-28) on lh.synack.net X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.5 Cc: freebsd-current@freebsd.org Subject: Re: centericq in -current 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: Mon, 13 Mar 2006 20:27:42 -0000 GeX wrote: > i have a problem with using of the centericq. > problem appeared after upgrade of my box from 6.1-pre to 7.0-current: > > zsh: segmentation fault (core dumped) *centericq* > > (gdb) bt > #0 0x285e18d7 in reallocf () from /lib/libc.so.6 > #1 0x285e39fe in free () from /lib/libc.so.6 > #2 0x282b2811 in operator delete () from /usr/lib/libstdc++.so.5 > #3 0x0813ced0 in __gnu_cxx::operator== () > #4 0x080ffb1b in std::operator+, > std::allocator > () > #5 0x080fd413 in std::operator+, > std::allocator > () > #6 0x08138cd2 in __gnu_cxx::operator== () > #7 0x08138c96 in __gnu_cxx::operator== () > #8 0x081387ae in __gnu_cxx::operator== () > #9 0x08146896 in > std::string::_S_construct<__gnu_cxx::__normal_iterator std::string> > () > #10 0x080ecf20 in std::operator+, > std::allocator > () > #11 0x080fd15b in std::operator+, > std::allocator > () > #12 0x286241ba in __cxa_finalize () from /lib/libc.so.6 > #13 0x285e4206 in exit () from /lib/libc.so.6 > #14 0x080b47ae in std::operator+, > std::allocator > () > #15 0x080eb26c in std::operator+, > std::allocator > () > #16 0x0804d522 in ?? () > #17 0x00000002 in ?? () > #18 0xbfbfec08 in ?? () > #19 0xbfbfec14 in ?? () > #20 0x081ddbb4 in __progname () > #21 0x081c4580 in std::setfill () > #22 0x00000002 in ?? () This is likely due to the application corrupting memory by over-running a malloc buffer. You could potentially detect this by increasing the size of redzones in /usr/src/lib/libc/stdlib/malloc.c (increase MALLOC_RED_2POW), then running centericq with the custom libc. cd /usr/src/lib/libc make LD_PRELOAD=/usr/obj/usr/src/lib/libc/libc.so.6 centericq You probably don't want to install the modified libc, since the extra memory requirements of the large redzones could swamp your system. Jason