libera/#sbcl - IRC Chatlog
Search
14:47:06
luis
Re win64 exceptions: no longer mishandling internal foreign exceptions, handling otherwise unhandled exceptions coming from FFI (wip here: https://github.com/luismbo/sbcl/commit/84de1573047b5d9068594bd46a6ac6e544fad93d), but still need to figure out a way to handle things like floating exceptions. It'd be nice if I could tell whether we're in Lisp
14:51:45
luis
Hmm. The thread struct (in objdef.lisp) has a FOREIGN-FUNCTION-CALL-ACTIVE slot. That sounds promising.
14:55:12
luis
"x86oid targets don't maintain the foreign function call flag at all", says interrupt.c, so scratch that.
15:43:20
luis
Looking for CODE-HEADER-WIDETAG with MAP-ALLOCATED-OBJECTS finds a single object in read-only space (something to do with allocation) and everything else in dynamic space, so I'll try and check if RIP is within dynamic space.