Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-626

It should be easier to debug test crashes happening in Coin

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None

      Description

      Right now we have basic support for core dumps implemented in QTQAINFRA-990. However, according to Toni Saario it just collects cores as another kind of artifacts, and it's impossible to do extract any information from them without access to original VM.

      I can see two ways how to improve situation (at least for Linux configurations):

      • Preload libSegFault.so (part of glibc) or something similar
        Should be very easy to implement on Linux
        May be used not only when running tests but for builds as well, however I'm not 100% sure it has no performance penalty
        no idea if off-the shelf macOS equivalent exists
      • Process collected cores with gdb at the end of Coin run
        Main complexity here is to match core files with executables which crashed. On Linux it's possible to include full path of executable file into core_pattern (%E, available since 3.0 kernel). AFAIK on macOS it's always just core.$pid

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            hehalmet Heikki Halmet
            Reporter:
            annulen Konstantin Tokarev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes