Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): suppress memory leaks in libJANA.so #1628

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

Since a week or so, CI jobs on main have been failing, https://github.com/eic/EICrecon/actions/workflows/linux-eic-shell.yml?query=branch%3Amain. First one was https://github.com/eic/EICrecon/actions/runs/11171861991. This appears to be due to LSan in libJANA.so, e.g. https://github.com/eic/EICrecon/actions/runs/11171861991/job/31058015623#step:9:3979:

=================================================================
==609==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 272 byte(s) in 2 object(s) allocated from:
    #0 0x55e2fb0ba20d in operator new(unsigned long) (/home/runner/work/EICrecon/EICrecon/install/bin/eicrecon+0x10e20d) (BuildId: a5040da1707e76901d07b3ade4bdca35b7daccf2)
    #1 0x7f2d2a6a06d1 in JStreamLog::JStreamLog(std::ostream const&, char const*) (/opt/local/lib/libJANA.so+0x15d6d1) (BuildId: 7ee8b20a986d2d231d4fb255c9a0cd83b13e422c)

Indirect leak of 21 byte(s) in 2 object(s) allocated from:
    #0 0x55e2fb0ba31d in operator new[](unsigned long) (/home/runner/work/EICrecon/EICrecon/install/bin/eicrecon+0x10e31d) (BuildId: a5040da1707e76901d07b3ade4bdca35b7daccf2)
    #1 0x7f2d2a6a13dd in JStreamLogBuffer::JStreamLogBuffer(std::basic_streambuf<char, std::char_traits<char>>*, char const*) (/opt/local/lib/libJANA.so+0x15e3dd) (BuildId: 7ee8b20a986d2d231d4fb255c9a0cd83b13e422c)

This PR ignores memory leaks in libJANA.so.

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators: @nathanwbrei (please tag me on a JANA issue and fix so we can remove this again here)

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

@wdconinc wdconinc added this pull request to the merge queue Oct 10, 2024
Merged via the queue into main with commit c92c8e0 Oct 10, 2024
55 of 57 checks passed
@wdconinc wdconinc deleted the lsan-suppress-libJANA branch October 10, 2024 23:19
@veprbl veprbl added the backport v1.18 Backport into v1.18 label Oct 16, 2024
@epic-capybara
Copy link

Successfully created backport PR for v1.18:

github-actions bot pushed a commit that referenced this pull request Oct 16, 2024
### Briefly, what does this PR introduce?
Since a week or so, CI jobs on `main` have been failing,
https://github.com/eic/EICrecon/actions/workflows/linux-eic-shell.yml?query=branch%3Amain.
First one was https://github.com/eic/EICrecon/actions/runs/11171861991.
This appears to be due to LSan in libJANA.so, e.g.
https://github.com/eic/EICrecon/actions/runs/11171861991/job/31058015623#step:9:3979:
```
=================================================================
==609==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 272 byte(s) in 2 object(s) allocated from:
    #0 0x55e2fb0ba20d in operator new(unsigned long) (/home/runner/work/EICrecon/EICrecon/install/bin/eicrecon+0x10e20d) (BuildId: a5040da1707e76901d07b3ade4bdca35b7daccf2)
    #1 0x7f2d2a6a06d1 in JStreamLog::JStreamLog(std::ostream const&, char const*) (/opt/local/lib/libJANA.so+0x15d6d1) (BuildId: 7ee8b20a986d2d231d4fb255c9a0cd83b13e422c)

Indirect leak of 21 byte(s) in 2 object(s) allocated from:
    #0 0x55e2fb0ba31d in operator new[](unsigned long) (/home/runner/work/EICrecon/EICrecon/install/bin/eicrecon+0x10e31d) (BuildId: a5040da1707e76901d07b3ade4bdca35b7daccf2)
    #1 0x7f2d2a6a13dd in JStreamLogBuffer::JStreamLogBuffer(std::basic_streambuf<char, std::char_traits<char>>*, char const*) (/opt/local/lib/libJANA.so+0x15e3dd) (BuildId: 7ee8b20a986d2d231d4fb255c9a0cd83b13e422c)
```

This PR ignores memory leaks in libJANA.so.

### What kind of change does this PR introduce?
- [x] Bug fix (issue:
https://github.com/eic/EICrecon/actions/runs/11171861991/job/31058015623#step:9:3979)
- [ ] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [x] Changes have been communicated to collaborators: @nathanwbrei
(please tag me on a JANA issue and fix so we can remove this again here)

### Does this PR introduce breaking changes? What changes might users
need to make to their code?
No.

### Does this PR change default behavior?
No.

(cherry picked from commit c92c8e0)
veprbl added a commit that referenced this pull request Oct 16, 2024
# Description
Backport of #1628 to `v1.18`.

---------

Co-authored-by: Wouter Deconinck <[email protected]>
Co-authored-by: Dmitry Kalinkin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants