Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
This issue was closed by revision r28.

Original comment by [email protected] on 12 May 2010 at 7:08

  • Changed state: Fixed

from credis.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
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)

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.