Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-427

Logging a large string causes a segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • 1.3.0
    • Core
    • None

    Description

      When a sufficiently large message is logged MaxScale receives a segmentation fault due to a failure to allocate enough memory on the stack. This only happens with extremely large log messages but for example the readwritesplit and readconnroute modules both log queries to the trace log. If one were to do a large enough bulk insert, MaxScale would crash.

      A simple fix to this would be to set an upper limit to the log message length before anything is done. There is a hard limit imposed by the block buffer size of 4k but the allocation of stack memory is done before that.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.