[Asterisk-Dev] cvs coredump

Jared Mauch jared at puck.nether.net
Fri Apr 4 13:00:18 MST 2003


latest cvs, grabbed a few mins ago:

	while trying to add a user via:

"add extension 1005 into default"

	i got this error

Segmentation fault (core dumped)

#0  0x41d548c2 in handle_context_add_extension (fd=1, argc=5, argv=0xbffff530)
    at pbx_config.c:1087
1087            if (!strcmp(prior, "hint")) {
(gdb) print prior
No symbol "prior" in current context.
(gdb) print *prior
No symbol "prior" in current context.
(gdb) print argv
$1 = (char **) 0xbffff530
(gdb) print *argv
$2 = 0x810ca70 "add"
(gdb) list
1082                    strsep(&cidmatch,"/");
1083            } else {
1084                    cidmatch = NULL;
1085            }
1086            prior       = strsep(&whole_exten,",");
1087            if (!strcmp(prior, "hint")) {
1088                iprior = PRIORITY_HINT;
1089            } else {
1090                iprior = atoi(prior);
1091            }
(gdb) print whole_exten
$3 = 0x0

	seems to be a null check missing there :)

	- jared


-- 
Jared Mauch  | pgp key available via finger from jared at puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.



More information about the asterisk-dev mailing list