Page MenuHomePhabricator

[CI] Workaround ubsan failure in functional tests

Authored by Fabien on Sep 4 2019, 15:41.



This will allow to run the undefined behavior sanitizer on the
functional tests.
For now the abc-p2p-compactblocks functional test is failing with ubsan (a message is missed, with no log) and the node fails to shut down, which causes the build to hang until timeout. This test is excluded from the list in order to allow for the other tests to run with ubsan, waiting for a fix.

Depends on D3993.

Test Plan

Run the CI build-ubsan build configuration.

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Sep 4 2019, 15:41
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 4 2019, 15:41
jasonbcox requested changes to this revision.Sep 6 2019, 21:26
jasonbcox added a subscriber: jasonbcox.

A better description/rationale as we discussed earlier.

This revision now requires changes to proceed.Sep 6 2019, 21:26
Fabien edited the summary of this revision. (Show Details)Sep 7 2019, 05:51
Fabien updated this revision to Diff 11152.Sep 7 2019, 05:54

Rebase, improve summary and add a comment asking for removal in the future.

It would probably be more useful to fix the undefined behavior.

Fabien added a comment.Sep 8 2019, 09:27

I'd rather fix it, but so far I failed to do so.
This is most likely not an undefined behavior, because ubsan doesn't catch anything, I rather suspect some kind of timing issue exhibited by running ubsan.

jasonbcox accepted this revision.Sep 9 2019, 16:35
This revision is now accepted and ready to land.Sep 9 2019, 16:35
Fabien updated this revision to Diff 11354.Sep 16 2019, 21:12


This revision was automatically updated to reflect the committed changes.