From 054226b6a87613569d12d66c1fea8e48c924192b Mon Sep 17 00:00:00 2001 From: bcumming Date: Fri, 30 Mar 2018 15:32:37 +0200 Subject: [PATCH] Add missing error string in ABT_error_get_str The error string for ABT_ERR_INV_MUTEX_ATTR was missing in the lookup table for error strings. This lead to * segmentation fault when ABT_error_str is called with err=ABT_ERR_FEATURE_NA * incorrect error strings for err>ABT_ERR_INV_MUTEX --- src/error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.c b/src/error.c index d66e0b338..a1365f0b6 100644 --- a/src/error.c +++ b/src/error.c @@ -49,6 +49,7 @@ int ABT_error_get_str(int err, char *str, size_t *len) "ABT_ERR_INV_TASK", "ABT_ERR_INV_KEY", "ABT_ERR_INV_MUTEX", + "ABT_ERR_INV_MUTEX_ATTR", "ABT_ERR_INV_COND", "ABT_ERR_INV_RWLOCK", "ABT_ERR_INV_EVENTUAL",