userspace-rcu-0.14.1-1.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/doc/examples/urcu-flavors/signal.c: scope_hint: In function ‘add_node’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/doc/examples/urcu-flavors/signal.c:49:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#   49 |         node = calloc(sizeof(*node), 1);
#      |                             ^
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/doc/examples/urcu-flavors/signal.c:49:29: note: earlier argument should specify number of elements, later size of each element
#   47|   	struct mynode *node;
#   48|   
#   49|-> 	node = calloc(sizeof(*node), 1);
#   50|   	if (!node)
#   51|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/compiler.h:45:34: warning[-Wanalyzer-malloc-leak]: leak of 'urcu_workqueue_create_completion()'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/system.h:29:40: note: in expansion of macro 'CMM_ACCESS_ONCE'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/system.h:38:17: note: in expansion of macro '_CMM_LOAD_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/uatomic/generic.h:37:33: note: in expansion of macro 'CMM_LOAD_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h:42:15: note: in expansion of macro 'uatomic_read'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c: scope_hint: In function 'urcu_workqueue_destroy_completion'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/system.h:54:36: note: in expansion of macro '_CMM_STORE_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/uatomic/x86.h:55:41: note: in expansion of macro 'CMM_STORE_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/uatomic/x86.h:603:34: note: in expansion of macro '_uatomic_set'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/uatomic/x86.h:608:17: note: in expansion of macro 'UATOMIC_COMPAT'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h:29:9: note: in expansion of macro 'uatomic_set'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c: scope_hint: In function 'urcu_workqueue_destroy_completion'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c:44: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h: scope_hint: In function 'urcu_workqueue_destroy_completion'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c:38: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h:66:9: note: in expansion of macro 'urcu_posix_assert'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/system.h:29:40: note: in expansion of macro 'CMM_ACCESS_ONCE'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/system.h:38:17: note: in expansion of macro '_CMM_LOAD_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/uatomic/generic.h:37:33: note: in expansion of macro 'CMM_LOAD_SHARED'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h:42:15: note: in expansion of macro 'uatomic_read'
#   43|    * handlers, all running on the same CPU.
#   44|    */
#   45|-> #define CMM_ACCESS_ONCE(x)	(*(__volatile__  __typeof__(x) *)&(x))
#   46|   
#   47|   #ifndef caa_max

Error: GCC_ANALYZER_WARNING (CWE-131): [#def3]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/doc/examples/hlist/cds_hlist_add_head_rcu.c:20: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/rcuhlist.h: scope_hint: In function ‘cds_hlist_add_head_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/rcuhlist.h:38:20: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/rcuhlist.h:28: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/hlist.h:38:31: note: in definition of macro ‘CDS_HLIST_HEAD’
#   36|   {
#   37|   	newp->next = head->next;
#   38|-> 	newp->prev = (struct cds_hlist_node *)head;
#   39|   	if (head->next)
#   40|   		head->next->prev = newp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/rculfqueue.c:27: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function 'make_dummy'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:75:16: warning[-Wanalyzer-malloc-leak]: leak of 'dummy'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function 'make_dummy'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfcqueue.h:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/wfcqueue.h:146: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/call-rcu.h:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu-call-rcu.h:1: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:29: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro 'urcu_posix_assert'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro 'urcu_posix_assert'
#   73|   	dummy->parent.dummy = 1;
#   74|   	dummy->q = q;
#   75|-> 	return &dummy->parent;
#   76|   }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/rculfqueue.h:47: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/cds.h:30: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:48: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function ‘make_dummy’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:75:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dummy’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:249:25: note: in expansion of macro ‘cds_lfq_dequeue_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:37: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
#   73|   	dummy->parent.dummy = 1;
#   74|   	dummy->q = q;
#   75|-> 	return &dummy->parent;
#   76|   }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/unit/get_cpu_mask_from_sysfs.c:12: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/compat-smp.h: scope_hint: In function ‘get_cpu_mask_from_sysfs’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/compat-smp.h:154:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/compat-smp.h:8: included_from: Included from here.
#  152|   
#  153|   	do {
#  154|-> 		bytes_read = read(fd, buf + total_bytes_read,
#  155|   				max_bytes - total_bytes_read);
#  156|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c: scope_hint: In function 'urcu_workqueue_queue_completion'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/src/workqueue.c:439:1: warning[-Wanalyzer-malloc-leak]: leak of 'work'
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/ref.h: scope_hint: In function 'urcu_workqueue_queue_completion'
#  437|   	uatomic_inc(&completion->barrier_count);
#  438|   	urcu_workqueue_queue_work(workqueue, &work->work, _urcu_workqueue_wait_complete);
#  439|-> }
#  440|   
#  441|   /*

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:316:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:238:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:303:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  314|   
#  315|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  316|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  317|   				     (void *)(long)i_thr);
#  318|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:322:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:238:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:303:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  320|   	}
#  321|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  322|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  323|   				     (void *)(long)i_thr);
#  324|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:337:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:238:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:328:9: note: in expansion of macro ‘cmm_smp_mb’
#  335|   
#  336|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  337|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  338|   		if (err != 0)
#  339|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:343:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:238:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_mutex.c:328:9: note: in expansion of macro ‘cmm_smp_mb’
#  341|   	}
#  342|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  343|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  344|   		if (err != 0)
#  345|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:350:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:270:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  348|   
#  349|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  350|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  351|   				     (void *)(long)i_thr);
#  352|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:356:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:270:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:335:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  354|   	}
#  355|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  356|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  357|   				     (void *)(long)i_thr);
#  358|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:371:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:270:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:362:9: note: in expansion of macro ‘cmm_smp_mb’
#  369|   
#  370|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  371|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  372|   		if (err != 0)
#  373|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:377:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:270:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock.c:362:9: note: in expansion of macro ‘cmm_smp_mb’
#  375|   	}
#  376|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  377|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  378|   		if (err != 0)
#  379|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c:180:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  178|   	}
#  179|   	for (i = 0; i < NR_READ; i++) {
#  180|-> 		err = pthread_create(&tid_reader[i], NULL, thr_reader,
#  181|   				     (void *)(long)i);
#  182|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c:186:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  184|   	}
#  185|   	for (i = 0; i < NR_WRITE; i++) {
#  186|-> 		err = pthread_create(&tid_writer[i], NULL, thr_writer,
#  187|   				     (void *)(long)i);
#  188|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c:195:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
#  193|   
#  194|   	for (i = 0; i < NR_READ; i++) {
#  195|-> 		err = pthread_join(tid_reader[i], &tret);
#  196|   		if (err != 0)
#  197|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_perthreadlock_timing.c:201:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
#  199|   	}
#  200|   	for (i = 0; i < NR_WRITE; i++) {
#  201|-> 		err = pthread_join(tid_writer[i], &tret);
#  202|   		if (err != 0)
#  203|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:346:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  344|   
#  345|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  346|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  347|   				     &count_reader[i_thr]);
#  348|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:352:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  350|   	}
#  351|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  352|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  353|   				     &count_writer[i_thr]);
#  354|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:367:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:358:9: note: in expansion of macro ‘cmm_smp_mb’
#  365|   
#  366|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  367|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  368|   		if (err != 0)
#  369|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:370:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:358:9: note: in expansion of macro ‘cmm_smp_mb’
#  368|   		if (err != 0)
#  369|   			exit(1);
#  370|-> 		tot_reads += count_reader[i_thr];
#  371|   	}
#  372|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:373:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:358:9: note: in expansion of macro ‘cmm_smp_mb’
#  371|   	}
#  372|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  373|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  374|   		if (err != 0)
#  375|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:376:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:263:9: note: in expansion of macro ‘cmm_smp_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock.c:358:9: note: in expansion of macro ‘cmm_smp_mb’
#  374|   		if (err != 0)
#  375|   			exit(1);
#  376|-> 		tot_writes += count_writer[i_thr];
#  377|   	}
#  378|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c:180:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  178|   
#  179|   	for (i = 0; i < NR_READ; i++) {
#  180|-> 		err = pthread_create(&tid_reader[i], NULL, thr_reader,
#  181|   				     (void *)(long)i);
#  182|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c:186:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  184|   	}
#  185|   	for (i = 0; i < NR_WRITE; i++) {
#  186|-> 		err = pthread_create(&tid_writer[i], NULL, thr_writer,
#  187|   				     (void *)(long)i);
#  188|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c:195:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
#  193|   
#  194|   	for (i = 0; i < NR_READ; i++) {
#  195|-> 		err = pthread_join(tid_reader[i], &tret);
#  196|   		if (err != 0)
#  197|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_rwlock_timing.c:201:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
#  199|   	}
#  200|   	for (i = 0; i < NR_WRITE; i++) {
#  201|-> 		err = pthread_join(tid_writer[i], &tret);
#  202|   		if (err != 0)
#  203|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:195:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:196:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:196:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu-signal.h:49: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu.h:41: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu.h:2: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:45: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:201:17: note: in expansion of macro ‘synchronize_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:34: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:208:21: note: in expansion of macro ‘caa_unlikely’
#  193|   
#  194|   	for (;;) {
#  195|-> 		new = malloc(sizeof(int));
#  196|   		urcu_posix_assert(new);
#  197|   		*new = 8;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:215:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:196:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:196:17: note: in expansion of macro ‘urcu_posix_assert’
#  213|   			"writer", urcu_get_thread_id());
#  214|   	*count = URCU_TLS(nr_writes);
#  215|-> 	return ((void*)2);
#  216|   }
#  217|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:328:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:317:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  326|   
#  327|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  328|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  329|   				     &count_reader[i_thr]);
#  330|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:334:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:317:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  332|   	}
#  333|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  334|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  335|   				     &count_writer[i_thr]);
#  336|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:349:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:34: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:340:9: note: in expansion of macro ‘cmm_smp_mb’
#  347|   
#  348|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  349|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  350|   		if (err != 0)
#  351|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:352:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:340:9: note: in expansion of macro ‘cmm_smp_mb’
#  350|   		if (err != 0)
#  351|   			exit(1);
#  352|-> 		tot_reads += count_reader[i_thr];
#  353|   	}
#  354|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:355:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:340:9: note: in expansion of macro ‘cmm_smp_mb’
#  353|   	}
#  354|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  355|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  356|   		if (err != 0)
#  357|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:358:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu.c:340:9: note: in expansion of macro ‘cmm_smp_mb’
#  356|   		if (err != 0)
#  357|   			exit(1);
#  358|-> 		tot_writes += count_writer[i_thr];
#  359|   	}
#  360|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:385:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:373:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:376:54: note: in expansion of macro ‘ARRAY_SIZE’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  383|   
#  384|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  385|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  386|   				     &count_reader[i_thr]);
#  387|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:391:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:373:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:376:54: note: in expansion of macro ‘ARRAY_SIZE’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  389|   	}
#  390|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  391|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  392|   				     &count_writer[i_thr]);
#  393|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:406:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:397:9: note: in expansion of macro ‘cmm_smp_mb’
#  404|   
#  405|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  406|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  407|   		if (err != 0)
#  408|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:409:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:397:9: note: in expansion of macro ‘cmm_smp_mb’
#  407|   		if (err != 0)
#  408|   			exit(1);
#  409|-> 		tot_reads += count_reader[i_thr];
#  410|   	}
#  411|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:412:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:397:9: note: in expansion of macro ‘cmm_smp_mb’
#  410|   	}
#  411|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  412|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  413|   		if (err != 0)
#  414|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:415:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_assign.c:397:9: note: in expansion of macro ‘cmm_smp_mb’
#  413|   		if (err != 0)
#  414|   			exit(1);
#  415|-> 		tot_writes += count_writer[i_thr];
#  416|   	}
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:191:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu-bp.h:41: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu-bp.h:2: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:45: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:196:17: note: in expansion of macro ‘synchronize_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:203:21: note: in expansion of macro ‘caa_unlikely’
#  189|   
#  190|   	for (;;) {
#  191|-> 		new = malloc(sizeof(int));
#  192|   		*new = 8;
#  193|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:192:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  190|   	for (;;) {
#  191|   		new = malloc(sizeof(int));
#  192|-> 		*new = 8;
#  193|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);
#  194|   		if (caa_unlikely(wduration))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:210:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
#  208|   			"writer", urcu_get_thread_id());
#  209|   	*count = URCU_TLS(nr_writes);
#  210|-> 	return ((void*)2);
#  211|   }
#  212|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def47]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:323:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:312:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  321|   
#  322|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  323|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  324|   				     &count_reader[i_thr]);
#  325|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:329:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:312:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  327|   	}
#  328|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  329|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  330|   				     &count_writer[i_thr]);
#  331|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:344:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:335:9: note: in expansion of macro ‘cmm_smp_mb’
#  342|   
#  343|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  344|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  345|   		if (err != 0)
#  346|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:347:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:335:9: note: in expansion of macro ‘cmm_smp_mb’
#  345|   		if (err != 0)
#  346|   			exit(1);
#  347|-> 		tot_reads += count_reader[i_thr];
#  348|   	}
#  349|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:350:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:335:9: note: in expansion of macro ‘cmm_smp_mb’
#  348|   	}
#  349|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  350|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  351|   		if (err != 0)
#  352|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:353:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_bp.c:335:9: note: in expansion of macro ‘cmm_smp_mb’
#  351|   		if (err != 0)
#  352|   			exit(1);
#  353|-> 		tot_writes += count_writer[i_thr];
#  354|   	}
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:212:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu-memb.h:49: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu.h:39: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu.h:2: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:45: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:217:17: note: in expansion of macro ‘defer_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:228:21: note: in expansion of macro ‘caa_unlikely’
#  210|   
#  211|   	for (;;) {
#  212|-> 		new = malloc(sizeof(*new));
#  213|   		new->a = 8;
#  214|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:213:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  211|   	for (;;) {
#  212|   		new = malloc(sizeof(*new));
#  213|-> 		new->a = 8;
#  214|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);
#  215|   		if (caa_unlikely(wduration))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:237:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
#  235|   			"writer", urcu_get_thread_id());
#  236|   	tot_nr_writes[wtidx] = URCU_TLS(nr_writes);
#  237|-> 	return ((void*)2);
#  238|   }
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def56]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:350:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:339:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  348|   
#  349|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  350|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  351|   				     &count_reader[i_thr]);
#  352|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def57]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:356:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:339:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  354|   	}
#  355|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  356|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  357|   				     (void *)(long)i_thr);
#  358|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:371:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:362:9: note: in expansion of macro ‘cmm_smp_mb’
#  369|   
#  370|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  371|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  372|   		if (err != 0)
#  373|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:374:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:362:9: note: in expansion of macro ‘cmm_smp_mb’
#  372|   		if (err != 0)
#  373|   			exit(1);
#  374|-> 		tot_reads += count_reader[i_thr];
#  375|   	}
#  376|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:377:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_defer.c:362:9: note: in expansion of macro ‘cmm_smp_mb’
#  375|   	}
#  376|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  377|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  378|   		if (err != 0)
#  379|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:241:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:251:21: note: in expansion of macro ‘caa_unlikely’
#  239|   	for (;;) {
#  240|   #ifndef TEST_LOCAL_GC
#  241|-> 		new = malloc(sizeof(*new));
#  242|   		new->a = 8;
#  243|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:242:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  240|   #ifndef TEST_LOCAL_GC
#  241|   		new = malloc(sizeof(*new));
#  242|-> 		new->a = 8;
#  243|   		old = rcu_xchg_pointer(&test_rcu_pointer, new);
#  244|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:258:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:255:9: note: in expansion of macro ‘printf_verbose’
#  256|   			"writer", urcu_get_thread_id());
#  257|   	tot_nr_writes[wtidx] = URCU_TLS(nr_writes);
#  258|-> 	return ((void*)2);
#  259|   }
#  260|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:379:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pending_reclaims’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:367:9: note: in expansion of macro ‘printf_verbose’
#  377|   			< CAA_CACHE_LINE_SIZE)
#  378|   		for (i_thr = 0; i_thr < nr_writers; i_thr++)
#  379|-> 			pending_reclaims[i_thr].queue = calloc(1, CAA_CACHE_LINE_SIZE);
#  380|   	else
#  381|   		for (i_thr = 0; i_thr < nr_writers; i_thr++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:390:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:367:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  388|   
#  389|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  390|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  391|   				     &count_reader[i_thr]);
#  392|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:411:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  409|   
#  410|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  411|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  412|   		if (err != 0)
#  413|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:414:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  412|   		if (err != 0)
#  413|   			exit(1);
#  414|-> 		tot_reads += count_reader[i_thr];
#  415|   	}
#  416|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:417:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  415|   	}
#  416|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  417|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  418|   		if (err != 0)
#  419|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_hash.h:118:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘node’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_hash_rw.c: scope_hint: In function ‘test_hash_rw_populate_hash’
#  116|   {
#  117|   	cds_lfht_node_init(&node->node);
#  118|-> 	node->key = key;
#  119|   	node->key_len = key_len;
#  120|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def70]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:364:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_enqueuer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:25: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  362|   
#  363|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  364|-> 		err = pthread_create(&tid_enqueuer[i_thr], NULL, thr_enqueuer,
#  365|   				     &count_enqueuer[2 * i_thr]);
#  366|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:370:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_dequeuer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c: scope_hint: In function ‘main’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  368|   	}
#  369|   	for (i_thr = 0; i_thr < nr_dequeuers; i_thr++) {
#  370|-> 		err = pthread_create(&tid_dequeuer[i_thr], NULL, thr_dequeuer,
#  371|   				     &count_dequeuer[2 * i_thr]);
#  372|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:391:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c: scope_hint: In function ‘main’
#  389|   
#  390|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  391|-> 		err = pthread_join(tid_enqueuer[i_thr], &tret);
#  392|   		if (err != 0)
#  393|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:394:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/rculfqueue.h:71:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c:355:9: note: in expansion of macro ‘cds_lfq_init_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfq.c: scope_hint: In function ‘main’
#  392|   		if (err != 0)
#  393|   			exit(1);
#  394|-> 		tot_enqueues += count_enqueuer[2 * i_thr];
#  395|   		tot_successful_enqueues += count_enqueuer[2 * i_thr + 1];
#  396|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c: scope_hint: In function ‘thr_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:159:37: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
#  157|   
#  158|   	for (;;) {
#  159|-> 		struct test *node = malloc(sizeof(*node));
#  160|   		if (!node)
#  161|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:184:16: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
#  182|   			URCU_TLS(nr_enqueues),
#  183|   			URCU_TLS(nr_successful_enqueues));
#  184|-> 	return ((void*)1);
#  185|   
#  186|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def76]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:366:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_enqueuer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:25: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  364|   
#  365|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  366|-> 		err = pthread_create(&tid_enqueuer[i_thr], NULL, thr_enqueuer,
#  367|   				     &count_enqueuer[2 * i_thr]);
#  368|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:372:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_dequeuer’ where non-null expected
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  370|   	}
#  371|   	for (i_thr = 0; i_thr < nr_dequeuers; i_thr++) {
#  372|-> 		err = pthread_create(&tid_dequeuer[i_thr], NULL, thr_dequeuer,
#  373|   				     &count_dequeuer[2 * i_thr]);
#  374|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:393:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_enqueuer’
#  391|   
#  392|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  393|-> 		err = pthread_join(tid_enqueuer[i_thr], &tret);
#  394|   		if (err != 0)
#  395|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_lfs_rcu.c:396:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_enqueuer’
#  394|   		if (err != 0)
#  395|   			exit(1);
#  396|-> 		tot_enqueues += count_enqueuer[2 * i_thr];
#  397|   		tot_successful_enqueues += count_enqueuer[2 * i_thr + 1];
#  398|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:201:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:34: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:202:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:202:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/urcu-qsbr.h:48: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu-qsbr.h:2: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:45: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:207:17: note: in expansion of macro ‘synchronize_rcu’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:214:21: note: in expansion of macro ‘caa_unlikely’
#  199|   
#  200|   	for (;;) {
#  201|-> 		new = malloc(sizeof(int));
#  202|   		urcu_posix_assert(new);
#  203|   		*new = 8;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:202:17: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:202:17: note: in expansion of macro ‘urcu_posix_assert’
#  219|   			"writer", urcu_get_thread_id());
#  220|   	*count = URCU_TLS(nr_writes);
#  221|-> 	return ((void*)2);
#  222|   }
#  223|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:334:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:323:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  332|   
#  333|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  334|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  335|   				     &count_reader[i_thr]);
#  336|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:340:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:323:9: note: in expansion of macro ‘printf_verbose’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  338|   	}
#  339|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  340|-> 		err = pthread_create(&tid_writer[i_thr], NULL, thr_writer,
#  341|   				     &count_writer[i_thr]);
#  342|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:355:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:346:9: note: in expansion of macro ‘cmm_smp_mb’
#  353|   
#  354|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  355|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  356|   		if (err != 0)
#  357|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:358:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:346:9: note: in expansion of macro ‘cmm_smp_mb’
#  356|   		if (err != 0)
#  357|   			exit(1);
#  358|-> 		tot_reads += count_reader[i_thr];
#  359|   	}
#  360|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:361:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:346:9: note: in expansion of macro ‘cmm_smp_mb’
#  359|   	}
#  360|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  361|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  362|   		if (err != 0)
#  363|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:364:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr.c:346:9: note: in expansion of macro ‘cmm_smp_mb’
#  362|   		if (err != 0)
#  363|   			exit(1);
#  364|-> 		tot_writes += count_writer[i_thr];
#  365|   	}
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:241:23: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:25: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:251:21: note: in expansion of macro ‘caa_unlikely’
#  239|   	for (;;) {
#  240|   #ifndef TEST_LOCAL_GC
#  241|-> 		new = malloc(sizeof(*new));
#  242|   		new->a = 8;
#  243|   		old = _rcu_xchg_pointer(&test_rcu_pointer, new);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:242:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  240|   #ifndef TEST_LOCAL_GC
#  241|   		new = malloc(sizeof(*new));
#  242|-> 		new->a = 8;
#  243|   		old = _rcu_xchg_pointer(&test_rcu_pointer, new);
#  244|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:258:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:255:9: note: in expansion of macro ‘printf_verbose’
#  256|   			"writer", urcu_get_thread_id());
#  257|   	tot_nr_writes[wtidx] = URCU_TLS(nr_writes);
#  258|-> 	return ((void*)2);
#  259|   }
#  260|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:379:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pending_reclaims’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:368:9: note: in expansion of macro ‘printf_verbose’
#  377|   			< CAA_CACHE_LINE_SIZE)
#  378|   		for (i_thr = 0; i_thr < nr_writers; i_thr++)
#  379|-> 			pending_reclaims[i_thr].queue = calloc(1, CAA_CACHE_LINE_SIZE);
#  380|   	else
#  381|   		for (i_thr = 0; i_thr < nr_writers; i_thr++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def92]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:390:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:368:9: note: in expansion of macro ‘printf_verbose’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  388|   
#  389|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  390|-> 		err = pthread_create(&tid_reader[i_thr], NULL, thr_reader,
#  391|   				     &count_reader[i_thr]);
#  392|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:411:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch.h:66: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:33: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  409|   
#  410|   	for (i_thr = 0; i_thr < nr_readers; i_thr++) {
#  411|-> 		err = pthread_join(tid_reader[i_thr], &tret);
#  412|   		if (err != 0)
#  413|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:414:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_reader’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  412|   		if (err != 0)
#  413|   			exit(1);
#  414|-> 		tot_reads += count_reader[i_thr];
#  415|   	}
#  416|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:417:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/generic.h:105:25: note: in expansion of macro ‘cmm_mb’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_gc.c:402:9: note: in expansion of macro ‘cmm_smp_mb’
#  415|   	}
#  416|   	for (i_thr = 0; i_thr < nr_writers; i_thr++) {
#  417|-> 		err = pthread_join(tid_writer[i_thr], &tret);
#  418|   		if (err != 0)
#  419|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:140:31: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c: scope_hint: In function ‘thr_writer’
#  138|   		for (j = 0; j < INNER_WRITE_LOOP; j++) {
#  139|   			time1 = caa_get_cycles();
#  140|-> 			new = malloc(sizeof(struct test_array));
#  141|   			rcu_copy_mutex_lock();
#  142|   			old = test_rcu_pointer;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:146:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c: scope_hint: In function ‘thr_writer’
#  144|   				urcu_posix_assert(old->a == 8);
#  145|   			}
#  146|-> 			new->a = 8;
#  147|   			old = rcu_xchg_pointer(&test_rcu_pointer, new);
#  148|   			rcu_copy_mutex_unlock();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:191:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  189|   
#  190|   	for (i = 0; i < NR_READ; i++) {
#  191|-> 		err = pthread_create(&tid_reader[i], NULL, thr_reader,
#  192|   				     (void *)(long)i);
#  193|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def99]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:197:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  195|   	}
#  196|   	for (i = 0; i < NR_WRITE; i++) {
#  197|-> 		err = pthread_create(&tid_writer[i], NULL, thr_writer,
#  198|   				     (void *)(long)i);
#  199|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:206:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
#  204|   
#  205|   	for (i = 0; i < NR_READ; i++) {
#  206|-> 		err = pthread_join(tid_reader[i], &tret);
#  207|   		if (err != 0)
#  208|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_qsbr_timing.c:212:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
#  210|   	}
#  211|   	for (i = 0; i < NR_WRITE; i++) {
#  212|-> 		err = pthread_join(tid_writer[i], &tret);
#  213|   		if (err != 0)
#  214|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:140:31: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c: scope_hint: In function ‘thr_writer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c: scope_hint: In function ‘thr_writer’
#  138|   		for (j = 0; j < INNER_WRITE_LOOP; j++) {
#  139|   			time1 = caa_get_cycles();
#  140|-> 			new = malloc(sizeof(struct test_array));
#  141|   			rcu_copy_mutex_lock();
#  142|   			old = test_rcu_pointer;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:146:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/arch/x86.h:103:9: note: in expansion of macro ‘rdtscll’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c: scope_hint: In function ‘thr_writer’
#  144|   				urcu_posix_assert(old->a == 8);
#  145|   			}
#  146|-> 			new->a = 8;
#  147|   			old = rcu_xchg_pointer(&test_rcu_pointer, new);
#  148|   			rcu_copy_mutex_unlock();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:191:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_reader’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:24: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  189|   
#  190|   	for (i = 0; i < NR_READ; i++) {
#  191|-> 		err = pthread_create(&tid_reader[i], NULL, thr_reader,
#  192|   				     (void *)(long)i);
#  193|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:197:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_writer’ where non-null expected
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  195|   	}
#  196|   	for (i = 0; i < NR_WRITE; i++) {
#  197|-> 		err = pthread_create(&tid_writer[i], NULL, thr_writer,
#  198|   				     (void *)(long)i);
#  199|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:206:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_reader’
#  204|   
#  205|   	for (i = 0; i < NR_READ; i++) {
#  206|-> 		err = pthread_join(tid_reader[i], &tret);
#  207|   		if (err != 0)
#  208|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_timing.c:212:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_writer’
#  210|   	}
#  211|   	for (i = 0; i < NR_WRITE; i++) {
#  212|-> 		err = pthread_join(tid_writer[i], &tret);
#  213|   		if (err != 0)
#  214|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘thr_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:152:45: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
#  150|   
#  151|   	for (;;) {
#  152|-> 		struct cds_wfq_node *node = malloc(sizeof(*node));
#  153|   		if (!node)
#  154|   			goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:174:16: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
#  172|   			URCU_TLS(nr_enqueues),
#  173|   			URCU_TLS(nr_successful_enqueues));
#  174|-> 	return ((void*)1);
#  175|   
#  176|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:332:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_enqueuer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/wfqueue.h:59: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/assert.h:36: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:37: included_from: Included from here.
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h:65:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:25: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  330|   
#  331|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  332|-> 		err = pthread_create(&tid_enqueuer[i_thr], NULL, thr_enqueuer,
#  333|   				     &count_enqueuer[2 * i_thr]);
#  334|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def111]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:338:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tid_dequeuer’ where non-null expected
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h:65:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘main’
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:211:12: note: argument 1 of ‘pthread_create’ must be non-null
#  336|   	}
#  337|   	for (i_thr = 0; i_thr < nr_dequeuers; i_thr++) {
#  338|-> 		err = pthread_create(&tid_dequeuer[i_thr], NULL, thr_dequeuer,
#  339|   				     &count_dequeuer[2 * i_thr]);
#  340|   		if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:359:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tid_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h:65:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘main’
#  357|   
#  358|   	for (i_thr = 0; i_thr < nr_enqueuers; i_thr++) {
#  359|-> 		err = pthread_join(tid_enqueuer[i_thr], &tret);
#  360|   		if (err != 0)
#  361|   			exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c:362:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘count_enqueuer’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h: scope_hint: In function ‘main’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/include/urcu/static/wfqueue.h:65:9: note: in expansion of macro ‘urcu_posix_assert’
userspace-rcu-0.14.1-build/userspace-rcu-0.14.1/tests/benchmark/test_urcu_wfq.c: scope_hint: In function ‘main’
#  360|   		if (err != 0)
#  361|   			exit(1);
#  362|-> 		tot_enqueues += count_enqueuer[2 * i_thr];
#  363|   		tot_successful_enqueues += count_enqueuer[2 * i_thr + 1];
#  364|   	}

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-88.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameuserspace-rcu-0.14.1-1.fc42
store-results-to/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.tar.xz
time-created2024-11-13 03:26:59
time-finished2024-11-13 03:30:04
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9