Picture of iqbal
Registered 5 years 81 days
iqbal Tuesday, 27 September 2022, 10:54 AM
I am having error in PbxAdminApi MonitorConfigInfo message
Hi Can anybody tell why i am having this error.
BR
Iqbal

 /run/manager/manager --service-id=lin'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000004a3183 in PbxAdminApi::Message (this=0xa4f670, msg=..., base=0, mt=0xa9bfc7 "MonitorConfigInfo", src=0xa9bff5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:97 97 sdk/common/service/pbx_admin/pbx_admin.cpp: No such file or directory. [Current thread is 1 (Thread 0x7f7e1ba73100 (LWP 21324))] Thread 2 (Thread 0x7f7e1ba6f700 (LWP 21326)): #0 0x00007f7e1c52077c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004e05f4 in DnsThread::ThreadFunction (this=0xa4db80) at sdk/common/linux/dns/dns.cpp:323 #2 0x00000000004df703 in __dns_thread_main (dnsThreadObj=0xa4db80) at sdk/common/linux/dns/dns.cpp:119 #3 0x00007f7e1c519f3d in start_thread () from /lib64/libpthread.so.0 #4 0x00007f7e1bbb09af in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f7e1ba73100 (LWP 21324)): #0 0x00000000004a3183 in PbxAdminApi::Message (this=0xa4f670, msg=..., base=0, mt=0xa9bfc7 "MonitorConfigInfo", src=0xa9bff5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:97 #1 0x00000000004a3f13 in PbxAdminApiSession::Message (this=0xa4e810, msg=..., base=0, mt=0xa9bfc7 "MonitorConfigInfo", src=0xa9bff5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:253 #2 0x0000000000476508 in AppWebsocket::WebsocketRecvResult (this=0xa4bf60, websocket=0xa4eec8, buffer=0xa9bfc0, len=149, text=true, isFragmented=false) at sdk/common/lib-cpp/appwebsocket.cpp:330 #3 0x00000000004c676b in WebserverWebsocketHandler::HandleMessage (this=0xa4ecf0, message=0xa4ac80, buffer=0xa9bfc0, len=149) at sdk/common/service/webserverplugin/webserver_websocket_handler.cpp:75 #4 0x00000000004b938c in WebserverPlugin::SocketRecvResult (this=0xa412f0, socket=0xa414b0, buf=0xa9bfc0, len=149) at sdk/common/service/webserverplugin/webserver_plugin.cpp:1070 #5 0x000000000049b001 in UDSocket::UserSocketRecvResult (this=0xa414b0, buf=0xa9bfc0, len=149) at sdk/common/linux/uds/udsocket.cpp:740 #6 0x000000000049a38a in UDSocket::ReceiveData (this=0xa414b0) at sdk/common/linux/uds/udsocket.cpp:553 #7 0x000000000049aa79 in UDSocket::IoExec (this=0xa414b0, context=0x2) at sdk/common/linux/uds/udsocket.cpp:671 #8 0x000000000046eace in IoMux::ExecListRun (this=0xa3a6b0) at sdk/common/linux/os-cpp/iomux.cpp:727 #9 0x000000000046e23e in IoMux::Run (this=0xa3a6b0) at sdk/common/linux/os-cpp/iomux.cpp:551 #10 0x0000000000451e13 in main (argc=6, argv=0x7ffcbd500a48) at LineSelect-main.cpp:37 [New LWP 21338] [New LWP 21385] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". /run/manager/manager --service-id=lin'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000004a3183 in PbxAdminApi::Message (this=0x1a4e110, msg=..., base=0, mt=0x1a9d187 "MonitorConfigInfo", src=0x1a9d1b5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:97 97 sdk/common/service/pbx_admin/pbx_admin.cpp: No such file or directory. [Current thread is 1 (Thread 0x7f5540768100 (LWP 21338))] Thread 2 (Thread 0x7f5540764700 (LWP 21385)): #0 0x00007f554121577c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004e05f4 in DnsThread::ThreadFunction (this=0x1a4e1f0) at sdk/common/linux/dns/dns.cpp:323 #2 0x00000000004df703 in __dns_thread_main (dnsThreadObj=0x1a4e1f0) at sdk/common/linux/dns/dns.cpp:119 #3 0x00007f554120ef3d in start_thread () from /lib64/libpthread.so.0 #4 0x00007f55408a59af in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f5540768100 (LWP 21338)): #0 0x00000000004a3183 in PbxAdminApi::Message (this=0x1a4e110, msg=..., base=0, mt=0x1a9d187 "MonitorConfigInfo", src=0x1a9d1b5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:97 #1 0x00000000004a3f13 in PbxAdminApiSession::Message (this=0x1a4ea00, msg=..., base=0, mt=0x1a9d187 "MonitorConfigInfo", src=0x1a9d1b5 "") at sdk/common/service/pbx_admin/pbx_admin.cpp:253 #2 0x0000000000476508 in AppWebsocket::WebsocketRecvResult (this=0x1a4bea0, websocket=0x1a4dda8, buffer=0x1a9d180, len=149, text=true, isFragmented=false) at sdk/common/lib-cpp/appwebsocket.cpp:330 #3 0x00000000004c676b in WebserverWebsocketHandler::HandleMessage (this=0x1a4dbd0, message=0x1a4ae70, buffer=0x1a9d180, len=149) at sdk/common/service/webserverplugin/webserver_websocket_handler.cpp:75 #4 0x00000000004b938c in WebserverPlugin::SocketRecvResult (this=0x1a41480, socket=0x1a3a9d0, buf=0x1a9d180, len=149) at sdk/common/service/webserverplugin/webserver_plugin.cpp:1070 #5 0x000000000049b001 in UDSocket::UserSocketRecvResult (this=0x1a3a9d0, buf=0x1a9d180, len=149) at sdk/common/linux/uds/udsocket.cpp:740 #6 0x000000000049a38a in UDSocket::ReceiveData (this=0x1a3a9d0) at sdk/common/linux/uds/udsocket.cpp:553 #7 0x000000000049aa79 in UDSocket::IoExec (this=0x1a3a9d0, context=0x2) at sdk/common/linux/uds/udsocket.cpp:671 #8 0x000000000046eace in IoMux::ExecListRun (this=0x1a3aae0) at sdk/common/linux/os-cpp/iomux.cpp:727 #9 0x000000000046e23e in IoMux::Run (this=0x1a3aae0) at sdk/common/linux/os-cpp/iomux.cpp:551 #10 0x0000000000451e13 in main (argc=7, 
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Friday, 30 September 2022, 04:00 PM
Re: I am having error in PbxAdminApi MonitorConfigInfo message
Hello Iqbal,

it seems to be the SEGFAULT happens on the incoming MonitorConfigInfo message, which must be handled by the PbxConfigUpdate callback.

Please check your implementation of the PbxConfigUpdate function:

https://sdk.innovaphone.com/13r3/sdk/common/interface/pbx_admin.htm

Best Regards
Andreas Fink
← You can define your color theme preference here