drachtio/drachtio-freeswitch-modules

Unable to load mod_dialogflow and mod_google_trnascribe together

Opened this issue · 5 comments

Hi,

I am unable to load both the modules together. FreeSWITCH crashes even if I unload one and load the other one, i.e. if one module gets loaded at the beginning, the other can't loaded even after unloading the first one. Freeswitch crashes with error "Socket interrupted, bye!".

Does it work for any one? I am curious to know if I am doing something wrong.

I see the following error in during make. But it works fine. So I am not sure if this is the cause of the issue.

*** Warning: Linking the shared library mod_dialogflow.la against the
*** static library /var/local/libgoogleapi.a is not portable!
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o .libs/mod_dialogflow_la-mod_dialogflow.o .libs/mod_dialogflow_la-google_glue.o .libs/mod_dialogflow_la-parser.o -Wl,-rpath -Wl,/home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/.libs -Wl,-rpath -Wl,/home/five9inf/freeswitch/lib -L/home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/libs/apr-util/xml/expat/lib/.libs -L/home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/libs/apr/.libs /var/local/libgoogleapi.a -L/usr/local/lib -lgrpc++ -lgrpc -lgrpc++_reflection /usr/local/lib/libprotobuf.a /home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/.libs/libfreeswitch.so -L/home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/libs/apr-util/xml/expat/lib /home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/libs/apr-util/xml/expat/lib/.libs/libexpat.a /home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/libs/apr/.libs/libapr-1.a -lpq -luuid -lpthread -lsqlite3 -lcurl -lpcre -lspeex -lspeexdsp -ledit -ltinfo -ldl -lcrypt -lrt -lz -lssl -lcrypto -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o -Wl,-R/usr/local/lib -Wl,--no-as-needed -Wl,--as-needed -pthread -Wl,-soname -Wl,mod_dialogflow.so -o .libs/mod_dialogflow.so
libtool: link: ( cd ".libs" && rm -f "mod_dialogflow.la" && ln -s "../mod_dialogflow.la" "mod_dialogflow.la" )
make[4]: Leaving directory `/home/asabat/work/freeswitch-trill/tools/rpm/freeswitch/build/BUILD/five9-nvoip-freeswitch-1/src/mod/applications/mod_dialogflow'

trill_fs_both_modules_error_crash.log

I'm unable to recreate this. Are you testing using the latest code?

No, the code I am using a bit old.
I am going to update to the latest for both the modules and let you know.

Thanks!

yeah there have been massive changes since then.

It still crashes with latest code. This time I got call stack info from the core file.
fs_crash_110219_test1.log

Hmm. I can't recreate it. Two things come to mind as far as troubleshooting.

It would be good if you built freeswitch with debug symbols, e.g.

./configure --with-lws=yes --with-grpc=yes CPPFLAGS='-g -O0' CXXFLAGS='-g -O0'

Secondly, running with GRPC tracing on by setting these env vars:

GRPC_TRACE=all GRPC_VERBOSITY=DEBUG

That generates an enormous amount of logging, but it would be interesting to see what it spits out when the load fails