Summary: | ASTERISK-12039: Astersik sometimes is crashing after sip reload | ||
Reporter: | bilbolodz (bilbolodz) | Labels: | |
Date Opened: | 2008-05-17 08:44:52 | Date Closed: | 2011-06-07 14:00:33 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) bt_full.txt | |
Description: | Sometimes after sip reload asterisk is crashing and generating core. My setup is: sip friends and logs are in mysql database. Handler for config and log is unix_odbc. I've changed for trial log handler to cdr_mysql but nothing has changed. I've examined core and got: Core was generated by `/usr/sbin/asterisk -vvvg -c'. Program terminated with signal 11, Segmentation fault. #0 0xb4d2abc1 in __ast_pthread_mutex_lock (filename=0xb4d7d464 "chan_sip.c", lineno=7909, func=0xb4d8296c "expire_register", mutex_name=0xb4d7e66b "&(peer)->_lock", t=0x5c) at /usr/src/asterisk-1.4.19.2/include/asterisk/lock.h:302 302 int canlog = strcmp(filename, "logger.c") & t->track; | ||
Comments: | By: Tilghman Lesher (tilghman) 2008-06-03 11:50:03 We're going to need a longer backtrace than that. Please upload the full output of 'bt full' in a separate text file. By: bilbolodz (bilbolodz) 2008-06-04 04:58:04 Output of bt full uploaded By: Tilghman Lesher (tilghman) 2008-06-04 08:52:41 In this same core, type: (gdb) frame 1 (gdb) list and upload the resulting output By: bilbolodz (bilbolodz) 2008-06-04 09:33:08 (gdb) frame 1 #1 0xb4d4808f in expire_register (data=0x832f3f0) at chan_sip.c:7909 7909 ASTOBJ_UNREF(peer, sip_destroy_peer); /* Remove from memory */ (gdb) list 7904 Only for realtime peers and autocreated peers 7905 */ 7906 if (ast_test_flag(&peer->flags[1], SIP_PAGE2_SELFDESTRUCT) || 7907 ast_test_flag(&peer->flags[1], SIP_PAGE2_RTAUTOCLEAR)) { 7908 peer = ASTOBJ_CONTAINER_UNLINK(&peerl, peer); /* Remove from peer list */ 7909 ASTOBJ_UNREF(peer, sip_destroy_peer); /* Remove from memory */ 7910 } 7911 7912 return 0; 7913 } By: Tilghman Lesher (tilghman) 2008-06-04 10:07:10 Okay, I see that this code was already fixed recently, and I just needed to confirm that you were running something earlier. If you could, please upgrade to 1.4.21-rc1 and see if you're still getting this crash. By: bilbolodz (bilbolodz) 2008-06-12 13:05:02 I've installed 1.4.21-rc1 and it seems to be working. I've to test it throughly. By: Tilghman Lesher (tilghman) 2008-06-12 15:08:50 Already fixed, as confirmed by reporter. |