Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64321

Multi-line build log indication stops matching after some number of characters

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using a multi-line build log indication to match a long (~12kb) region of the build log, the matcher fails after ~1700 bytes - attempting to match the next character fails.

      For example (full logs attached below), with a multi-line log sequence consisting of:

      [2020-11-26T11:20:44.236Z] ==6711==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d00003fce0 at pc 0x00000207bd2a bp 0x7ffe0d7e34d0 sp 0x7ffe0d7e34c8
      ... more lines ...
      ... long line ending in ...  shared_ptr_base.h:470:9
      

      The following regex successfully matches:

      ERROR: AddressSanitizer:.*shared_ptr_base.h:
      

      But attempting to match one more character fails:

      ERROR: AddressSanitizer:.*shared_ptr_base.h:4
      

      Curiously, if I attempt to match the end of a line (even though there isn't an end of line after the ":") the regex matches:

      ERROR: AddressSanitizer:.*shared_ptr_base.h:$
      

      (Possibly relevant - this is using the Pipeline plugin + timstamper so it's helpfully embedded timestamps at the start of every line which I have to regex-around...)

        Attachments

          Activity

          Hide
          dav3r Dave Rigby added a comment -

          This is the log file in question - it'll be publicly available for a few days before it's deleted: http://cv.jenkins.couchbase.com/job/kv_engine.ASan-UBSan/job/master/15270/consoleText
          I've also attached it here: consoleText

          Show
          dav3r Dave Rigby added a comment - This is the log file in question - it'll be publicly available for a few days before it's deleted: http://cv.jenkins.couchbase.com/job/kv_engine.ASan-UBSan/job/master/15270/consoleText I've also attached it here: consoleText

            People

            Assignee:
            t_westling Tomas Westling
            Reporter:
            dav3r Dave Rigby
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: