The aim is not to modify the source code so as to save time and effort that would otherwise be required for testing and debugging when such changes are done to accommodate the smaller stack size on Linux compared to Windows.
I'm sure that given the opportunity to review your code (essentially under NDA of course) we could figure out whats happening.
It could easily be as simple as changing the stack size or something - but right now I'm guessing since I cant debug it to know for sure.
It's just a suggestion
Often it's not that hard but I dont know your particular case - it could easily be much more complex
If the kind offer of help above is still outstanding then please see if the sample application in above post dated "Sat May 18, 2013 8:53 pm" can used to find the solution to the stack overflow on Linux which clearly shows that the applicable stack size on Linux is about one fourth the size when compared to Windows for the same RB application.
Thanks and Regards,
Really run it in a thread where you can set the stack size
That's THE quickest and on Linux makes the code you gave fail more closely to the Windows & OS X number