Re: Eu2C segmentation fault, wxEuphoria v0.6.0

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kenneth Rhodes wrote:
> Using Euphoria 2.5 official translator, I get a segmentation fault
> when trying to execute translated/compiled versions 
> of calendar.exw and wxIDE-0-2-2 under Linux.
> 
> Shroud works like a dream!

I tried calendar.exw on my Mandrake 10.0 system with GCC 3.3.2

It works fine with the interpreter, exu.

It crashes when translated/compiled with ecu.
It crashes while executing the statement:
   c_proc(eucall, {}) 
   at cplusplus.e:11
after doing a few pokes into memory.
It has successfully executed this statement a couple of dozen times,
and when it crashes, it's the first time that it tries to execute
wxEntryStart. The parameters are {0, 0}.

I'm not sure how to debug this further because I don't
seem to have the source for the eucall C++ routine.
In any case, it appears that Matt is doing some very 
low-level tricky operation here, and for some reason it works when 
interpreted, but not when compiled. It does not look like a 
simple code-generation error on the part of the Translator.
It may have something to do with calling conventions, or accessing
the NULL pointer, or something. Perhaps it only works in the
interpreter by luck. calendar.exw is not the only one that fails
in this way.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu