From 08d148d418344426896900490c13631e4e038dec Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 24 Jul 2009 10:58:55 -0700 Subject: [PATCH 1/2] Add ulimit -c unlimited before running ztest, to get a core dump. Signed-off-by: Brian Behlendorf --- scripts/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 5b60cd7bf5..8d9c112072 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -7,6 +7,7 @@ ZPIOS=${top_srcdir}/scripts/zpios.sh check: $(ZFS) -v + ulimit -c unlimited $(ZTEST) -V $(ZPIOS) -c file-raid0 -t tiny $(ZPIOS) -c file-raid10 -t tiny From 51760e3c7ed15aeccd84e3a7e4f18fcf185d7f39 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 24 Jul 2009 11:00:23 -0700 Subject: [PATCH 2/2] Change VERIFY() into VERIFY3U() when creating threads in ztest, so that we can see the return code when it fails. Signed-off-by: Brian Behlendorf --- lib/libzpool/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index bbef8bb404..1218f20deb 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -182,8 +182,8 @@ zk_thread_create(caddr_t stk, size_t stksize, thread_func_t func, void *arg, list_insert_head(&kthread_list, kt); VERIFY3S(pthread_mutex_unlock(&kthread_lock), ==, 0); - VERIFY(pthread_create(&kt->t_tid, &kt->t_attr, - (void *(*)(void *))func, arg) == 0); + VERIFY3U(pthread_create(&kt->t_tid, &kt->t_attr, + (void *(*)(void *))func, arg), ==, 0); return kt; }