Loading...

factor-talk@lists.sourceforge.net

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Factor-talk] Callbacks not preserving %rbx on x86-64 Slava Pestov Mon Sep 15 00:05:36 2008

On Sat, Sep 13, 2008 at 12:16 PM, Joe Groff <[EMAIL PROTECTED]> wrote:
> Hi guys. I think I've figured out what's causing the segfaults in the
> UI on OS X x86-64. It looks like the %rbx register, which should be
> callee-preserved, is getting clobbered by the code Factor generates
> for -[FactorView drawRect:] (from ui.cocoa.views). As you can see in
> the following disassembly, it saves %rbx to the stack but never
> restores it before returning:

Fixed! The UI now runs and responds to keyboard events; "compiler"
test and "ui" test in the UI listener works fine. However, mouse
events doesn't work. So close!

> Let me know when you all start getting sick of x86-64 bug reports.

Keep 'em coming.

Slava

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/factor-talk