[asterisk-bugs] [JIRA] (ASTERISK-19941) Crash in res_config_ldap when used with realtime extensions
Tzafrir Cohen (JIRA)
noreply at issues.asterisk.org
Thu Oct 10 23:41:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-19941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210876#comment-210876 ]
Tzafrir Cohen commented on ASTERISK-19941:
------------------------------------------
Dominik George reported a similar issue to the Debian bug tracker:
http://bugs.debian.org/725925
A few lines from the trace:
#0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1 0x00007fffa72be5d1 in realtime_multi_ldap (basedn=<optimized out>, table_name=0x7fffc6043980 "sip", ap=0x7fffc6043868)
at res_config_ldap.c:976
#2 0x0000000000488dfd in ast_load_realtime_multientry (family=family at entry=0x7fffa2c6002b "sippeers") at config.c:2677
strlen is part of the ast_strdupa macro called in realtime_multi_ldap(). It is called on a variable retrieved from the variable-args struct. But is aparantly corrupted.
However, the variable-args are retrieved in a previous call a few lines up to realtime_ldap_base_ap(). So I have no idea how that code should work.
> Crash in res_config_ldap when used with realtime extensions
> -----------------------------------------------------------
>
> Key: ASTERISK-19941
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-19941
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_config_ldap
> Affects Versions: 1.8.11.1
> Environment: Asterisk Now 2.2 GUI and LDAP Imap voicemail registration
> Reporter: Slava Bendersky
> Severity: Critical
> Labels: realtime
> Attachments: backtrace.txt
>
>
> Asterisk trying to modify entries in LDAP server DS 389.
> Also when I got sip user registered and I trying place call it just silence, I don't see any attempts to dial in logs.
> [2012-05-28 00:07:18] ERROR[25975]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=,ou=People,dc=,dc= because No such attribute
> -- Registered SIP 'sbendersky' at 10.16.130.45:32899
> [2012-05-28 00:07:20] ERROR[26001]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=sbendersky,ou=People,dc=networklab,dc=ca because Object class violation
> -- Unregistered SIP 'sbendersky'
> [2012-05-28 00:07:26] ERROR[26001]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=sbendersky,ou=People,dc=networklab,dc=ca because No such attribute
> Extension conf
> [users]
> switch => Realtime/@
> [voicemail]
> switch => Realtime/@
> [realtime-ldap]
> include => users
> include => voicemail
> Extconfig conf
> [settings]
> sipusers => ldap,"ou=People,dc=networklab,dc=ca",sip
> sippeers => ldap,"ou=People,dc=networklab,dc=ca",sip
> extensions => ldap,"ou=NetLabExtensions,dc=networklab,dc=ca",extensions
> voicemail => ldap,"ou=NetLabVoicemail,dc=networklab,dc=ca",voicemail
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list