DISABLE_EXCEPTION_CATCHING=2 with EXCEPTION_CATCHING_WHITELIST seems not to be working in latest upstream backend

43 views
Skip to first unread message

Rohit Saini

unread,
Feb 3, 2020, 11:27:24 AM2/3/20
to emscripten-discuss
Hi All,

We made a update to 1.39.6 recently . Previously we were on 1.38.34 and using -s DISABLE_EXCEPTION_CATCHING=2 -s EXCEPTION_CATCHING_WHITELIST="@whitelist.txt", and it was working fine.
But in latest upstream it seems to be stopped working.

I wrote a small program to verify that, it is not working with this program as well.

#include <iostream>
#include "emscripten.h"
using namespace std;

extern "C"
void fun() {
   try {
      throw 10000;
   } catch(...) {
      cout<<"hello"<<endl;
   }
}
int main () {
   fun();
   return 0;
}

I run this command 
emcc test.cpp -s DISABLE_EXCEPTION_CATCHING=2 -s EXCEPTION_CATCHING_WHITELIST=["_fun"] -o test.html
with 1.38.34 it's working fine and printing hello, but with 1.39.6 function is not catching exception and "uncaught exception" is printing on console.

Regards,

Rohit Saini

unread,
Feb 5, 2020, 6:20:07 AM2/5/20
to emscripten-discuss
Hi,

Is anyone looking into this. Actually my team is blocked by this issue. Or can anyone please tell me any workaround.

Regards,
Rohit Saini

Sam Clegg

unread,
Feb 5, 2020, 4:36:10 PM2/5/20
to emscripte...@googlegroups.com
Seems like a regression with the upstream backend.  Does it work with 1.39.6 under fastcomp?

Would you mind opening a bug on the emscripten bug tracker?

cheers,
sam

--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/66838d03-18e0-4574-8ed4-8dcf4543c54b%40googlegroups.com.

Rohit Saini

unread,
Feb 6, 2020, 2:06:30 AM2/6/20
to emscripten-discuss
Hi,

I added an issue https://github.com/emscripten-core/emscripten/issues/10371 
This small example seems to be working with 1.39.6 under fastcomp. But I am not able to check this with my actual project as building my project with latest fastcomp gives some other errors.

regards,
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages