Coder Social home page Coder Social logo

Comments (2)

bmerry avatar bmerry commented on August 28, 2024

I'd need a reproducible example to debug it.

from birdisle-py.

mczerski avatar mczerski commented on August 28, 2024

I think I have the same issue, minimal test case is to run birdisle from python script and then use redis-cli to call eval command:
test.py:

import birdisle
import time

redis_server = birdisle.Server('port 1666')
time.sleep(100000)

run python3 test.py
then run (do it TWICE since after first run everything is still ok, at least in my setup):

redis-cli -p 1666 eval "return redis.call('set', 'a', 'asdasdasdasdfasdfasdfasdfasdf')" 0

after that stop test.py with ctrl-c, I have this output:

^CTraceback (most recent call last):
  File "test.py", line 5, in <module>
    time.sleep(100000)
KeyboardInterrupt
corrupted double-linked list
Przerwane (zrzut pamięci)

The issue seems to exist only when the value written with set command inside lua script is larger than couple of bytes.

I splitted this test case into server part and client part (redis-cli) to show that this is related to the birdisle server and not the klient itself. Simpler testcase that also shows this issue may be this single script:

import birdisle
import credis
import time

redis_server = birdisle.Server('port 1666')
redis_client = credis.Connection(port=1666)

script = "return redis.call('set', 'a', 'asdasdasdasdfasdfasdfasdfasdfasdasdasd')"
redis_client.execute('eval', script, 0)
redis_client.disconnect()
redis_server.close()

I have this output:

python3 test.py
Naruszenie ochrony pamięci (zrzut pamięci)

the log is in poilish, sorry for that. basically it means segmentation fault.

from birdisle-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.