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--