[asterisk-bugs] [JIRA] (ASTERISK-29771) Crash occurs when 2 realtime sippeers mysql connections are configured and we have a schema warning
Sean Bright (JIRA)
noreply at issues.asterisk.org
Sun Nov 28 15:59:34 CST 2021
[ https://issues.asterisk.org/jira/browse/ASTERISK-29771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257171#comment-257171 ]
Sean Bright edited comment on ASTERISK-29771 at 11/28/21 3:59 PM:
------------------------------------------------------------------
[~mario.ban at bluewin.ch], can you try [the attached patch|^0001-config.c-Prevent-UB-in-ast_realtime_require_field.patch] and let us know if it fixes the crash?
Edit: Actually I was able to reproduce the crash locally and have confirmed that the patch fixes it. I've put it up for review on gerrit.
was (Author: seanbright):
[~mario.ban at bluewin.ch], can you try [the attached patch|^0001-config.c-Prevent-UB-in-ast_realtime_require_field.patch] and let us know if it fixes the crash?
> Crash occurs when 2 realtime sippeers mysql connections are configured and we have a schema warning
> ---------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-29771
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-29771
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/Configuration
> Affects Versions: 16.20.0
> Environment: OS: Oracle Linux 8.3
> MariaDB 10.3 (Galera Cluster)
> Reporter: Mario Ban
> Assignee: Mario Ban
> Severity: Major
> Labels: patch
> Attachments: 0001-config.c-Prevent-UB-in-ast_realtime_require_field.patch, core_info.txt, debug_log_29771_crash.txt, extconfig.conf
>
>
> Crash occurs when starting Asterisk and we have 2 realtime sippeers mysql connections configured (with priorities 1 and 2) and there is a sippeers (sipfriends) schema WARNING logged.
> In our case it was column ipaddr varchar(15) was less than 45
> After we altered the table and set ipaddr to varchar(45) - no crash anymore
> Also if there is only 1 realtime connection but still with ipaddr varchar(15) - no crash
> I can provide some debugging output
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list