On 21/04/2012, at 4:29 PM, john skaller wrote: > > Felix uses two gcc specific tricks: > > * computed gotos. > * assembler labels (if available) > > However .. clang fails too. I don't know if that's because > it is emulating gcc or if it's a bug in dynamic loading. > [I mean in OSX .. it can't be a bug in *my* code, now can it .. :]
Well.. somehow .. clang supports assembler and computed gotos. And I tried turning off computed gotos doesn't fix the problem. So baffled.. maybe hijacking issue: the old flx2html etc lived in classes, the new ones are global. I actually expected this would create utter havoc with unix linkage (since there are lots of duplicated symbols in the plugins). But it didn't create utter havoc. This may not be a linkage issue. I may be barking up the wrong tree (what's new?). I just can't see how the reachability or other stuff would cause a problem, unless it caused a compile failure. Clearly there's a memory corruption. Seems unlikely to be the GC or such, since it's too deteminate .. the bug happens "if and only if flx2html sees a triple quote or dquote" and it is called by fdoc2html. All the symptoms point to a simple programming error, probably a bad pointer .. though how is clang getting an "illegal instruction"? This must be a return after stack corruption causing a bad address to be loaded into the program counter: without computed gotos all jumps are static and so cannot be invalid (and of course the code segment is going to be write protected .. one hopes, anyhow). Actually .. maybe Clang doesn't and gcc does .. accounting for the different error messages. Hmm.. this is going to be nasty ;( -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language