Hi Slava, Ok, the simplest short-term workaround is to reenable the singleton (patch below). Sorry am on the train at the moment so connection flaky.
Is there a good way around this issue? Can we do something like look for a code-heap matching the exception thread_state program counter? Cheers, Phil diff --git a/vm/vm.hpp b/vm/vm.hpp index 97d873d..0f8e76e 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -756,7 +756,7 @@ struct factor_vm }; #ifndef FACTOR_REENTRANT - #define FACTOR_SINGLE_THREADED_TESTING + #define FACTOR_SINGLE_THREADED_SINGLETON #endif #ifdef FACTOR_SINGLE_THREADED_SINGLETON Slava Pestov wrote: > Phil, > > The call_fault_handler() function runs in a different thread from the > Factor VM, and so you cannot just call SIGNAL_VM_PTR(). This made the > VM hang when a memory protection fault or arithmetic exception was > raised. > > I added an assertion to tls_vm() in os-unix.cpp, so now you'll see this error: > > ( scratchpad ) drop 4 > Assertion failed: (vm != NULL), function tls_vm, file vm/os-unix.cpp, line 37. > Abort trap > > Please fix this ASAP. > > Slava > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
