[asterisk-bugs] [Asterisk 0015392]: [patch] 1.6.1.1: Memory handling error in main/pbx.c (pbx_extension_helper)
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Jul 12 21:50:05 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15392
======================================================================
Reported By: yrashk
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 15392
Category: PBX/General
Reproducibility: always
Severity: block
Priority: normal
Status: new
Asterisk Version: 1.6.1.1
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-06-24 19:25 CDT
Last Modified: 2009-07-12 21:50 CDT
======================================================================
Summary: [patch] 1.6.1.1: Memory handling error in main/pbx.c
(pbx_extension_helper)
Description:
Due to Solaris x64 specifics, it won't accept NULLs as string. I think
Asterisk had similar problems before, and apparently it is still doing this
in some places. I found one of them today, since it was blocking asterisk
to start.
Basically, asterisk was segfaulting on every start, on the strlen()
routine.
Attached you can find gdb analysis on a core dumped and a patch that
solves this problem
======================================================================
----------------------------------------------------------------------
(0107626) yrashk (reporter) - 2009-07-12 21:50
https://issues.asterisk.org/view.php?id=15392#c107626
----------------------------------------------------------------------
It looks like some use of strlen() from within printf() causes the problem,
I just ran gdb on the core dump your program generated:
(gdb) bt
https://issues.asterisk.org/view.php?id=0 0xfeea598c in strlen () from
/lib/libc.so.1
https://issues.asterisk.org/view.php?id=1 0xfef00432 in _ndoprnt () from
/lib/libc.so.1
https://issues.asterisk.org/view.php?id=2 0xfef030f0 in printf () from
/lib/libc.so.1
https://issues.asterisk.org/view.php?id=3 0x080508b6 in main ()
Issue History
Date Modified Username Field Change
======================================================================
2009-07-12 21:50 yrashk Note Added: 0107626
======================================================================
More information about the asterisk-bugs
mailing list