Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[Asterisk-Dev] cvs coredump
AsteriskGuru Archives Forum Index
->
Asterisk-Dev
View previous topic
::
View next topic
Author
Message
asterisk-dev at lists.dig
Guest
Posted: Fri Apr 04, 2003 8:00 pm
Post subject: [Asterisk-Dev] cvs coredump
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@puck.nether.net
clue++; |
http://puck.nether.net/~jared/
My statements are only mine.
Back to top
asterisk-dev at lists.dig
Guest
Posted: Sat Apr 05, 2003 5:35 am
Post subject: [Asterisk-Dev] cvs coredump
This is a multi-part message in MIME format.
------=_NextPart_000_0053_01C2FB46.004F8890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Is a missing param check for "add extension".
Andre
----- Original Message -----
From: "Jared Mauch" <jared@puck.nether.net>
To: <asterisk-dev@lists.digium.com>
Sent: Friday, April 04, 2003 10:00 PM
Subject: [Asterisk-Dev] cvs coredump
Quote:
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)
Quote:
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@puck.nether.net
clue++; |
http://puck.nether.net/~jared/
My statements are only
mine.
Quote:
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
------=_NextPart_000_0053_01C2FB46.004F8890
Content-Type: application/octet-stream;
name="asterisk-addexten.fix"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="asterisk-addexten.fix"
Index: pbx_config.c=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v=0A=
retrieving revision 1.2=0A=
diff -c -r1.2 pbx_config.c=0A=
*** pbx_config.c 30 Mar 2003 22:55:42 -0000 1.2=0A=
--- pbx_config.c 5 Apr 2003 05:41:58 -0000=0A=
***************=0A=
*** 1084,1096 ****=0A=
cidmatch =3D NULL;=0A=
}=0A=
prior =3D strsep(&whole_exten,",");=0A=
! if (!strcmp(prior, "hint")) {=0A=
! iprior =3D PRIORITY_HINT;=0A=
! } else {=0A=
! iprior =3D atoi(prior);=0A=
}=0A=
app =3D strsep(&whole_exten,",");=0A=
! if ((start =3D strchr(app, '(')) && (end =3D strrchr(app, ')'))) {=0A=
*start =3D *end =3D '\0';=0A=
app_data =3D start + 1;=0A=
for (start =3D app_data; *start; start++)=0A=
--- 1084,1098 ----=0A=
cidmatch =3D NULL;=0A=
}=0A=
prior =3D strsep(&whole_exten,",");=0A=
! if (prior) {=0A=
! if (!strcmp(prior, "hint")) {=0A=
! iprior =3D PRIORITY_HINT;=0A=
! } else {=0A=
! iprior =3D atoi(prior);=0A=
! }=0A=
}=0A=
app =3D strsep(&whole_exten,",");=0A=
! if (app && (start =3D strchr(app, '(')) && (end =3D strrchr(app, =
')'))) {=0A=
*start =3D *end =3D '\0';=0A=
app_data =3D start + 1;=0A=
for (start =3D app_data; *start; start++)=0A=
------=_NextPart_000_0053_01C2FB46.004F8890--
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-Dev
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group