Coder Social home page Coder Social logo

Comments (12)

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

@bagder investigating into it

from wolfssh.

bagder avatar bagder commented on August 15, 2024

The comment in the source code explains what wasn't obvious in the header file. That 'ofs' is a pointer to two 32 bit values. So my code passes in totally crazy input...

 * ofst     offset to start reading at. 2 word32 array with value at ofst[0]
 *          being the lower and ofst[1] being the upper.

from wolfssh.

bagder avatar bagder commented on August 15, 2024

Nope, premature conclusion. I updated my code to pass in a pointer to an array with two word32 values, but I still get 29 back.

from wolfssh.

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

I opened this PR (#190) to start on the debugging path for this. Since blocking worked ok, it looks like has to do with the non blocking portion of the code. Am working on debugging the state machine for that API with non blocking enabled.

from wolfssh.

bagder avatar bagder commented on August 15, 2024

Lovely. I'll be happy to run tests and poke from my end of things if you have any specific ideas or queries!

from wolfssh.

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

May I get the debug log from when it hits the issue and one from when it does not. This is with building wolfSSH with --enable-debug or the macro DEBUG_WOLFSSH and making a call to wolfSSH_Debugging_ON() to turn on debug print outs before the function in question get called.

from wolfssh.

bagder avatar bagder commented on August 15, 2024

Sure. Here are two logs from just now with the debug output from the point where wolfSSH_SFTP_Open() returns successfully for the file.

wolfssh-log-success.txt
wolfssh-log-fail.txt

from wolfssh.

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

Great! That clears it up. Thank you @bagder!

from wolfssh.

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

The most recent commit on PR #190 should resolve the issue now

from wolfssh.

bagder avatar bagder commented on August 15, 2024

Lovely, I'll try it out tomorrow!

from wolfssh.

bagder avatar bagder commented on August 15, 2024

Confirmed! I cannot reproduce the problem anymore with #190 applied. Thanks!

from wolfssh.

JacobBarthelmeh avatar JacobBarthelmeh commented on August 15, 2024

Thanks again for the report and for confirming the fix! Will go ahead and close out this issue.

from wolfssh.

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.