[asterisk-bugs] [Asterisk 0012572]: [patch] Asterisk crashes when retrieving password from LDAP

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 19 12:17:15 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12572 
====================================================================== 
Reported By:                flyn
Assigned To:                svnbot
====================================================================== 
Project:                    Asterisk
Issue ID:                   12572
Category:                   Resources/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0-beta8 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             05-02-2008 09:25 CDT
Last Modified:              06-19-2008 12:17 CDT
====================================================================== 
Summary:                    [patch] Asterisk crashes when retrieving password
from LDAP
Description: 
I have configured Asterisk to use res_ldap for its SIP and extension
configuration. Asterisk is crashing when it tries to retrieve a users
password from LDAP.

1. Start asterisk in gdb.
2. Execute "asterisk -r -vvv"
3. *CLI> sip show user phone-test load

Asterisk crashes and gdb prints the following backtrace:

(gdb) ba
http://bugs.digium.com/view.php?id=0  0x0fe85030 in free () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=1  0x00d4a218 in ber_memfree_x () from
/usr/lib/liblber-2.4.so.2
http://bugs.digium.com/view.php?id=2  0x00d4aab4 in ber_bvfree_x () from
/usr/lib/liblber-2.4.so.2
http://bugs.digium.com/view.php?id=3  0x00d4aba0 in ber_bvecfree_x () from
/usr/lib/liblber-2.4.so.2
http://bugs.digium.com/view.php?id=4  0x00d4ac08 in ber_bvecfree () from
/usr/lib/liblber-2.4.so.2
http://bugs.digium.com/view.php?id=5  0x0f3401f4 in ldap_value_free_len () from
/usr/lib/libldap-2.4.so.2
http://bugs.digium.com/view.php?id=6  0x0e8b08a0 in realtime_ldap_result_to_vars
(table_config=0x10182db8,
ldap_result=0x10268f68, 
    entries_count_ptr=0x0) at res_config_ldap.c:329
http://bugs.digium.com/view.php?id=7  0x0e8b2bac in realtime_ldap_base_ap
(entries_count_ptr=0x0,
basedn=<value optimized out>, 
    table_name=0x30a3927c "sip", ap=<value optimized out>) at
res_config_ldap.c:814
http://bugs.digium.com/view.php?id=8  0x0e8b3570 in realtime_ldap (basedn=<value
optimized out>,
table_name=<value optimized out>, 
    ap=<value optimized out>) at res_config_ldap.c:903
http://bugs.digium.com/view.php?id=9  0x1004d860 in ast_load_realtime_helper
(family=0xd5cea00 "sipusers",
ap=0x30a39514)
    at config.c:2036
http://bugs.digium.com/view.php?id=10 0x1004dfb0 in ast_load_realtime
(family=<value optimized out>) at
config.c:2059
http://bugs.digium.com/view.php?id=11 0x0d59ee40 in find_user (name=0x1026902e
"phone-test", realtime=1) at
chan_sip.c:3786
http://bugs.digium.com/view.php?id=12 0x0d59efd8 in sip_show_user (e=<value
optimized out>, cmd=<value
optimized out>, a=0x30a39800)
    at chan_sip.c:12744
http://bugs.digium.com/view.php?id=13 0x1004859c in ast_cli_command (fd=21,
s=0x30a3985c "sip show user
phone-test load")
    at cli.c:1888
http://bugs.digium.com/view.php?id=14 0x10048840 in ast_cli_command_multiple
(fd=21, size=30, 
    s=0x30a39aac "sip show user phone-test load") at cli.c:1921
http://bugs.digium.com/view.php?id=15 0x10026b30 in netconsole
(vconsole=0x10153650) at asterisk.c:1007
http://bugs.digium.com/view.php?id=16 0x100e1e88 in dummy_start (data=<value
optimized out>) at utils.c:870
http://bugs.digium.com/view.php?id=17 0x0fc76e3c in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=18 0x0fefb670 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-19-08 12:17  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 123958

_U  branches/1.6.0/
U   branches/1.6.0/res/res_config_ldap.c

------------------------------------------------------------------------
r123958 | tilghman | 2008-06-19 12:17:10 -0500 (Thu, 19 Jun 2008) | 14
lines

Merged revisions 123952 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r123952 | tilghman | 2008-06-19 12:22:27 -0500 (Thu, 19 Jun 2008) | 6
lines

Don't change pointers that need to be later passed back for deallocation.
(closes issue http://bugs.digium.com/view.php?id=12572)
 Reported by: flyn
 Patches: 
       20080613__bug12572.diff.txt uploaded by Corydon76 (license 14)

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=123958 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-19-08 12:17  svnbot         Checkin                                      
06-19-08 12:17  svnbot         Note Added: 0088947                          
======================================================================




More information about the asterisk-bugs mailing list