# Aerospike client panic

**URL:** <https://discuss.aerospike.com/t/aerospike-client-panic/4545>\
**Category:** General Discussion\
**Created:** [September 1, 2017, 8:14am UTC](https://discuss.aerospike.com/t/aerospike-client-panic/4545 "2017-09-01T08:14:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://discuss.aerospike.com/u/Steve)\
**Post date:** [September 1, 2017, 8:14am UTC](https://discuss.aerospike.com/t/aerospike-client-panic/4545/1 "2017-09-01T08:14:37Z")

</div>

Hi,guys. The client get sigal SIGSEGV and output the call trace as follows.

/usr/local/lib/libaerospike.so(as\_queue\_pop+0x2c) [0x7f47d15ba414]

/usr/local/lib/libaerospike.so(as\_event\_node\_destroy+0x76) [0x7f47d15a1111]

/usr/local/lib/libaerospike.so(as\_node\_destroy+0x8c) [0x7f47d15a3c61]

/usr/local/lib/libaerospike.so(+0x439b9) [0x7f47d15a69b9]

/usr/local/lib/libaerospike.so(as\_partition\_tables\_update\_all+0x3b1) [0x7f47d15a7527]

/usr/local/lib/libaerospike.so(as\_node\_refresh\_partitions+0x219) [0x7f47d15a4d0d]

/usr/local/lib/libaerospike.so(as\_cluster\_tend+0x6f3) [0x7f47d159cbe3]

/usr/local/lib/libaerospike.so(+0x3a190) [0x7f47d159d190]

/lib/x86\_64-linux-gnu/libpthread.so.0(+0x8182) [0x7f47d1817182]

```auto
bool
as_queue_pop(as_queue* queue, void* ptr)
{
	if (as_queue_empty(queue)) {
		return false;
	}

	memcpy(ptr, as_queue_get(queue, queue->head), queue->item_size);

	queue->head++; -------------------------- **the fault line**

	// This probably keeps the cache fresher because the queue is 
fully empty.

	if (queue->head == queue->tail) {
		queue->head = queue->tail = 0;
	}

	return true;
}

```

Does the coredump has relation with that the appliation passes the as-\>cluster NULL pointer when do some operation. My application has such a leak probably.

Best Regards,

Steve
