Summary: | ASTERISK-11088: 93668 introduces segfault into chan_iax | ||
Reporter: | Dmitry Andrianov (dimas) | Labels: | |
Date Opened: | 2007-12-20 04:32:35.000-0600 | Date Closed: | 2007-12-20 14:21:51.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_iax2 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | ...which is not fixed by the next commit too.. I'm making _outbound_ call to one of my peers which does not have "host=dynamic" but rather has IP address. Then: 1. realtime_peer function receives NULL sin 2. var = ast_load_realtime("iaxpeers", "name", peername, "host", "dynamic", NULL); fails because my peer is not dynamic 3. Evntually /* Last ditch effort */ is executed and where the loop does IP address comparison (memcmp(&sin2, &sin->sin_a ddr, sizeof(sin2)) != 0) everything crashes obviously ****** ADDITIONAL INFORMATION ****** #0 0x00da15da in realtime_peer (peername=0xb7604aba "spb-voip1", sin=0x0) at chan_iax2.c:2712 #1 0x00d9c009 in find_peer (name=0xb7604aba "spb-voip1", realtime=1) at chan_iax2.c:1123 #2 0x00da20b7 in create_addr (peername=0xb7604aba "spb-voip1", sin=0xb7604e0c, cai=0xb7604b30) at chan_iax2.c:2911 #3 0x00dbfb30 in iax2_request (type=0xb7604f20 "IAX2", format=4, data=0xb7605a28, cause=0xb7605b28) at chan_iax2.c:8725 #4 0x0808418b in ast_request (type=0xb7604f20 "IAX2", format=4, data=0xb7605a28, cause=0xb7605b28) at channel.c:3271 ASTERISK-1 0x006acb89 in dial_exec_full (chan=0x9625d40, data=0xb7607e58, peerflags=0xb7605d24, continue_exec=0x0) at app_dial.c:1188 ASTERISK-2 0x006afa5e in dial_exec (chan=0x9625d40, data=0xb7607e58) at app_dial.c:1755 ASTERISK-3 0x080ba514 in pbx_exec (c=0x9625d40, app=0x961a858, data=0xb7607e58) at pbx.c:532 ASTERISK-4 0x080bd98d in pbx_extension_helper (c=0x9625d40, con=0x0, context=0x9625ec0 "macro-dispatch-voicemail", exten=0x9625f10 "s", priority=46, label=0x0, callerid=0x9627410 "3330001", action=E_SPAWN) at pbx.c:1847 ASTERISK-5 0x080bea74 in ast_spawn_extension (c=0x9625d40, context=0x9625ec0 "macro-dispatch-voicemail", exten=0x9625f10 "s", priority=46, callerid=0x9627410 "3330001") at pbx.c:2304 ASTERISK-6 0x00f81f2d in _macro_exec (chan=0x9625d40, data=0xb760cf48, exclusive=0) at app_macro.c:308 ASTERISK-7 0x00f82c4c in macro_exec (chan=0x9625d40, data=0xb760cf48) at app_macro.c:486 ASTERISK-8 0x080ba514 in pbx_exec (c=0x9625d40, app=0x9618808, data=0xb760cf48) at pbx.c:532 ASTERISK-9 0x080bd98d in pbx_extension_helper (c=0x9625d40, con=0x0, context=0x9625ec0 "macro-dispatch-voicemail", exten=0x9625f10 "s", priority=9, label=0x0, callerid=0x9627410 "3330001", action=E_SPAWN) at pbx.c:1847 ASTERISK-10 0x080bea74 in ast_spawn_extension (c=0x9625d40, context=0x9625ec0 "macro-dispatch-voicemail", exten=0x9625f10 "s", priority=9, callerid=0x9627410 "3330001") at pbx.c:2304 ASTERISK-11 0x080bef60 in __ast_pbx_run (c=0x9625d40) at pbx.c:2406 ASTERISK-12 0x080bfcfc in pbx_thread (data=0x9625d40) at pbx.c:2621 ASTERISK-13 0x080fba5c in dummy_start (data=0x96274b0) at utils.c:852 ASTERISK-14 0x417ac2db in start_thread () from /lib/libpthread.so.0 ASTERISK-15 0x4170612e in clone () from /lib/libc.so.6 | ||
Comments: | By: Digium Subversion (svnbot) 2007-12-20 14:18:27.000-0600 Repository: asterisk Revision: 94255 U branches/1.2/channels/chan_iax2.c ------------------------------------------------------------------------ r94255 | russell | 2007-12-20 14:18:26 -0600 (Thu, 20 Dec 2007) | 5 lines Fix another potential seg fault ... (closes issue ASTERISK-11088) Reported by: dimas ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=94255 By: Digium Subversion (svnbot) 2007-12-20 14:19:08.000-0600 Repository: asterisk Revision: 94256 _U branches/1.4/ U branches/1.4/channels/chan_iax2.c ------------------------------------------------------------------------ r94256 | russell | 2007-12-20 14:19:07 -0600 (Thu, 20 Dec 2007) | 13 lines Merged revisions 94255 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines Fix another potential seg fault ... (closes issue ASTERISK-11088) Reported by: dimas ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=94256 By: Digium Subversion (svnbot) 2007-12-20 14:21:51.000-0600 Repository: asterisk Revision: 94257 _U trunk/ U trunk/channels/chan_iax2.c ------------------------------------------------------------------------ r94257 | russell | 2007-12-20 14:21:50 -0600 (Thu, 20 Dec 2007) | 21 lines Merged revisions 94256 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r94256 | russell | 2007-12-20 14:22:22 -0600 (Thu, 20 Dec 2007) | 13 lines Merged revisions 94255 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines Fix another potential seg fault ... (closes issue ASTERISK-11088) Reported by: dimas ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=94257 |