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

Stacktraces fail to be generated when MaxScale is run from the terminal

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 23.08.5, 24.02.1
    • 23.08.6, 24.02.2
    • Core
    • None

    Description

      If MaxScale is run from the terminal and the executable is found with a PATH lookup, the name of the executable in dladdr() will be relative instead of absolute. This causes a problem where the stacktraces are not generated and end up printing the previous stack frame's address until another valid frame is found.

      The problem can be solved by reading the actual executable file name from /proc/self/exe and passing that to addr2line.

      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.