Summary: | ASTERISK-19320: SIGSEGV when starting within mgcp module | ||
Reporter: | Marcin (spock) | Labels: | |
Date Opened: | 2012-02-09 08:29:31.000-0600 | Date Closed: | 2012-03-20 11:59:52 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_mgcp |
Versions: | Frequency of Occurrence | Constant | |
Related Issues: | |||
Environment: | FreeBSD server 8.2-RELEASE | Attachments: | |
Description: | When I restart asterisk with group of MGCP clients connected after restart I got SIGSEGV. Below tail of backtrace: Program received signal SIGSEGV, Segmentation fault. (gdb) r -cvvvvvvv 0x29bf6cc6 in find_subchannel_and_lock () from /usr/local/lib/asterisk/modules/chan_mgcp.so (gdb) bt #0 0x29bf6cc6 in find_subchannel_and_lock () from /usr/local/lib/asterisk/modules/chan_mgcp.so #1 0x29bf7fe1 in mgcpsock_read () from /usr/local/lib/asterisk/modules/chan_mgcp.so #2 0x080f57c1 in ast_io_wait () #3 0x29bf5b7e in do_monitor () from /usr/local/lib/asterisk/modules/chan_mgcp.so #4 0x0815fdbb in dummy_start () #5 0x291ef73f in pthread_getprio () from /lib/libthr.so.3 #6 0x00000000 in ?? () (gdb) | ||
Comments: | By: Marcin (spock) 2012-02-09 08:30:20.959-0600 When I remove all mgcp clients from config line - then it is ok - app is starting. By: Marcin (spock) 2012-02-09 08:42:35.399-0600 Dump from truss/strace: sendto(12,"AUEP 11 aaln/1@mta-cb15.mta"...,62,0x0,{ AF_INET 172.17.0.6:2427 },0x10) = 62 (0x3e) gettimeofday({1328797668.218559 },0x0) = 0 (0x0) gettimeofday({1328797668.219285 },0x0) = 0 (0x0) gettimeofday({1328797668.219923 },0x0) = 0 (0x0) gettimeofday({1328797668.220554 },0x0) = 0 (0x0) sendto(12,"AUEP 12 aaln/2@mta-f970.mta"...,62,0x0,{ AF_INET 172.17.0.5:2427 },0x10) = 62 (0x3e) gettimeofday({1328797668.222558 },0x0) = 0 (0x0) gettimeofday({1328797668.223266 },0x0) = 0 (0x0) gettimeofday({1328797668.223897 },0x0) = 0 (0x0) sendto(12,"AUEP 13 aaln/1@mta-f970.mta"...,62,0x0,{ AF_INET 172.17.0.5:2427 },0x10) = 62 (0x3e) gettimeofday({1328797668.225837 },0x0) = 0 (0x0) gettimeofday({1328797668.226494 },0x0) = 0 (0x0) gettimeofday({1328797668.227092 },0x0) = 0 (0x0) gettimeofday({1328797668.227701 },0x0) = 0 (0x0) sendto(12,"AUEP 14 aaln/2@mta-e53f.mta"...,62,0x0,{ AF_INET 172.17.0.4:2427 },0x10) = 62 (0x3e) gettimeofday({1328797668.229460 },0x0) = 0 (0x0) gettimeofday({1328797668.230152 },0x0) = 0 (0x0) gettimeofday({1328797668.230804 },0x0) = 0 (0x0) sendto(12,"AUEP 15 aaln/1@mta-e53f.mta"...,62,0x0,{ AF_INET 172.17.0.4:2427 },0x10) = 62 (0x3e) gettimeofday({1328797668.232530 },0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGABRT|SIGEMT|SIGKILL|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,SIGHUP|SIGINT|SIGPIPE|SIGTERM|SIGWINCH) = 0 (0x0) sigprocmask(SIG_SETMASK,SIGHUP|SIGINT|SIGPIPE|SIGTERM|SIGWINCH,0x0) = 0 (0x0) mmap(0xbf6e6000,249856,PROT_READ|PROT_WRITE,MAP_STACK,-1,0x0) = -1083285504 (0xbf6e6000) mprotect(0xbf6e6000,4096,PROT_NONE) = 0 (0x0) thr_new(0xbfbfd310,0x34,0x0,0x0,0x0,0x0) = 0 (0x0) _umtx_op(0x29accb40,0x12,0x0,0x0,0x0,0x4f33d7e4) = 0 (0x0) clock_gettime(13,{1328797668.000000000 }) = 0 (0x0) clock_gettime(13,{1328797668.000000000 }) = 0 (0x0) gettimeofday({1328797668.240038 },0x0) = 0 (0x0) poll({12/POLLIN},1,943) = 1 (0x1) recvfrom(12,"200 7 OK\nZN: 0\n",1499,0x0,{ AF_INET 172.17.0.8:2427 },0xbf722e58) = 15 (0xf) mmap(0x0,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 715894784 (0x2aabb000) mmap(0x2abbb000,282624,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 716943360 (0x2abbb000) munmap(0x2aabb000,282624) = 0 (0x0) gettimeofday({1328797668.245388 },0x0) = 0 (0x0) clock_gettime(13,{1328797668.000000000 }) = 0 (0x0) gettimeofday({1328797668.250080 },0x0) = 0 (0x0) poll({12/POLLIN},1,933) = 1 (0x1) recvfrom(12,"200 12 OK\nA: a:G729, p:10-30, b"...,1499,0x0,{ AF_INET 172.17.0.5:2427 },0xbf722e58) = 539 (0x21b) SIGNAL 11 (SIGSEGV) process exit, rval = 0 [root@server /var/crash]# [root@server /var/crash]# By: Matt Jordan (mjordan) 2012-02-09 13:00:04.241-0600 Thank you for your bug report. In order to move your issue forward, we require a backtrace[1] from the core file produced after the crash. Also, be sure you have DONT_OPTIMIZE enabled in menuselect within the Compiler Flags section, then: make install After enabling, reproduce the crash, and then execute the backtrace[1] instructions. When complete, attach that file to this issue report. [1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace By: Matt Jordan (mjordan) 2012-03-20 11:59:46.608-0500 Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested. Further information can be found at http://www.asterisk.org/developers/bug-guidelines |