Sitelet https://github.com/phpredis/phpredis/issues/2030
Skip to content

segfault when set RedisCluster option on none cluster mode #2030

Description

@xxm404

Expected behaviour

throw exception

Actual behaviour

segfault

I'm seeing this behaviour on

  • OS: Ubuntu 18.04.4 LTS
  • Redis: 2.8.22
  • PHP: 7.2.26
  • phpredis: 5.3.2

Steps to reproduce, backtrace or example script

<?php
$redis = new Redis();
$redis->pconnect('foo.bar.baz', '6010', '0.2', 'redis_item', 100, '0.5');
$redis->select(0);
$redis->setOption(RedisCluster::OPT_SLAVE_FAILOVER, RedisCluster::FAILOVER_DISTRIBUTE);

dmesg log:

php[3700]: segfault at 12 ip 00007fa278e901ac sp 00007ffc90952e10 error 6 in redis.so[7fa278e45000+8c000]
Code: e9 61 ff ff ff 66 0f 1f 84 00 00 00 00 00 48 8b 7c 24 18 80 7f 08 04 0f 85 79 01 00 00 48 8b 07 48 83 f8 03 0f 87 34 fe ff ff <66> 41 89 44 24 12 e9 31 ff ff ff 66 0f 1f 84 00 00 00 00 00 48 8b

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions