Skip to content

Segmentation fault in PHP7 beta2 #6

@guoxiao

Description

@guoxiao

I try to use this extension in PHP7 beta2 and php crashed.

test.php:
<?php 
$redis = new Redis();
$redis->connect('127.0.0.1');
$redis->get('hello');

% php test.php
[1]    90702 segmentation fault (core dumped)  php test.php

% lldb /usr/local/bin/php -c /cores/core.90702                                                                                                           :(
(lldb) target create "/usr/local/bin/php" --core "/cores/core.90702"
warning: (x86_64) /cores/core.90702 load command 116 LC_SEGMENT_64 has a fileoff + filesize (0x218de000) that extends beyond the end of the file (0x218dd000), the segment will be truncated to match
warning: (x86_64) /cores/core.90702 load command 117 LC_SEGMENT_64 has a fileoff (0x218de000) that extends beyond the end of the file (0x218dd000), ignoring this section
bCore file '/cores/core.90702' (x86_64) was loaded.
(lldb) bt
* thread #1: tid = 0x0000, 0x00007fff87744fd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff87744fd6 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 182
    frame #1: 0x0000000108e1fd41 redis.so`redis_cmd_format_static + 3355
    frame #2: 0x0000000108e183d7 redis.so`redis_key_cmd + 115
    frame #3: 0x0000000108e040b2 redis.so`zim_Redis_get + 115
    frame #4: 0x0000000107d9201d php`ZEND_DO_FCALL_SPEC_HANDLER + 625
    frame #5: 0x0000000107d7ccea php`execute_ex + 34
    frame #6: 0x0000000107d7ce28 php`zend_execute + 307
    frame #7: 0x0000000107d337e5 php`zend_eval_stringl + 493
    frame #8: 0x0000000107b7c9bd php`readline_shell_run + 2743
    frame #9: 0x0000000107dd2429 php`do_cli + 2860
    frame #10: 0x0000000107dd16d5 php`main + 1290
    frame #11: 0x00007fff8b8375ad libdyld.dylib`start + 1
    frame #12: 0x00007fff8b8375ad libdyld.dylib`start + 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions