[PCBC-213] SEGV in extension: php_couchbase_pres_dtor (rsrc=<optimized out>) at /sources/lcb2.0-repo/php/couchbase.c:64 Created: 21/Mar/13  Updated: 22/Mar/13  Resolved: 22/Mar/13

Status: Resolved
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: 1.1.3
Fix Version/s: 1.1.4
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Matt Ingenthron Assignee: Trond Norbye
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt: start-finish

GetMulti - PlainOO [tests/phpt/GetMulti/PlainOO.phpt]
GetReplica - GetReplica [tests/phpt/GetReplica/GetReplica.phpt]
GetReplica - GetReplicaMulti [tests/phpt/GetReplica/GetReplicaMulti.phpt]
NegativeExpiry - Increment [tests/phpt/NegativeExpiry/Increment.phpt]
NegativeExpiry - TouchMulti [tests/phpt/NegativeExpiry/TouchMulti.phpt]
Prefix - Prefix [tests/phpt/Prefix/Prefix.phpt]
ViewSimple - MissingView [tests/phpt/ViewSimple/MissingView.phpt]

This against a local cluster. Additionally, two of the failed tests segfault. Is this normal?

For the GetMulti failure:

Program received signal SIGSEGV, Segmentation fault.
*__GI___libc_free (mem=0x7ffff37a7e60) at malloc.c:3709
3709 malloc.c: No such file or directory.
(gdb) bt
#0 *__GI___libc_free (mem=0x7ffff37a7e60) at malloc.c:3709
#1 0x00007ffff47efded in php_couchbase_pres_dtor (rsrc=<optimized out>)
    at /sources/lcb2.0-repo/php/couchbase.c:64
#2 0x00000000006ae83e in plist_entry_destructor (ptr=0x101a630)
    at /tmp/buildd/php5-5.4.4/Zend/zend_list.c:209
#3 0x00000000006ab1b5 in zend_hash_apply_deleter () at /tmp/buildd/php5-5.4.4/Zend/zend_hash.c:650
#4 0x00000000006ac9a8 in zend_hash_graceful_reverse_destroy (ht=0xdb8798)
    at /tmp/buildd/php5-5.4.4/Zend/zend_hash.c:687
#5 0x000000000069e749 in zend_shutdown () at /tmp/buildd/php5-5.4.4/Zend/zend.c:822
#6 0x000000000063f44b in php_module_shutdown () at /tmp/buildd/php5-5.4.4/main/main.c:2346
#7 0x0000000000430f78 in main (argc=32767, argv=0xdb9210) at /tmp/buildd/php5-5.4.4/sapi/cli/php_cli.c:1376

The segfault from the Prefix test is similar.

Comment by Trond Norbye [ 22/Mar/13 ]
This error is caused by the persistent connections (and most likely been here from the beginning)
Comment by Trond Norbye [ 22/Mar/13 ]
Generated at Tue Sep 30 08:25:03 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.