Giter Site home page Giter Site logo

segvs on Travis about rbnacl HOT 6 CLOSED

tarcieri avatar tarcieri commented on August 24, 2024
segvs on Travis

from rbnacl.

Comments (6)

tarcieri avatar tarcieri commented on August 24, 2024

Well, it's failing in crypto_box_curve25519xsalsa20poly1305_ref_afternm which is getting called here:

https://github.com/cryptosphere/rbnacl/blob/master/lib/rbnacl/boxer.rb#L62

It appears to be blowing up inside the XSalsa20 code, so I'm guessing that's not receiving an appropriately sized buffer.

from rbnacl.

namelessjon avatar namelessjon commented on August 24, 2024

That would be my guess too, but the specs are green here, and the prototype is correct according to the C code. I think it might require poking around in the c code to understand

from rbnacl.

tarcieri avatar tarcieri commented on August 24, 2024

I'm wondering how well NaCl's combined input/output buffers are playing with FFI... I tried loading it up in valgrind but FFI obscures what's actually happening.

This is one of my first experiences debugging an FFI extension and I'm not really sure how to proceed.

from rbnacl.

namelessjon avatar namelessjon commented on August 24, 2024

I can reproduce it here. It fails on my 32-bit netbook, but not the main laptop which is 64-bit. Still no idea how to solve, but at least the debug cycle no longer involves Travis.

from rbnacl.

tarcieri avatar tarcieri commented on August 24, 2024

I'm curious if it's similar to this. NaCl's API is so weird ;)

RubyCrypto/ed25519@00f0fc7

On Mon, Jan 21, 2013 at 12:33 AM, Jon [email protected] wrote:

I can reproduce it here. It fails on my 32-bit netbook, but not the main
laptop which is 64-bit. Still no idea how to solve, but at least the debug
cycle no longer involves Travis.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-12488531.

Tony Arcieri

from rbnacl.

namelessjon avatar namelessjon commented on August 24, 2024

No, I don't think so. I'm only changing an int to a long long. If it were a similar thing to that fix I think FFI would still barf on it. I guess my laptop had decided a int was 64-bits, so it didn't matter.

from rbnacl.

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.