Hi,

We are using dynamic linking in our app and recently it started giving us 
error "Range Error: Maximum call stack size exceeded." on Safari version 
13. Digging further we noticed that error was happening due to globalCtors 
was calling __apply_relocations function which then was recursively calling 
__apply_relocations1 and then 2 and so on. This was causing the call stack 
size to exceed the Safari 13 limit and hence the error.  

On thing to note is that we don't see this error if we don't use dynamic 
linking. And Safari did modify the limit as our app was working fine with 
earlier versions of Safari. 

Can this be fixed such that the generated code is not growing the call 
stack beyond that limit or is there some way to limit the stack size on 
emscripten side?

Any suggestions?


Thanks,
Manish

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/bd6d394a-b2b8-4624-88dc-c3cf787aa32d%40googlegroups.com.

Reply via email to