Summary: | ASTERISK-16188: dialplan remove a@b tab completion seg fault | ||
Reporter: | Mark Murawski (kobaz) | Labels: | |
Date Opened: | 2010-06-01 15:53:03 | Date Closed: | 2010-06-22 17:14:15 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | PBX/pbx_config |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | dialplan show [ Context 'services' created by 'pbx_ael' ] '*60' => 1. Answer() dialplan remove extension *60@services <tab> <tab> <tab> Seg Fault ****** ADDITIONAL INFORMATION ****** #0 strlen () at ../sysdeps/i386/i486/strlen.S:69 #1 0xb73e4536 in complete_dialplan_remove_extension (a=0xb25fea70) at pbx_config.c:470 #2 0xb73e3cc4 in handle_cli_dialplan_remove_extension (e=0xb73ecaa8, cmd=-3, a=0xb25fea70) at pbx_config.c:321 #3 0x080bb6ca in __ast_cli_generator (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "", state=0, lock=1) at cli.c:2303 #4 0x080bb768 in ast_cli_generator (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "", state=0) at cli.c:2317 ASTERISK-1 0x080bb041 in ast_cli_generatornummatches (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "") at cli.c:2159 ASTERISK-2 0x080b7d32 in handle_commandnummatches (e=0x81f9368, cmd=-4, a=0xb25fecdc) at cli.c:1155 ASTERISK-3 0x080bb9df in ast_cli_command_full (uid=0, gid=0, fd=14, s=0xb25fee7c "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"") at cli.c:2361 ASTERISK-4 0x080bbb15 in ast_cli_command_multiple_full (uid=0, gid=0, fd=14, size=58, s=0xb25ff0d8 "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"") at cli.c:2384 ASTERISK-5 0x0807d43c in netconsole (vconsole=0x822de40) at asterisk.c:1231 ASTERISK-6 0x08187e8b in dummy_start (data=0xa1652d0) at utils.c:968 ASTERISK-7 0xb7c71585 in start_thread (arg=0xb25ffb70) at pthread_create.c:300 ASTERISK-8 0xb7e8029e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 (gdb) bt full #0 strlen () at ../sysdeps/i386/i486/strlen.S:69 No locals. #1 0xb73e4536 in complete_dialplan_remove_extension (a=0xb25fea70) at pbx_config.c:470 p = 0xa26fabd "" lc = 3 lcid = 135818901 exten = 0xa26fab8 "s" context = 0xa26faba "foo" cid = 0x0 c = 0xb7c7439b le = 1 len = -1211677797 s = 0xb25feaae "s@foo " i = 0 ret = 0x0 which = 0 __PRETTY_FUNCTION__ = "complete_dialplan_remove_extension" #2 0xb73e3cc4 in handle_cli_dialplan_remove_extension (e=0xb73ecaa8, cmd=-3, a=0xb25fea70) at pbx_config.c:321 removing_priority = 0 exten = 0x0 context = 0x1 <Address 0x1 out of bounds> cid = 0xffffffff <Address 0xffffffff out of bounds> ret = 0x2 <Address 0x2 out of bounds> #3 0x080bb6ca in __ast_cli_generator (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "", state=0, lock=1) at cli.c:2303 a = {fd = 0, argc = 4, argv = 0xb25feae8, line = 0xb25fea94 "dialplan remove extension s@foo ", word = 0xa25809d "", pos = 4, n = 0} src = 3 dst = 3 n = 0 argv = {0xa25d288 "dialplan", 0xa25d291 "remove", 0xa25d298 "extension", 0xa25d2a2 "s@foo", 0x0 <repeats 37 times>, 0xb25fec2c "\001", 0x0, 0xb25fec38 "hì_²A°\v\b|\200%\n\235\200%\n", 0xb25fec30 "|\214\037\b:", 0xb25fec34 ":", 0xb25fec3c "A°\v\b|\200%\n\235\200%\n", 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb25fec40 "|\200%\n\235\200%\n", 0xb7c72e47 "\201Ãá", 0x0, 0x0, 0xb7ef3ff4 "|-\024", 0xb7c75f45 "\201ï°", 0x3a <Address 0x3a out of bounds>, 0xb25ff0d8 "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\""} e = 0xb73ecaa8 x = 4 argindex = 4 matchlen = 32 matchnum = 0 ret = 0x0 matchstr = "dialplan remove extension s@foo ", '\000' <repeats 47 times> tws = 1 duplicate = 0xa25d288 "dialplan" __PRETTY_FUNCTION__ = "__ast_cli_generator" #4 0x080bb768 in ast_cli_generator (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "", state=0) at cli.c:2317 No locals. ASTERISK-1 0x080bb041 in ast_cli_generatornummatches (text=0xa25807c "dialplan remove extension s@foo ", word=0xa25809d "") at cli.c:2159 matches = 0 i = 1 buf = 0x0 oldbuf = 0x0 ASTERISK-2 0x080b7d32 in handle_commandnummatches (e=0x81f9368, cmd=-4, a=0xb25fecdc) at cli.c:1155 matches = 0 ASTERISK-3 0x080bb9df in ast_cli_command_full (uid=0, gid=0, fd=14, s=0xb25fee7c "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"") at cli.c:2361 args = {0x81f9368 "\220ç\022\n\231ç\022\n", 0xa258068 "_COMMAND", 0xa258071 "NUMMATCHES", 0xa25807c "dialplan remove extension s@foo ", 0xa25809d "", 0x0 <repeats 57 times>, 0xb7c0c740 "¶ß\005\b\020ii\r", 0xd696910 <Address 0xd696910 out of bounds>, 0xb25fee78 "ôî_²_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\""} e = 0x81f9368 x = 4 ---Type <return> to continue, or q <return> to quit--- duplicate = 0xa258068 "_COMMAND" tmp = "_COMMAND NUMMATCHES dialplan remove extension s@foo \000f\000\000\000\000\000\000\000\000\000" retval = 0x0 a = {fd = 14, argc = 4, argv = 0xb25fed44, line = 0x0, word = 0x0, pos = 0, n = 0} __PRETTY_FUNCTION__ = "ast_cli_command_full" ASTERISK-4 0x080bbb15 in ast_cli_command_multiple_full (uid=0, gid=0, fd=14, size=58, s=0xb25ff0d8 "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"") at cli.c:2384 cmd = "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"\000\"\000À«½·\224\060½·\000\000\000\000\000\000\000\000\005\000\000\000Á\003\000\000@ÇÀ·\000\200ï·ða\005\b`ÞÛ·ìí\004\b\001\000\000\000ô\017\f¸èDmw(\030\f¸àï_²¯Ò\n¸Ðï_²ìí\004\bÄï_²Ì\027\f¸\000\000\000\000@ÇÀ·\005\000\000\000\000\000\000\000\001\000\000\000(\030\f¸\020ð_²¯Ò\n¸\000ð_²\\ç\004\bôï_²Ðï_²Äï_²@ÇÀ·"... x = 57 y = 58 count = 0 ASTERISK-5 0x0807d43c in netconsole (vconsole=0x822de40) at asterisk.c:1231 con = 0x822de40 hostname = "demo3", '\000' <repeats 58 times> tmp = "_COMMAND NUMMATCHES \"dialplan remove extension s@foo \" \"\"\000\000\000\000ield: Couldn't find application Dictate in XML documentation\nn\ntion\n\nx_config\nfig\nfig\nd behavior. Please use '_X.' instead at line 0\n\n", '\000' <repeats 20 times>... res = 58 fds = {{fd = 14, events = 1, revents = 1}, {fd = 15, events = 1, revents = 0}} __PRETTY_FUNCTION__ = "netconsole" ASTERISK-6 0x08187e8b in dummy_start (data=0xa1652d0) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1211625484, 0, 4001536, -1302334536, 1455981005, -640347463}, __mask_was_saved = 0}}, __pad = {0xb25ff460, 0x0, 0x0, 0x0}} __cancel_routine = 0x807b20e <ast_unregister_thread> __cancel_arg = 0xb25ffb70 not_first_call = 0 ret = 0x0 a = {start_routine = 0x807d1f4 <netconsole>, data = 0x822de40, name = 0xa205398 "netconsole", ' ' <repeats 11 times>, "started at [ 1309] asterisk.c listener()"} lock_info = 0xa205dc0 mutex_attr = {__size = "\001\000\000", __align = 1} ASTERISK-7 0xb7c71585 in start_thread (arg=0xb25ffb70) at pthread_create.c:300 __res = <value optimized out> __ignore1 = <value optimized out> __ignore2 = <value optimized out> pd = 0xb25ffb70 now = <value optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1211625484, 0, 4001536, -1302334312, 1456054733, 1728359366}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <value optimized out> ASTERISK-8 0xb7e8029e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 No locals. | ||
Comments: | By: Digium Subversion (svnbot) 2010-06-22 17:11:50 Repository: asterisk Revision: 272014 U trunk/pbx/pbx_config.c ------------------------------------------------------------------------ r272014 | dvossel | 2010-06-22 17:11:49 -0500 (Tue, 22 Jun 2010) | 5 lines fixes issue with 'dialplan remove extension blah' segfaulting with tab completion (closes issue ASTERISK-16188) Reported by: kobaz ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=272014 By: Digium Subversion (svnbot) 2010-06-22 17:14:15 Repository: asterisk Revision: 272015 _U branches/1.6.2/ U branches/1.6.2/pbx/pbx_config.c ------------------------------------------------------------------------ r272015 | dvossel | 2010-06-22 17:14:15 -0500 (Tue, 22 Jun 2010) | 12 lines Merged revisions 272014 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r272014 | dvossel | 2010-06-22 17:11:50 -0500 (Tue, 22 Jun 2010) | 5 lines fixes issue with 'dialplan remove extension blah' segfaulting with tab completion (closes issue ASTERISK-16188) Reported by: kobaz ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=272015 |