On 29/06/16 01:17, Vincent Olivier wrote:
Hello,

The code solutions in the learnuv program segfault starting with
exercice #4. I'm on Mac OS X 10.11.5. I have tried within Xcode 7.3.1
and via the command line. I had no problem with exercices 1-3.

I want to believe. Please help !


Hi Vincent,

learnuv is not maintained by the libuv team but by a third party. You are better off asking their bugtracker.

I had a quick look and the solution to exercise 4 is incorrect. The bufs field in the request is not a public member is is nullified before the callback is called. See my comment here: https://github.com/thlorenz/learnuv/issues/20#issuecomment-228131779

The way to solve it is to embed the uv_fs_t request in a structure which you also use to keep track of the buffer.


Cheers,

--
Saúl Ibarra Corretgé
http://bettercallsaghul.com

--
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to