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

Gabriel Dos Reis gdr at integrable-solutions.net
Thu Nov 6 11:01:34 UTC 2008


On Thu, Nov 6, 2008 at 5:54 AM, Waldek Hebisch <hebisch at math.uni.wroc.pl> wrote:
> Gabriel Dos Reis wrote:
>> On Thu, Nov 6, 2008 at 4:02 AM, Gabriel Dos Reis <gdr at cs.tamu.edu> wrote:
>> > Hi Juanjo,
>> >
>> >  I was investigating some obscure `segmentation fault' (on MAC OS) or
>> > `stack over flow' (on x86) bug in a ECL-based OpenAxiom build, when I
>> > got prompted to look into src/c/interpreter.d:ecl_interpret().  It looks
>> > to me that given:
>> >
>> >        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.
>>
>> But, I'm still puzzled by this curious bug (which I think Waldek
>> also alluded to at some point in the past).
>
> I do not think that I meet this bug.  I had problems with FriCAS
> crashing when it should quit -- this was due due segfault unloading
> shared libraries.  It seems that problem with shared libraries
> is fixed in newest ECL, at least I do not see it using CVS version.

Ah, OK; then it is a different problem when quiting.  OpenAxiom
is not using the shared libraries for ECL-based builds.

-- Gaby




More information about the ecl-devel mailing list