Comments (6)
The EXC_BAD_ACCESS is from xcode. I get a segmentation fault when running in
terminal.
Original comment by [email protected]
on 12 May 2010 at 1:34
Attachments:
from credis.
I haven't been able to try this myself but do you think it is a problem in
Credis?
Could be something in the Redis server, have you tried with other client libs
if the
same error is returned?
Original comment by [email protected]
on 12 May 2010 at 5:05
from credis.
Hi romfelt,
I just tried it with Ezra's ruby library. I was able to successfully query a
key's type like so:
require 'redis'
r = Redis.new
r.type 'mykey'
=> "string"
So yes, unfortunately I think it's a problem with credis. I am trying to debug
it now, but I'm not that much of a
C guru.
It seems like the problem stems from like #778:
char *t = rhnd->reply.bulk;
*t is coming back null. Hope this helps some. I'll continue to try my luck at
debugging it, but I really doubt I
can. Thanks for all your work on credis!
Original comment by [email protected]
on 12 May 2010 at 5:20
from credis.
One other note of interest: whenever I use the credis_type() function, it is
altering the value of the previous key.
For example:
This returns the value just fine, as expected:.
char *val;
credis_get(rh, "mykey", &val);
printf("mykey: %s", val);
However, this will alter mykey's value:
char *val;
credis_get(rh, "mykey", &val);
type = credis_type(rh, "mykey");
printf("value: %s -- type: %s", val, type);
Hope this helps some...
Original comment by [email protected]
on 12 May 2010 at 5:43
from credis.
This issue was closed by revision r28.
Original comment by [email protected]
on 12 May 2010 at 7:08
- Changed state: Fixed
from credis.
found a bug. used reply bulk instead of reply line. this resulted in
segmentation fault
when credis_type() was the first function used since reply bulk was
uninitialized and
by mistakingly used.
Original comment by [email protected]
on 12 May 2010 at 7:11
from credis.
Related Issues (20)
- Bloat your makefile HOT 3
- Compilation error on FreeBSD 8.1 amd64 HOT 1
- [patch] SETEX, HKEYS, HLEN and HMGET realization HOT 1
- credis_zincrby doesn't work
- Wrong command format for redis-2.2.2 HOT 6
- fixed bug in cr_push
- [patch] PERSIST, HMSET, HINCRBY and HVALS realization
- credis can't compile successfully using msvc-9.0 HOT 1
- Add sipport for Pipelining
- add support for lua scripting
- make install says not implemented HOT 1
- add keyspace_hits and keyspace_misses to credis_info command HOT 1
- credis_quit is declared but not implemented HOT 2
- Multibulk lost on publisher subscriber schema
- undefined HDEL
- HSET returns error when value is modified and shouldn't
- credis_set bug
- consider moving development to github
- credis_connect() unable to connect to redis HOT 1
- what to do after download step by step help
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 credis.