Solved... Apologies for the baffling mystery of the apparently correct code I posted. There were function pointers pointing at buggy things. Specifically I forgot to remove some INLINE_STACK_* macros and boy who knows what those things do to an internal non-stack-using function.
Once I removed those, everything works fine. Mystery not solved, but not very interesting either! Thanks for the help though. -------------------------------------------------------- -------------------------------------------------------- ATTENTION: DO NOT read, copy or disseminate this communication unless you are the intended addressee. This message and any file(s) or attachment(s) transmitted with it are confidential, intended only for the named recipient, and may contain information that is a trade secret, proprietary, protected by the attorney work product doctrine, subject to the attorney-client privilege, or is otherwise protected against unauthorized use or disclosure. This message and any file(s) or attachment(s) transmitted with it are transmitted based on a reasonable expectation of privacy consistent with ABA Formal Opinion No. 99-413. If you have received this communication in error, please e-mail the sender and notify the sender immediately that you have received the communication in error. Thank you.