Title: php segmentation fault
Last modified: October 13, 2016

---

# php segmentation fault

 *  Resolved [Sidney Harrell](https://wordpress.org/support/users/sidney-harrell/)
 * (@sidney-harrell)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-segmentation-fault/)
 * Hi,
 * We are experiencing a segfault using the plugin on a php7 setup that we were 
   not seeing in php5.3. When we comment out the lines:
    if ( !defined( ‘SID’ ) )
   define(‘SID’, true); from classes/class-italy-cookie-choices-front-end.php, the
   problem goes away. Can you provide any clues as to why this would be happening?
   End of the stack trace: Program terminated with signal 11, Segmentation fault.#
   0 zend_string_release (s=0x2) at /usr/src/debug/php-7.0.11/Zend/zend_string.h:
   269 269 if (!ZSTR_IS_INTERNED(s)) { (gdb) bt #0 zend_string_release (s=0x2) at/
   usr/src/debug/php-7.0.11/Zend/zend_string.h:269 #1 php_session_reset_id () at/
   usr/src/debug/php-7.0.11/ext/session/session.c:1555 #2 0x00007fbbc8cb3748 in 
   php_session_initialize () at /usr/src/debug/php-7.0.11/ext/session/session.c:
   542 #3 0x00007fbbc8cb4165 in php_session_start () at /usr/src/debug/php-7.0.11/
   ext/session/session.c:1693 … (gdb) up #1 php_session_reset_id () at /usr/src/
   debug/php-7.0.11/ext/session/session.c:1555 1555 zend_string_release(Z_STR_P(
   sid)); (gdb) list 1550 REGISTER_STRINGL_CONSTANT(“SID”, ZSTR_VAL(var.s), ZSTR_LEN(
   var.s), 0); 1551 smart_str_free(&var); 1552 } 1553 } else { 1554 if (sid) { 1555
   zend_string_release(Z_STR_P(sid)); 1556 ZVAL_EMPTY_STRING(sid); 1557 } else {
   1558 REGISTER_STRINGL_CONSTANT(“SID”, “”, 0, 0); 1559 } (gdb)
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [overclokk](https://wordpress.org/support/users/overclokk/)
 * (@overclokk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-segmentation-fault/#post-8293685)
 * Hi [@sidney-harrell](https://wordpress.org/support/users/sidney-harrell/),
    it
   seems to be a php-fpm error, I found this link [http://stackoverflow.com/questions/36739530/php7-0-2-program-terminated-with-signal-11-segmentation-fault](http://stackoverflow.com/questions/36739530/php7-0-2-program-terminated-with-signal-11-segmentation-fault)
   for an older version of php but that error may still be present in 7.0.11. Could
   you reinstall your php 7.0.11? Or could you test the plugin in another machine?

Viewing 1 replies (of 1 total)

The topic ‘php segmentation fault’ is closed to new replies.

 * ![](https://ps.w.org/italy-cookie-choices/assets/icon.svg?rev=2942688)
 * [Italy Cookie Choices (for EU Cookie Law & Cookie Notice)](https://wordpress.org/plugins/italy-cookie-choices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/italy-cookie-choices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/italy-cookie-choices/)
 * [Active Topics](https://wordpress.org/support/plugin/italy-cookie-choices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/italy-cookie-choices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/italy-cookie-choices/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [overclokk](https://wordpress.org/support/users/overclokk/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/php-segmentation-fault/#post-8293685)
 * Status: resolved