common/rc: check dmesg for UBSAN errors
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Nov 2017 01:22:44 +0000 (17:22 -0800)
committerEryu Guan <eguan@redhat.com>
Thu, 16 Nov 2017 04:24:12 +0000 (12:24 +0800)
If the UBSAN complains about bad behavior, we should capture the
dmesg so that developers can inspect it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc

index 0cda9da71f87fc081314f47277f82069ecd59ef5..4c053a53711acf08d393ce469a7342ad12f3ccd6 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -3314,6 +3314,7 @@ _check_dmesg()
             -e "INFO: possible circular locking dependency detected" \
             -e "general protection fault:" \
             -e "BUG .* remaining" \
+            -e "UBSAN:" \
             $seqres.dmesg
        if [ $? -eq 0 ]; then
                _dump_err "_check_dmesg: something found in dmesg (see $seqres.dmesg)"