close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#351 closed defect (fixed)

Unknown crash in Serie function

Reported by: César Pérez Álvarez Owned by: Víctor de Buen Remiro
Priority: high Milestone:
Component: Various Version: head
Severity: major Keywords:
Cc:

Description

When we compile this:


Serie IntTrend(Serie ind)

{

Serie ten = DifEq(1/(1-B),SubSer(ind,y2002, y2020));
ten - (0*ind)<<Expand(B:(ind * ten)*Not(ind),0)

};
Serie IndNav = CalInd((Range(M(12)*D(1),0,36)),Diario);
Serie IntTNav2 = IntTrend(IndNav)2;


Tol breaks down. If we try to isolate the error with this code:

Serie ind = IndNav;
Serie ten = DifEq(1/(1-B),SubSer(ind,y2002, y2020));
Serie res = (ten - (0*ind)<<Expand(B:(ind * ten)*Not(ind),0))2;


It runs perfectly.

And the last one, if we compile this:


Serie IntTrend(Serie ind)

{

Serie ten = DifEq(1/(1-B),SubSer(ind,y2002, y2020));
ten - (0*ind)<<Expand(B:(ind * ten)*Not(ind),0)

};
Serie IndNav = CalInd((Range(M(12)*D(1),0,36)),Diario);
Serie IntTNav2 = IntTrend(IndNav);


It runs perfectly. I think that this bug is related with '2' when we use

the function IntTrend.

Change History (4)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

Thanks for report this bug. We are working about it

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Status: newassigned

comment:3 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

Well, this bug has been corrected in CVS.

In btol/bgrammar/tol_bgentmp.h there was a dangerous undefined initialiazation
of BSyntaxObject BTmpObject<Any>::array_. It must be NULL

comment:4 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000351
Note: See TracTickets for help on using tickets.