From nobody@FreeBSD.org  Wed Nov  3 23:00:07 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A23F16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Nov 2004 23:00:07 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4CE2A43D67
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Nov 2004 23:00:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA3N07qw070522
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 3 Nov 2004 23:00:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iA3N07ht070521;
	Wed, 3 Nov 2004 23:00:07 GMT
	(envelope-from nobody)
Message-Id: <200411032300.iA3N07ht070521@www.freebsd.org>
Date: Wed, 3 Nov 2004 23:00:07 GMT
From: Kyryll A Mirnenko <mirya@ukrpost.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: arts-1.3.1/mcopidl dies with msg "free(): error: chunk is already free"
X-Send-Pr-Version: www-2.3

>Number:         73506
>Category:       gnu
>Synopsis:       arts-1.3.1/mcopidl dies with msg "free(): error: chunk is already free"
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 03 23:00:46 GMT 2004
>Closed-Date:    Fri Jun 15 11:34:07 GMT 2007
>Last-Modified:  Fri Jun 15 11:34:07 GMT 2007
>Originator:     Kyryll A Mirnenko
>Release:        5.3-RC1
>Organization:
>Environment:
FreeBSD localhost 5.3-RC1 FreeBSD 5.3-RC1 #4: Tue Oct 26 23:44:01 EEST 2004     root@localhost:/usr/src/sys/i386/compile/MY-O1  i386
>Description:
building KDE3.3.1/artsd/libpthread/gcc3.4, one of tools dies: simple debug shows the problem is somewhere in post-main() descructors, as far it works fine for 5.2.1/libc_r/gcc3.3 the problem may come from 3.4 standart library

gmake[3]: Entering directory `/root/compile/arts-1.3.1/flow'
./mcopidl/mcopidl -t ../flow/artsflow.idl
./flow/artsflow.idl: warning: Arts::WaveDataHandle::load (method) collides with Arts::WaveDataHandle::load (method)
lt-mcopidl in free(): error: chunk is already free
gmake[3]: *** [artsflow.cc] Abort trap
gmake[3]: Leaving directory `/root/compile/arts-1.3.1/flow'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/compile/arts-1.3.1/flow'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/compile/arts-1.3.1'
gmake: *** [all] Error 2

here's backtrace just before that sudden death (not much useful though):

Breakpoint 2, 0x484be624 in free () from /lib/libc.so.5
#0  0x484be624 in free () from /lib/libc.so.5
#1  0x483f2e77 in operator delete () from /usr/lib/libstdc++.so.4
#2  0x08082a51 in __gnu_cxx::new_allocator<char>::deallocate (this=0xbfbfcc90, __p=0x80aa180 "\024") at ne
w_allocator.h:86
#3  0x483a9adf in std::string::_Rep::_M_destroy () from /usr/lib/libstdc++.so.4
#4  0x483a7291 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string () from /usr/lib/libstdc++.so.4
#5  0x08077ac2 in __tcf_1 () at yacc.yy:34
#6  0x4851aba3 in __cxa_finalize () from /lib/libc.so.5
#7  0x4851a8d2 in exit () from /lib/libc.so.5
#8  0x08062cde in _start ()
#9  0x00000003 in ?? ()
lt-mcopidl in free(): error: chunk is already free

Program terminated with signal SIGABRT, Aborted.
>How-To-Repeat:
arts-1.3.1:
$ ./configure --with-qt-dir=/usr/X11R6 \
--with-qt-libraries=/usr/X11R6/lib \
--with-qt-includes=/usr/X11R6/include \
--prefix=/usr/local \
--enable-debug=full \
--enable-final
$ gmake
>Fix:
_exit(0) before return in mcopidl/mcopidl.cc :)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Nov 4 02:01:30 GMT 2004 
Responsible-Changed-Why:  
This is a ports bug (misc is for things that are neither kern, nor 
ports, nor ...) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73506 

From: Michael Nottebrock <michaelnottebrock@gmx.net>
To: freebsd-gnats-submit@freebsd.org, mirya@ukrpost.net
Cc:  
Subject: Re: ports/73506: arts-1.3.1/mcopidl dies with msg "free(): error: chunk is already free"
Date: Thu, 4 Nov 2004 04:23:30 +0100

 This is not a ports bug, KDE 3.3.1 is not in ports, the submitter compiled the 
 software by himself.
 
 FWIW, the bug is known to the KDE/FreeBSD team. We work around it in the 
 audio/arts port by disallowing --enable-final, which triggers this bug.
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd--bugs 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Thu Nov 4 17:24:53 GMT 2004 
Responsible-Changed-Why:  
Not a ports bug. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=73506 
Responsible-Changed-From-To: freebsd--bugs->freebsd-bugs 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Thu Nov 4 17:25:32 GMT 2004 
Responsible-Changed-Why:  
Typo. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=73506 
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Wed Jun 13 12:53:48 UTC 2007 
State-Changed-Why:  

To submitter: Is this still a problem on more recent versions 
of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73506 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jun 15 11:33:33 UTC 2007 
State-Changed-Why:  
Submitter's email address bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73506 
>Unformatted:
