On Thursday 08 September 2005 03:54 pm, Boudewijn Rempt wrote:
> On stderr, I get Invalid free() / delete / delete[] when running Krita.
> Obviously an error on my part, but I cannot find out where it happens. Wh=

en
> I run Krita with valgrind --tool=3Dmemcheck, I get:
>
> =3D=3D27601=3D=3D
> =3D=3D27601=3D=3D Invalid free() / delete / delete[]
> =3D=3D27601=3D=3D at 0x1B905460: free (vg_replace_malloc.c:153)
> =3D=3D27601=3D=3D by 0x1D2D0CB6: (within /lib/tls/i686/cmov/libc-2.3.2=

..so)
> =3D=3D27601=3D=3D by 0x1D2D09AE: __libc_freeres
> (in /lib/tls/i686/cmov/libc-2.3.2.so)
> =3D=3D27601=3D=3D by 0x1B8FEC50: _vgw(float, long double,...)(...)(long
> double,...) (short) (vg_intercept.c:117)
> =3D=3D27601=3D=3D Address 0x1D2F9A28 is not stack'd, malloc'd or (recent=

ly) free'd
>
> Which is leaving me quite stumped: can anyone help me proceed from here?


add --num-callers=3D20 to get a longer backtrace to see where this is actua=
lly =

coming from. By default, valgrind only uses a num-callers value of 4.
-- =

Matt
=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<