New/delete mismatch in DebugStackFrame::indexOfFirstLocal()
stejohns at adobe.com
Thu Jun 12 10:12:59 PDT 2008
Yeah, -Dastrace hasn't been thoroughly exercised in a while... we should get
it working again. Is there a bugzilla bug on it? If not, let's enter one (or
On 6/12/08 10:06 AM, "Michael Daumling" <mdaeumli at adobe.com> wrote:
> Hi all,
> I am experimenting with various command line arguments. -Dastrace is
> very sensitive:
> 1) If you omit the number, and -Dastrace happened to be the last
> argument, avmshell crashes.
> 2) In DebugStackFrame::indexOfFirstLocal(), the code looks like this:
> const MethodInfo* mi = trace->env->buildMethodInfo();
> int result = 1 + mi->param_count;
> delete mi; // we're done with it, toss it now
> The problem: mi is allocated with new (gc, extra) MethodInfo(), but the
> global delete operator is called.
> Very ugly.
> Tamarin-devel mailing list
> Tamarin-devel at mozilla.org
More information about the Tamarin-devel