From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 22 09:12:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45EB816A420; Thu, 22 Nov 2007 09:12:01 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 06F8913C4E1; Thu, 22 Nov 2007 09:12:01 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Iv6t4-0006e5-0k; Thu, 22 Nov 2007 08:54:14 +0100 Message-ID: <47453560.3040604@gahr.ch> Date: Thu, 22 Nov 2007 08:53:04 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: Jason Evans References: <474420B8.10203@gahr.ch> <4744EFC9.50409@freebsd.org> In-Reply-To: <4744EFC9.50409@freebsd.org> X-Enigmail-Version: 0.95.5 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig5D9F5DB725C5D292CBC16CF8" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org Subject: Re: assertion failed on malloc.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2007 09:12:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5D9F5DB725C5D292CBC16CF8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jason Evans wrote: > Pietro Cerutti wrote: >>> uname -r >> 8.0-CURRENT >> >> Mplayer always crashes quitting .flv video (either by pressing 'q' or >> because the video is over). >> >> The error is: >> >> Assertion failed: (diff =3D=3D regind * size), function >> arena_run_reg_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 171= 4. >> >> Removing the assert at line 1714 and recompiling libc solves the >> problem, but I'm not that familiar with the current malloc >> implementation to know whether (diff =3D=3D regind * size) is always >> supposed to be true (thus a bug in mplayer) or the assertion is simply= >> wrong. >=20 > This is probably due to attempted deallocation of an invalid pointer. > This could be either a double free or a totally bogus deallocation, > perhaps of a pointer that is within a valid object. >=20 > Removing the assertion in malloc.c simply allows undefined behavior > beyond where the assertion failure would have caused a crash. The > failure modes can be serious, such as memory corruption or a > segmentation fault. Thanks for analyzing this. In this case, I'll go on looking for the bug in mplayer. >=20 > Jason --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig5D9F5DB725C5D292CBC16CF8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHRTVnwMJqmJVx944RCsXqAJ0RWIC9H+7i6H1ti5EmbI/g9CRd+ACfTdeD X7pEJfLgy7F1oG6JZ+cu71w= =N60J -----END PGP SIGNATURE----- --------------enig5D9F5DB725C5D292CBC16CF8--