From owner-freebsd-stable@FreeBSD.ORG Mon Mar 21 19:11:14 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD77816A4FC for ; Mon, 21 Mar 2005 19:11:14 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7840143D41 for ; Mon, 21 Mar 2005 19:11:14 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j2LJAwu1014676; Mon, 21 Mar 2005 13:10:58 -0600 (CST) (envelope-from dan) Date: Mon, 21 Mar 2005 13:10:58 -0600 From: Dan Nelson To: Bartosz Fabianowski Message-ID: <20050321191058.GI5243@dan.emsphone.com> References: <423F0418.3050702@chillt.de> <20050321181209.GG5243@dan.emsphone.com> <423F11A5.40502@chillt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <423F11A5.40502@chillt.de> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-stable@freebsd.org Subject: Re: malloc() debugging flags broken on RELENG_5 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 19:11:15 -0000 In the last episode (Mar 21), Bartosz Fabianowski said: > >You're not running as root, are you? The A flag is always set for > >root or setuid processes as a security measure. > > No, I am running as a normal user. > > >There hasn't been any changes to the malloc code in 5.x since 5.3. > > I realize there shouldn't have been any changes and I also cannot > find everything in the CVS logs. But when I run Kopete, I get the > following: > > kopete in free(): error: modified (chunk-) pointer > ^^^^^ > According to the man page, this word should read "warning" instead of > "error" and the application should not be aborted. The actual test in the malloc code reads: if (malloc_abort || issetugid() || getuid() == 0 || getgid() == 0) wrterror(p) , so it may also trigger if your primary groupid is 0 (wheel). Just being a member of the wheel group won't trigger it. > >File a bugreport; a program must pass the same pointer to free() that > > it received from malloc(). > > Obviously, there is a bug in Kopete. But it runs for other people with > earlier versions of RELENG_5. I am currently downgrading to 1st March to > see whether that fixes the issue for me. It might also be caused by some dependant package, and not strictly kopete's fault. Depends on what is being freed. -- Dan Nelson dnelson@allantgroup.com