[Ecls-list] uninitialized ihs_frame object in call to ecl_cs_check

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Thu Nov 6 09:35:32 UTC 2008

On Thu, Nov 6, 2008 at 10:25 AM, Gabriel Dos Reis
<gdr at integrable-solutions.net> wrote:
>>        struct ecl_stack_frame frame_aux;
>>        volatile struct ihs_frame ihs;
>>        ecl_cs_check(ihs);
>> the object `ihs' is never initialized before call to ecl_cs_check.
>> That looks to me like a serious bug.
> Upon reading further the code, no, that is not a serious bug.

Indeed it is not. What ecl_cs_check() does is to get the address at
which the atomic variable ihs is stored and verify that it is within
the previously established stack limits.

> But, I'm still puzzled by this curious bug (which I think Waldek
> also alluded to at some point in the past).
> If I build OpenAxiom with debug=3, then the bug disappears.
> If I set debug=2 or less, I can reproduce it.  If I trace some specific
> functions, I can no longer reproduce the bug for some cases.
> And the crash happen only when executing a THROW at the
> nearly end of an ECL-based OpenAxiom seession.

Is there an easy (or not so easy way) I can reproduce this?
Downloading, checking out or building Axiom is ok, AFA you give me a
finite set of simple steps. Thanks in advance,


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)

More information about the ecl-devel mailing list