Comments (2)
I'd need a reproducible example to debug it.
from birdisle-py.
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)
- Write user documentation HOT 1
- Add unit test with signal handling
- Write a MANIFEST.in
- Update aioredis integration to 2.x
- Add asyncio-redis integration
- Add coveralls to CI
- Error when installing in MacOS HOT 2
- Support for redis modules
- Redis Version 3.3 introduced health_check_interval HOT 1
- birdisle.redis.Redis.from_url() attempts real connections HOT 1
- Alpine Linux: libbirdisle.so.1: backtrace: symbol not found HOT 1
- publish wheel for python 3.8 on PyPI HOT 1
- Python 3.8 deprecated explicit passing of loop parameter HOT 2
- Segfault when closing if storing an integer
- Add unit test for blocking operations
- Add unit test for Lua code
- Add unit test for pubsub
- Add Redis wrapper to go with StrictRedis
- Make StrictRedis wrapper work more like fakeredis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdisle-py.