[asterisk-bugs] [JIRA] Feedback Entered: (ASTERISK-19971) Segfault in realtime_multi_ldap (possible invalid arguments)

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Jul 19 17:38:21 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-19971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-19971:
------------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

> Segfault in realtime_multi_ldap (possible invalid arguments)
> ------------------------------------------------------------
>
>                 Key: ASTERISK-19971
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19971
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 1.8.11.1
>         Environment: Ubuntu 10.04 64-bit
>            Reporter: Lars Peter Thomsen
>            Assignee: Rusty Newton
>         Attachments: debug_asterisk_gdb2.txt, debug_asterisk_gdb.txt, debug_asterisk_valgrind.txt
>
>
> Realtime LDAP module kills asterisk with a segfault when querying for extensions. It appears to happen in the realtime_multi_ldap function in res_config_ldap.c, where the newparam variable somehow is invalid (null or garbage). The warning in checking the variable is fired in several runs prior to the fault.
> Calls go through every time before the fault, with the aforementioned warning being fired each time, and on the 8th to 10th attempt, the segfault occurs.
> Disabling realtime extensions in extconfig.conf, so only users, peers and voicemail data is fetched from LDAP, while extensions are fetched from extensions.conf, causes the problem to not occur.
> Entry in extconfig.conf:
> extensions => ldap,"ou=extensions,dc=communica,dc=cabo,dc=dk",extensions
> Entry in res_ldap.conf:
>  ; Extensions Table
>  [extensions]
>  context = AstContext
>  exten = AstExtension
>  priority = AstPriority
>  app = AstApplication
>  appdata = AstApplicationData
>  additionalFilter=(objectClass=AsteriskExtension)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list